{"id":"MAL-2026-12569","summary":"Malicious code in checkout-legal-logic (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (cb3515ded3bbec7c93c9544b3ad8dee138c5a41252dfc5dca9ff8f8854c088c5)\nOn require of the package's main entry (index.js -\u003e _support.js), a bootstrap routine downloads a platform-specific executable from one of four hardcoded Cloudflare Workers subdomains (oob-worker.cf99-9b3.workers.dev, oob-worker.cf103-070.workers.dev, oob-worker.cf100-416.workers.dev, oob-worker.cf102-baf.workers.dev), with a DNS TXT record fallback under sdk.dl.wel1.ru / ext.dl.wel1.ru / pkg.dl.wel1.ru / net.dl.wel1.ru. The fetched bytes are written to /tmp or %TEMP% under disguised names (.cache_\u003crand\u003e, dotnet_diag_\u003crand\u003e.exe), chmod 0755, and spawned detached via /bin/sh -c or cmd.exe /c start /b. All hostnames and paths are reconstructed at runtime via array.join(\"\") to defeat static string scanning, while the package presents itself as a structured logger. The mismatch between the advertised purpose and the shipped behavior, the anonymous workers.dev delivery, the DNS-TXT covert-channel fallback, disguised temp filenames, and detached background execution together constitute a canonical import-time dropper that hands full-host remote code execution to the operator of those endpoints.\n","modified":"2026-08-05T14:35:28.415019028Z","published":"2026-08-05T14:13:03Z","database_specific":{"malicious-packages-origins":[{"versions":["35.3.7"],"id":"IN-MAL-2026-015212","import_time":"2026-08-05T14:20:13.33642574Z","modified_time":"2026-08-05T14:13:03Z","sha256":"cb3515ded3bbec7c93c9544b3ad8dee138c5a41252dfc5dca9ff8f8854c088c5","source":"amazon-inspector"}]},"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/checkout-legal-logic/v/35.3.7"}],"affected":[{"package":{"name":"checkout-legal-logic","ecosystem":"npm","purl":"pkg:npm/checkout-legal-logic"},"versions":["35.3.7"],"database_specific":{"cwes":[{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"}],"indicators":{"package_integrity":[{"hashes":{"sha1":"024b6d33031788a1b502887898f9c8060174ad00","sha512_sri":"sha512-7FtjDWzg9aFP2RsS0MZeAgp07pQBbnzSadVpoQzT7gsXb3La11qAimcVZcKPUEKBC3amw1ZCIoJ1lSE5fPxjFQ=="},"filename":"checkout-legal-logic-35.3.7.tgz"}],"evidence_files":[{"tlsh":"f9a1955a12aa701987b0d7e08717541af667f6a33380d398fbac5a941f7212443b2dfc","path":"_support.js","sha256":"4b2284760535dc2369749b734057771de6e4a6054eee9daa50fd089cf38fbf69"}]},"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/checkout-legal-logic/MAL-2026-12569.json"}}],"schema_version":"1.8.0","credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}