Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Documents MITRE ATT&CK T1027.004: attackers deliver uncompiled source code that victims compile before running, with Atomic Red Team tests.
64% 95%+32 ptsof test cases passed
Passed 21 of 22 test cases with the skill, and 14 of 22 without it.
3 of 3 safety checks passed
Not used yet
Sub-technique of: T1027
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.
Platforms: Linux, macOS, Windows
The following tests are from Atomic Red Team and provide actionable ways to test this technique:
Compile C# code using csc.exe binary used by .NET Upon execution an exe named T1027.004.exe will be placed in the temp folder
Supported Platforms: windows
C:\Windows\Microsoft.NET\Framework64\v4.0.30319\csc.exe /out:#{output_file} "#{input_file}"
Skills that do similar work, with their benchmark result.
Next to this one in the catalogue, plus more from the same author.