Malicious code in whs4_ued (npm)
Malware
Published
Aug 11, 2026
to the GitHub Advisory Database
•
Updated Aug 11, 2026
Description
Published to the GitHub Advisory Database
Aug 11, 2026
Reviewed
Aug 11, 2026
Last updated
Aug 11, 2026
Source: amazon-inspector (6be723a2156cdb77cc97a0afb9ee15e4d50928a1924cd6cde69bcaacf2707a8b)
On npm install, the package's postinstall hook runs
node index.js, which POSTs installer host information — the absolute path of the package file (leaking the OS username and home directory layout), Node.js version, platform, and architecture — to a hardcoded Discord webhook at discord.com/api/webhooks/1530599209269465319/. The webhook token is assembled via string concatenation at the call site to evade naive string matching. The destination is attacker-controlled and unrelated to the package's stated educational typo-catcher purpose, and there is no consent gate.Credit: OpenSSF (source)
References