{"id":"MAL-2026-6261","summary":"Malicious code in sf-storybook (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (a5a1a34bbf1dc84732509c5c5bfbd65adcd442b2665367d0c1bd39dc8301001c)\nOn `require('sf-storybook')`, index.js shells out via child_process to run `cat /etc/passwd \u003e./passwd.txt` and then POSTs the file contents via curl to `http://144.126.158.177:4325/$(whoami)/$(hostname)/` over plaintext HTTP. The package leaks the installer's username, hostname, and full /etc/passwd contents to a hardcoded bare-IP attacker endpoint. The package name impersonates the `storybook` ecosystem, ships empty author/description metadata, and contains only this exfiltration payload with no functionality matching its implied purpose — a typosquat lure with an embedded credential/host recon stealer.\n\n## Source: ossf-package-analysis (961d26175eb7b4d34d87e6cb162f4b9d5a9febcb520b24a4512406d492a829b5)\nThe OpenSSF Package Analysis project identified 'sf-storybook' @ 1.0.0 (npm) as malicious.\n\nIt is considered malicious because:\n\n- The package executes one or more commands associated with malicious behavior.\n","modified":"2026-06-24T03:31:23.587345296Z","published":"2026-06-20T23:04:18Z","database_specific":{"malicious-packages-origins":[{"sha256":"961d26175eb7b4d34d87e6cb162f4b9d5a9febcb520b24a4512406d492a829b5","source":"ossf-package-analysis","import_time":"2026-06-22T12:33:26.070635733Z","modified_time":"2026-06-20T23:04:18Z","versions":["1.0.0"]},{"sha256":"a5a1a34bbf1dc84732509c5c5bfbd65adcd442b2665367d0c1bd39dc8301001c","id":"IN-MAL-2026-007401","import_time":"2026-06-24T03:14:01.707656583Z","source":"amazon-inspector","modified_time":"2026-06-24T02:45:22Z","versions":["1.0.0"]}]},"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/sf-storybook/v/1.0.0"}],"affected":[{"package":{"name":"sf-storybook","ecosystem":"npm","purl":"pkg:npm/sf-storybook"},"versions":["1.0.0"],"database_specific":{"indicators":{"evidence_files":[{"sha256":"0438b9a3d43549f4fdd313b3a9b93ffda7ff7b53342d3e10819aadab0fd9ca1e","tlsh":"68019e1a35fb1937733b54a4da0608173646d8025135ef827fee87651fcc4648aa23c6","path":"index.js"},{"sha256":"730c1b63a3164d6307a76214dd46658d88ac5e231dc2830d4ca337be23330c0e","tlsh":"56d022200a21143305c542720c2980437330cf2f04103c0c67cf182c81df6b36dfa36c","path":"package.json"}],"package_integrity":[{"hashes":{"sha512_sri":"sha512-G0UUHgp299ylSjnNsZjivwMCxrdgRseOKtDmaL5QrwdA+BpaBkZm0hJtqYXUc50fiymJ1UX5IwNkV03s+E+7rw==","sha1":"b6aee2b114cf857ded2804223bb1d72d857b75a1"},"filename":"sf-storybook-1.0.0.tgz"}]},"cwes":[{"name":"Embedded Malicious Code","description":"The product contains code that appears to be malicious in nature.","cweId":"CWE-506"}],"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/sf-storybook/MAL-2026-6261.json"}}],"schema_version":"1.7.5","credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"},{"name":"OpenSSF: Package Analysis","contact":["https://github.com/ossf/package-analysis","https://openssf.slack.com/channels/package_analysis"],"type":"FINDER"}]}