{"id":"MAL-2026-20280","summary":"Malicious code in stream-buffer-utils-testmetest (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (3f98853d3cbad88cc14f8d522013ad661d83bee6b5e895ecd48931e498a618ac)\nOn require(), index.js brotli-decompresses a hex-encoded blob and pipes the decoded script into a `bun -` subprocess, resolving the Bun binary from /usr/local/bin/bun, $HOME/.bun/bin/bun, and $BUN_INSTALL/bin/bun. The payload is shipped as opaque compressed bytes rather than readable source, and executes through a sibling runtime so the code path is not visible to Node-source review of the shipped file. The package advertises itself as a generic utility library, which does not require decoding and executing an embedded blob under an alternate runtime at module load. The current decoded content is a trivial console.log, but the delivery mechanism supports swapping in arbitrary code in any subsequent publish while keeping the Node-level file structurally unchanged. The package name has a placeholder/test shape (stream-buffer-utils-testmetest).\n","modified":"2026-11-20T02:30:08.874887326Z","published":"2026-11-20T02:09:39Z","database_specific":{"malicious-packages-origins":[{"id":"IN-MAL-2026-022920","import_time":"2026-11-20T02:16:23.115320903Z","modified_time":"2026-11-20T02:09:39Z","sha256":"3f98853d3cbad88cc14f8d522013ad661d83bee6b5e895ecd48931e498a618ac","source":"amazon-inspector","versions":["1.0.0"]}]},"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/stream-buffer-utils-testmetest/v/1.0.0"}],"affected":[{"package":{"name":"stream-buffer-utils-testmetest","ecosystem":"npm","purl":"pkg:npm/stream-buffer-utils-testmetest"},"versions":["1.0.0"],"database_specific":{"cwes":[{"description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code","cweId":"CWE-506"}],"indicators":{"evidence_files":[{"path":"index.js","sha256":"93ae01268a4d74435a7be5b9a43ba0b40abdc2ca118ff5cad22a6ddbe1aaa705","tlsh":"98f041e893d37fd877822382903d4a1a68b3c1000749d0a0c8a672d72ae4b8d5b468f2"}],"package_integrity":[{"filename":"stream-buffer-utils-testmetest-1.0.0.tgz","hashes":{"sha1":"895704f07c15f70bb92f38b926ea451c19eedfcb","sha512_sri":"sha512-s8JnoFz+SXs0jV1tEBt/trEGGIJJ2iphd7xwKZPvsBcQm4KoVPLmPgX2OXIL7VrLrTMaCfIytTkpkzWlCI37NA=="}}]},"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/stream-buffer-utils-testmetest/MAL-2026-20280.json"}}],"schema_version":"1.9.2","credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}