{"id":"MAL-2026-14539","summary":"Malicious code in zenntechinc-cli (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (1ab82f90e45185d5e25435ce8fc92501dbf7b7384ec6eea6e6b7416ac9426cfb)\nThe npm package ships an obfuscated payload appended to templates/backend/.eslintrc.js, after a legitimate-looking ESLint config. The payload uses obfuscator.io-style string-array indirection (rotating _0x12f0() table, hex-named identifiers) to conceal Ethereum JSON-RPC endpoints (eth.drpc.org, ethereum.publicnode.com, blastapi.io, blockscout) and an Etherscan-style txlist indexer path. It queries the latest transaction from a hardcoded sender address (0xa322e5f3...9adc2490ef), decodes two IPv4 C2 addresses from the transaction's `to` field, fetches an XOR-encoded payload from those IPs, and executes it via eval() and spawn('node', ['-e', payload], {detached:true}).unref(). The CLI's `new` subcommand in bin/zenntechinc.js recursively copies the entire templates/backend tree — including the malicious.eslintrc.js — into the user-specified target directory via copyDirectory(), with no filtering. Any subsequent editor open, ESLint invocation, or lint script run inside the generated project loads this.eslintrc.js and triggers the blockchain-resolved remote code execution with full developer privileges. The CLI's advertised purpose (backend scaffolding) is the delivery vector for the RCE payload into the installer's workspace.\n\n## Source: ghsa-malware (5c89c1a1b39384ab078c60c32eaafa9332edd66dc4fa6bfc0c6b8e186adfc907)\nAny computer that has this package installed or running should be considered fully compromised. All secrets and keys stored on that computer should be rotated immediately from a different computer. The package should be removed, but as full control of the computer may have been given to an outside entity, there is no guarantee that removing the package will remove all malicious software resulting from installing it.\n","aliases":["GHSA-6wh9-pcqw-jp9j"],"modified":"2026-08-26T18:15:12.612949143Z","published":"2026-08-26T14:19:24Z","database_specific":{"malicious-packages-origins":[{"modified_time":"2026-08-26T14:19:30Z","sha256":"1ab82f90e45185d5e25435ce8fc92501dbf7b7384ec6eea6e6b7416ac9426cfb","source":"amazon-inspector","versions":["1.6.6"],"id":"IN-MAL-2026-018760","import_time":"2026-08-26T14:20:37.314204871Z"},{"versions":["1.6.4"],"id":"IN-MAL-2026-018759","import_time":"2026-08-26T14:20:37.26859515Z","modified_time":"2026-08-26T14:19:24Z","sha256":"ce23cdd4a923f1968307c13eec2354aba119dea74d78f7cddf2b7eef442d5148","source":"amazon-inspector"},{"source":"ghsa-malware","versions":["1.6.4","1.6.6"],"id":"GHSA-6wh9-pcqw-jp9j","import_time":"2026-08-26T18:05:18.555968659Z","modified_time":"2026-08-26T16:45:49Z","sha256":"5c89c1a1b39384ab078c60c32eaafa9332edd66dc4fa6bfc0c6b8e186adfc907"}]},"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/zenntechinc-cli/v/1.6.6"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/zenntechinc-cli/v/1.6.4"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-6wh9-pcqw-jp9j"}],"affected":[{"package":{"name":"zenntechinc-cli","ecosystem":"npm","purl":"pkg:npm/zenntechinc-cli"},"versions":["1.6.6","1.6.4"],"database_specific":{"indicators":{"evidence_files":[{"path":"templates/backend/.eslintrc.js","sha256":"b054b1743496e0588740035abc0ab3f8697710de3b40a844108e935d7353925e","tlsh":"f9d281a87ec47a41170f5d77772ba0d4d41a0e9c7888084ff16db894b7a622be9e0a35"},{"path":"bin/zenntechinc.js","sha256":"6ff0f3177d26b8d801a3b6f99030617112289c8be7d32321fb739682c73bcbc7","tlsh":"7b32a88949a153249ef357b45e07042bfb1a45232311d399b9ed878d3fb2920c263efe"}],"package_integrity":[{"filename":"zenntechinc-cli-1.6.6.tgz","hashes":{"sha512_sri":"sha512-n6UecYaeyIdzJ9buVIa8XhUAFKeicXdxfGXF4DMBHX/RHUMM9VK+XiRz2wvg+pYG0GjHoCANls+XDZcYRf9/sQ==","sha1":"8923442be3b2b768aba5635d29be71bcfc767e97"}}]},"cwes":[{"description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code","cweId":"CWE-506"},{"description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code","cweId":"CWE-506"},{"name":"Embedded Malicious Code","cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature."}],"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/zenntechinc-cli/MAL-2026-14539.json"}}],"schema_version":"1.9.0","credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}