Files
sigma-rules/rules/linux/discovery_kernel_module_enumeration.toml
T

61 lines
1.9 KiB
TOML
Raw Normal View History

2020-06-29 22:57:00 -06:00
[metadata]
creation_date = "2020/04/23"
integration = ["endpoint"]
2020-06-29 22:57:00 -06:00
maturity = "production"
min_stack_comments = "Multiple field support in the New Terms rule type was added in Elastic 8.6"
min_stack_version = "8.6.0"
updated_date = "2023/07/31"
2020-06-29 22:57:00 -06:00
[rule]
author = ["Elastic"]
description = """
Loadable Kernel Modules (or LKMs) are pieces of code that can be loaded and unloaded into the kernel upon demand. They
extend the functionality of the kernel without the need to reboot the system. This identifies attempts to enumerate
information about a kernel module.
"""
false_positives = [
"""
Security tools and device drivers may run these programs in order to enumerate kernel modules. Use of these programs
by ordinary users is uncommon. These can be exempted by process name or username.
""",
]
2020-08-21 12:23:43 -05:00
from = "now-9m"
index = ["logs-endpoint.events.*"]
language = "kuery"
2021-03-03 22:12:11 -09:00
license = "Elastic License v2"
2020-06-29 22:57:00 -06:00
name = "Enumeration of Kernel Modules"
risk_score = 47
rule_id = "2d8043ed-5bda-4caf-801c-c1feb7410504"
severity = "medium"
2023-06-22 18:38:56 -03:00
tags = ["Domain: Endpoint", "OS: Linux", "Use Case: Threat Detection", "Tactic: Discovery"]
timestamp_override = "event.ingested"
type = "new_terms"
2020-06-29 22:57:00 -06:00
query = '''
event.category:process and host.os.type:linux and event.type:start and (
(process.name:(lsmod or modinfo)) or
(process.name:kmod and process.args:list) or
(process.name:depmod and process.args:(--all or -a))
) and not process.parent.user.id:0
2020-06-29 22:57:00 -06:00
'''
[[rule.threat]]
framework = "MITRE ATT&CK"
[[rule.threat.technique]]
2020-06-29 22:57:00 -06:00
id = "T1082"
name = "System Information Discovery"
reference = "https://attack.mitre.org/techniques/T1082/"
[rule.threat.tactic]
id = "TA0007"
name = "Discovery"
reference = "https://attack.mitre.org/tactics/TA0007/"
[rule.new_terms]
field = "new_terms_fields"
value = ["process.parent.name", "host.id"]
[[rule.new_terms.history_window_start]]
field = "history_window_start"
value = "now-14d"