{"id":"MAL-2026-6097","summary":"Malicious code in roblox-api-client (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (06fae89087d7a50d6397199d5fe1d5fc925c7c353e72a7f8a84e9aeca08224e6)\nOn `npm install`, postinstall.js fetches http://betterminecraft.fun/nettspend.bat over plain HTTP, writes it to the OS temp directory, and executes it via `cmd /c` on Windows (postinstall.js line 7 hardcodes the URL; line 15 spawns the temp file with `windowsHide: true`). The destination domain is unrelated to the package's stated purpose (a Roblox API client), the URL is mutable and unpinned, no hash or signature verification is performed, and the transport is cleartext HTTP — the operator can swap the served bytes at will. package.json metadata is placeholder-only (`author: your-name`, repo `github.com/your-username/roblox-api-client`), consistent with a hit-and-run squat rather than a legitimate publisher. This is a textbook install-time RCE dropper: any Windows developer running `npm install roblox-api-client` silently executes attacker-controlled code under their user account.\n","modified":"2026-06-18T05:46:38.641070812Z","published":"2026-06-18T04:07:15Z","database_specific":{"malicious-packages-origins":[{"id":"IN-MAL-2026-006973","import_time":"2026-06-18T05:42:06.035939061Z","sha256":"06fae89087d7a50d6397199d5fe1d5fc925c7c353e72a7f8a84e9aeca08224e6","versions":["1.0.0"],"source":"amazon-inspector","modified_time":"2026-06-18T04:07:15Z"}]},"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/roblox-api-client/v/1.0.0"}],"affected":[{"package":{"name":"roblox-api-client","ecosystem":"npm","purl":"pkg:npm/roblox-api-client"},"versions":["1.0.0"],"database_specific":{"indicators":{"package_integrity":[{"filename":"roblox-api-client-1.0.0.tgz","hashes":{"sha512_sri":"sha512-YoxD4uxP/HGGEJvCICTQSK9XYbMm6Kv5pxrwgo4G5nCwcp0/qZrkdybqjbfSJCWeRQdx/P/cadtI2CETWL+REw==","sha1":"b3db3d0b3ad3777bc40fffb4fb5276ed579b60ee"}}],"evidence_files":[{"tlsh":"70f0acd50ef3623061b260d0a3a1591aa633c0123281ced0b4cc54405fd36b99ef1be8","sha256":"f51927f48193e74b892ea70f9bce90650da8a1bcc561619bb25c4f23e5a65cdc","path":"postinstall.js"},{"tlsh":"5b012434c5648a7329d462949d7a2453a96a0c07841abc0c23d7216c8b9d6af51bd6bf","sha256":"e1f0aa169674a1977736907b87705981e8b2438290d475735cd12e2cfa0bec81","path":"package.json"}]},"cwes":[{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"}],"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/roblox-api-client/MAL-2026-6097.json"}}],"schema_version":"1.7.5","credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}