pypi · Malicious package advisory
Malwareanthropic-sdk
GHSA-xxp4-7566-29xj
Malicious code in anthropic-sdk (PyPI)
Details
**Severity:** Critical **Affected versions:** `= 0.1.0` ## Source: kam193 (6844e60d4a58dd11040255e8d632bcca66ae02b1048674e79bddbac1b337f442) During import, package downloads a remote script, fingerprints the environment looking for sandbox signs, and after a delay exfiltrates sensitive data: credentials, env variables, AI chat files, SSH keys and so on. If exfiltration via HTTPS fails, it attempts DNS-based exfiltration. Additionally, package uses DNS to centrally hold execution. --- Category: MALICIOUS - The campaign has clearly malicious intent, like infostealers. Campaign: 2026-10-anthropic-sdk Reasons (based on the campaign): - impersonation - Downloads and executes a remote malicious script. - The package contains code to detect if it is running in a sandbox environment. - obfuscation - exfiltration-credentials - files-exfiltration - exfiltration-env-variables - exfiltration-ssh-keys --- Credit: [OpenSSF](https://github.com/ossf/malicious-packages) ([source](https://github.com/ossf/malicious-packages/blob/bbecb0c6dbca264770047dba8f1718a428e3ce72/osv/malicious/pypi/anthropic-sdk/MAL-2026-17472.json)) **References:** - https://bad-packages.kam193.eu/pypi/package/anthropic-sdk - https://github.com/ossf/malicious-packages/blob/bbecb0c6dbca264770047dba8f1718a428e3ce72/osv/malicious/pypi/anthropic-sdk/MAL-2026-17472.json - https://github.com/shred0day/payload - https://github.com/ossf/malicious-packages/blob/28e8e300c79177f2cb1eb131ae981c3c0e639495/osv/malicious/pypi/anthropic-sdk/MAL-2026-17472.json - https://pypi.org/project/anthropic-sdk/0.1.0 - https://github.com/advisories/GHSA-xxp4-7566-29xj
Compromised versions (1)
- = 0.1.0
Any computer that installed or ran a compromised version should be considered fully compromised. Rotate every secret on that machine from a clean environment.