NIST deprecates RSA-2048 from 2030. Find every one of them before attackers do.
Malicious package

hooktest2PyPI

Advisory published Updated

hooktest2 is a confirmed malicious PyPI package (MAL-2025-191483) that steals credentials and exfiltrates sensitive data (malicious version 0.1.1). Do not install it — remove it immediately and rotate any exposed credentials.

Malicious code in hooktest2 (PyPI)

MAL-2025-191483
Immediate action
Remove the package, then rotate any secrets the build/runtime could reach.
pip uninstall hooktest2

What this malware does

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

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.

Malicious versions

1 flagged
0.1.1

Indicators of compromise (SHA-256)

4f2601a65663badae35e814ced0812aa9618d4a318fb46f045721e67043d9957
5620ff22dfb87011ca790d80b0ba39953cfda43853a70acf0ea4926e64fdeb7d
207bb5790445a690e4cbb75453026def57279287f88d6c54c7af956e3ba89e1c

Detection & response playbook

Credential / info stealer
  1. Find it

    Search your lockfiles and build artifacts for hooktest2 (version 0.1.1).

  2. If you installed it — respond

    hooktest2 is built to steal secrets, so assume every credential the build or runtime could read is compromised. Remove it from your project and lockfile, then rotate ALL exposed secrets — npm/registry tokens, cloud keys, CI/CD secrets, SSH keys, and any .env values — from a known-clean machine. Audit logs for unauthorized use of those credentials.

  3. Did it already run?

    If hooktest2 was installed, its post-install payload may already have run. Removing the package does not undo that — check outbound connections and credential use from the install window onward.

Frequently asked questions

No. hooktest2 on PyPI has been identified as a malicious package (version 0.1.1 flagged). It should be removed immediately — do not install or keep it in your dependency tree.

Campaign

2025-11-hooktest1

References

Credits

  • Kamil Mańkowski (kam193)
  • OpenSSF: Package Analysis · finder

Detect & block this

O3 blocks hooktest2-class packages before install and in CI — and if it already ran, its runtime egress monitoring catches the credential exfiltration and severs the channel.

Explore

hooktest2 (PyPI) malicious package — MAL-2025-191483 | O3 Security