Malicious code in chart-data-utils (npm)
The npm package [email protected] contains malicious code that executes during installation. It runs a postinstall script that collects system information, environment variables containing sensitive tokens and credentials, and probes cloud instance metadata endpoints. The harvested data is encoded and exfiltrated via HTTP to a hardcoded external server. The package masquerades as a harmless chart utility but is designed for credential harvesting and reconnaissance.
AI Analysis
Technical Summary
The chart-data-utils package version 1.0.0 includes a postinstall.js script that executes at npm install time. This script performs host reconnaissance by gathering hostname, user identity, process lists, network configuration, and environment variables filtered for sensitive keys such as KEY, TOKEN, SECRET, NPM_TOKEN, AWS_, AZURE, GCP, GITHUB_TOKEN, and GitHub Actions identity fields. It also probes cloud metadata endpoints for AWS, Aliyun, GCP, Tencent, and an internal host. The collected information is base64-encoded and sent over plain HTTP to a hardcoded Burp Collaborator subdomain. The package is a malicious credential harvester disguised as a chart data/color helper library.
Potential Impact
This malicious package can lead to the disclosure of sensitive credentials and environment variables, including cloud provider tokens and CI/CD pipeline secrets. The exfiltration of this data to an attacker-controlled server can enable unauthorized access to cloud resources, source code repositories, and other critical infrastructure. The reconnaissance performed may facilitate further targeted attacks.
Mitigation Recommendations
No official patch or remediation is currently available. Users should immediately remove the [email protected] package from their projects and audit their environment for potential credential exposure. Avoid installing this package and verify the integrity of dependencies before use. Monitor for any suspicious outbound network traffic to unknown domains. Check vendor advisories or trusted security sources for updates on remediation.
Malicious code in chart-data-utils (npm)
Description
The npm package [email protected] contains malicious code that executes during installation. It runs a postinstall script that collects system information, environment variables containing sensitive tokens and credentials, and probes cloud instance metadata endpoints. The harvested data is encoded and exfiltrated via HTTP to a hardcoded external server. The package masquerades as a harmless chart utility but is designed for credential harvesting and reconnaissance.
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 chart-data-utils package version 1.0.0 includes a postinstall.js script that executes at npm install time. This script performs host reconnaissance by gathering hostname, user identity, process lists, network configuration, and environment variables filtered for sensitive keys such as KEY, TOKEN, SECRET, NPM_TOKEN, AWS_, AZURE, GCP, GITHUB_TOKEN, and GitHub Actions identity fields. It also probes cloud metadata endpoints for AWS, Aliyun, GCP, Tencent, and an internal host. The collected information is base64-encoded and sent over plain HTTP to a hardcoded Burp Collaborator subdomain. The package is a malicious credential harvester disguised as a chart data/color helper library.
Potential Impact
This malicious package can lead to the disclosure of sensitive credentials and environment variables, including cloud provider tokens and CI/CD pipeline secrets. The exfiltration of this data to an attacker-controlled server can enable unauthorized access to cloud resources, source code repositories, and other critical infrastructure. The reconnaissance performed may facilitate further targeted attacks.
Mitigation Recommendations
No official patch or remediation is currently available. Users should immediately remove the [email protected] package from their projects and audit their environment for potential credential exposure. Avoid installing this package and verify the integrity of dependencies before use. Monitor for any suspicious outbound network traffic to unknown domains. Check vendor advisories or trusted security sources for updates on remediation.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-12350
- Osv Schema Version
- 1.7.4
- Aliases
- []
- Ecosystems
- ["npm"]
- Database Specific Severity
- null
- Cvss Version
- null
Threat ID: 6a735747bf8831d53915a108
Added to database: 08/05/2026, 15:31:19 UTC
Last enriched: 08/05/2026, 17:41:33 UTC
Last updated: 08/05/2026, 19:34:01 UTC
Views: 3
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.