Malicious Code in tpstrpush (PyPI)
Summary
MAL-2023-7627: Malicious code in tpstrpush (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
tpstrpush is a package available on PyPI that provides functionality for pushing strings to a specified target. It is commonly used in Python projects for various purposes. However, the package has been found to contain malicious code, which poses a significant security risk to applications that use it.
Vulnerability Detail
The tpstrpush package has been compromised by the EsqueleSquad group, who published nearly 6000 malicious PyPi and NPM packages. These packages execute spyware and information-stealing malware. The specific vulnerability in tpstrpush allows the execution of arbitrary code, potentially leading to unauthorized access, data breaches, and other malicious activities.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
pip uninstall tpstrpush
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 known workaround for this vulnerability. It is crucial to remove the tpstrpush package and replace it with a secure alternative.
Conclusion
The tpstrpush package on PyPI has been compromised with malicious code, posing a significant security risk to applications that use it. It is crucial to remove this package from your project and replace it with a trusted alternative. Regularly updating dependencies and performing security audits are essential practices to ensure the security of your software.
See every vulnerability recorded for tpstrpush →
FAQ
You can use the Vulert Playground at Vulert Scanner to check if your application is affected by this vulnerability. Simply provide your Pipfile.lock file, and Vulert will analyze it for any open-source vulnerabilities, including the malicious code in tpstrpush.
The malicious code in tpstrpush can lead to unauthorized access, data breaches, and the installation of spyware and information-stealing malware. This can result in the compromise of sensitive information, financial loss, and damage to your organization's reputation.
No, there is no fix available for tpstrpush itself. The package has been compromised, and the best course of action is to remove it from your project and replace it with a trusted alternative.
To ensure the security of your Python dependencies, regularly update them to the latest versions and use tools like Vulert to scan for vulnerabilities. Additionally, consider implementing a secure software development lifecycle and performing regular security audits.
For more information about this vulnerability and other similar security issues, you can contact supplychainsecurity@checkmarx.com or visit https://bit.ly/checkmarx-malicious-packages.