MAL-2026-1085 Malicious code in ctf-toolkit (PyPI)
Malicious package
Published
MAL-2026-1085 is a malicious package: ctf-toolkit (PyPI). Every version was published to cause harm.
Task:
1. Search this repository's dependency manifests and lockfiles for the package, including transitive dependencies.
2. If it is present, remove it, regenerate the lockfile with the project's package manager, and replace whatever it was used for.
3. List any CI runners, developer machines or containers that installed it, so their secrets can be rotated.
4. If the package is not used anywhere, say so and change nothing.
Reference: https://insights.sbomify.com/MAL-2026-1085/ (Markdown: https://insights.sbomify.com/MAL-2026-1085/index.md)
- Package
- ctf-toolkit
- Registry
- PyPI
What is MAL-2026-1085?
MAL-2026-1085 is a malicious package in ctf-toolkit, published on 28 Feb 2026.
Official description
The package states to contain a modified curl library to allow low-level request modifications. However, there is also undisclosed malicious behavior:
- The package installs a .pth file directly in the site-packages directory, effectively running a special code on each Python usage.
- This code performs "TLS context warm-up" by contacting a URL (Github) in the background, in a separate process; this is suspicious on its own as it's unclear how a separate process can warm up further requests in the main process, but…
- …besides the URL given in the code above, the library always contacts a hardcoded URL, identifying itself as a VPN client.
Additionally, there is no source code of the modified library anywhere, and the related Github hosting the package code account is 1-day old.
Category: MALICIOUS - The campaign has clearly malicious intent, like infostealers.
Campaign: 2026-02-ctf-toolkit
Reasons (based on the campaign):
- The package contains code to exfiltrate basic data from the system, like IP or username. It has a limited risk.
What should I do about MAL-2026-1085?
Remove the package from your dependencies and lockfiles, then rotate any secrets on machines where it was installed.