anthropic-internal-tools@1.0.0
Malicious code in anthropic-internal-tools (npm)
Analysis
A dependency-confusion package mimicking the scoped name @anthropic-ai/internal-tools (published unscoped as anthropic-internal-tools). On npm preinstall, index.js reads credential files including ~/.aws/credentials, ~/.aws/config, ~/.config/gcloud/application_default_credentials.json, ~/.azure/accessTokens.json, ~/.ssh/id_rsa.pub, ~/.npmrc, and ~/.gitconfig; harvests environment variables whose names contain KEY, TOKEN, SECRET, PASS, AUTH, CRED, AWS, GCP, AZURE, NPM, or REGISTRY; queries AWS IMDS (169[.]254[.]169[.]254/latest/meta-data/iam/security-credentials) and GCP metadata (metadata.google.internal/computeMetadata/v1/instance/service-accounts/default/token); and collects system information (hostname, username, platform, network interfaces). All collected data is POSTed as JSON to a host configured via the LISTENER_URL environment variable.
- analyzed by
- Leitwacht
- first seen
- Jun 28, 2026, 05:07 AM
- analyzed
- Jun 28, 2026, 05:08 AM
Related advisories
- anthropic-internal-tools@1.0.1 same package
- anthropic-internal-tools@1.0.2 same package
- date-format-helper2@1.0.4
- hunsterx-package@7.0.1
- delta-time-32bb@1.0.0
- hex-conv-ae7a@1.0.0
- mypocmaliciouspackage-cursorpt1@4.0.0
- simple-date-formatter-util-11@1.0.0
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.