pypi · Malicious package advisory
Malwarehooktest2
MAL-2025-191483
Malicious code in hooktest2 (PyPI)
Details
--- _-= Per source details. Do not edit below this line.=-_ ## 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.
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.