{"id":"MAL-2026-4175","summary":"Malicious code in collected-forms-embed-js (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (b110466fd12f426709ec7f628f63304d175faddb8094d08e8448388ed3114805)\nThe package.json declares a postinstall lifecycle hook that performs reconnaissance and exfiltration on every install. The script invokes child_process to capture host identity (whoami) and reads process.env, queries https://api.ipify.org to obtain the installer's public IP, and POSTs the collected data to a subdomain under.oast.fun (an out-of-band application security testing / interaction host commonly used as exfiltration C2). Any developer or CI system running `npm install` for this package will leak host identity, environment variables, and network identifiers to the attacker-controlled callback. There is no legitimate reason for a forms-embedding library to fingerprint hosts and beacon to an OAST domain at install time.\n\n## Source: ghsa-malware (ac92e6994c361dee2371b037c52d1ed3d1b27ced5002dcbc3de7ef0c884ed91d)\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\n## Source: ossf-package-analysis (5bc706a222ff9fef4872e708bcd99cf286eaf8a11c9908c33ed9776e43d600e6)\nThe OpenSSF Package Analysis project identified 'collected-forms-embed-js' @ 1.0.1 (npm) as malicious.\n\nIt is considered malicious because:\n\n- The package communicates with a domain associated with malicious activity.\n\n- The package executes one or more commands associated with malicious behavior.\n","aliases":["GHSA-9j37-8wjm-pcxq"],"modified":"2026-06-01T10:16:40.474113649Z","published":"2026-05-19T19:11:15Z","database_specific":{"malicious-packages-origins":[{"modified_time":"2026-05-19T19:11:15Z","sha256":"5bc706a222ff9fef4872e708bcd99cf286eaf8a11c9908c33ed9776e43d600e6","versions":["1.0.1"],"source":"ossf-package-analysis","import_time":"2026-05-19T19:37:29.899134693Z"},{"modified_time":"2026-05-19T19:15:57Z","sha256":"926a7090e592448b33ec1f07ff48b015e748055126805ba3cea7ce1105769191","versions":["1.0.0"],"source":"ossf-package-analysis","import_time":"2026-05-19T19:37:30.071821153Z"},{"modified_time":"2026-05-19T20:02:44Z","sha256":"5367f129b0df5435a98c74c0d1ba7a84f585fdf5b418594dde6b5e4b8fc93d4a","versions":["1.0.5"],"source":"ossf-package-analysis","import_time":"2026-05-19T20:39:27.292271364Z"},{"modified_time":"2026-05-20T15:31:34Z","sha256":"fd46757bbdd55dc8cff41c5263528b77a9aa417f2a2a5ce556236683affee92b","versions":["8.0.5"],"source":"ossf-package-analysis","import_time":"2026-05-20T15:47:05.727413781Z"},{"id":"IN-MAL-2026-003645","import_time":"2026-05-26T05:51:01.744063603Z","sha256":"b110466fd12f426709ec7f628f63304d175faddb8094d08e8448388ed3114805","versions":["8.0.5"],"source":"amazon-inspector","modified_time":"2026-05-20T22:34:43Z"},{"id":"IN-MAL-2026-003646","import_time":"2026-05-26T05:51:01.885491472Z","sha256":"4fbefab332886a9a7e192a8284c8cdb60134f4382be77b5932e9de16fc9f2f35","versions":["8.0.5"],"source":"amazon-inspector","modified_time":"2026-05-20T22:34:43Z"},{"id":"GHSA-9j37-8wjm-pcxq","modified_time":"2026-06-01T09:10:45Z","sha256":"ac92e6994c361dee2371b037c52d1ed3d1b27ced5002dcbc3de7ef0c884ed91d","import_time":"2026-06-01T10:04:39.151978143Z","source":"ghsa-malware","ranges":[{"events":[{"introduced":"0"}],"type":"SEMVER"}]}]},"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/collected-forms-embed-js/v/8.0.5"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-9j37-8wjm-pcxq"}],"affected":[{"package":{"name":"collected-forms-embed-js","ecosystem":"npm","purl":"pkg:npm/collected-forms-embed-js"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}],"versions":["1.0.1","1.0.0","1.0.5","8.0.5"],"database_specific":{"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/collected-forms-embed-js/MAL-2026-4175.json","cwes":[{"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"}],"indicators":{"domains":["api.ipify.org","lszakfghwnvxspyfcmaabd1css99rnq3w.oast.fun"],"package_integrity":[{"hashes":{"sha512_sri":"sha512-Qpki2f43yNco6tyyqsefAD5P191hxQw95GG5UoHXxvifS/LYIJXU7h7RRbSxCwaLOdP3XGrN+8SIX4KB5BFWaQ==","sha1":"3574f0ee176afb5af8ec6839e599423268628394"},"filename":"collected-forms-embed-js-8.0.5.tgz"}],"evidence_files":[{"path":"package.json","sha256":"43b351a44fbe0ba1a767087bd117f28852ccd629578ae793c6bae3f860b4a7a6","tlsh":"251142e08980dab9e7d147f97946d541fd23e70a22114cb0e86c17818b441b46197f9c"}]}}}],"schema_version":"1.7.5","credits":[{"name":"Amazon Inspector","contact":["actran@amazon.com"],"type":"FINDER"},{"name":"OpenSSF: Package Analysis","contact":["https://github.com/ossf/package-analysis","https://openssf.slack.com/channels/package_analysis"],"type":"FINDER"}]}