t4-xorspawn-testmetestnpm
Advisory published Updated
t4-xorspawn-testmetest is a confirmed malicious npm package (MAL-2026-20348) that executes malicious code on install (malicious version 1.0.0). Do not install it — remove it immediately and rotate any exposed credentials.
Malicious code in t4-xorspawn-testmetest (npm)
What this malware does
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.
Malicious versions
Indicators of compromise (SHA-256)
Detection & response playbook
Malicious packageFind it
Search your lockfiles and build artifacts for t4-xorspawn-testmetest (version 1.0.0).
If you installed it — respond
Remove t4-xorspawn-testmetest from your project and lockfile, then assume any secrets accessible to the build or runtime were exposed: rotate API keys, tokens, and credentials, and audit for unexpected outbound activity or persistence.
Did it already run?
If t4-xorspawn-testmetest was installed, its post-install payload may already have run. Removing the package does not undo that — check outbound connections and credential use from the install window onward.
Frequently asked questions
Campaign
References
Credits
- Amazon Inspector · finder
Detect & block this
O3 blocks t4-xorspawn-testmetest-class packages before install and in CI — and if it already ran, its runtime egress monitoring catches the malicious outbound activity and severs the channel.