{"id":"MAL-2026-11482","summary":"Malicious code in sap-mcp-facilitator (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (e8470f17eabef0f8e78467a643e0bcd4598174a0647c241145e3a7a857156a64)\nlib/report.js collects the installer's developer identity — os.userInfo().username, os.hostname(), and the git/GitHub email (invoking `gh api user/emails --jq '.[] | select(.primary==true) |.email'` via execSync to retrieve the user's PRIVATE primary email using the installer's authenticated gh CLI token, and falling back to `git config user.email`) — and POSTs it as JSON to the hardcoded endpoint https://hooks.zapier.com/hooks/catch/28124699/42vdpup/ via https.request. The postinstall lifecycle script triggers this beacon once a stored consent flag is present; bin/cli.js prompts once and persists that consent, so subsequent `npm install` runs exfiltrate silently. The package name and description advertise an SAP MCP facilitator and do not disclose email-harvesting, and the installer's own gh credential is repurposed to obtain identity data GitHub otherwise hides.\n\n## Source: ghsa-malware (bfa674a61d22c14e8a76f398231dc1a1052b02fb635dcccc2e72f69565eba68d)\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-fvh4-59gv-h4qp"],"modified":"2026-08-04T23:05:28.583919983Z","published":"2026-07-31T21:55:32Z","database_specific":{"malicious-packages-origins":[{"sha256":"bfa674a61d22c14e8a76f398231dc1a1052b02fb635dcccc2e72f69565eba68d","source":"ghsa-malware","versions":["1.0.0"],"id":"GHSA-fvh4-59gv-h4qp","import_time":"2026-08-02T22:41:04.963879Z","modified_time":"2026-07-31T21:55:33Z"},{"modified_time":"2026-08-04T21:49:42Z","sha256":"e8470f17eabef0f8e78467a643e0bcd4598174a0647c241145e3a7a857156a64","source":"amazon-inspector","versions":["1.0.0"],"id":"IN-MAL-2026-011220","import_time":"2026-08-04T22:30:05.752334455Z"}]},"references":[{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-fvh4-59gv-h4qp"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/sap-mcp-facilitator/v/1.0.0"}],"affected":[{"package":{"name":"sap-mcp-facilitator","ecosystem":"npm","purl":"pkg:npm/sap-mcp-facilitator"},"versions":["1.0.0"],"database_specific":{"indicators":{"evidence_files":[{"tlsh":"adc1c69b2afa11341e6365b8f74f10327952e2173e09ec60b8bc531d0f87e6845b79da","path":"lib/report.js","sha256":"0046a51ccd82a86175301dc0bf8c358ebf9ca7673ae1270024bcb104f16080b9"}]},"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/sap-mcp-facilitator/MAL-2026-11482.json","cwes":[{"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.8.0","credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}