LWA-2026-10968 confirmed malware

@openzeppelin-4/contracts@1.0.0

Malicious code in @openzeppelin-4/contracts (npm)

T1195.002 · Compromise Software Supply ChainT1059.007 · JavaScriptT1552.001 · Credentials In FilesT1552.004 · Private KeysT1082 · System Information DiscoveryT1071.001 · Web ProtocolsT1041 · Exfiltration Over C2 Channel

Analysis

Combosquat of the OpenZeppelin contracts library. The preinstall and postinstall hooks both run index.js, which harvests environment variables whose names match KEY/TOKEN/SECRET/PASS/PRIVATE/MNEMONIC/WALLET/AWS/GITHUB/NPM/etc., reads credential and wallet files from the home directory (~/.aws/credentials, ~/.ssh/id_rsa, ~/.kube/config, ~/.docker/config.json, ~/.npmrc, ~/.git-credentials, Solana/Anchor/Sui/Foundry keystores, gcloud credentials) and .env files in the working directory, then POSTs the collected data as JSON to hxxps://webhook[.]site/326b0891-2093-4800-a4c1-686ce3e07b09 over TLS. The hook swallows all errors so installs never fail.

analyzed by
Leitwacht
first seen
Aug 11, 2026, 09:09 AM
analyzed
Aug 11, 2026, 09:10 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.