kevmap

TechniquesT1547.006 › AN1243

AN1243 Analytic 1243

Linux · attack.mitre.org · ATT&CK Enterprise v19.2

<p>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.</p>
Detects
T1547.006 Kernel Modules and Extensions
Part of
DET0450 Detection Strategy for Kernel Modules and Extensions Autostart Execution

Log sources and channels

Exactly as MITRE states them in x_mitre_log_source_references. Where a channel is vague, it is vague in the source; kevmap does not tidy it.

Log sourceChannelData component
auditd:SYSCALLExecution of insmod, modprobe, or rmmod commands by non-standard users or outside expected timeframesDC0064 Command Execution
auditd:SYSCALLAccess or modification to /lib/modules or creation of .ko filesDC0039 File Creation
linux:osqueryNew or modified kernel object files (.ko) within /lib/modules directoryDC0061 File Modification

Mutable elements

Parameters MITRE marks as environment-specific. These are the knobs you are expected to tune; they are why an analytic is not a rule.

FieldDescription
UserContextScope detection to non-root or unexpected users performing module-related activity
TimeWindowLimit alerts to module activity outside approved change windows
FilePathRegexAdjust regex pattern for directories to monitor depending on kernel version or distro