Malicious code in color-style-utils (npm)
The npm package color-style-utils contains malicious code that executes during installation lifecycle hooks. The postinstall.js script harvests sensitive credentials and configuration files from the host, including SSH keys, cloud service credentials, crypto wallets, and tokens for various services. It also collects detailed host fingerprinting information and exfiltrates all gathered data to an attacker-controlled server. The package exhibits suspicious behaviors such as a self-referential dependency and shipping an undeclared file with a non-ASCII suffix, consistent with name-squatting and decoy tactics.
AI Analysis
Technical Summary
The color-style-utils npm package versions 1.0.3, 1.0.4, 1.0.5, 1.0.6, 1.0.7, 1.0.8, and 1.0.9 contain malicious code executed during all three lifecycle hooks (preinstall, install, postinstall). The postinstall.js script collects a wide range of sensitive data from the host environment, including SSH keys, AWS, Google Cloud, Azure credentials, npm configuration, Kubernetes, Docker configs, browser profiles, crypto wallets, VPN configs, shell histories, environment variables, and tokens for GitHub, AWS, Google, Stripe, Slack, and Discord. It also fingerprints the host's network and user environment and sends this data to a remote attacker-controlled endpoint via HTTPS. The package also declares a self-dependency and includes an undeclared sibling file with a non-standard filename, indicative of malicious name-squatting and decoy smuggling techniques.
Potential Impact
This malicious package can lead to severe credential compromise across multiple cloud and service platforms, exposure of sensitive user and system configuration data, and potential unauthorized access to cloud resources, developer accounts, and cryptographic assets. The exfiltration of environment variables and tokens can facilitate further attacks or persistent access. Host fingerprinting enables targeted follow-up attacks. The presence of undeclared files and self-dependencies complicates detection and removal.
Mitigation Recommendations
No official patch or remediation is currently documented for this malicious package. Users should avoid installing color-style-utils versions 1.0.3 through 1.0.9. Remove any installations of this package immediately and rotate any potentially compromised credentials and tokens. Monitor for suspicious network activity related to the exfiltration endpoints described. Use trusted sources and verify package integrity before installation. Check vendor advisories or npm security advisories for updates or removal notices.
Malicious code in color-style-utils (npm)
Description
The npm package color-style-utils contains malicious code that executes during installation lifecycle hooks. The postinstall.js script harvests sensitive credentials and configuration files from the host, including SSH keys, cloud service credentials, crypto wallets, and tokens for various services. It also collects detailed host fingerprinting information and exfiltrates all gathered data to an attacker-controlled server. The package exhibits suspicious behaviors such as a self-referential dependency and shipping an undeclared file with a non-ASCII suffix, consistent with name-squatting and decoy tactics.
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 color-style-utils npm package versions 1.0.3, 1.0.4, 1.0.5, 1.0.6, 1.0.7, 1.0.8, and 1.0.9 contain malicious code executed during all three lifecycle hooks (preinstall, install, postinstall). The postinstall.js script collects a wide range of sensitive data from the host environment, including SSH keys, AWS, Google Cloud, Azure credentials, npm configuration, Kubernetes, Docker configs, browser profiles, crypto wallets, VPN configs, shell histories, environment variables, and tokens for GitHub, AWS, Google, Stripe, Slack, and Discord. It also fingerprints the host's network and user environment and sends this data to a remote attacker-controlled endpoint via HTTPS. The package also declares a self-dependency and includes an undeclared sibling file with a non-standard filename, indicative of malicious name-squatting and decoy smuggling techniques.
Potential Impact
This malicious package can lead to severe credential compromise across multiple cloud and service platforms, exposure of sensitive user and system configuration data, and potential unauthorized access to cloud resources, developer accounts, and cryptographic assets. The exfiltration of environment variables and tokens can facilitate further attacks or persistent access. Host fingerprinting enables targeted follow-up attacks. The presence of undeclared files and self-dependencies complicates detection and removal.
Mitigation Recommendations
No official patch or remediation is currently documented for this malicious package. Users should avoid installing color-style-utils versions 1.0.3 through 1.0.9. Remove any installations of this package immediately and rotate any potentially compromised credentials and tokens. Monitor for suspicious network activity related to the exfiltration endpoints described. Use trusted sources and verify package integrity before installation. Check vendor advisories or npm security advisories for updates or removal notices.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-4534
- Osv Schema Version
- 1.7.4
- Aliases
- ["GHSA-2hm6-8j47-2qg7"]
- Ecosystems
- ["npm"]
Threat ID: 6a96f319acd9273b49e496ed
Added to database: 09/01/2026, 15:45:29 UTC
Last enriched: 09/08/2026, 09:37:36 UTC
Last updated: 09/10/2026, 07:53:45 UTC
Views: 7
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.
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.