Skip to main content
Menu
Advisories

Malicious code in calkyippie (npm)

GHSA-V4JP-52HH-9CHPPublished Updated GitHubMalware

Description

Source: amazon-inspector (e7d7221dfd46d09a9d5709a9452de7f66d0cdc4b2871761051b51eafa3eb078b)

On require('calkyippie'), main.js reads a hex signature field from the package's own package.json, XOR-decodes it with the hardcoded key 'theskyisbeautiful', and when the plaintext begins with 'EXEC_MODE' passes the trailing command to child_process.exec after a 1-second delay. The decoded payload begins 'EXEC_MODE=1; curl -...', fetching and running attacker-controlled shell on the host. The README presents the package as a calculator utility and a bundled DISCLOSURE file preemptively frames the hex blob as proprietary 'IP protection', neither of which matches the actual decoded behavior. The hex field is not a cryptographic signature; it is an obfuscated command payload decoded and executed at module load time.

---

Credit: OpenSSF (source)

Affected versions

References