{"id":"MAL-2026-13111","summary":"Malicious code in bpm-foundation-husky (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (21475dd98fee2f2d3e7494802e5ae0a3b1db091e1abeb496d71091bbd73e7956)\nindex.js unconditionally requires _runtime.js on module load. _runtime.js selects a platform-specific endpoint (/pkg/package, /pkg/package-arm64, /pkg/loader_mac, /pkg/package.exe), fetches a binary over HTTPS from one of four hardcoded *.workers.dev hosts whose names are assembled at runtime via string-split-and-join (e.g. [\"oob-worker.cf99-9b3.worke\",\"rs.de\",\"v\"].join(\"\")), with a DNS TXT-record fallback channel to *.dl.wel1.ru that pulls a base64-encoded payload in chunks and reassembles it. The fetched bytes are written to /var/tmp/.cache_\u003crand\u003e on Unix or %TEMP%\\dotnet_diag_\u003crand\u003e.exe on Windows, chmod 0755'd, and spawned detached via /bin/sh -c or cmd.exe. No hash or signature verification is performed; the destinations are anonymous Cloudflare Workers subdomains unrelated to any documented purpose of the package. A once-per-~6h marker file limits re-execution to evade detection. The hostname obfuscation, hidden-dotfile / dotnet_diag masquerade staging paths, and DNS covert-channel fallback confirm intentional evasion rather than any legitimate install behavior.\n","modified":"2026-08-05T15:52:28.435492354Z","published":"2026-08-05T14:20:22Z","database_specific":{"malicious-packages-origins":[{"versions":["35.7.6"],"id":"IN-MAL-2026-015262","import_time":"2026-08-05T15:19:41.326234823Z","modified_time":"2026-08-05T14:20:22Z","sha256":"21475dd98fee2f2d3e7494802e5ae0a3b1db091e1abeb496d71091bbd73e7956","source":"amazon-inspector"}]},"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/bpm-foundation-husky/v/35.7.6"}],"affected":[{"package":{"name":"bpm-foundation-husky","ecosystem":"npm","purl":"pkg:npm/bpm-foundation-husky"},"versions":["35.7.6"],"database_specific":{"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/bpm-foundation-husky/MAL-2026-13111.json","cwes":[{"name":"Embedded Malicious Code","cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature."}],"indicators":{"evidence_files":[{"tlsh":"fab1946605aa70188bb0dbe4c6179415f65af6633381d198fb9c95d84fb312483f2efc","path":"_runtime.js","sha256":"5e0d38d1ccd5541b8078918c5ef1893867ab46f1f5451d82a58596a33286039f"}],"package_integrity":[{"hashes":{"sha1":"96be2ccdaa94e3168c8747b30dd76e7ff1687229","sha512_sri":"sha512-DgDZnwFOlDznrVBGspRSTk6ieuNHLkaZ3AbJSVLFNbs39UxtaFLJggT5UyuTMGn4Ql6m3EOUki5EZ69BV1rfyw=="},"filename":"bpm-foundation-husky-35.7.6.tgz"}]}}}],"schema_version":"1.8.0","credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}