{"id":"MAL-2026-14438","summary":"Malicious code in remove-bg-serverless-azure (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (dcbce8344eb0762c4a9ef029743efe13045422b839444b828c245a09a85fc74e)\npackage.json declares `preinstall: node index.js`, so `npm install` automatically runs index.js. index.js reads os.hostname(), os.userInfo(), the user home directory, DNS server configuration, and the contents of /etc/passwd and /etc/hosts, and POSTs the collected data over HTTPS to the hardcoded host 7iqn7pls4ly6w8valba0xcxygpmha7yw.oastify.com (a Burp Collaborator / OAST subdomain used as an attacker-controlled callback). Installing the package causes installer-side identifiers and sensitive system files to be sent to an external attacker endpoint on install.\n\n## Source: ghsa-malware (038ed421b0adefaa811442ca01d52f8cdc5003752e40d901464f8d9ccce8a8fa)\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-65rf-pp5h-8fw9"],"modified":"2026-09-09T03:30:13.427761746Z","published":"2026-08-24T16:44:46Z","database_specific":{"malicious-packages-origins":[{"modified_time":"2026-08-24T16:44:46Z","sha256":"dcbce8344eb0762c4a9ef029743efe13045422b839444b828c245a09a85fc74e","source":"amazon-inspector","versions":["1.0.1"],"id":"IN-MAL-2026-018641","import_time":"2026-08-24T16:49:14.325282905Z"},{"modified_time":"2026-09-07T16:17:42Z","ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}],"sha256":"038ed421b0adefaa811442ca01d52f8cdc5003752e40d901464f8d9ccce8a8fa","source":"ghsa-malware","id":"GHSA-65rf-pp5h-8fw9","import_time":"2026-09-08T00:15:10.267189586Z"},{"versions":["1.1.1"],"id":"IN-MAL-2026-019796","import_time":"2026-09-09T03:21:54.562193492Z","modified_time":"2026-09-09T02:47:08Z","sha256":"5a311c3bc5df7907a41d7c257f62ffdaa663fb31d6d5ee40e6da536f0110c1f4","source":"amazon-inspector"}]},"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/remove-bg-serverless-azure/v/1.0.1"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-65rf-pp5h-8fw9"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/remove-bg-serverless-azure/v/1.1.1"}],"affected":[{"package":{"name":"remove-bg-serverless-azure","ecosystem":"npm","purl":"pkg:npm/remove-bg-serverless-azure"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}],"versions":["1.0.1","1.1.1"],"database_specific":{"indicators":{"evidence_files":[{"sha256":"d0fcf3c1c47dbf9a78f4c0d5ccd12d4a296bc90dce69675763193e838376b318","tlsh":"9c41259952d917330dd210c06a0c70843399fa777169989076cf42969f869f8b7726f3","path":"index.js"}],"package_integrity":[{"hashes":{"sha512_sri":"sha512-9tFhTsivaayH84skx8nrPPwqVHNTovPiZ5lTBh0Dt0/fmGUAvsYKjMIj9Wbeg9RPooyGlSP9BGi18uJCMkdlvQ==","sha1":"002c0b9c80997d495682454d59b1a0db5eaf60da"},"filename":"remove-bg-serverless-azure-1.0.1.tgz"}]},"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/remove-bg-serverless-azure/MAL-2026-14438.json","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"},{"name":"Embedded Malicious Code","cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature."}]}}],"schema_version":"1.9.0","credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}