Skip to main content
MalwarePublished Updated

claude-internal-utils (npm) · Malicious Code

Affects claude-internal-utilsSource GCVE Database

0

Malicious package : remove claude-internal-utils and rotate any secrets on hosts that installed it.

Data as of 8 Sep 2026, 09:23 UTC

Classification

Malicious package

Published to npm · OSV MAL-2026-4525

What to do

Remove claude-internal-utils 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
npmclaude-internal-utilsAffected
  • =9.0.5
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 'claude-internal-utils' version 9.0.5 is a malicious package impersonating an internal Anthropic namespace. It contains no legitimate library code but executes a postinstall script that collects system and environment information, including the installer's public IP, hostname, current working directory, and environment variables. This data is exfiltrated to a hardcoded attacker-controlled domain. The malicious code runs automatically during 'npm install' before any consumer code executes.

References

Community reviews

Loading reviews…