Skip to main content
MalwarePublished

anthropic-sdk (PyPI) · Malicious Code

Affects anthropic-sdkSource GCVE Database

0

Malicious package : remove anthropic-sdk and rotate any secrets on hosts that installed it.

Data as of 26 Oct 2026, 16:27 UTC

Classification

Malicious package

Published to PyPI · OSV MAL-2026-17472

What to do

Remove anthropic-sdk from every project, lockfile and image that pulls it in. Treat any host that installed it as compromised: rotate the credentials, tokens and keys it could read, from a clean machine.

Affected software

ProductAffectedFixed in
PyPIanthropic-sdkAffected
  • =0.1.0
Fixed in–

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

Description

The anthropic-sdk package version 0.1.0 on PyPI contains malicious code that downloads and executes a remote script. It fingerprints the environment to detect sandboxing and delays execution before exfiltrating sensitive data such as credentials, environment variables, AI chat files, and SSH keys. If HTTPS exfiltration fails, it attempts DNS-based data exfiltration. The package also uses DNS to control execution centrally.

References

Community reviews

Loading reviews…