web3-core-utils@4.3.5
Malicious code in web3-core-utils (npm)
Analysis
A trojanized clone of the legitimate web3-core-utils package that acts as an information stealer. When the package is imported (require'd), it runs a heavily obfuscated payload that: (1) decrypts saved browser passwords from Chrome, Edge, and Brave using Windows DPAPI via the `@primno/dpapi` library by reading browser login data from the LOCALAPPDATA directory; (2) enumerates the extension storage of over 50 crypto-wallet browser extensions including Metamask, Coinbase Wallet, Phantom, Trust Wallet, BinanceChain, Keplr, Exodus, TronLink, Ronin, and OKX Wallet by reading their leveldb directories; (3) collects Slack local storage data (sensitive workspace tokens); (4) system-fingerprints the host via `wmic csproduct get uuid` and `os.hostname()`; and (5) exfiltrates all stolen data by zipping it with `powershell Compress-Archive` and uploading it to a Dropbox account via the `hxxps://content[.]dropboxapi[.]com/2/files/upload` API endpoint using hardcoded Dropbox OAuth credentials (APP_KEY, APP_SECRET, REFRESH_TOKEN). The exfil target is the Dropbox cloud storage API — no external C2 hostname beyond api[.]dropboxapi[.]com / content[.]dropboxapi[.]com.
- analyzed by
- Leitwacht
- first seen
- Jun 16, 2026, 12:28 AM
- analyzed
- Jun 16, 2026, 12:29 AM
Related advisories
- textdecode@1.2.7
- ne-logger@0.5.0
- rollup-packages-polyfill-core@0.5.0
- opentelemetry-plugin-graphql-example@55.33.111
- opentelemetry-contrib-scripts@55.33.111
- mongodb-example@55.33.111
- vps-adapter-core@1.0.0
- svg2text@3.0.0
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.