From 18a4e468cedfe9d1abacc299fffa1137fab11f74 Mon Sep 17 00:00:00 2001 From: Samirbous <64742097+Samirbous@users.noreply.github.com> Date: Mon, 8 Feb 2021 22:22:16 +0100 Subject: [PATCH] [New Rule] Attempt to Unload Elastic Endpoint Security Kernel Extension (#807) * [New Rule] Attempt to Unload Elastic Endpoint Security Kernel Extension * Update rules/macos/defense_evasion_unload_endpointsecurity_kext.toml Co-authored-by: Brent Murphy <56412096+bm11100@users.noreply.github.com> * Update rules/macos/defense_evasion_unload_endpointsecurity_kext.toml Co-authored-by: Brent Murphy <56412096+bm11100@users.noreply.github.com> * Update rules/macos/defense_evasion_unload_endpointsecurity_kext.toml Co-authored-by: Brent Murphy <56412096+bm11100@users.noreply.github.com> * added subtechnique Co-authored-by: Brent Murphy <56412096+bm11100@users.noreply.github.com> --- ..._evasion_unload_endpointsecurity_kext.toml | 43 +++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 rules/macos/defense_evasion_unload_endpointsecurity_kext.toml diff --git a/rules/macos/defense_evasion_unload_endpointsecurity_kext.toml b/rules/macos/defense_evasion_unload_endpointsecurity_kext.toml new file mode 100644 index 000000000..e36d1d443 --- /dev/null +++ b/rules/macos/defense_evasion_unload_endpointsecurity_kext.toml @@ -0,0 +1,43 @@ +[metadata] +creation_date = "2020/01/05" +maturity = "production" +updated_date = "2020/01/05" + +[rule] +author = ["Elastic"] +description = """ +Identifies attempts to unload the Elastic Endpoint Security kernel extension via the kextunload command. +""" +from = "now-9m" +index = ["auditbeat-*", "logs-endpoint.events.*"] +language = "kuery" +license = "Elastic License" +name = "Attempt to Unload Elastic Endpoint Security Kernel Extension" +risk_score = 73 +rule_id = "70fa1af4-27fd-4f26-bd03-50b6af6b9e24" +severity = "high" +tags = ["Elastic", "Host", "macOS", "Threat Detection", "Defense Evasion"] +type = "query" + +query = ''' +event.category:process and event.type:(start or process_started) and + process.name:kextunload and process.args:("/System/Library/Extensions/EndpointSecurity.kext" or "EndpointSecurity.kext") +''' + + +[[rule.threat]] +framework = "MITRE ATT&CK" +[[rule.threat.technique]] +id = "T1562" +name = "Impair Defenses" +reference = "https://attack.mitre.org/techniques/T1562/" +[[rule.threat.technique.subtechnique]] +id = "T1562.001" +name = "Disable or Modify Tools" +reference = "https://attack.mitre.org/techniques/T1562/001/" + + +[rule.threat.tactic] +id = "TA0005" +name = "Defense Evasion" +reference = "https://attack.mitre.org/tactics/TA0005/"