Malicious code in base62-86x (npm)
--- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (811002816e7f72588c7c6540b088af5c44b8280574e43dbaeef4701fe377fe9f) Package impersonates the legitimate base-x/base62 library by Daniel Cousens (name `base62-86x`, homepage pointing at cryptocoinjs/base-x, identical source layout). The exported `decode(string)` function in both the CJS build (src/cjs/index.cjs) and the ESM build (src/esm/index.js) has been patched to silently POST every caller-supplied input to a hardcoded Telegram Bot API endpoint. The CJS variant hides the destination behind obfuscator.io string-array rotation that resolves to https://api.telegram.org/bot7837266935:<redacted>/sendMessage with chat_id 7974622428; the ESM variant wraps the same exfiltration in a custom bytecode VM whose base64 constant pool decodes to https://api.telegram.org/bot8880020840:<redacted>/sendMessage with chat_id 7959381237. Because consumers of a base-encoding library typically pass cryptocurrency addresses, private keys, identifiers, and other base-encoded secrets to decode(), every such call leaks the plaintext input to the attacker. Two distinct bot tokens indicate staged campaign or failover infrastructure. Heavy obfuscation of both bodies confirms intent to conceal the relay; there is no opt-in or documented behavior covering this network egress. ## Source: ghsa-malware (3627fca9d507f1dadfa8bb9723265bfbfa34362d3303072c840e38cf57ef4b69) 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 base62-86x npm package, versions 5.0.4 and 5.0.5, is a malicious impersonation of the legitimate base-x/base62 library. Its decode(string) function in both CommonJS and ESM builds has been modified to silently send every input string to hardcoded Telegram Bot API endpoints controlled by attackers. The exfiltration is heavily obfuscated, including string-array rotation and a custom bytecode VM, to conceal the network calls. This results in the leakage of sensitive data such as cryptocurrency addresses and private keys passed to decode(). Two distinct Telegram bot tokens suggest a staged or failover exfiltration infrastructure. There is no documented or opt-in behavior for this network communication, confirming malicious intent. Systems with this package installed should be considered fully compromised.
Potential Impact
Any secrets, keys, or sensitive base-encoded data passed to the decode() function of base62-86x versions 5.0.4 and 5.0.5 are exfiltrated to attacker-controlled Telegram bots. This compromises confidentiality of sensitive information and potentially leads to full system compromise. The presence of this package on a system indicates a high likelihood that attackers have gained unauthorized access to sensitive data and possibly control over the system.
Mitigation Recommendations
No official patch or fix is currently available. Users should immediately remove the base62-86x package versions 5.0.4 and 5.0.5 from their environments. Because the package exfiltrates sensitive data and may have allowed attackers full control, all secrets and keys stored on affected systems should be rotated immediately from a separate, trusted environment. Systems with this package installed should be treated as fully compromised and undergo thorough incident response procedures. Monitor for any unauthorized network activity related to Telegram Bot API endpoints mentioned in the malicious code. Patch status is not yet confirmed — check the vendor advisory or trusted sources for updates.
Malicious code in base62-86x (npm)
Description
--- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (811002816e7f72588c7c6540b088af5c44b8280574e43dbaeef4701fe377fe9f) Package impersonates the legitimate base-x/base62 library by Daniel Cousens (name `base62-86x`, homepage pointing at cryptocoinjs/base-x, identical source layout). The exported `decode(string)` function in both the CJS build (src/cjs/index.cjs) and the ESM build (src/esm/index.js) has been patched to silently POST every caller-supplied input to a hardcoded Telegram Bot API endpoint. The CJS variant hides the destination behind obfuscator.io string-array rotation that resolves to https://api.telegram.org/bot7837266935:<redacted>/sendMessage with chat_id 7974622428; the ESM variant wraps the same exfiltration in a custom bytecode VM whose base64 constant pool decodes to https://api.telegram.org/bot8880020840:<redacted>/sendMessage with chat_id 7959381237. Because consumers of a base-encoding library typically pass cryptocurrency addresses, private keys, identifiers, and other base-encoded secrets to decode(), every such call leaks the plaintext input to the attacker. Two distinct bot tokens indicate staged campaign or failover infrastructure. Heavy obfuscation of both bodies confirms intent to conceal the relay; there is no opt-in or documented behavior covering this network egress. ## Source: ghsa-malware (3627fca9d507f1dadfa8bb9723265bfbfa34362d3303072c840e38cf57ef4b69) 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 base62-86x npm package, versions 5.0.4 and 5.0.5, is a malicious impersonation of the legitimate base-x/base62 library. Its decode(string) function in both CommonJS and ESM builds has been modified to silently send every input string to hardcoded Telegram Bot API endpoints controlled by attackers. The exfiltration is heavily obfuscated, including string-array rotation and a custom bytecode VM, to conceal the network calls. This results in the leakage of sensitive data such as cryptocurrency addresses and private keys passed to decode(). Two distinct Telegram bot tokens suggest a staged or failover exfiltration infrastructure. There is no documented or opt-in behavior for this network communication, confirming malicious intent. Systems with this package installed should be considered fully compromised.
Potential Impact
Any secrets, keys, or sensitive base-encoded data passed to the decode() function of base62-86x versions 5.0.4 and 5.0.5 are exfiltrated to attacker-controlled Telegram bots. This compromises confidentiality of sensitive information and potentially leads to full system compromise. The presence of this package on a system indicates a high likelihood that attackers have gained unauthorized access to sensitive data and possibly control over the system.
Mitigation Recommendations
No official patch or fix is currently available. Users should immediately remove the base62-86x package versions 5.0.4 and 5.0.5 from their environments. Because the package exfiltrates sensitive data and may have allowed attackers full control, all secrets and keys stored on affected systems should be rotated immediately from a separate, trusted environment. Systems with this package installed should be treated as fully compromised and undergo thorough incident response procedures. Monitor for any unauthorized network activity related to Telegram Bot API endpoints mentioned in the malicious code. Patch status is not yet confirmed — check the vendor advisory or trusted sources for updates.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-6446
- Osv Schema Version
- 1.7.4
- Aliases
- ["GHSA-239r-cp8p-5gfj"]
- Ecosystems
- ["npm"]
- Database Specific Severity
- null
- Cvss Version
- null
Threat ID: 6a520ed368715ace43901b4e
Added to database: 07/11/2026, 09:37:23 UTC
Last enriched: 07/11/2026, 10:01:12 UTC
Last updated: 07/28/2026, 11:24:02 UTC
Views: 9
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.