2020-06-29 22:57:00 -06:00
|
|
|
[metadata]
|
|
|
|
|
creation_date = "2020/02/18"
|
2020-07-07 13:43:33 -05:00
|
|
|
ecs_version = ["1.5.0"]
|
2020-06-29 22:57:00 -06:00
|
|
|
maturity = "production"
|
2020-08-03 15:46:57 -04:00
|
|
|
updated_date = "2020/08/03"
|
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-03 15:46:57 -04:00
|
|
|
index = ["auditbeat-*", "logs-endpoint.events.*"]
|
2020-06-29 22:57:00 -06:00
|
|
|
language = "kuery"
|
|
|
|
|
license = "Elastic License"
|
|
|
|
|
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"
|
|
|
|
|
tags = ["Elastic", "Linux"]
|
|
|
|
|
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]]
|
|
|
|
|
id = "T1215"
|
|
|
|
|
name = "Kernel Modules and Extensions"
|
|
|
|
|
reference = "https://attack.mitre.org/techniques/T1215/"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[rule.threat.tactic]
|
|
|
|
|
id = "TA0003"
|
|
|
|
|
name = "Persistence"
|
|
|
|
|
reference = "https://attack.mitre.org/tactics/TA0003/"
|
|
|
|
|
|