2026-11-tesec PyPI malware campaign: basic-crypt, colook, tesec — native-module infostealer with PTH persistence (no CVE)
Severity: critical · Patch status: no-fix-needed · Since 2026-12-05
GitHub advisories published 2026-12-05 flag three PyPI packages — basic-crypt (1.5.2–1.5.4), colook (1.1.3) and tesec (2.7.0) — as malicious code under the '2026-11-tesec' campaign, first discovered by Island.io. The campaign uses package pairs: one carries a malicious payload in a native extension module which the other loads, and the packages drop .pth files to ensure persistence, with infostealer intent. There are no patched versions; the packages are malware and have been removed/flagged rather than fixed. Any developer or CI environment that installed these versions is at risk of credential theft and persistent compromise. Remediation is removal of the packages and environment cleanup, not an upgrade.
What to do
- Immediately remove basic-crypt, colook and tesec from all environments and lockfiles; block these versions in your proxy/firewall
- Treat any machine or CI runner that installed them as compromised: rotate all credentials, tokens and keys accessible from those environments
- Hunt for and delete dropped .pth files in site-packages and inspect native extension modules for the payload
- Audit dependency resolution history and caches (pip cache, mirrors) for the affected versions
- Enforce PyPI package allowlisting/hash-pinning and malware scanning in CI
Sources
All live incidents on Threat Watch