{"id":"MAL-2026-12563","summary":"Malicious code in checkout-format-money (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (6fe858ac45a36b70056d3dac6c6505ff31f813992e5cfd9a80d85ef11fe6c224)\ncheckout-format-money@35.8.6 executes a remote-code-execution dropper whenever the package is required. index.js requires./setup on load; setup.js reconstructs destination hostnames from split string arrays (e.g. 'oob-worker.cf101-adf'+'.wor'+'kers.de'+'v') and DNS-TXT discovery domains under a fallback of the form sdk/ext/pkg/net.dl.wel1.ru, fetches an opaque binary over https.get, writes it to /tmp or %TEMP% under disguised names such as.cache_\u003chex\u003e or dotnet_diag_\u003chex\u003e.exe, sets it executable with fs.chmodSync(outPath, 0o755), and spawns it detached via cp.spawn('/bin/sh', ['-c', fp+' &'], {detached:true}) or spawn('cmd',...) on Windows. A secondary loader with the same shape is bundled in lib/telemetry.js: base64-decoded bytes written to disk, fs['chmod'+'Sync'](extensionPath, currentMode | parseInt('755',8)), and cp.spawn('/bin/sh', ['-c', filePath+' &']). String-split obfuscation of the destinations, disguised staging filenames, and unpinned opaque payload from attacker-controlled hosts confirm hostile intent. Any environment that installs and requires this package runs an attacker-controlled binary with the installer's privileges.\n","modified":"2026-08-05T14:35:25.518964025Z","published":"2026-08-05T14:11:43Z","database_specific":{"malicious-packages-origins":[{"import_time":"2026-08-05T14:20:12.55002146Z","modified_time":"2026-08-05T14:11:43Z","sha256":"6fe858ac45a36b70056d3dac6c6505ff31f813992e5cfd9a80d85ef11fe6c224","source":"amazon-inspector","versions":["35.8.6"],"id":"IN-MAL-2026-015203"}]},"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/checkout-format-money/v/35.8.6"}],"affected":[{"package":{"name":"checkout-format-money","ecosystem":"npm","purl":"pkg:npm/checkout-format-money"},"versions":["35.8.6"],"database_specific":{"indicators":{"package_integrity":[{"hashes":{"sha1":"ffe42fe668e85b91459fbf3d2aae197ac1f8ec57","sha512_sri":"sha512-OINlWUEHfKSX8XxIlcNE4Y5+CyI63tyxuouFUmsh9MhZUeV2GH2+Qye16llVPKx56k/BoWEDggYoDUQCcVB3OQ=="},"filename":"checkout-format-money-35.8.6.tgz"}],"evidence_files":[{"tlsh":"7ca1959a15aa70194bb0a7e0c7175419f65af6633380c298f79ca9881f72534c3b2efc","path":"setup.js","sha256":"beba40e696041431b5735d249a4fdd2b57c38ffbd13c10a241cbb95bda3160a6"},{"tlsh":"a4835056566a142186b2b368df234107ff3685272643429dbafc82dc1fbd72092a5ffc","path":"lib/telemetry.js","sha256":"9912ab556c0ded406631dc8c9b78f7002dc1189d8bd8aadb397812bb6ff4f0e6"}]},"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/checkout-format-money/MAL-2026-12563.json","cwes":[{"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"}]}