pypi · Malicious package advisory
Malwareeasyhttprequest
GHSA-7m2r-h9wm-jjf7
Malicious code in easyhttprequest (PyPI)
Details
**Severity:** Critical **Affected versions:** `= 2.31.5` ## Source: kam193 (2b8f76adb9701e490a7cb89a6457afd1ce1cbe67712cdca356da7f35791ba993) Clone of the requests package. During installation, it downloads a git repository and attempts to execute a script from its commit message --- Category: MALICIOUS - The campaign has clearly malicious intent, like infostealers. Campaign: 2023-12-09-easyhttprequest Reasons (based on the campaign): - The package overrides the install command in setup.py to execute malicious code during installation. - Downloads and executes a remote malicious script. - clones-real-package --- Credit: [OpenSSF](https://github.com/ossf/malicious-packages) ([source](https://github.com/ossf/malicious-packages/blob/49d0cfba3689ed9b195d101d3a2a964c6a77f767/osv/malicious/pypi/easyhttprequest/MAL-2024-5101.json)) **References:** - https://bad-packages.kam193.eu/pypi/package/easyhttprequest - https://github.com/ossf/malicious-packages/blob/49d0cfba3689ed9b195d101d3a2a964c6a77f767/osv/malicious/pypi/easyhttprequest/MAL-2024-5101.json - https://medium.com/checkmarx-security/python-packages-leverage-github-to-deploy-fileless-malware-b6c281dea58f - https://security.snyk.io/vuln/SNYK-PYTHON-EASYHTTPREQUEST-6139264 - https://www.reversinglabs.com/blog/malware-leveraging-public-infrastructure-like-github-on-the-rise - https://github.com/advisories/GHSA-7m2r-h9wm-jjf7
Compromised versions (1)
- = 2.31.5
Any computer that installed or ran a compromised version should be considered fully compromised. Rotate every secret on that machine from a clean environment.