{"id":"MAL-2026-12177","summary":"Malicious code in devpack-conf (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (fabc4baeb912d72d08ef42d8b6b5e147b1f7dc18fc01e796bc6ac17f1c7dff68)\ndevpack-conf@5.0.0 is a typosquat of pkg-conf. index.js contains a top-level eval(atob(...)) that decodes an obfuscated loader. The loader queries Ethereum RPC/blockscout endpoints for transactions from the hardcoded address 0xa322E5f3D311D3080e6f0121063e9aDC2490Ef1a, extracts an IPv4 address from the transaction's `to` field, fetches an XOR-encoded payload from http://\u003cresolved-ip\u003e:443/0x/cls and /0x/ls (XOR key delivered via the x-payload-b64 response header), eval()s the decrypted payload, and spawns a detached `node -e \u003cpayload\u003e` child process with stdio:'ignore' and windowsHide:true. Sensitive strings (`http`, `https`, `child_process`, `spawn`, endpoint paths) are hidden behind \\u unicode escapes. The malicious code executes automatically at require/import time on any consumer of the package.\n","modified":"2026-08-05T10:06:08.210095471Z","published":"2026-08-05T08:49:50Z","database_specific":{"malicious-packages-origins":[{"versions":["5.0.0"],"id":"IN-MAL-2026-014434","import_time":"2026-08-05T09:28:10.642709711Z","modified_time":"2026-08-05T08:49:50Z","sha256":"fabc4baeb912d72d08ef42d8b6b5e147b1f7dc18fc01e796bc6ac17f1c7dff68","source":"amazon-inspector"}]},"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/devpack-conf/v/5.0.0"}],"affected":[{"package":{"name":"devpack-conf","ecosystem":"npm","purl":"pkg:npm/devpack-conf"},"versions":["5.0.0"],"database_specific":{"cwes":[{"description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code","cweId":"CWE-506"}],"indicators":{"evidence_files":[{"sha256":"ac54ffef7ef6d8f59e47a0983c974f35e64f7550e14e1a91d0f1a06610f1252a","tlsh":"37522eaa4692bb9bcb1b2673fc87570d237840b67a9c2b45310fd874b389c55748e60f","path":"index.js"}],"package_integrity":[{"filename":"devpack-conf-5.0.0.tgz","hashes":{"sha1":"2f3d7eccc5f76ce2479eeed9c446aef3fc6e0ea0","sha512_sri":"sha512-G4bcVVD0T3ZxhG4fH1O+Yh1QsHJhsaEzbk4iusUENg1YmWiDgBzeHGqVg6CBthMHLdWycIuUEc34Pv3hOI3ZBA=="}}]},"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/devpack-conf/MAL-2026-12177.json"}}],"schema_version":"1.8.0","credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}