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

gunpowder-ghostnpm

gunpowder-ghost is a confirmed malicious npm package (MAL-2025-49286) that steals credentials and exfiltrates sensitive data (malicious versions 209.0.0, 210.0.0, 211.0.0…). Do not install it — remove it immediately and rotate any exposed credentials.

Malicious code in gunpowder-ghost (npm)

MAL-2025-49286
Immediate action
Remove the package, then rotate any secrets the build/runtime could reach.
npm uninstall gunpowder-ghost

What this malware does

Four pirate-themed npm packages (blackbeards-navigator, beusy, sirens-lament, gunpowder-ghost) were published by the npm account beusy with heavily inflated version numbers (209.0.0–210.0.0), a hallmark of dependency confusion attacks. Each package contains identical malicious lifecycle scripts (preinstall, install, and postinstall) that run on npm install, searching the entire filesystem (up to 8 directory levels deep) for HackTheBox CTF flags matching the pattern HTB{. If no flags are found, the scripts collect environment variables and /proc/1/environ as a fallback. The collected data is base64-encoded and exfiltrated via an HTTPS GET request to an attacker-controlled ngrok tunnel (https://7f83-194-51-113-30.ngrok-free.app), with the package name and hostname included as query parameters. The packages have no legitimate functionality; index.js exports an empty object.

This package (gunpowder-ghost) identifies itself as pkg=gunpowder-ghost in the exfil request. All three lifecycle hooks run the same payload, ensuring execution regardless of npm lifecycle ordering.

The package gunpowder-ghost was found to contain malicious code.

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.

The OpenSSF Package Analysis project identified 'gunpowder-ghost' @ 209.0.0 (npm) as malicious.

It is considered malicious because:

  • The package communicates with a domain associated with malicious activity.

  • The package executes one or more commands associated with malicious behavior.

Malicious versions

7 flagged
209.0.0210.0.0211.0.0212.0.0213.0.0217.0.0225.0.0

Indicators of compromise (SHA-256)

72ea86dd3432c899e1fac658c0474958798e1e953d4f01d8f487d692db5c07aa
70dc4997af7e9a6e5468ab528abef41f755038e72abee6fa9a59fcec98825e54
e274143bddc9c3a0b09cb16361c6b8d75513111195dc10f724928d86bd73c465
311620640c541c78deada9bf6474201e6a623cbd6493c6f6d8b8fc465841401f
d04b9bee9c28d257e944d668162264c7e5e9a9aafcd2fe6f7f0af69f415efba2
dadaec47437240b161757a74f43005363f14f2451506737e621169386b0ccf14
ecf4509c8e143407eceed952e59b74270feb1b865f714928a7b93f2094e275d2
25ba50bd0b006bb4ebc0372a331468ab321d9f2a3e0ae60eb600ffb233bec27e

Detection & response playbook

Credential / info stealer
  1. Find it

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

  2. If you installed it — respond

    gunpowder-ghost 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.

  3. Did it already run?

    If gunpowder-ghost 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 gunpowder-ghost 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. gunpowder-ghost on npm has been identified as a malicious package (versions 209.0.0, 210.0.0, 211.0.0, 212.0.0, 213.0.0, 217.0.0, 225.0.0 flagged). It should be removed immediately — do not install or keep it in your dependency tree.

Campaign

GHSA-894m-pqq3-rvq3

References

Credits

  • Amazon Inspector · finder
  • OpenSSF: Package Analysis · finder
  • SafeDep · finder

Detect & block this

O3 blocks gunpowder-ghost-class packages before install and in CI — and if it already ran, its runtime egress monitoring catches the credential exfiltration and severs the channel.

Explore

gunpowder-ghost (npm) malicious package — MAL-2025-49286 | O3 Security