kevmap

TechniquesT1027.004 › AN1382

AN1382 Analytic 1382

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

<p>Detects GCC or Clang invoked on suspicious file paths (e.g., /tmp/, ~/Downloads) with output to executable binaries, followed by execution or outbound traffic from these binaries.</p>
Detects
T1027.004 Compile After Delivery
Part of
DET0501 Detection Strategy for Compile After Delivery - Source Code to Executable Transformation

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:SYSCALLexecveDC0032 Process Creation
auditd:SYSCALLopen,createDC0039 File Creation
NSM:Flowconn.logDC0082 Network Connection 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
CompilerBinaryPathSpecify path and binaries for detection (e.g., `/usr/bin/gcc`, `/opt/mingw/bin/gcc`)
FilePermissionProfileMatch uncommon chmod behavior post-compilation (e.g., +x in `/tmp` or home directories)