a7ff449fbc
* [Rule Tuning] Doing some quick tunings * updated_date bump * Update rules/linux/discovery_linux_modprobe_enumeration.toml * Update rules/linux/discovery_linux_modprobe_enumeration.toml * Update rules/linux/discovery_linux_sysctl_enumeration.toml * Update rules/linux/persistence_init_d_file_creation.toml * Update rules/linux/persistence_rc_script_creation.toml * Update rules/linux/persistence_shared_object_creation.toml * deprecate rule * deprecate rule * Update execution_abnormal_process_id_file_created.toml * Update discovery_kernel_module_enumeration_via_proc.toml * Update discovery_linux_modprobe_enumeration.toml * Update execution_remote_code_execution_via_postgresql.toml * Update discovery_potential_syn_port_scan_detected.toml * Added 2 tunings, sorry I missed those.. * One more tune * Update discovery_suspicious_proc_enumeration.toml
61 lines
1.9 KiB
TOML
61 lines
1.9 KiB
TOML
[metadata]
|
|
creation_date = "2020/04/23"
|
|
integration = ["endpoint"]
|
|
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"
|
|
|
|
[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.
|
|
""",
|
|
]
|
|
from = "now-9m"
|
|
index = ["logs-endpoint.events.*"]
|
|
language = "kuery"
|
|
license = "Elastic License v2"
|
|
name = "Enumeration of Kernel Modules"
|
|
risk_score = 47
|
|
rule_id = "2d8043ed-5bda-4caf-801c-c1feb7410504"
|
|
severity = "medium"
|
|
tags = ["Domain: Endpoint", "OS: Linux", "Use Case: Threat Detection", "Tactic: Discovery"]
|
|
timestamp_override = "event.ingested"
|
|
type = "new_terms"
|
|
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
|
|
'''
|
|
|
|
[[rule.threat]]
|
|
framework = "MITRE ATT&CK"
|
|
[[rule.threat.technique]]
|
|
|
|
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"
|