MAL-2026-10193: Malicious code in py-base58 (PyPI)
The py-base58 package versions 2.1.3 and 2.1.4 on PyPI contain malicious code that, upon import, drops and executes a hidden Linux ELF binary masquerading as a system daemon. This binary acts as a cryptocurrency wallet stealer targeting BIP-39 mnemonics and keystore files for wallets such as Phantom, MetaMask, Ledger, and Exodus. It establishes persistence via a user crontab entry and exfiltrates stolen data encrypted with an embedded RSA public key to multiple public file hosting services. The package also removes its own installation metadata to evade detection by package management tools.
AI Analysis
Technical Summary
The py-base58 package versions 2.1.3 and 2.1.4 masquerade as a legitimate base58 encoder but embed a ~640KB base64-encoded Linux ELF binary within base58/_payload.py. Upon first import, this binary is decoded, saved under a name resembling a system daemon in ~/.config/.npm-cache/, given full permissions (chmod 0777), executed, and scheduled to run every 12 hours via a user crontab entry. The binary steals cryptocurrency wallet data including BIP-39 mnemonics and keystore files from wallets like Phantom, MetaMask, Ledger, and Exodus, targeting specific file paths such as ~/.config/solana/id.json and ~/.ethereum/keystore. Stolen data is encrypted with an embedded RSA public key and exfiltrated to public file hosts including api.pinata.cloud (IPFS), uguu.se, temp.sh, and transfer.sh. The package also deletes its own.dist-info/.egg-info directories to hide from pip list and pip show commands, indicating clear malicious intent unrelated to its declared functionality.
Potential Impact
This malicious package compromises the security of users by stealing sensitive cryptocurrency wallet credentials and files, enabling attackers to potentially access and drain victims' cryptocurrency assets. The persistence mechanism ensures ongoing data theft every 12 hours. The removal of package metadata hinders detection and remediation efforts by users and security tools relying on package management information.
Mitigation Recommendations
No official patch or remediation is currently documented. Users should immediately uninstall py-base58 versions 2.1.3 and 2.1.4 if installed. Avoid using these versions and verify package integrity before installation. Monitor for suspicious cron jobs and unexpected binaries in ~/.config/.npm-cache/. Remove any such files and cron entries if found. Since the package removes its own metadata, manual inspection is necessary. Check vendor advisories or PyPI for updates or official guidance.
MAL-2026-10193: Malicious code in py-base58 (PyPI)
Description
The py-base58 package versions 2.1.3 and 2.1.4 on PyPI contain malicious code that, upon import, drops and executes a hidden Linux ELF binary masquerading as a system daemon. This binary acts as a cryptocurrency wallet stealer targeting BIP-39 mnemonics and keystore files for wallets such as Phantom, MetaMask, Ledger, and Exodus. It establishes persistence via a user crontab entry and exfiltrates stolen data encrypted with an embedded RSA public key to multiple public file hosting services. The package also removes its own installation metadata to evade detection by package management tools.
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 py-base58 package versions 2.1.3 and 2.1.4 masquerade as a legitimate base58 encoder but embed a ~640KB base64-encoded Linux ELF binary within base58/_payload.py. Upon first import, this binary is decoded, saved under a name resembling a system daemon in ~/.config/.npm-cache/, given full permissions (chmod 0777), executed, and scheduled to run every 12 hours via a user crontab entry. The binary steals cryptocurrency wallet data including BIP-39 mnemonics and keystore files from wallets like Phantom, MetaMask, Ledger, and Exodus, targeting specific file paths such as ~/.config/solana/id.json and ~/.ethereum/keystore. Stolen data is encrypted with an embedded RSA public key and exfiltrated to public file hosts including api.pinata.cloud (IPFS), uguu.se, temp.sh, and transfer.sh. The package also deletes its own.dist-info/.egg-info directories to hide from pip list and pip show commands, indicating clear malicious intent unrelated to its declared functionality.
Potential Impact
This malicious package compromises the security of users by stealing sensitive cryptocurrency wallet credentials and files, enabling attackers to potentially access and drain victims' cryptocurrency assets. The persistence mechanism ensures ongoing data theft every 12 hours. The removal of package metadata hinders detection and remediation efforts by users and security tools relying on package management information.
Mitigation Recommendations
No official patch or remediation is currently documented. Users should immediately uninstall py-base58 versions 2.1.3 and 2.1.4 if installed. Avoid using these versions and verify package integrity before installation. Monitor for suspicious cron jobs and unexpected binaries in ~/.config/.npm-cache/. Remove any such files and cron entries if found. Since the package removes its own metadata, manual inspection is necessary. Check vendor advisories or PyPI for updates or official guidance.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-10193
- Osv Schema Version
- 1.7.4
- Aliases
- []
- Ecosystems
- ["PyPI"]
- Database Specific Severity
- null
- Cvss Version
- null
Threat ID: 6a54ae1468715ace438f921c
Added to database: 07/13/2026, 09:21:24 UTC
Last enriched: 07/13/2026, 09:59:56 UTC
Last updated: 07/14/2026, 02:47:18 UTC
Views: 8
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.