Malicious code in base58-core (npm)
--- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (048a186e2e59bb0b7d9986c7099e527390e38690292bc49e237578a471c56680) The package advertises itself as a Base58 encoder/decoder but on require() schedules a delayed payload that performs multiple installer-side attacks. After a 72-hour activation delay, code in dist/index.cjs and dist/index.js enumerates installer-owned secret stores — MetaMask extension storage across Chrome/Chromium/Brave/Edge profiles, Telegram Desktop tdata sessions, ~/.ssh keys, ~/.npmrc _authToken values, browser profile inventories, and env/.env crypto secret variables — and POSTs the collected report to a hardcoded bare-IP endpoint at http://2.27.62.51:8080/api/health (with:8081 as backup). A setInterval clipboard monitor invokes pbpaste/xclip/PowerShell via child_process every 2.5 seconds, matches BTC/ETH/SOL address regexes plus WIF private keys, BIP39 seed phrases (12–24 words), and 64-hex private keys, rewrites detected wallet addresses to attacker-controlled destinations (bc1qjft978uykglsh0adcyx6xhkes56vqzs3fual3l, 0xd63eD44065eDb1e2ad2519B011c06412dA7B7c5B, A7ajd7W5WYdrnkeaiBRjVoK6uBEDvgnuZcpzQXqo18Ph), writes them back to the clipboard, and exfiltrates matched values and the original clipboard slice to the same endpoint. A persistence routine appends a node -e loader to ~/.bashrc, ~/.zshrc, and ~/.profile that re-invokes the payload on every shell start; on Windows it drops base58-runtime.js into the user Startup folder, keeping the clipboard hijacker and exfil active across reboots and beyond project uninstall. The 72-hour dormancy timer is designed to evade sandbox and CI dynamic analysis. The package name and keywords (bitcoin/solana/wallet/ipfs) impersonate legitimate Base58 libraries to target crypto developers. ## Source: ghsa-malware (e697e341b967e796e17cc132952e12802f5e4e6ce8be1453d0434bf6c308081f) 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 base58-core npm package (versions =1.0.0, =1.0.1, =1.0.2, =1.0.3) is a malicious package that schedules a delayed payload upon require(). After 72 hours, it enumerates and exfiltrates sensitive secrets from various local stores including MetaMask extension storage, Telegram Desktop sessions, SSH keys, npm auth tokens, browser profiles, and crypto environment variables to a hardcoded IP address. It continuously monitors the clipboard for cryptocurrency wallet addresses and private keys, replacing them with attacker-controlled addresses and exfiltrating the original clipboard contents. Persistence is maintained by modifying shell startup scripts on Unix-like systems and placing a runtime script in the Windows Startup folder. The 72-hour dormancy is intended to evade automated dynamic analysis. The package uses keywords and naming to impersonate legitimate Base58 libraries, specifically targeting crypto developers.
Potential Impact
This malicious package compromises the confidentiality of sensitive cryptographic secrets and credentials by exfiltrating them to an attacker-controlled server. It enables theft of cryptocurrency by replacing wallet addresses in the clipboard with attacker addresses, potentially redirecting user transactions. Persistence mechanisms ensure the malware remains active across system reboots and shell restarts, increasing exposure duration. The delayed activation reduces the chance of early detection in automated environments.
Mitigation Recommendations
No official patch or remediation is currently available. Users should immediately uninstall the base58-core package versions 1.0.0 through 1.0.3 and remove any persistence artifacts such as modifications to shell startup scripts (~/.bashrc, ~/.zshrc, ~/.profile) and files in the Windows Startup folder. Review and rotate any potentially compromised secrets including crypto wallet keys, npm tokens, and SSH keys. Monitor for suspicious network traffic to the hardcoded IP addresses (http://2.27.62.51:8080 and :8081). Avoid using untrusted or impersonating npm packages, especially those targeting crypto developers.
Malicious code in base58-core (npm)
Description
--- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (048a186e2e59bb0b7d9986c7099e527390e38690292bc49e237578a471c56680) The package advertises itself as a Base58 encoder/decoder but on require() schedules a delayed payload that performs multiple installer-side attacks. After a 72-hour activation delay, code in dist/index.cjs and dist/index.js enumerates installer-owned secret stores — MetaMask extension storage across Chrome/Chromium/Brave/Edge profiles, Telegram Desktop tdata sessions, ~/.ssh keys, ~/.npmrc _authToken values, browser profile inventories, and env/.env crypto secret variables — and POSTs the collected report to a hardcoded bare-IP endpoint at http://2.27.62.51:8080/api/health (with:8081 as backup). A setInterval clipboard monitor invokes pbpaste/xclip/PowerShell via child_process every 2.5 seconds, matches BTC/ETH/SOL address regexes plus WIF private keys, BIP39 seed phrases (12–24 words), and 64-hex private keys, rewrites detected wallet addresses to attacker-controlled destinations (bc1qjft978uykglsh0adcyx6xhkes56vqzs3fual3l, 0xd63eD44065eDb1e2ad2519B011c06412dA7B7c5B, A7ajd7W5WYdrnkeaiBRjVoK6uBEDvgnuZcpzQXqo18Ph), writes them back to the clipboard, and exfiltrates matched values and the original clipboard slice to the same endpoint. A persistence routine appends a node -e loader to ~/.bashrc, ~/.zshrc, and ~/.profile that re-invokes the payload on every shell start; on Windows it drops base58-runtime.js into the user Startup folder, keeping the clipboard hijacker and exfil active across reboots and beyond project uninstall. The 72-hour dormancy timer is designed to evade sandbox and CI dynamic analysis. The package name and keywords (bitcoin/solana/wallet/ipfs) impersonate legitimate Base58 libraries to target crypto developers. ## Source: ghsa-malware (e697e341b967e796e17cc132952e12802f5e4e6ce8be1453d0434bf6c308081f) 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 base58-core npm package (versions =1.0.0, =1.0.1, =1.0.2, =1.0.3) is a malicious package that schedules a delayed payload upon require(). After 72 hours, it enumerates and exfiltrates sensitive secrets from various local stores including MetaMask extension storage, Telegram Desktop sessions, SSH keys, npm auth tokens, browser profiles, and crypto environment variables to a hardcoded IP address. It continuously monitors the clipboard for cryptocurrency wallet addresses and private keys, replacing them with attacker-controlled addresses and exfiltrating the original clipboard contents. Persistence is maintained by modifying shell startup scripts on Unix-like systems and placing a runtime script in the Windows Startup folder. The 72-hour dormancy is intended to evade automated dynamic analysis. The package uses keywords and naming to impersonate legitimate Base58 libraries, specifically targeting crypto developers.
Potential Impact
This malicious package compromises the confidentiality of sensitive cryptographic secrets and credentials by exfiltrating them to an attacker-controlled server. It enables theft of cryptocurrency by replacing wallet addresses in the clipboard with attacker addresses, potentially redirecting user transactions. Persistence mechanisms ensure the malware remains active across system reboots and shell restarts, increasing exposure duration. The delayed activation reduces the chance of early detection in automated environments.
Mitigation Recommendations
No official patch or remediation is currently available. Users should immediately uninstall the base58-core package versions 1.0.0 through 1.0.3 and remove any persistence artifacts such as modifications to shell startup scripts (~/.bashrc, ~/.zshrc, ~/.profile) and files in the Windows Startup folder. Review and rotate any potentially compromised secrets including crypto wallet keys, npm tokens, and SSH keys. Monitor for suspicious network traffic to the hardcoded IP addresses (http://2.27.62.51:8080 and :8081). Avoid using untrusted or impersonating npm packages, especially those targeting crypto developers.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-6445
- Osv Schema Version
- 1.7.4
- Aliases
- []
- Ecosystems
- ["npm"]
- Database Specific Severity
- null
- Cvss Version
- null
Threat ID: 6a3ef76a27e9c79719fee816
Added to database: 06/26/2026, 22:04:26 UTC
Last enriched: 07/07/2026, 00:56:46 UTC
Last updated: 07/29/2026, 16:21:19 UTC
Views: 27
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.
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.