CRITICAL npm Malware

Malicious code in t10-xor-spawn-testmetest (npm)

MAL-2026-20347

Published · Modified

Dependency scanning

Check whether t10-xor-spawn-testmetest is in your codebase

Corgea flags malicious and compromised dependencies with reachability analysis, so you fix the packages that actually run in your application instead of working through the whole lockfile.

Description


__

Source: amazon-inspector (187be5ad95ca2a559216b50f70953a23234408870b97278050419c4ad84b9750)

On require(), index.js reads the shipped lib_native.dat, XOR-decrypts it with a hardcoded 32-byte key, brotli-decompresses the result to JavaScript, writes it to a timestamped file in os.tmpdir(), and executes it by spawning a bun binary resolved from /usr/local/bin/bun, $HOME/.bun/bin/bun, or $BUN_INSTALL/bin/bun, with errors swallowed by a try/catch. The package is self-described as a utility library, yet ships no plain source implementing that purpose; the only on-import effect is decoding and executing an opaque, encrypted blob with an alternate (non-Node) runtime, which bypasses Node-based inspection. The contents of the decoded payload are not visible to the installer and change behavior at the author's discretion.

Ready to move

Start Securing

Free, no credit card | First findings in minutes