{"id":"MAL-2026-20193","summary":"Malicious code in calcurender (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (89b9ade3038b0b9f9a2b3bee1f775b028f56fb4f9c27cfa3bfbad2a4081193e0)\nOn load of the package's main entry (main.js), the module reads a hex blob stored in a field named `integrity` within package.json, XOR-decodes it with the key 'theskyisbeautiful' sourced from config.json, and after a randomized 0-5 second delay passes the decoded string to child_process.exec. The decoded content begins with 'EXEC_MODE=1; curl -fSL http://...', fetching and executing remote shell content on the host that requires the package. The `integrity` field name impersonates npm package-lock metadata to disguise the embedded payload; a Mandelbrot computation and a DISCLOSURE file framing the obfuscation as proprietary-algorithm protection serve as cover stories. The README identifies the package as 'calculatoropenerapp' while the actual published name is 'calcurender', a further name-mismatch indicator. Any consumer that `require()`s or runs this module triggers remote code execution on the installer's machine.\n","modified":"2026-11-19T07:15:09.827492824Z","published":"2026-11-19T06:54:34Z","database_specific":{"malicious-packages-origins":[{"modified_time":"2026-11-19T06:54:34Z","sha256":"89b9ade3038b0b9f9a2b3bee1f775b028f56fb4f9c27cfa3bfbad2a4081193e0","source":"amazon-inspector","versions":["1.0.0"],"id":"IN-MAL-2026-022873","import_time":"2026-11-19T07:12:43.568363909Z"}]},"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/calcurender/v/1.0.0"}],"affected":[{"package":{"name":"calcurender","ecosystem":"npm","purl":"pkg:npm/calcurender"},"versions":["1.0.0"],"database_specific":{"indicators":{"evidence_files":[{"path":"main.js","sha256":"73b441e32e71ebd2f2a0870d1181d43c7d92b994914ae7829225e96d4d717965","tlsh":"cc4122c62df734204357686b4b8ba10a7746e1032109ed48be5dd7893fe3528c9e37ea"},{"sha256":"abdab5df4930bf5f34eaeb1092a44812cdcea8129d4ab03c51f6843ca12421d2","tlsh":"52c02b50c42bcf63d0c6cc081b390e2c0702625f09147288b31148ef372e13d002171c","path":"config.json"}],"package_integrity":[{"filename":"calcurender-1.0.0.tgz","hashes":{"sha1":"7fce046cefd59a25c397cc756573e061d56e769e","sha512_sri":"sha512-D8FyAXyRyWsVSWbmSNTtIIDNQTMhi/UBhiQ5V4tjqGzLzbMoWfo1+q7TbVSrqv7+Dyg7VtM1kkd2giqvw2ij5Q=="}}]},"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/calcurender/MAL-2026-20193.json","cwes":[{"name":"Embedded Malicious Code","cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature."}]}}],"schema_version":"1.9.2","credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}