{"id":"MAL-2026-20348","summary":"Malicious code in t4-xorspawn-testmetest (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (46dc181d726e4b49d0bcc688f5fe6518c515d7ba8c9153f2c973e5aa33cb830c)\nOn 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\u003ctimestamp\u003e.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.\n","modified":"2026-11-23T08:30:03.880969763Z","published":"2026-11-23T08:08:27Z","database_specific":{"malicious-packages-origins":[{"modified_time":"2026-11-23T08:08:27Z","sha256":"46dc181d726e4b49d0bcc688f5fe6518c515d7ba8c9153f2c973e5aa33cb830c","source":"amazon-inspector","versions":["1.0.0"],"id":"IN-MAL-2026-023048","import_time":"2026-11-23T08:17:31.456228354Z"}]},"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/t4-xorspawn-testmetest/v/1.0.0"}],"affected":[{"package":{"name":"t4-xorspawn-testmetest","ecosystem":"npm","purl":"pkg:npm/t4-xorspawn-testmetest"},"versions":["1.0.0"],"database_specific":{"indicators":{"evidence_files":[{"path":"index.js","sha256":"6f5dc2ede4a912832d63d9d4851d2bda3ecd1b53f1884f6c61c752186af82b11","tlsh":"30f0ddc167b2a3bde30166d2d10ebb14a5b3f90148d99050e61aa5c314b0f8cca9ae69"}],"package_integrity":[{"filename":"t4-xorspawn-testmetest-1.0.0.tgz","hashes":{"sha1":"6175235ad6cce0f57771f0db89406cf356dbc7df","sha512_sri":"sha512-qDZTjRWlscEMrMj4R2iyjsCSpOjt7ihkF2cGGIjoAHWj9l+TgO/k6NqDgUDTeGKA/66Nbu+zBZLmdubCTLr7uQ=="}}]},"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/t4-xorspawn-testmetest/MAL-2026-20348.json","cwes":[{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"}]}}],"schema_version":"1.9.2","credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}