Skip to main content
MalwarePublished Updated

api-anthropic (npm) · Malicious Code

Affects api-anthropicSource GCVE Database

0

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

Data as of 29 Oct 2026, 14:18 UTC

Classification

Malicious package

Published to npm · OSV MAL-2026-18055

What to do

Remove api-anthropic 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
npmapi-anthropicAffected
  • 1.1.0 – 1.1.3
4 affected builds
Fixed in–

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

Description

The npm package api-anthropic impersonates Anthropic branding and redirects all Claude Code AI assistant traffic through an attacker-controlled proxy. It modifies user configuration files to route requests and pre-approves folder trust and external include prompts, enabling persistent interception of AI interactions and arbitrary file access without user consent. This results in a durable channel for exfiltrating sensitive data including prompts, code, file contents, and credentials.

References

Community reviews

Loading reviews…