Skip to main content
MalwarePublished

basic-crypt (PyPI) · Malicious Code

Affects basic-cryptSource GCVE Database

0

Malicious package : remove basic-crypt and rotate any secrets on hosts that installed it.

Data as of 5 Dec 2026, 00:06 UTC

Classification

Malicious package

Published to PyPI · OSV MAL-2026-21149

What to do

Remove basic-crypt 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
PyPIbasic-cryptAffected
  • =1.5.2
  • =1.5.3
  • =1.5.4
Fixed in–

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

Description

The basic-crypt PyPI package versions 1.5.2, 1.5.3, and 1.5.4 are part of a malicious campaign involving paired packages where one contains a native module with malicious code and the other loads it. These packages drop .pth files to maintain persistence on the system. The campaign is identified as malicious with intent such as information stealing and persistence mechanisms.

References

Community reviews

Loading reviews…