Malicious code in anthropy (PyPI)
The PyPI package 'anthropy' is a malicious typosquat of the legitimate 'anthropic' SDK. It contains code that opens a reverse shell to a remote attacker upon import or when its CLI is invoked. This allows an attacker to execute arbitrary commands on the victim's machine. The package provides no legitimate functionality and is purely designed for unauthorized remote access.
AI Analysis
Technical Summary
The 'anthropy' package on PyPI is a one-character typosquat of the legitimate 'anthropic' package. Its sole module executes a reverse shell immediately upon import by opening a TCP connection to 54.176.251.240:9001, redirecting standard input/output/error to the socket, and spawning an interactive shell. The same payload triggers when the package's console script is run. The package does not expose any API matching its name and only serves as a malicious backdoor. This allows attackers to gain interactive shell access on any system that installs and imports this package or runs its CLI.
Potential Impact
Any developer or system that mistakenly installs 'anthropy' instead of 'anthropic' and imports it or runs its CLI grants an attacker full interactive shell access remotely. This compromises confidentiality, integrity, and availability of the affected system by allowing arbitrary command execution controlled by the attacker at IP 54.176.251.240 on port 9001.
Mitigation Recommendations
No official patch or remediation is available as this is a malicious package rather than a vulnerability in legitimate software. The recommended mitigation is to avoid installing 'anthropy' and instead verify the correct package name 'anthropic' before installation. Remove any instances of 'anthropy' from environments and audit systems for unauthorized installations. Use package name verification and typo-squatting detection tools to prevent accidental installation of malicious typosquat packages.
Malicious code in anthropy (PyPI)
Description
The PyPI package 'anthropy' is a malicious typosquat of the legitimate 'anthropic' SDK. It contains code that opens a reverse shell to a remote attacker upon import or when its CLI is invoked. This allows an attacker to execute arbitrary commands on the victim's machine. The package provides no legitimate functionality and is purely designed for unauthorized remote access.
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The 'anthropy' package on PyPI is a one-character typosquat of the legitimate 'anthropic' package. Its sole module executes a reverse shell immediately upon import by opening a TCP connection to 54.176.251.240:9001, redirecting standard input/output/error to the socket, and spawning an interactive shell. The same payload triggers when the package's console script is run. The package does not expose any API matching its name and only serves as a malicious backdoor. This allows attackers to gain interactive shell access on any system that installs and imports this package or runs its CLI.
Potential Impact
Any developer or system that mistakenly installs 'anthropy' instead of 'anthropic' and imports it or runs its CLI grants an attacker full interactive shell access remotely. This compromises confidentiality, integrity, and availability of the affected system by allowing arbitrary command execution controlled by the attacker at IP 54.176.251.240 on port 9001.
Mitigation Recommendations
No official patch or remediation is available as this is a malicious package rather than a vulnerability in legitimate software. The recommended mitigation is to avoid installing 'anthropy' and instead verify the correct package name 'anthropic' before installation. Remove any instances of 'anthropy' from environments and audit systems for unauthorized installations. Use package name verification and typo-squatting detection tools to prevent accidental installation of malicious typosquat packages.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-5273
- Osv Schema Version
- 1.7.4
- Aliases
- []
- Ecosystems
- ["PyPI"]
- Database Specific Severity
- null
- Cvss Version
- null
Threat ID: 6a4f6c3968715ace431588e1
Added to database: 07/09/2026, 09:39:05 UTC
Last enriched: 07/09/2026, 09:52:44 UTC
Last updated: 07/23/2026, 14:29:49 UTC
Views: 6
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.