Malicious code in base65-11x (npm)
--- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (14cc9506a804a2663d0cde1c610fa8cba5733e6797652b6365569ada5ef3901d) base65-11x is a name-lookalike of the widely used base-x encoder. Both entrypoints (src/cjs/index.cjs and src/esm/index.js, ~127KB each vs. ~4KB for real base-x) contain the legitimate base-x source followed by a ~123KB single-line obfuscated payload wrapped in a custom-VM IIFE (identifiers vmN, vmA_ab9191, vmU_d6a896; Object.defineProperty-based dispatch on a global slot). The payload sits at module top level, so it executes automatically whenever a consumer require()s or import()s the package. A pure base-encoding utility has no functional need for runtime-VM-packed code on load, and the payload is duplicated across CJS and ESM entrypoints to ensure execution regardless of module system. The specific payload behavior is concealed inside the VM interpreter and cannot be recovered without executing it. ## Source: ghsa-malware (672a03fa0011f4095fdff19eaa7e65ffa8ae44f34e673a707488903c5b6eab67) 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 base65-11x npm package masquerades as a base-x encoding utility but includes a ~123KB obfuscated malicious payload embedded at the module top level in both its CommonJS and ESM entrypoints. This payload is wrapped in a custom VM interpreter and executes automatically when the package is imported or required, which is unusual for a simple base-encoding utility. The obfuscation and execution method prevent recovery of the payload behavior without runtime execution. The package is considered fully compromising to any system on which it is installed or run, with potential for complete attacker control and exposure of stored secrets.
Potential Impact
Systems with the base65-11x package installed or running are considered fully compromised. Attackers may gain complete control over the affected computer, potentially accessing all stored secrets and keys. Immediate rotation of all credentials from a separate, trusted system is advised. Simply removing the package may not fully remediate the compromise due to possible persistence of malicious components.
Mitigation Recommendations
Remove the base65-11x package immediately from all affected systems. Rotate all secrets, keys, and credentials that were stored or used on the compromised systems, performing this rotation from a different, trusted machine. Because the package executes a concealed payload at load time, assume full system compromise and conduct a thorough investigation and remediation. No official patch or fix is available; the package itself is malicious and should be avoided entirely.
Malicious code in base65-11x (npm)
Description
--- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (14cc9506a804a2663d0cde1c610fa8cba5733e6797652b6365569ada5ef3901d) base65-11x is a name-lookalike of the widely used base-x encoder. Both entrypoints (src/cjs/index.cjs and src/esm/index.js, ~127KB each vs. ~4KB for real base-x) contain the legitimate base-x source followed by a ~123KB single-line obfuscated payload wrapped in a custom-VM IIFE (identifiers vmN, vmA_ab9191, vmU_d6a896; Object.defineProperty-based dispatch on a global slot). The payload sits at module top level, so it executes automatically whenever a consumer require()s or import()s the package. A pure base-encoding utility has no functional need for runtime-VM-packed code on load, and the payload is duplicated across CJS and ESM entrypoints to ensure execution regardless of module system. The specific payload behavior is concealed inside the VM interpreter and cannot be recovered without executing it. ## Source: ghsa-malware (672a03fa0011f4095fdff19eaa7e65ffa8ae44f34e673a707488903c5b6eab67) 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 base65-11x npm package masquerades as a base-x encoding utility but includes a ~123KB obfuscated malicious payload embedded at the module top level in both its CommonJS and ESM entrypoints. This payload is wrapped in a custom VM interpreter and executes automatically when the package is imported or required, which is unusual for a simple base-encoding utility. The obfuscation and execution method prevent recovery of the payload behavior without runtime execution. The package is considered fully compromising to any system on which it is installed or run, with potential for complete attacker control and exposure of stored secrets.
Potential Impact
Systems with the base65-11x package installed or running are considered fully compromised. Attackers may gain complete control over the affected computer, potentially accessing all stored secrets and keys. Immediate rotation of all credentials from a separate, trusted system is advised. Simply removing the package may not fully remediate the compromise due to possible persistence of malicious components.
Mitigation Recommendations
Remove the base65-11x package immediately from all affected systems. Rotate all secrets, keys, and credentials that were stored or used on the compromised systems, performing this rotation from a different, trusted machine. Because the package executes a concealed payload at load time, assume full system compromise and conduct a thorough investigation and remediation. No official patch or fix is available; the package itself is malicious and should be avoided entirely.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-13745
- Osv Schema Version
- 1.7.4
- Aliases
- ["GHSA-39c6-h85q-hpcw"]
- Ecosystems
- ["npm"]
Threat ID: 6a7bc14ebf8831d539b1563d
Added to database: 08/12/2026, 00:41:50 UTC
Last enriched: 08/12/2026, 00:59:40 UTC
Last updated: 09/24/2026, 12:47:29 UTC
Views: 80
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.