Malicious Code in tpccrandom (PyPI)
Summary
MAL-2023-6941: Malicious code in tpccrandom (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
tpccrandom is a package available on PyPI that provides functionality for generating random data for the TPC-C benchmark. It is commonly used in performance testing and database benchmarking. However, this package has been found to contain malicious code, which poses a significant security risk to systems that utilize it.
Vulnerability Detail
The tpccrandom 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 tpccrandom allows the execution of arbitrary code on the affected system, potentially leading to unauthorized access, data theft, and other malicious activities.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
pip uninstall tpccrandom
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 essential to remove the tpccrandom package and address any potential system compromise.
Conclusion
The tpccrandom package on PyPI has been found to contain malicious code, posing a significant security risk. It is crucial to remove the package and address any potential system compromise. For further support on vulnerability remediation, please contact DevNack.com.
See every vulnerability recorded for tpccrandom →
FAQ
You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability. Simply input your Pipfile.lock file, and Vulert will provide real-time alerts for any open-source vulnerabilities, including this one.
The consequences of this vulnerability can be severe. Attackers can execute arbitrary code on the affected system, leading to unauthorized access, data theft, and other malicious activities. It is crucial to take immediate action to mitigate the risk.
Yes, the recommended fix is to remove the tpccrandom package and any dependencies that rely on it. Additionally, it is important to scan your system for signs of compromise and update your security software.
It is not advisable to continue using tpccrandom even if you update it to a non-malicious version. The package has been compromised, and it is recommended to find alternative solutions to avoid any potential risks.
To prevent similar incidents in the future, it is essential to regularly update your software dependencies, use reputable sources for package installations, and employ security measures such as vulnerability monitoring tools like Vulert.