Malicious Code Vulnerability in testctfproject1 Package
Summary
MAL-2026-1864: Malicious code in testctfproject1 (npm). Affects testctfproject1 versions 0.30.1. No fix is published. How to fix ↓
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.
No signup required · Results in about 60 seconds
Background
The testctfproject1 package is an npm library designed for testing purposes in CTF (Capture The Flag) competitions. It provides various functionalities to facilitate the creation and management of test environments. However, this package has been identified as containing malicious code, which poses significant security risks to users who integrate it into their applications.
Vulnerability Detail
The vulnerability stems from the inclusion of malicious code within the testctfproject1 package, specifically in version 0.30.1. This code can potentially compromise the security of applications that utilize this package, leading to unauthorized access, data breaches, or other malicious activities. The origin of this vulnerability is linked to the package being flagged by security researchers from ReversingLabs, who identified the malicious behavior through analysis.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall testctfproject1
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
As a temporary workaround, you can remove the testctfproject1 package from your project until a secure version is released. This can be done using the following command: npm uninstall testctfproject1. Additionally, consider using alternative libraries that provide similar functionalities without the associated risks.
Conclusion
The testctfproject1 package has been identified as containing malicious code, posing significant risks to applications that utilize it. Users are advised to update to a secure version or remove the package until a fix is available. Utilizing tools like Vulert can help monitor for such vulnerabilities in real-time.
See every vulnerability recorded for testctfproject1 →
FAQ
The testctfproject1 package is primarily used for creating and managing test environments in Capture The Flag competitions.
You can use Vulert to monitor and alert for open-source vulnerabilities in your software. By analyzing your package-lock.json file, Vulert provides real-time alerts for any vulnerabilities, including this one.
If immediate updates are not feasible, consider removing the package from your project as a temporary measure until a secure version is available.
Yes, Vulert allows you to monitor vulnerabilities using just your package-lock.json file, providing alerts without requiring access to the code or installation.
Detailed information about this vulnerability can be found in the official GitHub repository of the malicious packages project, as well as through security advisories from ReversingLabs.