Malicious Code in toolad (PyPI)
Summary
MAL-2023-6868: Malicious code in toolad (PyPI). Affected versions are not published. 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 toolad package is an open-source Python package available on PyPI. It is designed to provide various tools and utilities for developers. The package is commonly used in Python projects for its functionality and ease of use. However, the package has been found to contain malicious code, which poses a significant security risk to users who install and use it in their projects.
Vulnerability Detail
The toolad package has been identified as one of the nearly 6000 malicious PyPi packages published by the EsqueleSquad group. These packages execute spyware and information-stealing malware, compromising the security and privacy of affected systems. The specific vulnerability in toolad allows the execution of unauthorized code, leading to potential data breaches, unauthorized access, and other malicious activities. The malicious code can be triggered when the package is imported and used in a Python project.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
pip uninstall toolad
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
There is no direct workaround for this vulnerability. The best course of action is to remove the toolad package and replace it with a trusted alternative.
Conclusion
The toolad package on PyPI has been found to contain malicious code, posing a significant security risk to users. It is crucial to remove the package from your projects and replace it with a trusted alternative. Regularly updating and reviewing your project's dependencies is also essential to mitigate the risk of similar vulnerabilities. For further support and assistance in vulnerability remediation, you can reach out to DevNack.com.
See every vulnerability recorded for toolad →
FAQ
You can use the Vulert Playground (https://vulert.com/scanner) to check if your application is affected by this vulnerability. Simply upload your Pipfile.lock file, and Vulert will analyze it for any open-source vulnerabilities, including the malicious code in the toolad package.
Yes, you can still use other packages from PyPI. However, it is crucial to ensure that the packages you use are from trusted sources and regularly updated to mitigate the risk of potential vulnerabilities.
The most effective mitigation is to remove the toolad package from your project and replace it with a trusted alternative. Additionally, practicing good software development hygiene, such as regularly updating and reviewing your project's dependencies, can help mitigate the risk of similar vulnerabilities.
To prevent similar vulnerabilities in the future, it is essential to follow best practices for software development and package management. This includes using reputable package sources, regularly updating dependencies, and employing security tools like Vulert to monitor for open-source vulnerabilities.
For more information about this vulnerability and its impact, you can refer to the Checkmarx advisory or contact their supply chain security team at supplychainsecurity@checkmarx.com.