process where event.type == "start" and
process.name : "touch" and user.id != "0" and
process.args : ("-r", "-t", "-a*","-m*") and
not process.args : (
"/usr/lib/go-*/bin/go", "/usr/lib/dracut/dracut-functions.sh", "/tmp/KSInstallAction.*/m/.patch/*"
) and not process.parent.name in ("pmlogger_daily", "pmlogger_janitor", "systemd")
Install detection rules in Elastic Security
Detect Timestomping using Touch Command in the Elastic Security detection engine by installing this rule into your Elastic Stack.
To setup this rule, check out the installation guide for Prebuilt Security Detection Rules(opens in a new tab or window).