# GHSA-5XQH-742J-HJVQ: Malicious code in t4-xorspawn-testmetest (npm)

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

## Affected versions

- t4-xorspawn-testmetest (npm): 1.0.0

## Description

## Source: amazon-inspector (46dc181d726e4b49d0bcc688f5fe6518c515d7ba8c9153f2c973e5aa33cb830c)
On require(), index.js reconstructs the module name 'child_process' by XOR-decoding a hex blob against a repeating 0x42 key, locates a Bun runtime at /usr/local/bin/bun or ~/.bun/bin/bun, writes a JS file to the OS temp directory (p<timestamp>.js), and spawns Bun against that file. The written file is currently empty, so no payload executes today, but the full dropper scaffolding — obfuscated child_process import, alternate-runtime discovery, tmp-file write, spawn — is wired to the module's top-level load path. Legitimate utility libraries do not need to conceal the identity of 'child_process' from static scanners, and the shape (obfuscated primitive + write-and-exec via a sibling runtime at import time) matches the npm alternate-runtime dropper pattern.

---

Credit: [OpenSSF](https://github.com/ossf/malicious-packages) ([source](https://github.com/ossf/malicious-packages/blob/295d164deb82a5028f980f5b49bb4c518111003f/osv/malicious/npm/t4-xorspawn-testmetest/MAL-2026-20348.json))

## References

- https://github.com/ossf/malicious-packages/blob/295d164deb82a5028f980f5b49bb4c518111003f/osv/malicious/npm/t4-xorspawn-testmetest/MAL-2026-20348.json
- https://www.npmjs.com/package/t4-xorspawn-testmetest/v/1.0.0
- https://github.com/advisories/GHSA-5xqh-742j-hjvq

Page: https://cve.now/GHSA-5XQH-742J-HJVQ

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