# GHSA-XXP4-7566-29XJ: Malicious code in anthropic-sdk (PyPI)

- Database: GitHub
- Malicious package: yes
- Published: 2026-10-04
- Modified: 2026-10-05

## Affected versions

- anthropic-sdk (PyPI): 0.1.0

## Description

## 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

Page: https://cve.now/GHSA-XXP4-7566-29XJ

Wrong or missing data? Send feedback: POST https://cve.now/api/v1/feedback (see https://cve.now/agents#feedback).
