cryptgraphy (PyPI) · Malicious Code
Affects cryptgraphySource GCVE Database
Malicious package : remove cryptgraphy and rotate any secrets on hosts that installed it.
Data as of 24 Aug 2026, 14:27 UTC
Malicious package
Published to PyPI · OSV MAL-2026-14388
What to do
Remove cryptgraphy 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
| Product | Affected | Fixed in |
|---|---|---|
| PyPIcryptgraphy | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
Description
A malicious PyPI package named 'cryptgraphy' impersonates legitimate cryptography and AWS-related packages using typosquatting and falsified metadata. Upon installation, it executes a custom install script that delays for five minutes before downloading and running an ELF binary from an unrelated external server. The binary attempts to establish persistence, potentially via systemd services, and is associated with malicious activities such as cryptocurrency mining and network propagation. The package itself contains only stub functions, with the real malicious behavior occurring during installation. This campaign exhibits clear malicious intent and anti-forensic techniques.