Malicious code in babel-eslint-parser-legacy (npm)
--- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (85a6f04cbf0697b6ae409fb9e5ad0e25812dac6a2f43bd95722f1903ee2f71f7) Package name `babel-eslint-parser-legacy` is a one-suffix confusion against the legitimate `babel-eslint-parser`. The package's own `main` is an empty stub, so it provides no functionality of its own. Its `package.json` declares a single runtime dependency `ltidisafe` pointing at a direct HTTPS tarball URL — `https://ltidi.storage.googleapis.com/depenconf/ltidisafe-3.1.8.tgz` — hosted on a Google Cloud Storage bucket unaffiliated with Babel and outside the npm registry. On `npm install`, npm fetches and installs the contents of that tarball into the installer's `node_modules`, executing any lifecycle scripts it declares. The tarball bytes are attacker-mutable (the bucket owner can swap contents at any time), are not subject to npm registry scanning, and are not pinned by integrity hash in the manifest. The typosquat name is the lure; the external-URL dependency is the smuggling vector for arbitrary attacker-controlled code into the installer's dependency tree. ## Source: ghsa-malware (94a62a47f0ac7d635081419dfabf152aa8965f114250a5f9dada6079bf432680) Any computer that has this package installed or running should be considered fully compromised. All secrets and keys stored on that computer should be rotated immediately from a different computer. The package should be removed, but as full control of the computer may have been given to an outside entity, there is no guarantee that removing the package will remove all malicious software resulting from installing it.
AI Analysis
Technical Summary
The 'babel-eslint-parser-legacy' package is a typosquatting malicious package that exploits npm's ability to install dependencies from external URLs without integrity verification. Its 'package.json' points to a runtime dependency 'ltidisafe' hosted on a Google Cloud Storage bucket unrelated to the legitimate Babel project. This tarball is attacker-controlled and mutable, allowing arbitrary code execution during 'npm install' lifecycle scripts. The package itself is a stub with no functionality, serving solely as a vector to smuggle malicious code into the installer's dependency tree. Any system with this package installed is considered fully compromised.
Potential Impact
Installation of this package results in arbitrary attacker-controlled code execution on the host system due to the untrusted external dependency. This can lead to full system compromise, including theft or manipulation of secrets and keys. The malicious code can persist beyond package removal, making remediation difficult without full system recovery.
Mitigation Recommendations
No official patch or fix is available. The package should be immediately removed from all systems. All secrets and keys stored on affected systems must be rotated from a secure, uncompromised environment. Due to the potential for full system compromise, consider rebuilding or thoroughly cleaning affected systems. Avoid installing packages from untrusted or typosquatting sources and verify package authenticity before installation.
Malicious code in babel-eslint-parser-legacy (npm)
Description
--- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (85a6f04cbf0697b6ae409fb9e5ad0e25812dac6a2f43bd95722f1903ee2f71f7) Package name `babel-eslint-parser-legacy` is a one-suffix confusion against the legitimate `babel-eslint-parser`. The package's own `main` is an empty stub, so it provides no functionality of its own. Its `package.json` declares a single runtime dependency `ltidisafe` pointing at a direct HTTPS tarball URL — `https://ltidi.storage.googleapis.com/depenconf/ltidisafe-3.1.8.tgz` — hosted on a Google Cloud Storage bucket unaffiliated with Babel and outside the npm registry. On `npm install`, npm fetches and installs the contents of that tarball into the installer's `node_modules`, executing any lifecycle scripts it declares. The tarball bytes are attacker-mutable (the bucket owner can swap contents at any time), are not subject to npm registry scanning, and are not pinned by integrity hash in the manifest. The typosquat name is the lure; the external-URL dependency is the smuggling vector for arbitrary attacker-controlled code into the installer's dependency tree. ## Source: ghsa-malware (94a62a47f0ac7d635081419dfabf152aa8965f114250a5f9dada6079bf432680) Any computer that has this package installed or running should be considered fully compromised. All secrets and keys stored on that computer should be rotated immediately from a different computer. The package should be removed, but as full control of the computer may have been given to an outside entity, there is no guarantee that removing the package will remove all malicious software resulting from installing it.
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 'babel-eslint-parser-legacy' package is a typosquatting malicious package that exploits npm's ability to install dependencies from external URLs without integrity verification. Its 'package.json' points to a runtime dependency 'ltidisafe' hosted on a Google Cloud Storage bucket unrelated to the legitimate Babel project. This tarball is attacker-controlled and mutable, allowing arbitrary code execution during 'npm install' lifecycle scripts. The package itself is a stub with no functionality, serving solely as a vector to smuggle malicious code into the installer's dependency tree. Any system with this package installed is considered fully compromised.
Potential Impact
Installation of this package results in arbitrary attacker-controlled code execution on the host system due to the untrusted external dependency. This can lead to full system compromise, including theft or manipulation of secrets and keys. The malicious code can persist beyond package removal, making remediation difficult without full system recovery.
Mitigation Recommendations
No official patch or fix is available. The package should be immediately removed from all systems. All secrets and keys stored on affected systems must be rotated from a secure, uncompromised environment. Due to the potential for full system compromise, consider rebuilding or thoroughly cleaning affected systems. Avoid installing packages from untrusted or typosquatting sources and verify package authenticity before installation.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-6992
- Osv Schema Version
- 1.7.4
- Aliases
- ["GHSA-xr98-72p4-pwg2"]
- Ecosystems
- ["npm"]
- Database Specific Severity
- null
- Cvss Version
- null
Threat ID: 6a520ed368715ace43901ad1
Added to database: 07/11/2026, 09:37:23 UTC
Last enriched: 07/11/2026, 10:00:46 UTC
Last updated: 07/29/2026, 22:55:28 UTC
Views: 10
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.