VYPR

pypi · Malicious package advisory

Malware

hooktest-fin

GHSA-7x78-hc9c-55h3

Malicious code in hooktest-fin (PyPI)

Details

**Severity:** Critical

**Affected versions:** `= 0.1.1`

## Source: kam193 (87e6fba5c0ac4b5359cb360a5dbf68404d0b8559bd94a9f4c33fdad09559b241)
During installation, a script to execute remote commands through a Discord bot is installed, ensuring its persistence over reboots


---

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


Campaign: 2025-11-hooktest1


Reasons (based on the campaign):


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


 - The package contains code to execute remote commands (probably limited to a specific set) on the victim's machine.


 - rat

---

Credit: [OpenSSF](https://github.com/ossf/malicious-packages) ([source](https://github.com/ossf/malicious-packages/blob/49d0cfba3689ed9b195d101d3a2a964c6a77f767/osv/malicious/pypi/hooktest-fin/MAL-2025-192685.json))

**References:**
- https://bad-packages.kam193.eu/pypi/package/hooktest-fin
- https://github.com/ossf/malicious-packages/blob/49d0cfba3689ed9b195d101d3a2a964c6a77f767/osv/malicious/pypi/hooktest-fin/MAL-2025-192685.json
- https://github.com/advisories/GHSA-7x78-hc9c-55h3

Compromised versions (1)

  • = 0.1.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.