VYPR

pypi · Malicious package advisory

Malware

libsock

GHSA-fgx8-39wj-49h8

Malicious code in libsock (PyPI)

Details

**Severity:** Critical

**Affected versions:** `= 1.1.3`

## Source: kam193 (8894e90cf943b19a12209f27fbd96009bc1c0c63af51f723208570e1afae2c47)
---

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/libsock/MAL-2024-5325.json))

**References:**
- https://bad-packages.kam193.eu/pypi/package/libsock
- https://github.com/ossf/malicious-packages/blob/49d0cfba3689ed9b195d101d3a2a964c6a77f767/osv/malicious/pypi/libsock/MAL-2024-5325.json
- https://medium.com/checkmarx-security/python-packages-leverage-github-to-deploy-fileless-malware-b6c281dea58f
- https://security.snyk.io/vuln/SNYK-PYTHON-LIBSOCK-6139261
- https://www.reversinglabs.com/blog/malware-leveraging-public-infrastructure-like-github-on-the-rise
- https://github.com/advisories/GHSA-fgx8-39wj-49h8

Compromised versions (1)

  • = 1.1.3

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