pypi · Malicious package advisory
Malwarehuggingleg2
GHSA-pmxx-v3fw-fc34
Malicious code in huggingleg2 (PyPI)
Details
**Severity:** Critical **Affected versions:** `= 0.1` ## Source: kam193 (19ba00b8fab08e8016af3bfb4ba9fbb18510b2aa823dfb82a46a5b3ecd477655) Installing the package starts a revshell --- Category: MALICIOUS - The campaign has clearly malicious intent, like infostealers. Campaign: 2024-12-huggingleg2 Reasons (based on the campaign): - The package contains code to create a reverse shell, allowing an attacker to execute any commands on the victim's machine. - The package overrides the install command in setup.py to execute malicious code during installation. --- Credit: [OpenSSF](https://github.com/ossf/malicious-packages) ([source](https://github.com/ossf/malicious-packages/blob/49d0cfba3689ed9b195d101d3a2a964c6a77f767/osv/malicious/pypi/huggingleg2/MAL-2025-934.json)) **References:** - https://bad-packages.kam193.eu/pypi/package/huggingleg2 - https://github.com/ossf/malicious-packages/blob/49d0cfba3689ed9b195d101d3a2a964c6a77f767/osv/malicious/pypi/huggingleg2/MAL-2025-934.json - https://github.com/advisories/GHSA-pmxx-v3fw-fc34
Compromised versions (1)
- = 0.1
Any computer that installed or ran a compromised version should be considered fully compromised. Rotate every secret on that machine from a clean environment.