Techniques › T1027.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 source | Channel | Data component |
|---|---|---|
| macos:unifiedlog | process activity, exec events | DC0032 Process Creation |
| macos:osquery | file_events | DC0039 File Creation |
| macos:unifiedlog | networkd or socket | DC0082 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.
| Field | Description |
|---|---|
CompilerInvocationPattern | Detect calls to `xcodebuild`, `clang`, or `/Applications/Mono.app/...` from non-admin users |
OutputBinaryPath | Monitor for output files in user-writable paths (e.g., `~/Library/Caches`, `~/Downloads`) |