Poisoned Pipeline / Incidents / AS402

AS402 · 2023-10

iamreboot NuGet packages abused an MSBuild loophole to run code

NuGetWindows software

ReversingLabs found malicious NuGet packages exploiting an MSBuild
loophole so that code ran during the build without an obvious install script.
The NuGet ecosystem had received far less attention than npm, PyPI or RubyGems,
and this campaign showed the same technique transfers: a project file that
executes at build time is equivalent to a postinstall hook.

Mapped techniques

supply-chain iamreboot NuGet packages abused an MSBuild loophole to run c

T0198 · Defense Evasion · Malicious Build Time Dependencies

Code executed during MSBuild rather than at install.

T0109 · Resource Development · Publish malicious artifact

Malicious packages published to NuGet.

Sources