pypi · Malicious package advisory
Malwarehelmet-fastapi
GHSA-qqq3-22rv-h57g
Malicious code in helmet-fastapi (PyPI)
Details
**Severity:** Critical **Affected versions:** `= 1.2` ## Source: kam193 (c1f805932ecbcd95197e98c6e2336eb773252abf5615fe135076d1848cb90395) Package contains hidden code adding a backdoor - a WebSocket path handler which will execute commands sent by an attacker knowing the path. In addition, it adds a log handler to remove related access logs. --- Category: MALICIOUS - The campaign has clearly malicious intent, like infostealers. Campaign: 2025-04-helmet-fastapi Reasons (based on the campaign): - backdoor - obfuscation --- Credit: [OpenSSF](https://github.com/ossf/malicious-packages) ([source](https://github.com/ossf/malicious-packages/blob/49d0cfba3689ed9b195d101d3a2a964c6a77f767/osv/malicious/pypi/helmet-fastapi/MAL-2025-191752.json)) **References:** - https://bad-packages.kam193.eu/pypi/package/helmet-fastapi - https://github.com/ossf/malicious-packages/blob/49d0cfba3689ed9b195d101d3a2a964c6a77f767/osv/malicious/pypi/helmet-fastapi/MAL-2025-191752.json - https://github.com/advisories/GHSA-qqq3-22rv-h57g
Compromised versions (1)
- = 1.2
Any computer that installed or ran a compromised version should be considered fully compromised. Rotate every secret on that machine from a clean environment.