tronhap (PyPI) · Malicious Code
Affects tronhapSource GCVE Database
Malicious package : remove tronhap and rotate any secrets on hosts that installed it.
Data as of 8 Jul 2026, 13:29 UTC
Malicious package
Published to PyPI · OSV MAL-2026-6971
What to do
Remove tronhap 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 |
|---|---|---|
| PyPItronhap | 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 'tronhap' version 0.0.1 is identified as malicious software designed for private key exfiltration. It is associated with a campaign targeting cryptocurrency-related users, specifically referencing Tron (TRX). The package may impersonate legitimate libraries by cloning their readme files and has been repeatedly uploaded to PyPI. There are no known exploits in the wild at this time.