[metadata] creation_date = "2023/08/23" integration = ["endpoint"] maturity = "production" updated_date = "2024/05/21" [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.\n" from = "now-119m" index = ["logs-endpoint.events.*", "endgame-*"] interval = "60m" 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", "Data Source: Elastic Endgame", ] timestamp_override = "event.ingested" type = "eql" query = ''' file where host.os.type == "linux" and event.type in ("change", "creation") and file.path : "/lib/modules/*" and file.extension == "ko" and not process.name : ( "dpkg", "systemd", "falcon-sensor*", "dnf", "yum", "rpm", "cp" ) ''' [[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/"