npm · Malicious package advisory
Malware@wizloft/harness-validation
GHSA-j9qg-xcv6-9cp8
Malicious code in @wizloft/harness-validation (npm)
Details
**Severity:** Critical **Affected versions:** `= 0.1.1-alpha.3` ## Source: amazon-inspector (67b0fc0f25eb3d7852b52d7e7db50071ac08ddfb1965df306bbf87ebf295cbe1) dist/index.js appends a heavily obfuscated obfuscator.io-style payload (string array _0x240a of length 303, decoder _0x4963, string-array rotation) after the clean TypeScript-compiled validation code. None of this obfuscated code is declared in dist/index.d.ts and it executes at top level on `import '@wizloft/harness-validation'`. Decoded string fragments include Ethereum RPC / block-explorer hostnames (`h.drpc.org`, `pc.io/eth`, `stapi.io`), a hardcoded attacker Ethereum address (`0xa322E5f3...`), Etherscan-style query parameters (`?module=account`, `filterby=from`), a spoofed browser User-Agent, and `application/json` / `content-encoding` request framing. The payload queries the block explorer for transactions from the hardcoded wallet, extracts a URL/payload from the transaction data, then fetches and executes the resolved content — a blockchain-based dead-drop that lets the publisher rotate the delivered code by posting a new transaction from that wallet, giving them a persistent mutable remote-code channel against every process that imports the library. Sibling packages in the @wizloft/* namespace (@wizloft/harness-evidence, @wizloft/harness-kernel) are declared dependencies at matching alpha versions and exhibit the same trojanized-library shape. --- Credit: [OpenSSF](https://github.com/ossf/malicious-packages) ([source](https://github.com/ossf/malicious-packages/blob/212ab477a3bdce7d9f5412f6647f735d6aecceb6/osv/malicious/npm/@wizloft/harness-validation/MAL-2026-14289.json)) **References:** - https://github.com/ossf/malicious-packages/blob/212ab477a3bdce7d9f5412f6647f735d6aecceb6/osv/malicious/npm/@wizloft/harness-validation/MAL-2026-14289.json - https://www.npmjs.com/package/@wizloft/harness-validation/v/0.1.1-alpha.3 - https://github.com/advisories/GHSA-j9qg-xcv6-9cp8
Compromised versions (1)
- = 0.1.1-alpha.3
Any computer that installed or ran a compromised version should be considered fully compromised. Rotate every secret on that machine from a clean environment.