Malicious code in tpinforandcpu (PyPI)
Summary
MAL-2023-7142: Malicious code in tpinforandcpu (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
tpinforandcpu is a package available on PyPI that provides information about the CPU. It is commonly used in Python projects to gather CPU-related data. However, this package has been found to contain malicious code.
Vulnerability Detail
The tpinforandcpu 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 tpinforandcpu allows the execution of malicious code, which can lead 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 tpinforandcpu
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 malicious package and replace it with a secure alternative.
Conclusion
The tpinforandcpu package on PyPI has been found to contain malicious code, potentially leading to unauthorized access and data theft. It is crucial to remove this package from your project and replace it with a trusted alternative. Regularly updating and reviewing your project's dependencies is essential to mitigate the risk of similar vulnerabilities. For further support on vulnerability remediation, you can contact DevNack.com.
See every vulnerability recorded for tpinforandcpu →
FAQ
You can check your project's dependencies or requirements file to see if tpinforandcpu is listed. Additionally, you can use tools like Vulert (https://vulert.com) to scan your project for known vulnerabilities.
This vulnerability can lead to unauthorized access to sensitive data, data theft, and the execution of malicious code on the affected system. It can also compromise the security and integrity of the entire project.
While specific exploits targeting this vulnerability have not been disclosed, the presence of malicious code in the tpinforandcpu package increases the risk of exploitation. It is crucial to address this vulnerability promptly.
The fix for this vulnerability involves removing the tpinforandcpu package from the project and replacing it with a trusted alternative. Regularly updating and reviewing the project's dependencies is also recommended.
To prevent similar vulnerabilities, it is important to only use packages from trusted sources and regularly update and review the packages used in your project. Additionally, consider using vulnerability scanning tools to identify and address potential security issues.