VYPR

pypi · Malicious package advisory

Malware

hooktest3

GHSA-phrx-fwxg-p9wp

Malicious code in hooktest3 (PyPI)

Details

**Severity:** Critical

**Affected versions:** `= 0.1.1`

## Source: kam193 (3d1104ab742749c40acd3c4c989dba15890db64fd22f688dea72727fbc5b9d23)
During installation, the package starts a code to retrieve and execute commands from Discord


---

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/hooktest3/MAL-2025-191761.json))

**References:**
- https://bad-packages.kam193.eu/pypi/package/hooktest3
- https://github.com/ossf/malicious-packages/blob/49d0cfba3689ed9b195d101d3a2a964c6a77f767/osv/malicious/pypi/hooktest3/MAL-2025-191761.json
- https://github.com/advisories/GHSA-phrx-fwxg-p9wp

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.