Malicious code in trongridi (PyPI)
Description
The PyPI package 'trongridi' version 0.0.1 is a malicious package designed to exfiltrate TRON cryptocurrency wallet private keys. It exposes a public function that sends the caller's private key to a hardcoded remote endpoint controlled by the attacker. Additionally, the package includes a remote control mechanism that allows the attacker to influence the package's behavior. The package name is a typosquat of the legitimate 'trongrid' TRON gateway, potentially tricking users into exposing sensitive wallet secrets.
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The 'trongridi' PyPI package (version 0.0.1) contains malicious code that exfiltrates TRON wallet private keys by sending them as JSON to a hardcoded ngrok endpoint. It exposes a function 'perm(private_key)' that performs this exfiltration. A secondary endpoint on the same ngrok tunnel acts as a remote control channel, gating the function's return value and allowing the attacker to control the package's behavior remotely. The package name is a deliberate typosquat of the legitimate 'trongrid' TRON gateway, aiming to deceive users into supplying their wallet private keys. This campaign is categorized as malicious with intent to steal cryptocurrency keys.
Potential Impact
If a user calls the exposed function with their TRON wallet private key, the key is sent to an attacker-controlled server, granting the attacker full control over the associated TRON funds. This results in a complete compromise of the victim's cryptocurrency assets linked to the exposed private key.
Mitigation Recommendations
Users should avoid installing or using the 'trongridi' package, especially version 0.0.1. Verify package authenticity by checking the official 'trongrid' package and avoid typosquatted or suspicious packages. Remove any installations of 'trongridi' immediately. Since this is a malicious package rather than a software vulnerability, no patch is applicable. Users who have exposed private keys via this package should consider their wallets compromised and take appropriate steps such as transferring funds to new wallets with secure keys.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-15858
- Osv Schema Version
- 1.7.4
- Ecosystems
- ["PyPI"]
Threat ID: 6a9ad4f4acd9273b49b67987
Added to database: 09/04/2026, 14:25:56 UTC
Last enriched: 09/07/2026, 16:09:00 UTC
Last updated: 10/04/2026, 07:03:14 UTC
Views: 33
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.