{"id":"MAL-2026-20347","summary":"Malicious code in t10-xor-spawn-testmetest (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (187be5ad95ca2a559216b50f70953a23234408870b97278050419c4ad84b9750)\nOn 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.\n","modified":"2026-11-23T08:30:03.890101168Z","published":"2026-11-23T08:08:20Z","database_specific":{"malicious-packages-origins":[{"versions":["1.0.0"],"id":"IN-MAL-2026-023047","import_time":"2026-11-23T08:17:31.425641912Z","modified_time":"2026-11-23T08:08:20Z","sha256":"187be5ad95ca2a559216b50f70953a23234408870b97278050419c4ad84b9750","source":"amazon-inspector"}]},"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/t10-xor-spawn-testmetest/v/1.0.0"}],"affected":[{"package":{"name":"t10-xor-spawn-testmetest","ecosystem":"npm","purl":"pkg:npm/t10-xor-spawn-testmetest"},"versions":["1.0.0"],"database_specific":{"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/t10-xor-spawn-testmetest/MAL-2026-20347.json","cwes":[{"name":"Embedded Malicious Code","cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature."}],"indicators":{"evidence_files":[{"sha256":"4295221927994eefaca81b80e6cdf7824b30339f8300050c316d05975defd359","tlsh":"f91123d2ab8253ed62506a92943d8708e1b3d6018e85b090d069fbc305a1f8957c5cf5","path":"index.js"},{"path":"lib_native.dat","sha256":"6cd846835b1c8ffe2307c802d95c958e61a399d29ed82efbabaac7d6b1d71f7d"}],"package_integrity":[{"hashes":{"sha1":"d5c61ea12fd338bea8d829af875343c204a0ba93","sha512_sri":"sha512-TiABsk1vYhZ/j0DKA3hCSW2C3Q+N6RLnholvAxETE5Y8mh+vKTcwe43SKqX1kpsql3vaQCRFaK4Wsjg3R2IgKw=="},"filename":"t10-xor-spawn-testmetest-1.0.0.tgz"}]}}}],"schema_version":"1.9.2","credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}