Malicious Code Injection in ctf-toolkit: A Security Threat

ctf-toolkit Updated 28 Feb 2026

Summary

28/02/2026
CRITICAL
No i
Critical
Not published

MAL-2026-1085: Malicious code in ctf-toolkit (PyPI). Affects ctf-toolkit versions 0.1.0. No fix is published. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

ctf-toolkit is a Python package available on PyPI that is designed to facilitate low-level request modifications using a modified curl library. However, it has been identified to contain malicious code that can compromise user systems. The package's recent emergence and lack of transparency raise significant concerns regarding its integrity and security.

Vulnerability Detail

The ctf-toolkit package installs a .pth file in the site-packages directory, which executes code on every Python usage. This code initiates a 'TLS context warm-up' by contacting a hardcoded URL, masquerading as a VPN client. The package also exfiltrates basic system data, such as IP addresses and usernames, posing a risk to user privacy and security. The absence of source code for the modified library further exacerbates the issue, indicating potential malicious intent.

How To Fix

This package is malicious. Remove it and rotate any credentials it could have accessed.

pip uninstall ctf-toolkit

If it arrived as a transitive dependency, remove the package that pulled it in, then reinstall.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Workaround

Currently, there are no specific workarounds to mitigate the effects of this vulnerability other than uninstalling the package. Users should ensure that they do not have any dependencies relying on ctf-toolkit.

Conclusion

The ctf-toolkit package poses a significant security risk due to its malicious code that can exfiltrate user data. Users are strongly advised to uninstall the package immediately and monitor their systems for any unusual activity. Utilizing tools like Vulert can help in identifying vulnerabilities in open-source software.

See every vulnerability recorded for ctf-toolkit →

Share this vulnerability

FAQ

ctf-toolkit is a Python package designed for low-level request modifications using a modified curl library.

The package installs a .pth file that executes code to contact a hardcoded URL, potentially exfiltrating user data.

You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without any signup.

No, there is currently no patched version available. The recommended action is to uninstall the package.

You should review your dependencies and consider alternatives, as there are no workarounds available for this vulnerability.

How To Fix

This package is malicious. Remove it and rotate any credentials it could have accessed.

pip uninstall ctf-toolkit

If it arrived as a transitive dependency, remove the package that pulled it in, then reinstall.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback