LWA-2026-5239 confirmed malware

svg2text@3.0.0

Malicious code in svg2text (npm)

T1195.002 · Compromise Software Supply ChainT1059.007 · JavaScriptT1082 · System Information DiscoveryT1555.003 · Credentials from Web BrowsersT1552.001 · Credentials In FilesT1056.001 · KeyloggingT1071.001 · Web ProtocolsT1041 · Exfiltration Over C2 Channel

Analysis

svg2text@3.0.0 is a trojanized npm package that presents itself as a Web Crypto SVG bitmap encryption library for the browser, while shipping a Chrome extension wallet data stealer. The malicious code lives in lib/layout-runtime.js, reachable via the svg2text/runtime sub-entry point. When loaded in a Chrome extension context, it: (1) reads chrome.storage.local and IndexedDB data targeting Metamask vault structures (password salt, cipher, MAC, keyring controller data, seed phrases) and Solflare wallet data; (2) reads all localStorage entries; (3) hooks Storage.prototype.setItem to capture ongoing writes; (4) POSTs the stolen data as a JSON body to hxxps://ipcontext[.]info/json. The C2 response is used to persist a session profile ID in chrome.storage.local under key "__sid". The stolen data includes wallet seed phrases ("!wallet!seed", "general_mnemonic"), encrypted mnemonics, private keys, and account lists. The package also contains genuine SVG crypto code as a decoy facade in its main entry point (lib/index.js).

analyzed by
Leitwacht
first seen
Jun 14, 2026, 11:18 AM
analyzed
Jun 14, 2026, 11:21 AM

Related advisories

browse all confirmed advisories →

Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.