kevmap

TechniquesT1547.013 › AN1096

AN1096 Analytic 1096

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

<p>Correlation of file creation/modification of .desktop files within XDG autostart directories, followed by execution of processes at user login initiated by the desktop environment. Malicious entries typically include suspicious Exec paths or anomalous names and are not associated with installed packages.</p>
Detects
T1547.013 XDG Autostart Entries
Part of
DET0390 Linux Detection Strategy for T1547.013 - XDG Autostart Entries

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:SYSCALLcreatDC0039 File Creation
auditd:SYSCALLopenDC0055 File Access
auditd:EXECVEProcess execution via .desktop Exec path from /etc/xdg/autostart or ~/.config/autostartDC0032 Process Creation
linux:osqueryWrite or modify .desktop file in XDG autostart pathDC0059 File Metadata
linux:authUser login event followed by unexpected process treeDC0067 Logon Session Creation

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
ExecCommandPatternRegex or allowlist of expected Exec paths within .desktop files. Deviations may be suspicious.
AutostartDirectoryMay vary by user config (e.g., $XDG_CONFIG_HOME). Must enumerate actual values per system.
TimeWindowCorrelate file creation/mod + exec within login window (e.g., 0–5 min of user logon).
UserContextShould filter to non-system users, as XDG persistence typically targets interactive sessions.
PackageOriginBaselineCompare .desktop entries to known package sources (e.g., `dpkg -S`). Unexpected origins may be suspicious.