Skip to main content

Malicious code in claude-internal-utils (npm)

0
High
Published: 05/20/2026 (05/20/2026, 23:55:57 UTC)
Source: GCVE Database
Product: claude-internal-utils

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.

Affected software

npmghsa
claude-internal-utils
Affected versions
=9.0.5

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 09/08/2026, 09:23:30 UTC

Technical Analysis

The 'claude-internal-utils' npm package (version 9.0.5) is a malicious package designed to exploit dependency confusion by impersonating an internal Anthropic 'claude-*' namespace. It contains no functional library code but includes a postinstall lifecycle hook that executes a Node.js one-liner. This script fetches the installer's public IP from api.ipify.org, runs system commands ('id' or 'ver', 'whoami', 'hostname') via child_process.exec, and collects environment variables such as USERDOMAIN and COMPANY. It then sends this information as JSON to a hardcoded attacker subdomain at lszakfghwnvxspyfcmaabd1css99rnq3w.oast.fun, a known out-of-band exfiltration service. This exfiltration occurs automatically upon package installation, prior to any legitimate code execution.

Potential Impact

The malicious package exfiltrates sensitive system and environment information from the host where it is installed, including public IP address, hostname, user domain, company environment variables, and command output. This can lead to information disclosure that may facilitate further attacks or reconnaissance by adversaries. The compromise occurs silently during the npm install process without user interaction.

Mitigation Recommendations

No official patch or remediation is indicated. Users should avoid installing the 'claude-internal-utils' package version 9.0.5 from untrusted sources. Verify package authenticity and source before installation. Monitor for and remove any installations of this package. Consider using package integrity verification tools and restricting installation of packages from untrusted namespaces to prevent dependency confusion attacks.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Gcve Source
db.gcve.eu
Osv Id
MAL-2026-4525
Osv Schema Version
1.7.4
Aliases
["GHSA-jxg3-fwfv-fjwf"]
Ecosystems
["npm"]

Threat ID: 6a96f319acd9273b49e496fd

Added to database: 09/01/2026, 15:45:29 UTC

Last enriched: 09/08/2026, 09:23:30 UTC

Last updated: 09/08/2026, 09:23:30 UTC

Views: 4

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses