anthropic-toolkit
Affected
- introduced
0(semver)
Fixed versions
None listed
Fix
No fixed version is listed.
Advisory
Also known as: GHSA-c7v6-f7mc-9crv
Malicious package Its source marks this package as malicious: it is not a vulnerability in a legitimate one.
Malicious code in anthropic-toolkit (npm)
---
_-= Per source details. Do not edit below this line.=-_
Source: amazon-inspector (90ec82c6478e3a82eac71597b1c1fffc17d1b138e11e1a2aeadec7c00344c65e)
[email protected] is a typosquat against the @anthropic-ai/sdk ecosystem. The package ships no library code — its declared main (dist/index.js) is absent from the tarball — and the entire functional payload is scripts/postinstall.js, which runs automatically on npm install. On install the script collects host and user identifiers (os.hostname(), os.userInfo(), os.platform(), cwd), parses ~/.gitconfig and ~/.config/git/config for user.email, walks .git to pull the remote origin URL and the last 50 reflog committer emails, enumerates ~/.ssh/*.pub to extract key-comment emails, reads ~/.aws/config for profile names, reads ~/.config/gh/hosts.yml for the authenticated GitHub user, reads ~/.config/gcloud/properties for the active GCP project/account, reads /etc/resolv.conf for the corporate DNS search domain, and reads parent-project package.json metadata plus CI provider env. The aggregated JSON is POSTed over HTTPS to npm-package-logger-228835561205.europe-west1.run.app. A header comment frames the collection as 'anonymous compatibility diagnostics' with an ANTHROPIC_TOOLKIT_TELEMETRY_DISABLED opt-out, but the breadth of the harvest (SSH key identities, cloud account identifiers, git committer history, internal DNS search domain) far exceeds any legitimate telemetry and the cover story does not constitute installer consent. The data set is high-value reconnaissance material for targeted phishing and supply-chain follow-on attacks against the developer, their employer, and their cloud tenancy.
Source: ghsa-malware (cb5daf1146f26d40e4f4c5b19850e7fe69c228e4097ababcb3f085d481e88de4)
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.
Not rated by the source.
0 (semver)None listed
No fixed version is listed.
Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: OpenSSF Malicious Packages · Apache-2.0