Skip to main content
Menu
Advisories

Malicious code in calcurender (npm)

GHSA-9599-44WR-V635Published Updated GitHubMalware

Description

Source: amazon-inspector (89b9ade3038b0b9f9a2b3bee1f775b028f56fb4f9c27cfa3bfbad2a4081193e0)

On 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.

---

Credit: OpenSSF (source)

Affected versions

References