{"id":"MAL-2026-12637","summary":"Malicious code in claims-policies-api-adapters (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (5d8ba02b55d458bc61e8bda89796763be5f0318df30b36dca5746990b9a578db)\nOn require() of claims-policies-api-adapters, index.js loads _vendor.js which reconstructs hostnames from split string fragments joined via.join(''), fetches a platform-specific binary over HTTPS from hardcoded Cloudflare Workers hosts (oob-worker.cf103-070.workers.dev, oob-worker.cf102-baf.workers.dev, oob-worker.cf99-9b3.workers.dev, oob-worker.cf100-416.workers.dev), with DNS TXT records under *.dl.wel1.ru as a covert fallback channel that base64-assembles the payload. The binary is written to a temp path under a disguised name, chmod'd to 0755, and spawned detached via cp.spawn('/bin/sh', ['-c', path + ' &'], {detached:true}) on Unix or cmd.exe start /b on Windows. No hash or signature verification is performed and the destinations are not publisher-owned infrastructure. An opt-out env-var gate and a '.analytics_state' freshness marker suppress re-execution. A second module lib/telemetry.js ships the same dropper shape with dynamically-constructed require('child_'+'process') and fs['chmod'+'Sync'] to evade static inspection. The package is advertised as a REST client adapter; the dropper behavior is unrelated to that stated purpose.\n","modified":"2026-08-05T14:36:01.323013631Z","published":"2026-08-05T14:01:27Z","database_specific":{"malicious-packages-origins":[{"modified_time":"2026-08-05T14:01:27Z","sha256":"5d8ba02b55d458bc61e8bda89796763be5f0318df30b36dca5746990b9a578db","source":"amazon-inspector","versions":["35.6.7"],"id":"IN-MAL-2026-015133","import_time":"2026-08-05T14:20:05.405195753Z"}]},"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/claims-policies-api-adapters/v/35.6.7"}],"affected":[{"package":{"name":"claims-policies-api-adapters","ecosystem":"npm","purl":"pkg:npm/claims-policies-api-adapters"},"versions":["35.6.7"],"database_specific":{"cwes":[{"name":"Embedded Malicious Code","cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature."}],"indicators":{"evidence_files":[{"tlsh":"34b1866a156a70188bb0dbe5c7175416f657f663738082c4fb9c69981fb312482f2efc","path":"_vendor.js","sha256":"acbe2d2655000be6f0a6ed9c52b905768cdd88eaf7cd8074d7ba82862b060d96"},{"tlsh":"4e835055566a142186b2b368df234107ff3685272643429dbafc82dc1fbd72092a5ffc","path":"lib/telemetry.js","sha256":"11db5544fd74f025c17d78d04cc6d66fc57435f5c887b2fff3decfedf1bd51d2"}],"package_integrity":[{"filename":"claims-policies-api-adapters-35.6.7.tgz","hashes":{"sha1":"3453fdff0826c091ba5049cced0bffcb1c5facbe","sha512_sri":"sha512-i2r2mfYeVhv2hr1++lUGP/v4BrX1wO5fnIQMvetxAoetHfo4GjRZiv8awTi7BGcAnuCu3vRO923GINQrnb+Pog=="}}]},"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/claims-policies-api-adapters/MAL-2026-12637.json"}}],"schema_version":"1.8.0","credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}