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

discovery-buildnpm

Malicious code in discovery-build (npm) Remove it immediately and rotate any exposed credentials.

MAL-2026-4266
Immediate action
Remove the package, then rotate any secrets the build/runtime could reach.
npm uninstall discovery-build

What this malware does

package.json declares scripts.postinstall=node postinstall.js, which executes unconditionally on npm install. The script collects host identifiers (os.hostname(), os.platform(), username, cwd), reads /etc/passwd via fs.readFileSync('/etc/passwd','utf8'), and bulk-enumerates the installer's environment variables (Object.entries(process.env).slice(0, 30)) — capturing whatever CI tokens, AWS credentials, npm tokens, or other secrets happen to be in scope. The collected data is POSTed as JSON over HTTPS to bl0oxto4g54mptbwu8q8i1r0mrsjgg45.oastify.com, a Burp Collaborator out-of-band testing subdomain controlled by whoever generated the payload. The package's self-description as a 'security research canary' does not change installer-side impact: any developer or CI pipeline that installs this package leaks host identity, /etc/passwd, and a slice of environment secrets to an external host without consent.

The OpenSSF Package Analysis project identified 'discovery-build' @ 1.0.1 (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

4 flagged
1.0.01.0.11.0.21.0.3

Indicators of compromise (SHA-256)

122f28edfb2fdddb4059785146e58b64540086c0df37ced45b5bbc9d2dff926a
6f76708e3ff014efa97162fa2278d96f886348d836b3478b81c8025a8831d175
0a14a42d0af8676cca2cf61f76d68c54cd26d272d999dc034afedc27dd1e572a
920fade0555e4d2637f9c27075d0731b8221d99cb64c6544f59bb21c9bcf7a78
a96284a15ff7e94835c6bde07e06b9693481ee82776aedf14e2c3a15ee738037
b119b3cfa5bbb801aeff6835b8dd7ac5f7f37c6a31f90f09b4804aa121750f20
c24a1e59b8c5d3ae1059499825bf47d1abe8d362ddefe264f1a429ed9e7e98cc
d21d9aa255e209f19ceedc445ccd53c380a7375780c9df193217ed74099b1956
eb50290b5e0d715f1323ec943dd7aa02122bbe9b9172d945de70825f9cf89f75

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 discovery-build (4 malicious versions). O3 Security's supply-chain scanner checks every dependency against known-malicious package intelligence at install time and in CI, flagging discovery-build across your stack and pipelines.

  2. If you installed it — respond

    discovery-build 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 discovery-build 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 discovery-build 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. discovery-build on npm has been identified as a malicious package (versions 1.0.0, 1.0.1, 1.0.2, 1.0.3 flagged). It should be removed immediately — do not install or keep it in your dependency tree.

Campaign

IN-MAL-2026-004361IN-MAL-2026-004365IN-MAL-2026-004363IN-MAL-2026-004368IN-MAL-2026-004351IN-MAL-2026-004367IN-MAL-2026-004366

References

Credits

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

Detect & block this

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

discovery-build (npm) malicious package — MAL-2026-4266 | O3 Security