{"affected":[{"database_specific":{"cwes":[{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"},{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"}],"indicators":{"evidence_files":[{"path":"package.json","sha256":"ab342eb7ca5411389931088dec31d592ac3b5319ccee93b8e50e4ff3bf7f95ad","tlsh":"35e07d240e50533338c4467615b6d50a66a1cc2b0004740447c7206951cebb79bbbb0d"}],"package_integrity":[{"filename":"sec-test-r3b-1.0.0.tgz","hashes":{"sha1":"b61fbcce4a59bfae417b8280c35498ea3ff70ed6","sha512_sri":"sha512-qGwpSVqg8lA8Xk6rNsjOSyMPjVn/jFe/6eQlKT0YuQHyIbTsymZn74SAjYqMDeVY8r2ztCjQOU7wS/R5XC6cYA=="}}]},"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@secauditb20y/sec-test-r3b/MAL-2026-13989.json"},"package":{"ecosystem":"npm","name":"@secauditb20y/sec-test-r3b","purl":"pkg:npm/%40secauditb20y/sec-test-r3b"},"ranges":[{"events":[{"introduced":"0"}],"type":"SEMVER"}],"versions":["1.0.0"]}],"aliases":["GHSA-h95w-3ffr-98m2"],"credits":[{"contact":["inspector-research@amazon.com"],"name":"Amazon Inspector","type":"FINDER"}],"database_specific":{"malicious-packages-origins":[{"id":"IN-MAL-2026-017707","import_time":"2026-08-13T21:50:19.940159105Z","modified_time":"2026-08-13T21:23:10Z","sha256":"df7034b94531c8be5e9141c7a5cf73f552486c1b307672346a0e646e60207b7c","source":"amazon-inspector","versions":["1.0.0"]},{"id":"GHSA-h95w-3ffr-98m2","import_time":"2026-11-04T23:18:05.653952438Z","modified_time":"2026-11-04T22:54:20Z","ranges":[{"events":[{"introduced":"0"}],"type":"SEMVER"}],"sha256":"d636be92349fd4525c7de61ec6a04af7840015c30fc8e098a00e4b0d0727ac3c","source":"ghsa-malware"}]},"details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (df7034b94531c8be5e9141c7a5cf73f552486c1b307672346a0e646e60207b7c)\npackage.json declares a postinstall script that runs `node -e` to invoke fs.writeFileSync, creating /tmp/PWN_R3REAL/FIRED on the installer's machine when the package is installed. The package's main module only exports the literal value 42 and ships no native build or legitimate reason for install-time execution; the postinstall exists solely to demonstrate arbitrary code execution on the installer host at `npm install` time. The behavior fires automatically on default install and writes to a path outside the package directory, matching the shape of a proof-of-execution beacon. The package name and description self-identify as an authorized security test, but self-labeling is not a mitigation and the code path is functionally identical to a dropper marker.\n\n## Source: ghsa-malware (d636be92349fd4525c7de61ec6a04af7840015c30fc8e098a00e4b0d0727ac3c)\nAny computer that has this package installed or running should be considered fully compromised. All secrets and keys stored on that computer should be rotated immediately from a different computer. The package should be removed, but as full control of the computer may have been given to an outside entity, there is no guarantee that removing the package will remove all malicious software resulting from installing it.\n","id":"MAL-2026-13989","modified":"2026-11-04T23:30:04.738533759Z","published":"2026-08-13T21:23:10Z","references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/@secauditb20y/sec-test-r3b/v/1.0.0"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-h95w-3ffr-98m2"}],"schema_version":"1.9.2","summary":"Malicious code in @secauditb20y/sec-test-r3b (npm)"}