Malicious code in base65-13x (npm)
base65-13x@5.0.2 on npm contains malicious obfuscated code disguised as a legitimate base-x library. The decode() function executes a ~123KB VM-style payload with dynamic code construction and network I/O capabilities.
- Disclosed
- Last updated
- Blast radius
- Any npm consumer of base65-13x@5.0.2 that invokes the decode() function
- Ecosystems
- Attack vectors
- Affected entities
- base65-13x · 5.0.2
base65-13x@5.0.2 is a malicious npm package that impersonates the legitimate cryptocoinjs/base-x library by reusing its README, homepage, and API surface. However, the exported decode(string) function contains a ~123KB obfuscated payload using rotated identifiers (vmR, vmr_92f1a9, vmw_4ee781) built via Object.defineProperty.\n\nThe obfuscated blob contains multiple references to the Function constructor and fetch, indicating dynamic code construction and outbound network I/O capabilities. The destination hosts and constructed code are concealed by the obfuscation and are not statically visible. In contrast, the genuine base-x library is approximately 50 lines of pure arithmetic with no obfuscation and no network activity.\n\nAny consumer invoking decode() on this package will execute the packed VM, which dynamically constructs and executes code with fetch capability. The incident was identified by Amazon Inspector and credited to the OpenSSF malicious-packages repository.
Indicators of compromise
- Packages
- base65-13x@5.0.2
Remediation
- Immediately remove base65-13x@5.0.2 from all dependencies
- Audit package.json and lock files for any presence of base65-13x
- If base65-13x was installed, assume the system may be compromised and conduct forensic analysis
- Replace with the legitimate cryptocoinjs/base-x package if base-x functionality is required
- Review npm audit logs and security advisories for related malicious packages
- Implement package verification and integrity checks in your supply chain
Sources
- GitHub Advisory GHSA-pm9q-qccp-rj4g · GitHub Advisory Database
Cite this entry
"Malicious code in base65-13x (npm)." supplychainattack.org, Supply Chain Attack Incident Catalog. Disclosed August 11, 2026; last updated August 11, 2026. https://supplychainattack.org/incident/malicious-code-in-base65-13x-npm-ed3mbs
Suggest a correction
Found an error or have a newer source? Corrections to factual errors take priority over new entries.
Related incidents
- containedcritical
Malicious code in epic-common (npm)
The npm package epic-common was found to contain malicious code. The package was identified by Amazon Inspector and reported through the OpenSSF malicious packages database.
npmCompromised package - containedcritical
Malicious code in checkout-desktop-total (npm)
The npm package checkout-desktop-total contained malicious code that executes a hidden loader on import, downloading and running platform-specific native payloads from attacker-controlled Cloudflare Workers hosts or reconstructing them via DNS TXT records under wel1.ru. Any system that imported this package should be considered compromised.
npmCompromised package - containedcritical
Malicious code in pfp-forms-sme-loan (npm)
The npm package pfp-forms-sme-loan contains malicious code that executes a hidden loader on import, downloading and running platform-specific native payloads from attacker-controlled Cloudflare Workers hosts or reconstructing them via DNS TXT records under well1.site. Any system that imported this package should be considered compromised.
npmCompromised packageMalicious commit - resolvedcritical
Malicious code in epic-common-node (npm)
The npm package epic-common-node was found to contain malicious code. The package has been identified and reported through GitHub Security Advisory GHSA-m36g-mhjr-ww2c.
npmCompromised package