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/"