{"id":"MAL-2026-12787","summary":"Malicious code in dynstrg-howto (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (800fab99d95f1a2cef6ebf269ca240bf60518735cfb58c7c24b6a8474c72ee77)\npackage.json declares a preinstall hook that runs index.js on npm install. index.js collects the installer's hostname, username, home directory, DNS server list, and reads /etc/passwd and /etc/hosts, then HTTPS-POSTs the collected JSON to the hardcoded out-of-band endpoint idzskk7dl8mrfoqx6thyhegqbhha50tp.oastify.com (Burp Collaborator subdomain). Execution is automatic on default install; the destination is attacker-controlled and unrelated to any declared package purpose.\n\n## Source: ghsa-malware (687ddbe581731d5da84cb2a0e04508c31995cbc7fdd378b53090ac8b9a51a0d2)\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","aliases":["GHSA-p2vx-mw75-76fw"],"modified":"2026-09-09T03:00:04.920727279Z","published":"2026-08-05T13:15:13Z","database_specific":{"malicious-packages-origins":[{"import_time":"2026-08-05T14:19:45.414421932Z","modified_time":"2026-08-05T13:15:13Z","sha256":"800fab99d95f1a2cef6ebf269ca240bf60518735cfb58c7c24b6a8474c72ee77","source":"amazon-inspector","versions":["1.0.1"],"id":"IN-MAL-2026-014944"},{"source":"ghsa-malware","id":"GHSA-p2vx-mw75-76fw","import_time":"2026-09-08T00:15:11.418476124Z","modified_time":"2026-09-07T16:17:41Z","ranges":[{"events":[{"introduced":"0"}],"type":"SEMVER"}],"sha256":"687ddbe581731d5da84cb2a0e04508c31995cbc7fdd378b53090ac8b9a51a0d2"},{"source":"amazon-inspector","versions":["1.1.1"],"id":"IN-MAL-2026-019775","import_time":"2026-09-09T02:44:24.206489347Z","modified_time":"2026-09-09T02:44:00Z","sha256":"545d5d0e2e8e5ec332762e5afca7db5ad6f8762b0fc5ef5b0739818452497ce3"}]},"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/dynstrg-howto/v/1.0.1"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-p2vx-mw75-76fw"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/dynstrg-howto/v/1.1.1"}],"affected":[{"package":{"name":"dynstrg-howto","ecosystem":"npm","purl":"pkg:npm/dynstrg-howto"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}],"versions":["1.0.1","1.1.1"],"database_specific":{"cwes":[{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"},{"description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code","cweId":"CWE-506"},{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"}],"indicators":{"evidence_files":[{"tlsh":"4a412399a2c917330dd214c0aa0c70842399fa777159e99076df4397af869f8b7326f3","path":"index.js","sha256":"460460430d93d4d48446d86cd0d16ae29ddac7a559191d4c46b5d68853348b69"}]},"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/dynstrg-howto/MAL-2026-12787.json"}}],"schema_version":"1.9.0","credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}