Malicious 'calculates' PyPI package (2026-11-alogithms campaign) executes remote code
Severity: critical · Patch status: no-fix-needed · Since 2026-12-03
The PyPI package 'calculates', versions 1.0.1 and 1.0.2, was identified as malicious code disguised as a math library. It delivers functionality for executing remote code and is part of the '2026-11-alogithms' campaign, which uses obfuscation and abuses Python's .pth mechanism. The package is a continuation of previously removed malicious packages. Anyone who installed these versions is exposed to remote code execution on their systems. GitHub published the advisory on 2026-12-03; there are no patched versions and the package is expected to be removed from PyPI. Organisations should check dependencies for the package and remove it immediately.
What to do
- Search environments and lockfiles for 'calculates' versions 1.0.1/1.0.2 and remove them immediately
- Treat any machine where the package was installed as compromised; investigate for persistence (including .pth abuse) and credential theft
- Rotate secrets, tokens and credentials accessible from affected systems
- Audit dependency resolution and CI caches for the package and block it via repository allowlists/scanning
- Review other dependencies from the same campaign for similar typosquat-style packages
Sources
All live incidents on Threat Watch