pypi · Malicious package advisory
Malwarehooktest2
GHSA-wr8c-3hxg-f4qg
Malicious code in hooktest2 (PyPI)
Details
**Severity:** Critical **Affected versions:** `= 0.1.1` ## Source: kam193 (207bb5790445a690e4cbb75453026def57279287f88d6c54c7af956e3ba89e1c) 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 ## Source: ossf-package-analysis (4f2601a65663badae35e814ced0812aa9618d4a318fb46f045721e67043d9957) The OpenSSF Package Analysis project identified 'hooktest2' @ 0.1.1 (pypi) as malicious. It is considered malicious because: - The package communicates with a domain associated with malicious activity. --- Credit: [OpenSSF](https://github.com/ossf/malicious-packages) ([source](https://github.com/ossf/malicious-packages/blob/49d0cfba3689ed9b195d101d3a2a964c6a77f767/osv/malicious/pypi/hooktest2/MAL-2025-191483.json)) **References:** - https://bad-packages.kam193.eu/pypi/package/hooktest2 - https://github.com/ossf/malicious-packages/blob/49d0cfba3689ed9b195d101d3a2a964c6a77f767/osv/malicious/pypi/hooktest2/MAL-2025-191483.json - https://github.com/advisories/GHSA-wr8c-3hxg-f4qg
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.