Malicious code in claude-internal-utils (npm)
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.
AI Analysis
Technical Summary
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.
Malicious code in claude-internal-utils (npm)
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
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
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.
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 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
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
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.