MAL-2026-20764: Malicious code in HappyOne.MSBuildAnalyzer (NuGet)
HappyOne.MSBuildAnalyzer poses as an MSBuild compatibility analyzer. A targets file under build/ runs the bundled MSBuildAnalyzer.dll after every build with errors suppressed. The DLL downloads bytes, AES-decrypts them with embedded base64 key and IV constants (1.2.8 and 1.2.9; 1.3.0 skips the decryption) and writes the result to disk. The download address is stored encrypted in the DLL and is not listed here. Part of the fake job assessment campaign described in the referenced article.
Affected Software
Event History
Frequently Asked Questions
When does the bundled code execute?
The package includes a targets file under build/ that runs MSBuildAnalyzer.dll after every build. Errors from that execution are suppressed, so builds may continue even if the DLL fails.
Which versions have documented payload-handling behavior?
Versions 1.2.8 and 1.2.9 download bytes and AES-decrypt them using embedded base64 key and IV constants before writing the result to disk. Version 1.3.0 skips the decryption step.
What conditions are needed for the package to retrieve its payload?
A build must run with the package's build targets imported, causing the bundled DLL to execute. The DLL contains an encrypted download address, which is not provided in the advisory.
What evidence can be used to investigate possible exposure?
Check dependency and package records for nuget/happyone.msbuildanalyzer, particularly versions 1.2.8, 1.2.9, and 1.3.0. Inspect package contents for a build targets file and MSBuildAnalyzer.dll, and investigate files written during or after builds.