{"id":"MAL-2026-15851","summary":"Malicious code in @quantixfinance/contracts (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (497edc9bba37d0fd2fb3de0fccd537904ae37848535519f4d334c38d8b59d3bf)\nThe package's preinstall lifecycle script iterates process.env and filters keys for credential-shaped substrings (key, secret, token, pass, mnemonic, seed, private, wallet, rpc, infura, alchemy, api), attaches os.hostname(), process.cwd() and process.version, and POSTs the resulting JSON to a hardcoded remote host. The destination is written as an integer literal (759017974, decoding to 45.61.177.246) on port 61289 to evade string-based scanners. The package advertises itself as a contracts/ABI library and has no legitimate need to read or transmit environment secrets or host identifiers.\n","modified":"2026-09-03T16:30:07.122246937Z","published":"2026-09-03T15:51:46Z","database_specific":{"malicious-packages-origins":[{"sha256":"497edc9bba37d0fd2fb3de0fccd537904ae37848535519f4d334c38d8b59d3bf","source":"amazon-inspector","versions":["1.0.0"],"id":"IN-MAL-2026-019369","import_time":"2026-09-03T16:19:43.273150758Z","modified_time":"2026-09-03T15:51:46Z"}]},"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/@quantixfinance/contracts/v/1.0.0"}],"affected":[{"package":{"name":"@quantixfinance/contracts","ecosystem":"npm","purl":"pkg:npm/%40quantixfinance/contracts"},"versions":["1.0.0"],"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":[{"filename":"contracts-1.0.0.tgz","hashes":{"sha1":"d11da3585c15a29fa254fbcb248a85fa32a1b737","sha512_sri":"sha512-kyRUgjkcg2MO0m5UlTEOrDbF7K4/pfjLb1BMf6GO0PHeWlcfCGp9JdWZy+A5ziIJSeucBIqcjHFv9MH3mc27vA=="}}],"evidence_files":[{"path":"preinstall.js","sha256":"5ba35e7025a373dac1380e610b797be1612a10b86f792fe5118e4f25ee688686","tlsh":"8e21ba4af5bcf3b641a252b450cbc021a97fa40323c189a76b7c41d5ff468dc65634bb"}]},"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@quantixfinance/contracts/MAL-2026-15851.json"}}],"schema_version":"1.9.0","credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}