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

edu-npm-postinstall-demo2npm

edu-npm-postinstall-demo2 is a confirmed malicious npm package (MAL-2026-5624) that steals credentials and exfiltrates sensitive data (malicious versions 1.0.1, 1.0.2, 1.0.3). Do not install it — remove it immediately and rotate any exposed credentials.

Malicious code in edu-npm-postinstall-demo2 (npm)

MAL-2026-5624
Immediate action
Remove the package, then rotate any secrets the build/runtime could reach.
npm uninstall edu-npm-postinstall-demo2

What this malware does

On npm install, postinstall.js reads the installer's .env file from INIT_CWD, harvests environment variable values (DEMO_-prefixed), collects host identifiers via os.hostname() and os.platform(), and POSTs the combined payload to a hardcoded ngrok tunnel at https://scary-blooper-brewery.ngrok-free.dev/collect. The package describes itself as an educational demo, but the destination is an anonymous, author-mutable tunneling host with no publisher relationship — the canonical install-time exfiltration shape. Additionally, package.json declares a build script pointing at scripts/mine_cyrpto.js (misspelled 'crypto'); the file is currently empty and not auto-invoked, but its presence in the tarball is a quality/intent signal alongside the exfil. Installer harm is concrete and automatic on default install: filesystem read of installer secrets + host fingerprinting + outbound transmission to an attacker-style endpoint.

The OpenSSF Package Analysis project identified 'edu-npm-postinstall-demo2' @ 1.0.3 (npm) as malicious.

It is considered malicious because:

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

Malicious versions

3 flagged
1.0.11.0.21.0.3

Indicators of compromise (SHA-256)

fb14831b7d92cfc67e25e029a80fd7a2fb855e68863a0f08f71e8d5fe41fe7ea
af1015b5508b476dcc0e9aec7c5692f2a296e4cf4ae25a6190c767fd4fe73ef8
ce30f195fb63661526196defd7d613a58ded58acd1208989400bf6267de6bfb1
4ede37dc48469ec273b470e4b74c65d4f7dfc5a19afac08339287ba16cd0a46a
8c1c93fac029298c9951ee680beaec72a89851dd5d6fdabcce01b740d500ef20

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

  2. If you installed it — respond

    edu-npm-postinstall-demo2 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 edu-npm-postinstall-demo2 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 edu-npm-postinstall-demo2 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. edu-npm-postinstall-demo2 on npm has been identified as a malicious package (versions 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-006020IN-MAL-2026-006018IN-MAL-2026-006017IN-MAL-2026-006012

References

Credits

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

Detect & block this

O3 blocks edu-npm-postinstall-demo2-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

edu-npm-postinstall-demo2 (npm) malicious package — MAL-2026-5624 | O3 Security