hooktest2 (PyPI) · Malicious Code
Affects hooktest2Source GCVE Database
Malicious package : remove hooktest2 and rotate any secrets on hosts that installed it.
Data as of 22 Nov 2026, 02:53 UTC
Malicious package
Published to PyPI · OSV MAL-2025-191483
What to do
Remove hooktest2 from every project, lockfile and image that pulls it in. Treat any host that installed it as compromised: rotate the credentials, tokens and keys it could read, from a clean machine.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| PyPIhooktest2 | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
Description
The PyPI package 'hooktest2' version 0.1.1 is identified as malicious. It executes code during installation that retrieves and runs commands from Discord, enabling remote command execution on the victim's machine. The package communicates with a domain linked to malicious activity and overrides the install command to perform these actions.