CRITICAL npm Malware

Malicious code in wiwusen (npm)

MAL-2026-20423

Published · Modified

Dependency scanning

Check whether wiwusen is in your codebase

Corgea flags malicious and compromised dependencies with reachability analysis, so you fix the packages that actually run in your application instead of working through the whole lockfile.

Description


__

Source: amazon-inspector (5c757f93bd18189d86c86362ebbfea27a8932f11be1bd619a9e2ad3510a0531d)

wiwusen@2.0.0 ships a nested package under payload/ (dudovemek@2.0.0) whose package.json declares a prepare lifecycle script that runs node prep.js. On install, prep.js executes cp.execSync('id') to capture the installer's uid/gid/group output and writes it, along with a canary marker, into files under the installer's $HOME directory ($HOME/.npmjs-mirror-dfa-canary-* and $HOME/.npmjs-mirror-dfa-id-*) with mode 0o600, and emits a PAYLOAD-PREPARE-EXECUTED log line. This demonstrates arbitrary code execution and host-identity capture in the installer's account at install time without any user action. The top-level manifest also declares bundleDependencies: ["zzz-missing"] without shipping that dependency in the tarball, causing npm to resolve the name from the registry at install time and expand the install-time code surface to whatever that name resolves to.

Ready to move

Start Securing

Free, no credit card | First findings in minutes