Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

Malicious code in anthropy (PyPI)

0
Critical
Published: 06/05/2026 (06/05/2026, 22:09:46 UTC)
Source: GCVE Database
Product: anthropy

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

PyPIghsa
anthropy
Affected versions
=0.0.1=0.0.2=0.0.3=0.0.4=0.0.5=0.0.6

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

AILast updated: 07/09/2026, 09:52:44 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses