wiwusennpm
Advisory published Updated
wiwusen is a confirmed malicious npm package (MAL-2026-20423) that executes malicious code on install (malicious version 2.0.0). Do not install it — remove it immediately and rotate any exposed credentials.
Malicious code in wiwusen (npm)
What this malware does
[email protected] ships a nested package under payload/ ([email protected]) 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.
Malicious versions
Indicators of compromise (SHA-256)
Detection & response playbook
Malicious packageFind it
Search your lockfiles and build artifacts for wiwusen (version 2.0.0).
If you installed it — respond
Remove wiwusen from your project and lockfile, then assume any secrets accessible to the build or runtime were exposed: rotate API keys, tokens, and credentials, and audit for unexpected outbound activity or persistence.
Did it already run?
If wiwusen was installed, its post-install payload may already have run. Removing the package does not undo that — check outbound connections and credential use from the install window onward.
Frequently asked questions
Campaign
References
Credits
- Amazon Inspector · finder
Detect & block this
O3 blocks wiwusen-class packages before install and in CI — and if it already ran, its runtime egress monitoring catches the malicious outbound activity and severs the channel.