Your RSA-2048 keys break in 2030. Find every one of them before attackers do.
Malicious package

test-pkg-pnpmnpm

test-pkg-pnpm is a confirmed malicious npm package (MAL-2026-6716) that executes malicious code on install (malicious versions 1.0.0, 1.0.1, 1.0.2…). Do not install it — remove it immediately and rotate any exposed credentials.

Malicious code in test-pkg-pnpm (npm)

MAL-2026-6716
Immediate action
Remove the package, then rotate any secrets the build/runtime could reach.
npm uninstall test-pkg-pnpm

What this malware does

On npm install, the package's postinstall script (node demo-clean.js) auto-executes two installer-side actions without consent. First, openDemo() platform-branches via execSync to open https://github.com/X3r0Day/BunnyHijack in the installer's default browser and to spawn the OS calculator (calc on Windows, open -a Calculator on macOS, gnome-calculator/kcalc on Linux) — the canonical calc.exe proof of unauthenticated code execution on the installer's host. Second, cleanup() walks every ancestor directory of INIT_CWD, process.cwd(), and the user's home directory, calling fs.rmSync(..., {recursive:true, force:true}) against paths inside each ancestor's node_modules, node_modules/.pnpm, node_modules/.bin/node* shims, ~/.npm/_npx, ~/.bun/install/cache, and tmpdir entries; cleanupPackageJson() then reads each ancestor package.json and rewrites it via fs.writeFileSync after deleting matching entries from dependencies, devDependencies, optionalDependencies, and peerDependencies. The destructive recursive-force-rm operates well outside the package's own directory and reaches the user's home tree, and the spawned-process primitive can be retargeted to any binary in a future release.

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

5 flagged
1.0.01.0.11.0.21.0.31.0.4

Indicators of compromise (SHA-256)

8ee6a2ba8d90a67199eae146b7688190adb974ce5aa1be7c07d56e2e3999d270
ae5df84cbdf3092d5f7b8f405248144eacdf5119c756c97726974e547810ebec
42ab043183eddea4feeeba6b04397cdda6189b7d4c4bfdb11197a88646a1deca
72570ced08f2e9508907135652cfeac86ffea9675e048a0ba5b469014f81fcff
9a8b971fee9582aa85c826801327a2df5254d442513711bce12d1846bb3c8115
e7c871f66e9a752588e38a2dc2885198fd14fd1561716868c0799a19dbb50921

Detection & response playbook

Malicious package
  1. Find it

    Scan your lockfiles (package-lock.json, pnpm-lock.yaml, yarn.lock, requirements.txt, poetry.lock, etc.) and build artifacts for test-pkg-pnpm (5 malicious versions). O3 Security's supply-chain scanner checks every dependency against known-malicious package intelligence at install time and in CI, flagging test-pkg-pnpm across your stack and pipelines.

  2. If you installed it — respond

    Remove test-pkg-pnpm 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.

  3. Did it already run?

    If test-pkg-pnpm was ever installed, its post-install/runtime payload may have already executed. O3's L7 egress monitoring and runtime eBPF sensors detect the credential exfiltration or command-and-control callback after install and block the malicious outbound channel, so you catch and contain the actual compromise — not just the presence of the package.

  4. How O3 protects you

    O3 blocks test-pkg-pnpm before install through its supply-chain scanner, and if it has already run, detects and severs the exfiltration or C2 callback at runtime through L7 egress monitoring and eBPF.

Frequently asked questions

No. test-pkg-pnpm on npm has been identified as a malicious package (versions 1.0.0, 1.0.1, 1.0.2, 1.0.3, 1.0.4 flagged). It should be removed immediately — do not install or keep it in your dependency tree.

Campaign

IN-MAL-2026-007894IN-MAL-2026-007893GHSA-7grv-5j2w-4wx3IN-MAL-2026-018439IN-MAL-2026-018436IN-MAL-2026-018437

References

Credits

  • Amazon Inspector · finder

Detect & block this

O3 blocks test-pkg-pnpm-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.

Explore

test-pkg-pnpm (npm) malicious package — MAL-2026-6716 | O3 Security