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

ai-gen-ai-opt-innpm

Advisory published Updated

ai-gen-ai-opt-in is a confirmed malicious npm package (MAL-2026-6990) that steals credentials and exfiltrates sensitive data (malicious version 99.0.0). Do not install it — remove it immediately and rotate any exposed credentials.

Malicious code in ai-gen-ai-opt-in (npm)

MAL-2026-6990
Immediate action
Remove the package, then rotate any secrets the build/runtime could reach.
npm uninstall ai-gen-ai-opt-in

What this malware does

[email protected] declares a postinstall hook (postinstall.js) that runs automatically on npm install. The script collects the installer's hostname (os.hostname()), OS username (os.userInfo().username), and public IP/geo/ISP data (fetched from ip-api.com over HTTPS), then encodes those values and issues a DNS lookup for a subdomain of an attacker-controlled Burp Collaborator-style callback host (p1r2d74iwjk057raam6myf7e258wzkt8i.oastify.com). This is a covert out-of-band DNS exfiltration channel that leaks installer identity and location data to a third party on every install, with no legitimate documented purpose.

Malicious versions

1 flagged
99.0.0

Indicators of compromise (SHA-256)

a34dae027378ca986d5e99aa7c9ffc5efe590e4697e1255970ce713f6d309e74

Detection & response playbook

Credential / info stealer
  1. Find it

    Search your lockfiles and build artifacts for ai-gen-ai-opt-in (version 99.0.0).

  2. If you installed it — respond

    ai-gen-ai-opt-in 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 ai-gen-ai-opt-in 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

No. ai-gen-ai-opt-in on npm has been identified as a malicious package (version 99.0.0 flagged). It should be removed immediately — do not install or keep it in your dependency tree.

Campaign

IN-MAL-2026-008077

References

Credits

  • Amazon Inspector · finder

Detect & block this

O3 blocks ai-gen-ai-opt-in-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

ai-gen-ai-opt-in (npm) malicious package — MAL-2026-6990 | O3 Security