Reference tables / ATT&CK techniques / T1027.004
T1027.004 Compile After Delivery
- Tactics
- Defense Evasion
- Reports citing the ID, 90 days
- 1
- KEV CVEs mapped
- 0
- SigmaHQ rules
- 6
- Elastic, Splunk
- 6
- thrunt rules
- 0
- MITRE
- https://attack.mitre.org/techniques/T1027/004
Rules
SigmaHQ community rules
- Dynamic CSharp Compile Artefact (core)
- Dynamic .NET Compilation Via Csc.EXE (core)
- Csc.EXE Execution Form Potentially Suspicious Parent (core)
- Potential Application Whitelisting Bypass via Dnx.EXE (core)
- Visual Basic Command Line Compiler Usage (core)
- Dynamic .NET Compilation Via Csc.EXE - Hunting (threat-hunting)
Elastic and Splunk rules
- GenAI Process Compiling or Generating Executables (elastic)
- Suspicious .NET Code Compilation (elastic)
- Microsoft Build Engine Started an Unusual Process (elastic)
- CSC Net On The Fly Compilation (splunk)
- Linux Compiled C Source To Tmp (splunk)
- Linux Suspicious GCC Invocation Building Init Shared Object (splunk)
MITRE description
Adversaries may attempt to make payloads difficult to discover and analyze by delivering files to victims as uncompiled code. Text-based source code files may subvert analysis and scrutiny from protections targeting executables/binaries. These payloads will need to be compiled before execution; typically via native utilities such as ilasm.exe, csc.exe, or GCC/MinGW. Source code payloads may also be encrypted, encoded, and/or embedded within other files, such as those delivered as a Phishing. Payloads may also be delivered in formats unrecognizable and inherently benign to the native OS (ex: EXEs on macOS/Linux) before later being (re)compiled into a proper executable binary with a bundled compiler and execution framework.
Research citing this technique
Reports and advisories from the last 90 days that cite this technique.