{"schema_version":"1.9.0","id":"MAL-2026-17564","published":"2026-10-05T03:34:20Z","modified":"2026-10-25T15:30:04.593980133Z","aliases":["GHSA-x5qq-j2hm-34m3"],"summary":"Malicious code in tostpro (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (7785c0ac37ad4bb74abc644be2a5fc48bdb0d1248027e607fdf13ddaaa59d546)\nPackage tostpro@99.101.0 declares scripts.preinstall='sh./rce_poc.sh'. On install, the shipped shell script runs id/hostname/pwd and appends a timestamped line to./RCE_POC_MARKER.txt in the installer's working directory. The script performs no network I/O, reads no credentials or environment, writes nothing outside the install tree, and installs no persistence. The declared main entry dist/index.js is not shipped in the tarball, so the package has no library/import-time behavior; the preinstall marker write is its only effect. The README identifies the package as a security-research canary demonstrating dependency-confusion exposure for an internal name, consistent with the implausibly high version (99.101.0) used to win resolution against an internal package. The preinstall execution path is a real supply-chain concern in principle because a future version could replace the benign marker with a hostile payload, but this version's shipped payload produces no attacker benefit and no destructive action against the installer.\n\n## Source: ghsa-malware (95a0ca1794b466d8ca8d84b64429987b6683b2b316794f522dc160bf35bce216)\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","affected":[{"package":{"name":"tostpro","ecosystem":"npm","purl":"pkg:npm/tostpro"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}],"versions":["100.6.0","100.2.0","100.7.0","99.101.0"],"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"},{"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"},{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"}],"indicators":{"evidence_files":[{"path":"test.sh","sha256":"38cf91c2ae4bff8539681d75e477e3f8f6eb4250219cb526b5ec44211cab09fb","tlsh":"5b0123b345646374ddf908b31a5d53e6c2b5e05a857358fc62ef510513026e4223bd25"},{"path":"package.json","sha256":"bb355185dddb75d04c935ca3aff985b55a1d95e83e3712d4dcc55b1deacb573a","tlsh":"fce09aa88a219d3300c8e5a20ea6d54ba560ae5b82207d5d366b400c4b5c6a782ff6fd"}],"package_integrity":[{"filename":"tostpro-100.6.0.tgz","hashes":{"sha1":"3dcdab6d3874d5549ed897121b63cf7960a264ce","sha512_sri":"sha512-rqPzmJ3hKkAvUMYl43S+7VC4xWYdpoogKYKetCkDJAoHiKTLrilBMJqvZGQuGKDH3Wyv62KS8FENFP/oADmfbw=="}}]},"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/tostpro/MAL-2026-17564.json"}}],"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/tostpro/v/100.6.0"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/tostpro/v/100.2.0"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/tostpro/v/100.7.0"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-x5qq-j2hm-34m3"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/tostpro/v/99.101.0"}],"database_specific":{"malicious-packages-origins":[{"id":"IN-MAL-2026-021010","import_time":"2026-10-05T03:57:38.469492404Z","modified_time":"2026-10-05T03:34:58Z","sha256":"1c6e05f2f9962c27ba782116a27f8da86a29c6fc7d06c38a6bf79658f25aaaf5","source":"amazon-inspector","versions":["100.6.0"]},{"id":"IN-MAL-2026-021006","import_time":"2026-10-05T03:57:38.16135054Z","modified_time":"2026-10-05T03:34:20Z","sha256":"2b31f6e946441400814984e1285717f9b2ee7fe5dacb7f0433f89396648a6183","source":"amazon-inspector","versions":["100.2.0"]},{"id":"IN-MAL-2026-021457","import_time":"2026-10-11T17:15:52.319338259Z","modified_time":"2026-10-11T16:55:58Z","sha256":"2ffc34e5a72ec818792020f55f95d3c2a344ac7554faef1ce0fd36b119fbfb2d","source":"amazon-inspector","versions":["100.7.0"]},{"id":"GHSA-x5qq-j2hm-34m3","import_time":"2026-10-20T22:24:14.791700143Z","modified_time":"2026-10-20T21:44:34Z","ranges":[{"events":[{"introduced":"0"}],"type":"SEMVER"}],"sha256":"95a0ca1794b466d8ca8d84b64429987b6683b2b316794f522dc160bf35bce216","source":"ghsa-malware"},{"id":"IN-MAL-2026-021699","import_time":"2026-10-25T15:15:14.956788871Z","modified_time":"2026-10-25T15:07:19Z","sha256":"7785c0ac37ad4bb74abc644be2a5fc48bdb0d1248027e607fdf13ddaaa59d546","source":"amazon-inspector","versions":["99.101.0"]}]},"credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}