compress-template (PyPI) 0.4.6 — malicious package downloads obfuscated script and executable on import
Severity: critical · Patch status: no-fix-needed · Since 2026-12-05
The PyPI package compress-template version 0.4.6 was identified as malicious. On import, it executes an obfuscated command that downloads a script, which in turn downloads and executes a malicious executable, consistent with an infostealer-style campaign. GitHub published advisory GHSA-2436-x2w9-pr9j on 2026-12-05, crediting OpenSSF's malicious-packages database and researcher kam193. There are no patched versions; the package is malware and should be removed entirely. Anyone who installed version 0.4.6 should assume code execution and potential credential or data theft on the affected machine and rotate secrets and rebuild environments.
What to do
- Uninstall compress-template immediately; do not upgrade within the same package
- Assume compromise of any machine where it was installed: rotate credentials, tokens, and keys accessible to that environment
- Rebuild affected environments/CI runners from trusted images
- Audit logs and network traffic for downloads of the malicious script/executable
- Scan for indicators (VirusTotal file hash 2646172219515a647256f2d9a508614984e8d8ada242a503e88fd2ff531ff0cd)
- Block the package in dependency resolution and review lockfiles for it
Sources
All live incidents on Threat Watch