kevmap

TechniquesT1127.001 › AN1535

AN1535 Analytic 1535

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

<p>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.</p>
Detects
T1127.001 MSBuild
Part of
DET0556 Behavior-chain detection strategy for T1127.001 Trusted Developer Utilities Proxy Execution: MSBuild (Windows)

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
WinEventLog:SecurityEventCode=4688DC0032 Process Creation
WinEventLog:SysmonEventCode=7DC0016 Module Load
WinEventLog:SysmonEventCode=11DC0039 File Creation
WinEventLog:SysmonEventCode=3, 22DC0082 Network Connection Creation
WinEventLog:SysmonEventCode=8DC0020 Process Modification
WinEventLog:SysmonEventCode=10DC0035 Process Access
WinEventLog:Microsoft-Windows-CodeIntegrity/OperationalUnsigned/invalid signature modules or images loaded by msbuild.exe or its childrenDC0034 Process Metadata
EDR:AMSIMalicious inline C#/script blobs embedded in MSBuild projects if intercepted by AMSI-aware loaders (rare but possible via chained LOLBins)DC0029 Script Execution

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
TimeWindowCorrelation window between msbuild.exe start, payload write, suspicious child spawn, and network (e.g., 0–30 minutes).
DeveloperHostsTag/allowlist known developer or CI/CD hosts to reduce noise.
SuspiciousChildListHigh-risk children (powershell.exe, rundll32.exe, regsvr32.exe, cmd.exe, wscript.exe, mshta.exe) spawned by msbuild.exe.
RarePathRegexRegex of user-writable or atypical paths (e.g., %TEMP%, %APPDATA%, OneDrive sync dirs) used to drop payloads.
UnsignedOrInvalidSignatureOnlyTighten alerting to cases with invalid or missing signatures on modules/children.
NetworkReputationThresholdMinimum rarity/risk score for external destinations to alert.
BehaviorRiskScoreThresholdNumeric threshold for fused, scored correlation (e.g., ≥70/100 triggers an alert).