[metadata] creation_date = "2023/08/23" integration = ["endpoint"] maturity = "production" min_stack_comments = "New fields added: required_fields, related_integrations, setup" min_stack_version = "8.3.0" updated_date = "2023/12/18" [rule] author = ["Elastic"] building_block_type = "default" description = """ Identifies activity related to loading kernel modules on Linux via creation of new ko files in the LKM directory. """ from = "now-119m" interval = "60m" index = ["auditbeat-*", "logs-endpoint.events.*"] language = "eql" license = "Elastic License v2" name = "Creation of Kernel Module" risk_score = 21 rule_id = "947827c6-9ed6-4dec-903e-c856c86e72f3" severity = "low" tags = [ "Domain: Endpoint", "OS: Linux", "Use Case: Threat Detection", "Tactic: Persistence", "Rule Type: BBR", "Data Source: Elastic Defend" ] timestamp_override = "event.ingested" type = "eql" query = ''' file where event.type in ("change", "creation") and host.os.type == "linux" and file.path : "/lib/modules/*" and file.name : "*.ko" and not process.name : ("dpkg", "systemd", "falcon-sensor*", "dnf", "yum", "rpm") ''' [[rule.threat]] framework = "MITRE ATT&CK" [[rule.threat.technique]] id = "T1547" name = "Boot or Logon Autostart Execution" reference = "https://attack.mitre.org/techniques/T1547/" [[rule.threat.technique.subtechnique]] id = "T1547.006" name = "Kernel Modules and Extensions" reference = "https://attack.mitre.org/techniques/T1547/006/" [rule.threat.tactic] id = "TA0003" name = "Persistence" reference = "https://attack.mitre.org/tactics/TA0003/"