Malicious Code Execution in testingpkgja: A Security Risk
Summary
MAL-2025-191894: Malicious code in testingpkgja (PyPI). Affects testingpkgja versions 0.1.0. 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 package 'testingpkgja' is a Python package available on PyPI, designed for testing purposes. It is intended to assist developers in conducting various tests and experiments. However, it has been identified to contain malicious code that executes an external executable during installation, posing a significant security risk to users who install it.
Vulnerability Detail
The vulnerability stems from the package overriding the install command in its setup.py file, which allows it to execute arbitrary code during the installation process. Specifically, it launches an external executable that opens the Windows calculator application. This behavior is indicative of potentially malicious intent, as it can be exploited to execute harmful commands on the user's system. The package is categorized under PROBABLY_PENTEST, suggesting it mimics typical penetration testing tools but carries low-harm possibilities. Users should be cautious as this could lead to further exploitation if the package is modified to execute more harmful code.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
pip uninstall testingpkgja
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 workaround, users can manually inspect the setup.py file of the package before installation to ensure it does not contain any malicious code. Additionally, consider using virtual environments to isolate package installations and minimize the impact of potential vulnerabilities.
Conclusion
The 'testingpkgja' package poses a significant security risk due to its ability to execute malicious code during installation. Users are advised to uninstall the package and remain vigilant for any updates or patches. Utilizing tools like Vulert can help in monitoring for such vulnerabilities in real-time.
See every vulnerability recorded for testingpkgja →
FAQ
'testingpkgja' is a Python package designed for testing purposes, but it has been found to contain malicious code.
The vulnerability allows the package to execute arbitrary code during installation, specifically launching an external executable.
Uninstall 'testingpkgja' immediately and avoid using it until a patched version is released.
You can use Vulert's playground at Vulert Scanner to check for vulnerabilities in your application without needing to sign up.
Vulert is a tool that monitors and alerts users in real-time for open-source vulnerabilities in software, using just the Pipfile.lock.