Skip to main content
MalwarePublished

defi-tools (PyPI) · Malicious Code

Affects defi-toolsSource GCVE Database

0

Malicious package : remove defi-tools and rotate any secrets on hosts that installed it.

Data as of 13 Jul 2026, 09:22 UTC

Classification

Malicious package

Published to PyPI · OSV MAL-2026-10192

What to do

Remove defi-tools from every project, lockfile and image that pulls it in. Treat any host that installed it as compromised: rotate the credentials, tokens and keys it could read, from a clean machine.

Affected software

ProductAffectedFixed in
PyPIdefi-toolsAffected
  • =0.8.0
Fixed in–

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

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.

References

Community reviews

Loading reviews…