@lexborn/viem@2.53.2
Malicious code in @lexborn/viem (npm)
Analysis
@lexborn/viem is a trojanized clone of the legitimate viem Ethereum library. The package replicates the real viem's source code and metadata (pointing to the official wevm/viem repository) but is published by an unrelated attacker. The package substitutes the 'isows' WebSocket dependency with the attacker-controlled @lexborn/isows package. When a developer uses this package's WebSocket transport (createPublicClient or createWalletClient with webSocket() transport), all Ethereum RPC WebSocket connections are routed through the attacker's package, which can intercept, modify, or exfiltrate transaction data, wallet interactions, and private keys. No install script is used — the attack activates at runtime when the WebSocket transport is imported. Affected dependency: @lexborn/isows@1.0.7 replaces the legitimate isows package.
- analyzed by
- Leitwacht
- first seen
- Jun 22, 2026, 09:26 AM
- analyzed
- Jun 22, 2026, 09:28 AM
Related advisories
- node-fetch-utils@1.2.1
- hyperpure-core@1.0.0
- zomato-config@1.0.0
- zomato-sushi@1.0.0
- blinkit-core@1.0.0
- zomato-logger@1.0.0
- hyperpure@1.0.0
- zomato-espresso@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.