cvelo
P2 · HighMalware

Malicious code in t4-xorspawn-testmetest (npm)

  • MAL-2026-20348

Description

On require(), index.js reconstructs the module name 'child_process' by XOR-decoding a hex blob against a repeating 0x42 key, locates a Bun runtime at /usr/local/bin/bun or ~/.bun/bin/bun, writes a JS file to the OS temp directory (p<timestamp>.js), and spawns Bun against that file. The written file is currently empty, so no payload executes today, but the full dropper scaffolding — obfuscated child_process import, alternate-runtime discovery, tmp-file write, spawn — is wired to the module's top-level load path. Legitimate utility libraries do not need to conceal the identity of 'child_process' from static scanners, and the shape (obfuscated primitive + write-and-exec via a sibling runtime at import time) matches the npm alternate-runtime dropper pattern.

Text from the OSV record.

Affected

  • t4-xorspawn-testmetestnpm

    • No versions listed

Timeline

  1. Published

Related news

No article from the followed outlets names this vulnerability.