kevmap

TechniquesT1027.004 › AN1383

AN1383 Analytic 1383

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

<p>Detects non-standard compilation activity via Xcode CLI tools or bundled GCC/MONO packages writing new executable files and executing them outside dev environments (e.g., user Downloads folder).</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
macos:unifiedlogprocess activity, exec eventsDC0032 Process Creation
macos:osqueryfile_eventsDC0039 File Creation
macos:unifiedlognetworkd or socketDC0082 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
CompilerInvocationPatternDetect calls to `xcodebuild`, `clang`, or `/Applications/Mono.app/...` from non-admin users
OutputBinaryPathMonitor for output files in user-writable paths (e.g., `~/Library/Caches`, `~/Downloads`)