Skip to main content
MalwarePublished Updated

defi-kit (PyPI) · Malicious Code

Affects defi-kitSource GCVE Database

0

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

Data as of 26 Oct 2026, 16:07 UTC

Classification

Malicious package

Published to PyPI · OSV MAL-2026-10926

What to do

Remove defi-kit 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-kitAffected
  • =2.1.1
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-kit' version 2.1.1 contains malicious code in its _compat.py module. When imported, it runs a function that stealthily collects sensitive credential files and environment data from the host, including SSH keys, cloud credentials, Kubernetes tokens, and various configuration files. This data is compressed, encoded, and exfiltrated to two hardcoded external IP addresses. The module disguises this behavior under misleading names suggesting compatibility or telemetry functionality.

References

Community reviews

Loading reviews…