VeriKQL by Kaushik Saha

T1547.006 Kernel Modules and Extensions

PersistencePrivilege Escalationon attack.mitre.org

ATT&CK Enterprise 20.0 · 20.1 released, update in review

How MITRE detects it

DET0450 Detection Strategy for Kernel Modules and Extensions Autostart Execution

AN1243 Linux

Monitor kernel module load/unload activity via modprobe, insmod, rmmod, or direct manipulation of /lib/modules. Correlate with installation of kernel headers, compilation commands, or downloads of .ko files. Detect anomalies in unsigned module loading or repeated module load attempts under non-root users.

MITRE log sourceIn Microsoft Sentinel
auditd:SYSCALLExecution of insmod, modprobe, or rmmod commands by non-standard users or outside expected timeframesNot mapped to Sentinel yet.
auditd:SYSCALLAccess or modification to /lib/modules or creation of .ko filesNot mapped to Sentinel yet.
linux:osqueryNew or modified kernel object files (.ko) within /lib/modules directoryNot mapped to Sentinel yet.

AN1244 macOS

Detect user-initiated kextload commands or modifications to /Library/Extensions. Correlate with changes to KextPolicy database or unauthorized developer signing identities. Alert on attempts to disable SIP or load legacy extensions from unsigned sources.

MITRE log sourceIn Microsoft Sentinel
macos:unifiedlogkextload execution from Terminal or suspicious pathsNot mapped to Sentinel yet.
macos:osqueryProcesses executing kextload, spctl, or modifying kernel extension directoriesNot mapped to Sentinel yet.
macos:osqueryNew kext entries not signed by Apple or outside standard identifier prefixNot mapped to Sentinel yet.
macos:osqueryModifications to /var/db/SystemPolicyConfiguration/KextPolicy or kext_policy tableNot mapped to Sentinel yet.

Content Hub rules tagged with it (2)

Rules tagged with this technique (or a sub-technique) in their metadata. Whether one fits your connectors is the coverage view (M2).

How the Content Hub rules for T1547.006 are built: their tables, filters, joins, schedules and windows.

In Sigma rules

2 SigmaHQ community rules name it in their tags.

Community rules, not Microsoft's, and not checked by VeriKQL (Sigma is not KQL). From SigmaHQ/sigma at f083329, under the Detection Rule License (DRL) 1.1; each rule is credited to its author.

Mitigations

MITRE ATT&CK® is a registered trademark of The MITRE Corporation. VeriKQL is not affiliated with or endorsed by MITRE. ATT&CK data © The MITRE Corporation, used under its terms of use.