{"id":"MAL-2026-20764","summary":"Malicious code in HappyOne.MSBuildAnalyzer (NuGet)","details":"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.","modified":"2026-11-30T01:30:03.316866515Z","published":"2026-11-25T21:30:00Z","database_specific":{"iocs":{"files":[{"note":"1.2.8: downloads, AES-decrypts and writes a payload. Run after every build by the targets file.","paths":["lib/net10.0/MSBuildAnalyzer.dll"],"source":"PACKAGE_ARCHIVE","digests":{"sha256":"5e27a83d82c4bedfc7cfa6f828eb383ef09e2ed4e49533665cd284debc7376e6"}},{"source":"PACKAGE_ARCHIVE","digests":{"sha256":"4ec23d5a7d03c906e291f5f6100704e8cf164e3a69f0b239e8ed38b20218ad92"},"note":"1.2.9: downloads, AES-decrypts and writes a payload. Run after every build by the targets file.","paths":["lib/net10.0/MSBuildAnalyzer.dll"]},{"source":"PACKAGE_ARCHIVE","digests":{"sha256":"7eeaa4784955be7c1faff5b13cccf2114dd35321afeb9e515a6daede453ac11b"},"note":"1.3.0: downloads and writes a payload.","paths":["lib/net10.0/MSBuildAnalyzer.dll"]},{"note":"1.2.9: build hook that runs MSBuildAnalyzer.dll after every build.","paths":["build/HappyOne.MsBuildAnalyzer.targets"],"source":"PACKAGE_ARCHIVE"},{"note":"1.2.8: build hook that runs MSBuildAnalyzer.dll after every build.","paths":["build/VS_Builder.MsBuildAnalyzer.targets"],"source":"PACKAGE_ARCHIVE"}]}},"references":[{"type":"ARTICLE","url":"https://socket.dev/blog/malicious-nuget-packages-fake-job-assessments"}],"affected":[{"package":{"name":"HappyOne.MSBuildAnalyzer","ecosystem":"NuGet","purl":"pkg:nuget/HappyOne.MSBuildAnalyzer"},"versions":["1.2.8","1.2.9","1.3.0"],"database_specific":{"cwes":[{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"}],"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/nuget/happyone.msbuildanalyzer/MAL-2026-20764.json"}}],"schema_version":"1.9.2","credits":[{"name":"Chainguard","contact":["https://www.chainguard.dev","mailto:security@chainguard.dev"],"type":"FINDER"},{"name":"Socket","type":"FINDER"}]}