From eb487f943394dfab6ed536b985029d2308a2dd83 Mon Sep 17 00:00:00 2001 From: Samirbous <64742097+Samirbous@users.noreply.github.com> Date: Tue, 17 Nov 2020 23:29:47 +0100 Subject: [PATCH] [New Rule] Timestomping using Touch Command (#463) * [New Rule] Timestomping using Touch Command * Update defense_evasion_timestomp_touch.toml * added macOS tag * Update rules/linux/defense_evasion_timestomp_touch.toml Co-authored-by: David French <56409778+threat-punter@users.noreply.github.com> Co-authored-by: David French <56409778+threat-punter@users.noreply.github.com> --- .../defense_evasion_timestomp_touch.toml | 43 +++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 rules/linux/defense_evasion_timestomp_touch.toml diff --git a/rules/linux/defense_evasion_timestomp_touch.toml b/rules/linux/defense_evasion_timestomp_touch.toml new file mode 100644 index 000000000..a0a108381 --- /dev/null +++ b/rules/linux/defense_evasion_timestomp_touch.toml @@ -0,0 +1,43 @@ +[metadata] +creation_date = "2020/11/03" +ecs_version = ["1.6.0"] +maturity = "production" +updated_date = "2020/11/03" + +[rule] +author = ["Elastic"] +description = """ +Timestomping is an anti-forensics technique which is used to modify the timestamps of a file, often to mimic files + that are in the same folder. +""" +from = "now-9m" +index = ["auditbeat-*", "logs-endpoint.events.*"] +language = "eql" +license = "Elastic License" +max_signals = 33 +name = "Timestomping using Touch Command" +risk_score = 47 +rule_id = "b0046934-486e-462f-9487-0d4cf9e429c6" +severity = "medium" +tags = ["Elastic", "Host", "Linux", "macOS", "Threat Detection", "Defense Evasion"] +type = "eql" + +query = ''' +process where event.type in ("start", "process_started") and + process.name == "touch" and wildcard(process.args, "-r", "-t", "-a*","-m*") +''' + + +[[rule.threat]] +framework = "MITRE ATT&CK" +[[rule.threat.technique]] +id = "T1099" +name = "Timestomp" +reference = "https://attack.mitre.org/techniques/T1099/" + + +[rule.threat.tactic] +id = "TA0005" +name = "Defense Evasion" +reference = "https://attack.mitre.org/tactics/TA0005/" +