kevmap

TechniquesT1195.001 › AN0021

AN0021 Analytic 0021

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

<p>Adversary manipulates dependencies/dev tools used by developers or CI: a package manager (npm/yarn/pnpm, pip/pipenv, nuget/dotnet, chocolatey/winget, maven/gradle) or a compiler/IDE downloads or restores content; files are written under project paths and execution paths (node_modules, packages, .nuget, .gradle, .m2, %AppData%\npm, %UserProfile%\.cargo\bin, temp build dirs). First run of newly written components triggers scripts (preinstall/postinstall), shell/PowerShell spawning, or loader DLLs, followed by network egress to non-approved registries/CDNs.</p>
Detects
T1195.001 Compromise Software Dependencies and Development Tools
Part of
DET0009 Supply-chain tamper in dependencies/dev-tools (manager→write/install→first-run→egress)

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:SysmonEventCode=1DC0032 Process Creation
WinEventLog:SysmonEventCode=7DC0016 Module Load
WinEventLog:SysmonEventCode=11DC0039 File Creation
WinEventLog:SysmonEventCode=13, 14DC0063 Windows Registry Key Modification
WinEventLog:Microsoft-Windows-CodeIntegrity/OperationalInvalid/Unsigned image when developer tool launches newly installed binariesDC0059 File Metadata
NSM:FlowFirst-time outbound connections to package registries or unknown hosts immediately after restore/buildDC0078 Network Traffic Flow

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
TimeWindowCorrelate file write by package manager to first execution and egress (default 90 minutes).
ApprovedRegistriesAllow-listed registries (e.g., registry.npmjs.org, pypi.org, nuget.org, maven.apache.org, company proxies/CDNs).
DevHostsLimit analytics to engineering endpoints/CI agents to reduce noise.
TrustedPublishersCode-signing publishers acceptable for dev tools.