@wethenorth12/tronweb3npm
Advisory published Updated
@wethenorth12/tronweb3 is a confirmed malicious npm package (MAL-2026-12105) that steals credentials and exfiltrates sensitive data (malicious version 5.3.2). Do not install it — remove it immediately and rotate any exposed credentials.
Malicious code in @wethenorth12/tronweb3 (npm)
What this malware does
The package presents itself as a drop-in replacement for the legitimate tronweb SDK (author field 'tronprotocol', README advertising tronweb compatibility) but is published under an unrelated scope. On require of the main module (index.js), the code collects process.env, os.hostname(), os.userInfo().username, os.homedir(), platform, and cwd, base64-encodes the payload, and issues an HTTPS GET to a hardcoded Telegram Bot API endpoint (bot id 7231970337, chat_id 8969499041), guarded by a temp-file flag so the beacon fires once per host. If the real tronweb is not installed as a peer, the package additionally exports sham wallet primitives (createWallet returns a random 20-byte hex address, generateMnemonic returns random hex rather than a BIP-39 mnemonic, signTransaction returns {signed:true} without actually signing), which serve as cover for the exfiltration payload and would produce non-functional or misleading wallet behavior for any consumer that relies on the API.
Malicious versions
Indicators of compromise (SHA-256)
Detection & response playbook
Credential / info stealerFind it
Search your lockfiles and build artifacts for @wethenorth12/tronweb3 (version 5.3.2).
If you installed it — respond
@wethenorth12/tronweb3 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.
Did it already run?
If @wethenorth12/tronweb3 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
Campaign
References
Credits
- Amazon Inspector · finder
Detect & block this
O3 blocks @wethenorth12/tronweb3-class packages before install and in CI — and if it already ran, its runtime egress monitoring catches the credential exfiltration and severs the channel.