Malicious code in virtualpip (pypi)
Summary
MAL-2023-7830: Malicious code in virtualpip (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
Virtualpip is a package available on PyPI, the Python Package Index. It is used as a virtual environment manager for Python projects. This package allows users to create isolated environments for their Python projects, ensuring that the dependencies and versions are consistent across different projects. However, the virtualpip package has been found to contain malicious code.
Vulnerability Detail
The virtualpip 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 virtualpip allows the execution of malicious code, which can lead to unauthorized access, data theft, and potential compromise of the entire system. The malicious code can be triggered when installing or using the virtualpip package.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
pip uninstall virtualpip
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 switch to using alternative virtual environment managers like virtualenv or conda. These packages have not been affected by the malicious code and provide similar functionality to virtualpip. Here is an example of how to create a virtual environment using virtualenv:
$ virtualenv myenv
$ source myenv/bin/activate
Alternatively, you can use conda to create a virtual environment:
$ conda create --name myenv
$ conda activate myenv
Conclusion
The virtualpip package has been found to contain malicious code, which can lead to unauthorized access and data theft. It is crucial to remove the package from your Python environment and take necessary steps to mitigate the impact. For further support on vulnerability remediation, you can contact DevNack.com.
See every vulnerability recorded for virtualpip →
FAQ
Virtualpip is a package available on PyPI that provides virtual environment management for Python projects.
The virtualpip package was compromised by the EsqueleSquad group, who published malicious versions of the package on PyPI.
Using the compromised virtualpip package can lead to unauthorized access, data theft, and potential compromise of the entire system.
To fix the vulnerability, it is recommended to remove the virtualpip package from your Python environment and scan your system for signs of compromise.
Yes, you can switch to using alternative virtual environment managers like virtualenv or conda.