web3logger@1.1.1
Malicious code in web3logger (npm)
Analysis
web3logger@1.1.1 is a trojanized web3 logging library that exfiltrates data passed to its exported log() function. The code is heavily obfuscated with javascript-obfuscator (dictionary array, RC4 string cipher, anti-debugging) to hide its C2 endpoint. When installed as a dependency, any data passed to log() — such as wallet keys, RPC URLs, environment variables, or other secrets in a web3/crypto project — is sent via axios to an attacker-controlled remote server. The API endpoint is constructed from multiple obfuscated and decoded strings, deliberately concealed from static analysis. The package has no install hooks (no lifecycle scripts); the exfiltration occurs at runtime when the consuming application calls the library.
- analyzed by
- Leitwacht
- first seen
- Jun 16, 2026, 01:43 AM
- analyzed
- Jun 16, 2026, 01:46 AM
Related advisories
- wao@0.41.2
- walletconnectionjs@1.1.1
- bubblestr@1.1.4
- util-free-ports@3.1.2
- ultra-base64-math@1.0.2
- txs-data@1.0.1
- toast-react-slider@1.0.0
- textify-kit@1.0.0
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.