LWA-2026-5806 confirmed malware

@velkov/viem@2.53.1

Malicious code in @velkov/viem (npm)

T1195.002 · Compromise Software Supply ChainT1059.007 · JavaScriptT1552.001 · Credentials In FilesT1105 · Ingress Tool TransferT1071.001 · Web Protocols

Analysis

Trojanized clone of the viem Ethereum library published under the @velkov scope. The package is a verbatim copy of the real viem@2.53.1 source code with one modification: the "isows" dependency (a WebSocket wrapper used by viem for all blockchain RPC connections) is aliased to @velkov/isows@1.0.7, a maliciously-controlled substitute. When applications using this package create WebSocket RPC transports (the standard way viem connects to Ethereum nodes), the import of 'isows' resolves to the attacker's code instead of the legitimate package, giving the attacker control over WebSocket connections and the ability to intercept signed transactions, private keys, and wallet communications. No lifecycle hooks are used — the attack activates at runtime on import. Also observed: @paoletti/viem@2.53.1 (same campaign, substituting @noble/hashes instead). Publisher emails use the web-library[.]net domain.

analyzed by
Leitwacht
first seen
Jun 21, 2026, 01:34 AM
analyzed
Jun 21, 2026, 01:35 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.