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

ai-p2pnpm

ai-p2p is a confirmed malicious npm package (MAL-2026-10695) that steals credentials and exfiltrates sensitive data (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 ai-p2p (npm)

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

What this malware does

The package ships a single index.html that embeds a hardcoded Google Generative Language API key as a JavaScript constant (const GEMINI_KEY = "AQ.Ab8RN6...";) and calls https://generativelanguage.googleapis.com/v1beta/models/gemini-2.5-flash:generateContent?key=<KEY> from the browser when the user clicks the chat button. The key belongs to the package author's own Google account. There are no npm lifecycle scripts (no preinstall/install/postinstall/prepare), and main points at the HTML file, so nothing executes on npm install or require(). The key is not a third-party credential being distributed to installers, nor does the code read or exfiltrate any installer-side data; the only consequence of using the package is that requests consume the author's own Gemini quota.

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)

51af066ded725d3f36b41a5c4bdf9977a7976293b11fef6c4c63ee894c1f5da2
8addfcd7b527a107164a782a0a85fad3e318dcbe195643df859a15f159977baa
b94773398cc5f5b31344d7d18d47b09596c20e45c356700e4f1a84f0cf74e3c6
f80755b56f4e24ec69fa3cd866a8fab12cec952fa4119ed83c4b70b37c5f2ec9
049a2fa14b797c4894701dcbd3ed80f4cb50f6d1ea4af51013b736877188197c
6dd04952fc8ebb73a5b3d8421aa51184205725e6fa481b7529845747197e8241

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

  2. If you installed it — respond

    ai-p2p 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-p2p 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 ai-p2p 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. ai-p2p 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

GHSA-g5cv-hmr5-x42pIN-MAL-2026-013151IN-MAL-2026-013258IN-MAL-2026-013259IN-MAL-2026-013142IN-MAL-2026-013141

References

Credits

  • Amazon Inspector · finder

Detect & block this

O3 blocks ai-p2p-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-p2p (npm) malicious package — MAL-2026-10695 | O3 Security