MAL-2026-6700: Malicious code in module-index-cache (npm)
The npm package 'module-index-cache' versions 1.0.0, 1.0.1, and 1.0.2 contains malicious code that executes during installation. The package's install scripts unconditionally run code that harvests sensitive environment variables, npm authentication tokens, git configuration, and other host data. This information is exfiltrated to an attacker-controlled server. The package also includes scripts to facilitate dependency confusion attacks by publishing under multiple aliases to target private registries.
AI Analysis
Technical Summary
The 'module-index-cache' npm package (versions 1.0.0, 1.0.1, and 1.0.2) contains malicious install scripts declared in package.json that run unconditionally during 'npm install'. These scripts collect sensitive information from the host environment, including environment variables, npm auth tokens, dotenv files, git config, and process environment data. The collected data is base64-encoded and sent via HTTP requests to a hardcoded external IP address. Additional scripts in the package automate publishing under various aliases to enable dependency confusion attacks against private npm registries. This results in unauthorized data exfiltration and potential compromise of systems installing this package.
Potential Impact
Any system that installs the affected versions of this package will have sensitive environment data, authentication tokens, and configuration files exfiltrated to an attacker-controlled server. This compromises the confidentiality of secrets and may lead to further unauthorized access or lateral movement within affected environments. The package's aliasing and dependency confusion techniques increase the risk of inadvertent installation in private registry contexts.
Mitigation Recommendations
No official patch or remediation is currently documented for this malicious package. Users should immediately audit their dependencies and remove any usage of 'module-index-cache' versions 1.0.0, 1.0.1, and 1.0.2. Avoid installing this package and its aliases (curse-dependent, spectral-corsair, @spectral-corsair/cursed-modules). Review and rotate any potentially exposed secrets, including npm authentication tokens and environment variables. Monitor for any unauthorized access resulting from this exposure.
MAL-2026-6700: Malicious code in module-index-cache (npm)
Description
The npm package 'module-index-cache' versions 1.0.0, 1.0.1, and 1.0.2 contains malicious code that executes during installation. The package's install scripts unconditionally run code that harvests sensitive environment variables, npm authentication tokens, git configuration, and other host data. This information is exfiltrated to an attacker-controlled server. The package also includes scripts to facilitate dependency confusion attacks by publishing under multiple aliases to target private registries.
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 'module-index-cache' npm package (versions 1.0.0, 1.0.1, and 1.0.2) contains malicious install scripts declared in package.json that run unconditionally during 'npm install'. These scripts collect sensitive information from the host environment, including environment variables, npm auth tokens, dotenv files, git config, and process environment data. The collected data is base64-encoded and sent via HTTP requests to a hardcoded external IP address. Additional scripts in the package automate publishing under various aliases to enable dependency confusion attacks against private npm registries. This results in unauthorized data exfiltration and potential compromise of systems installing this package.
Potential Impact
Any system that installs the affected versions of this package will have sensitive environment data, authentication tokens, and configuration files exfiltrated to an attacker-controlled server. This compromises the confidentiality of secrets and may lead to further unauthorized access or lateral movement within affected environments. The package's aliasing and dependency confusion techniques increase the risk of inadvertent installation in private registry contexts.
Mitigation Recommendations
No official patch or remediation is currently documented for this malicious package. Users should immediately audit their dependencies and remove any usage of 'module-index-cache' versions 1.0.0, 1.0.1, and 1.0.2. Avoid installing this package and its aliases (curse-dependent, spectral-corsair, @spectral-corsair/cursed-modules). Review and rotate any potentially exposed secrets, including npm authentication tokens and environment variables. Monitor for any unauthorized access resulting from this exposure.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-6700
- Osv Schema Version
- 1.7.4
- Aliases
- []
- Ecosystems
- ["npm"]
- Database Specific Severity
- null
- Cvss Version
- null
Threat ID: 6a4452d127e9c797198dfbe2
Added to database: 06/30/2026, 23:35:45 UTC
Last enriched: 06/30/2026, 23:39:31 UTC
Last updated: 07/01/2026, 00:56:22 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.