Cross-source coverage
T1127.001 / ATT&CK
Trusted Developer Utilities Proxy Execution: MSBuild
22 rules across 5 sources.
From MITRE ATT&CK 19.2
Adversaries may use MSBuild to proxy execution of code through a trusted Windows utility. MSBuild.exe (Microsoft Build Engine) is a software build platform used by Visual Studio. It handles XML formatted project files that define requirements for loading and building various platforms and configurations.
Adversaries can abuse MSBuild to proxy execution of malicious code. The inline task capability of MSBuild that was introduced in.NET version 4 allows for C# or Visual Basic code to be inserted into an XML project file. MSBuild will compile and execute the inline task. MSBuild.exe is a signed Microsoft binary, so when it is used this way it can execute arbitrary code and bypass application control defenses that are configured to allow MSBuild.exe execution.
- Platforms
- Windows
- Telemetry
-
WinEventLog:SecurityWinEventLog:SysmonWinEventLog:Microsoft-Windows-CodeIntegrity/OperationalEDR:AMSI
How MITRE says to detect it DET0556
Behavior-chain detection strategy for T1127.001 Trusted Developer Utilities Proxy Execution: MSBuild (Windows)
Windows Analytic 1535
MSBuild.exe is invoked outside expected developer/build contexts or with anomalous arguments (e.g., non-canonical paths, remote shares, Base64/obfuscated property values). Within a short window, it (a) spawns high-risk LOLBins/script interpreters, (b) writes new PE/DLL/script artifacts into user-writable paths and executes them, (c) loads unsigned/user-writable modules, (d) performs memory injection/thread creation into other processes, and/or (e) initiates outbound network connections.
WinEventLog:SecurityEventCode=4688WinEventLog:SysmonEventCode=7WinEventLog:SysmonEventCode=11WinEventLog:SysmonEventCode=3, 22WinEventLog:SysmonEventCode=8WinEventLog:SysmonEventCode=10WinEventLog:Microsoft-Windows-CodeIntegrity/OperationalUnsigned/invalid signature modules or images loaded by msbuild.exe or its childrenEDR:AMSIMalicious inline C#/script blobs embedded in MSBuild projects if intercepted by AMSI-aware loaders (rare but possible via chained LOLBins)
elastic/detection-rules
13 rules| Detection | Severity | Format |
|---|---|---|
| Microsoft Build Engine Started by an Office Application | High | Elastic TOML |
| Network Activity to a Suspicious Top Level Domain | High | Elastic TOML |
| Potential Credential Access via Trusted Developer Utility | High | Elastic TOML |
| Execution of Persistent Suspicious Program | Medium | Elastic TOML |
| Microsoft Build Engine Started by a Script Process | Medium | Elastic TOML |
| Microsoft Build Engine Started by a System Process | Medium | Elastic TOML |
| MsBuild Making Network Connections | Medium | Elastic TOML |
| Suspicious Execution from a Mounted Device | Medium | Elastic TOML |
| Unusual Network Activity from a Windows System Binary | Medium | Elastic TOML |
| Delayed Execution via Ping | Low | Elastic TOML |
+ 3 more from elastic/detection-rules → showing the 10 highest-severity
splunk/security_content
4 rules| Detection | Severity | Format |
|---|---|---|
| MSBuild Suspicious Spawned By Script Process | Undefined | SPL |
| Suspicious msbuild path | Undefined | SPL |
| Suspicious MSBuild Rename | Undefined | SPL |
| Suspicious MSBuild Spawn | Undefined | SPL |
Bert-JanP/Hunting-Queries-Detection-Rules
3 rules| Detection | Severity | Format |
|---|---|---|
| MITRE ATT&CK Mapping | Undefined | KQL |
| Suspicious MSBuild Remote Thread | Undefined | KQL |
| TTP Detection Rule: Suspicious network connection from MSBuild | Undefined | KQL |
SigmaHQ/sigma
1 rule| Detection | Severity | Format |
|---|---|---|
| Silenttrinity Stager Msbuild Activity | High | Sigma |
elastic/protections-artifacts
1 rule| Detection | Severity | Format |
|---|---|---|
| MSBuild with Unusual Arguments | Undefined | Elastic TOML |