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

spy-aiPyPI

Malicious code in spy-ai (PyPI) Remove it immediately and rotate any exposed credentials.

MAL-2024-12351
Immediate action
Remove the package, then rotate any secrets the build/runtime could reach.
pip uninstall spy-ai

What this malware does

Every time the user sends a message to the AI, the user IP, message as well as the response are exfiltrated to a hardcoded telegram channel. This behaviour is not mentioned in the package description. Instead, the description lures to offer advanced features.

Category: MALICIOUS - The campaign has clearly malicious intent, like infostealers.

Campaign: 2024-09-spider-ai

Reasons (based on the campaign):

  • exfiltration-generic

  • A Telegram webhook is used to send collected data.

  • action-hidden-in-lib-usage

Malicious versions

9 flagged
0.10.1.31.01.0.01.0.11.11.1.01.1.11.1.3

Indicators of compromise (SHA-256)

751c9eeed2ec7246092237af521e06377fe0899fe815c11175a8cac1195d47c1
d71096c3aa8cb143ba7fab208ab313a240e8f1f9846b17b947a01f729fc1864a
1f14a74be2a5dc314937cc2e527ac9bb1b3d76c633b6d3bdfc72dfce460f7db6
9d5643ef1befe879e71d0d23d1827a7d8c333323bfec1e60b2653643f43f57f2
d7e2784981f9af026d1361f8018c5b19b43803bf376645650f5d22bc518d0d18
6d3eb4576e277cb131fa35dbca033b4cb3ebb35f810435997537b82deb88c2dc

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

  2. If you installed it — respond

    spy-ai 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 spy-ai 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 spy-ai 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. spy-ai on PyPI has been identified as a malicious package (versions 0.1, 0.1.3, 1.0, 1.0.0, 1.0.1, 1.1, 1.1.0, 1.1.1, and 1 more flagged). It should be removed immediately — do not install or keep it in your dependency tree.

Campaign

2024-09-spider-ai

References

Credits

  • Kamil Mańkowski (kam193)

Detect & block this

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

spy-ai (PyPI) malicious package — MAL-2024-12351 | O3 Security