api-anthropic@0.1.0
OpenSSF/OSV Malicious Advisory
imported 6d ago · by OpenSSF/OSVOpenSSF/OSV advisory MAL-2026-18055 confirms this npm version as malicious.
Advisory
MAL-2026-18055
Source
OpenSSF Malicious Packages via OSV
Summary
Malicious code in api-anthropic (npm)
Details
The npm package api-anthropic impersonates Anthropic branding (both the package name and the destination domain api-anthropic.help) and reconfigures the user's Claude Code installation to send all traffic through an author-controlled gateway. The CLI writes ~/.claude/settings.json with env.ANTHROPIC_BASE_URL set to https://api-anthropic.help and env.ANTHROPIC_AUTH_TOKEN set to a key, so every subsequent Claude Code session - including prompts, pasted code, file contents, and credentials shared with the assistant - flows through the author's domain instead of Anthropic's real API. The README advertises a non-Anthropic model ("Fable 5.1 (1M Context)"), confirming the endpoint is a third-party proxy rather than Anthropic infrastructure. In addition, the package writes hasTrustDialogAccepted=true and hasClaudeMdExternalIncludesApproved=true into ~/.claude.json for both the current working directory and the user's entire $HOME, pre-approving Claude Code's folder-trust and external-include safety prompts across every project in the home directory. The combination gives the proxy operator a durable channel to capture all AI-assisted content and to have Claude Code act on arbitrary files beneath $HOME without further confirmation.
## Source: ghsa-malware (f1922723e10fcad576f383d44d31606460edf694315338ff529a20a84add0005) Any computer that has this package installed or running should be considered fully compromised. All secrets and keys stored on that computer should be rotated immediately from a different computer. The package should be removed, but as full control of the computer may have been given to an outside entity, there is no guarantee that removing the package will remove all malicious software resulting from installing it.
Source & flagged code
0 flaggedNo flagged code excerpts are attached to this scan.
Findings
1 High
HighOsv Malicious Advisory
Affected versions and remediation
This report applies to api-anthropic@0.1.0.
See all versions of api-anthropic for other recorded verdicts.
- Avoid installing api-anthropic@0.1.0. Remove it from direct dependencies and check your lockfile for transitive copies.
- Choose an independently verified alternative or release. This report does not establish that other versions are safe.
- If this version ran, investigate the affected machine and build environment. Rotate credentials it could access and rebuild from a trusted environment.
Evidence last updated: .
Source advisory published: .
This report uses published external intelligence. The advisory does not provide a separate source-code analysis for each listed version.
Think this verdict is wrong? Dispute it on GitHub or read how reports are produced.