Malicious code in tpramhttpurl (PyPI)
Summary
MAL-2023-7503: Malicious code in tpramhttpurl (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 tpramhttpurl package is an open-source Python package available on PyPI. It is designed to provide functionality related to HTTP URLs in the context of tpram. This package is vulnerable to a malicious code injection attack.
Vulnerability Detail
The tpramhttpurl package has been found to contain malicious code introduced by the Checkmarx security team. This code can execute spyware and information-stealing malware on the affected system. The malicious code is present in version 0 and all subsequent versions of the package. The attack can be triggered when the package is installed or updated, potentially leading to unauthorized access to sensitive information and compromise of the system.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
pip uninstall tpramhttpurl
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 workaround, you can manually remove the tpramhttpurl package from your project's dependencies and replace it with a secure alternative. Here's an example of how you can do this using pip:
-
Open your project's virtual environment or global Python environment.
-
Run the following command to uninstall the vulnerable package:
pip uninstall tpramhttpurl -
Install a secure alternative package using the following command:
pip install secure-alternative-package
Conclusion
The tpramhttpurl package has been found to contain malicious code that can execute spyware and information-stealing malware. It is crucial to remove this package from your project and replace it with a trusted alternative. Regularly updating dependencies and running security scans are essential practices to ensure the security of your codebase. For further support on vulnerability remediation, you can contact DevNack.com.
See every vulnerability recorded for tpramhttpurl →
FAQ
This vulnerability can lead to the execution of spyware and information-stealing malware on the affected system. It can result in unauthorized access to sensitive information and compromise of the system.
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 this one.
Yes, the recommended fix is to remove the tpramhttpurl package from your project and replace it with a trusted alternative. It is also important to regularly update your dependencies and run security scans on your codebase.
While it is highly recommended to remove the vulnerable package, you can mitigate the risk by implementing strict security measures such as network segmentation, access controls, and monitoring for suspicious activities.
This vulnerability was discovered by the Checkmarx security team. They identified nearly 6000 malicious PyPi and NPM packages, including the tpramhttpurl package, that were executing spyware and information-stealing malware.