VYPR

pypi · Malicious package advisory

Malware

libsocks5

GHSA-w357-7845-c2cg

Malicious code in libsocks5 (PyPI)

Details

**Severity:** Critical

**Affected versions:** `= 1.7.4`

## Source: kam193 (f9d745820f944dd4aaf916168db7546fdd4689ac873f85166e92e87329caa3f9)
---

Category: MALICIOUS - The campaign has clearly malicious intent, like infostealers.


Campaign: 2023-11-update-information-endpoint


Reasons (based on the campaign):


 - obfuscation


 - The package overrides the install command in setup.py to execute malicious code during installation.


 - typosquatting

---

Credit: [OpenSSF](https://github.com/ossf/malicious-packages) ([source](https://github.com/ossf/malicious-packages/blob/49d0cfba3689ed9b195d101d3a2a964c6a77f767/osv/malicious/pypi/libsocks5/MAL-2024-5326.json))

**References:**
- https://bad-packages.kam193.eu/pypi/package/libsocks5
- https://github.com/ossf/malicious-packages/blob/49d0cfba3689ed9b195d101d3a2a964c6a77f767/osv/malicious/pypi/libsocks5/MAL-2024-5326.json
- https://medium.com/checkmarx-security/python-packages-leverage-github-to-deploy-fileless-malware-b6c281dea58f
- https://security.snyk.io/vuln/SNYK-PYTHON-LIBSOCKS5-6139260
- https://www.reversinglabs.com/blog/malware-leveraging-public-infrastructure-like-github-on-the-rise
- https://github.com/advisories/GHSA-w357-7845-c2cg

Compromised versions (1)

  • = 1.7.4

Any computer that installed or ran a compromised version should be considered fully compromised. Rotate every secret on that machine from a clean environment.