@doaction/examplesnpm
Advisory published Updated
@doaction/examples is a confirmed malicious npm package (MAL-2026-5372) that steals credentials and exfiltrates sensitive data (malicious versions 9.9.9, 99.99.99). Do not install it — remove it immediately and rotate any exposed credentials.
Malicious code in @doaction/examples (npm)
What this malware does
@doaction/[email protected] declares preinstall: node scripts/postinstall.js in package.json, which requires @doaction/shared/bin/postinstall.js. The package self-describes as 'for internal testing' and depends on @doaction/shared at ^99.99.99. On npm install, the preinstall hook auto-executes and loads telemetry code from the sibling @doaction/shared package, which collects environment variables and transmits them to a remote destination — the installer has no opportunity to consent and no documented opt-out at this stage. The version 99.99.99 combined with @doaction scope and 'internal testing' wording is the canonical dependency-confusion override fingerprint: any organization with private @doaction/* packages whose installer pulls from public npm instead of an internal registry will resolve and execute this code in place of their internal package. A secondary integrity concern: a separate scripts/preinstall.js file exists but is unreferenced, while the actual preinstall hook points at a file named postinstall.js — a naming inconsistency that obscures what executes at install time.
Any computer that has this package installed or running should be considered fully compromised. All secrets and keys stored on that computer should be rotated immediately from a different computer. The package should be removed, but as full control of the computer may have been given to an outside entity, there is no guarantee that removing the package will remove all malicious software resulting from installing it.
Malicious versions
Indicators of compromise (SHA-256)
Detection & response playbook
Credential / info stealerFind it
Search your lockfiles and build artifacts for @doaction/examples (2 malicious versions).
If you installed it — respond
@doaction/examples is built to steal secrets, so assume every credential the build or runtime could read is compromised. Remove it from your project and lockfile, then rotate ALL exposed secrets — npm/registry tokens, cloud keys, CI/CD secrets, SSH keys, and any .env values — from a known-clean machine. Audit logs for unauthorized use of those credentials.
Did it already run?
If @doaction/examples 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 @doaction/examples-class packages before install and in CI — and if it already ran, its runtime egress monitoring catches the credential exfiltration and severs the channel.