Malicious Code Injection in crypto-trader-py Package
Summary
MAL-2026-16406: Malicious code in crypto-trader-py (PyPI). Affects crypto-trader-py versions 1.0.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 crypto-trader-py package is marketed as a toolkit for crypto trading and backtesting. However, upon inspection, it lacks any legitimate library code and instead contains only metadata files. This raises concerns about its authenticity and security, as it appears to be a facade for malicious activities.
Vulnerability Detail
The vulnerability stems from the package's setup.py file, which overrides the installation command to execute malicious code during the installation process. This code spawns a hidden subprocess that runs without user interaction, indicating a dropper pattern rather than a legitimate installation step. The malicious intent is clear, as it attempts to execute code silently, potentially compromising user systems.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
pip uninstall crypto-trader-py
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 measure, avoid installing the crypto-trader-py package altogether. If you have already installed it, remove it immediately and monitor your system for any unusual activity.
Conclusion
The crypto-trader-py package presents a significant security risk due to its malicious code execution during installation. Users are advised to uninstall the package and remain vigilant for any signs of compromise. Until a safe version is released, it is best to avoid this package altogether.
See every vulnerability recorded for crypto-trader-py →
FAQ
It is a package that claims to provide tools for crypto trading and backtesting but is suspected of containing malicious code.
The vulnerability allows the package to execute malicious code silently during installation, which can compromise user systems.
Uninstall the package immediately using 'pip uninstall crypto-trader-py' and monitor your system for any unusual behavior.
Currently, there is no patched version available for the crypto-trader-py package. It is advisable to avoid using it until further notice.
You can use Vulert, which monitors and alerts in real-time for open-source vulnerabilities. Check your application against this vulnerability using the Vulert playground at Vulert Scanner.