MAL-2026-10192: Malicious code in defi-tools (PyPI)
The PyPI package 'defi-tools' version 0.8.0 contains malicious code that, upon import, drops a large base64-encoded Linux ELF executable disguised as a system utility. This executable is saved with full permissions in a hidden directory and a cron job is installed to run it every 12 hours, ensuring persistence. The malicious binary steals cryptocurrency wallet data, encrypts it using embedded RSA code, and exfiltrates it to file-sharing services or IPFS. The package also removes its own metadata and cache directories to hide evidence while maintaining the persistence of the malicious binary and cron job.
AI Analysis
Technical Summary
The 'defi-tools' PyPI package version 0.8.0 includes malicious code that executes on import. It decodes and writes a ~486KB Linux ELF binary to a hidden directory with full permissions and sets up a cron job to run this binary bi-daily. The binary is designed to steal cryptocurrency wallet data, encrypt it with RSA, and exfiltrate the data to external services such as file-sharing platforms or IPFS. The package also deletes its own dist-info, egg-info, and __pycache__ directories to erase traces of the infection. This campaign is categorized as malicious with clear intent to steal sensitive crypto-related information and maintain persistence on infected systems.
Potential Impact
This malicious package compromises systems by installing a persistent backdoor that steals cryptocurrency wallet data. The stolen data is encrypted and exfiltrated to external services, potentially leading to financial loss for affected users. The persistence mechanism via cron jobs ensures ongoing data theft. The removal of package metadata and cache directories complicates detection and forensic analysis.
Mitigation Recommendations
No official patch or remediation is currently available for this malicious package. Users should avoid installing or using 'defi-tools' version 0.8.0 from PyPI. If already installed, remove the package immediately, delete the dropped binary (~/.config/.npm-cache/snapd-network), and remove the associated cron job (0 */12 * * *). Conduct a thorough system scan for other indicators of compromise. Monitor for suspicious processes and network activity related to file-sharing or IPFS uploads. Check vendor advisories or PyPI for updates or removal notices regarding this package.
MAL-2026-10192: Malicious code in defi-tools (PyPI)
Description
The PyPI package 'defi-tools' version 0.8.0 contains malicious code that, upon import, drops a large base64-encoded Linux ELF executable disguised as a system utility. This executable is saved with full permissions in a hidden directory and a cron job is installed to run it every 12 hours, ensuring persistence. The malicious binary steals cryptocurrency wallet data, encrypts it using embedded RSA code, and exfiltrates it to file-sharing services or IPFS. The package also removes its own metadata and cache directories to hide evidence while maintaining the persistence of the malicious binary and cron job.
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 'defi-tools' PyPI package version 0.8.0 includes malicious code that executes on import. It decodes and writes a ~486KB Linux ELF binary to a hidden directory with full permissions and sets up a cron job to run this binary bi-daily. The binary is designed to steal cryptocurrency wallet data, encrypt it with RSA, and exfiltrate the data to external services such as file-sharing platforms or IPFS. The package also deletes its own dist-info, egg-info, and __pycache__ directories to erase traces of the infection. This campaign is categorized as malicious with clear intent to steal sensitive crypto-related information and maintain persistence on infected systems.
Potential Impact
This malicious package compromises systems by installing a persistent backdoor that steals cryptocurrency wallet data. The stolen data is encrypted and exfiltrated to external services, potentially leading to financial loss for affected users. The persistence mechanism via cron jobs ensures ongoing data theft. The removal of package metadata and cache directories complicates detection and forensic analysis.
Mitigation Recommendations
No official patch or remediation is currently available for this malicious package. Users should avoid installing or using 'defi-tools' version 0.8.0 from PyPI. If already installed, remove the package immediately, delete the dropped binary (~/.config/.npm-cache/snapd-network), and remove the associated cron job (0 */12 * * *). Conduct a thorough system scan for other indicators of compromise. Monitor for suspicious processes and network activity related to file-sharing or IPFS uploads. Check vendor advisories or PyPI for updates or removal notices regarding this package.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-10192
- Osv Schema Version
- 1.7.4
- Aliases
- []
- Ecosystems
- ["PyPI"]
- Database Specific Severity
- null
- Cvss Version
- null
Threat ID: 6a54ad9168715ace438f04d4
Added to database: 07/13/2026, 09:19:13 UTC
Last enriched: 07/13/2026, 09:22:18 UTC
Last updated: 07/14/2026, 03:57:59 UTC
Views: 5
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.