pypi · Malicious package advisory
Malwarehandyfiles
GHSA-xx35-49rf-fp22
Malicious code in handyfiles (PyPI)
Details
**Severity:** Critical **Affected versions:** `= 0.0.1` ## Source: kam193 (381cd796d4e5fce8fb62c337374b5303e0b2466d67467efc95cbc4d7d8248dd4) During the installation, the package iterates its files and attempts to import a hidden module - which is embedded as ZIP archive in the image file --- Category: MALICIOUS - The campaign has clearly malicious intent, like infostealers. Campaign: 2024-12-handyfiles Reasons (based on the campaign): - The package overrides the install command in setup.py to execute malicious code during installation. - obfuscation --- Credit: [OpenSSF](https://github.com/ossf/malicious-packages) ([source](https://github.com/ossf/malicious-packages/blob/49d0cfba3689ed9b195d101d3a2a964c6a77f767/osv/malicious/pypi/handyfiles/MAL-2024-12282.json)) **References:** - https://bad-packages.kam193.eu/pypi/package/handyfiles - https://github.com/ossf/malicious-packages/blob/49d0cfba3689ed9b195d101d3a2a964c6a77f767/osv/malicious/pypi/handyfiles/MAL-2024-12282.json - https://github.com/advisories/GHSA-xx35-49rf-fp22
Compromised versions (1)
- = 0.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.