kevmap

TechniquesT1546.017 › AN1056

AN1056 Analytic 1056

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

<p>Monitor for creation or modification of udev rules files in key directories (/etc/udev/rules.d/, /lib/udev/rules.d/, /usr/lib/udev/rules.d/). Look for RUN+= or IMPORT keys invoking suspicious binaries or scripts. Correlate this with process execution from systemd-udevd context, and file writes near udev reload/restart events. Combine this with unexpected background process spawning from udevd-related forks.</p>
Detects
T1546.017 Udev Rules
Part of
DET0375 Detection Strategy for T1546.017 - Udev Rules (Linux)

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:SYSCALLchmod, write, create, openDC0061 File Modification
auditd:SYSCALLexecveDC0032 Process Creation
auditd:CONFIG_CHANGEudev rule reload or trigger command executedDC0064 Command Execution

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
UdevRulePathPath to udev rules (may vary by distro or user configuration)
SuspiciousRunPatternRegex or string pattern to flag suspicious command executions in RUN+=
TimeWindowMax interval between rule change and execution to correlate activity
ParentProcessExpected parent of RUN-invoked commands (e.g., systemd-udevd)