2020-06-29 22:57:00 -06:00
|
|
|
[metadata]
|
|
|
|
|
creation_date = "2020/02/18"
|
2021-04-21 19:10:06 +00:00
|
|
|
deprecation_date = "2021/04/15"
|
|
|
|
|
maturity = "deprecated"
|
|
|
|
|
updated_date = "2021/04/15"
|
2020-06-29 22:57:00 -06:00
|
|
|
|
|
|
|
|
[rule]
|
|
|
|
|
author = ["Elastic"]
|
|
|
|
|
description = "Identifies loadable kernel module errors, which are often indicative of potential persistence attempts."
|
|
|
|
|
false_positives = [
|
|
|
|
|
"""
|
|
|
|
|
Security tools and device drivers may run these programs in order to load legitimate kernel modules. Use of these
|
|
|
|
|
programs by ordinary users is uncommon.
|
|
|
|
|
""",
|
|
|
|
|
]
|
2020-08-21 12:23:43 -05:00
|
|
|
from = "now-9m"
|
2020-08-03 15:46:57 -04:00
|
|
|
index = ["auditbeat-*", "logs-endpoint.events.*"]
|
2020-06-29 22:57:00 -06:00
|
|
|
language = "kuery"
|
2021-03-03 22:12:11 -09:00
|
|
|
license = "Elastic License v2"
|
2020-06-29 22:57:00 -06:00
|
|
|
name = "Persistence via Kernel Module Modification"
|
|
|
|
|
references = [
|
|
|
|
|
"https://www.hackers-arise.com/single-post/2017/11/03/Linux-for-Hackers-Part-10-Loadable-Kernel-Modules-LKM",
|
|
|
|
|
]
|
|
|
|
|
risk_score = 21
|
|
|
|
|
rule_id = "81cc58f5-8062-49a2-ba84-5cc4b4d31c40"
|
|
|
|
|
severity = "low"
|
2020-10-26 13:50:45 -05:00
|
|
|
tags = ["Elastic", "Host", "Linux", "Threat Detection", "Persistence"]
|
2021-02-16 10:52:48 -09:00
|
|
|
timestamp_override = "event.ingested"
|
2020-06-29 22:57:00 -06:00
|
|
|
type = "query"
|
|
|
|
|
|
|
|
|
|
query = '''
|
2020-07-07 13:43:33 -05:00
|
|
|
event.category:process and event.type:(start or process_started) and process.name:(insmod or kmod or modprobe or rmod)
|
2020-06-29 22:57:00 -06:00
|
|
|
'''
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[[rule.threat]]
|
|
|
|
|
framework = "MITRE ATT&CK"
|
|
|
|
|
[[rule.threat.technique]]
|
2020-12-18 12:46:16 -09:00
|
|
|
id = "T1547"
|
|
|
|
|
name = "Boot or Logon Autostart Execution"
|
|
|
|
|
reference = "https://attack.mitre.org/techniques/T1547/"
|
|
|
|
|
[[rule.threat.technique.subtechnique]]
|
|
|
|
|
id = "T1547.006"
|
2020-06-29 22:57:00 -06:00
|
|
|
name = "Kernel Modules and Extensions"
|
2020-12-18 12:46:16 -09:00
|
|
|
reference = "https://attack.mitre.org/techniques/T1547/006/"
|
2020-06-29 22:57:00 -06:00
|
|
|
|
|
|
|
|
|
2021-02-16 10:52:48 -09:00
|
|
|
|
2020-06-29 22:57:00 -06:00
|
|
|
[rule.threat.tactic]
|
|
|
|
|
id = "TA0003"
|
|
|
|
|
name = "Persistence"
|
|
|
|
|
reference = "https://attack.mitre.org/tactics/TA0003/"
|
|
|
|
|
|