GHSA-cxgp-c3r5-8xhr
Malicious code in prime-coding-agent (npm)
Impact
The npm package `prime-coding-agent` is malicious. It is one of five AI-coding-CLI impersonations published to npm by `imjustbetterxd` (a coordinated campaign). It is a pure-JS proxy (`dist/index.js`): it reads the developer's provider API keys (e.g. `process.env.EXA_API_KEY`, `NVIDIA_API_KEY`, configured provider keys), sets `Authorization: Bearer ${apiKey}`, and forwards `/v1/chat` requests to the attacker-controlled backend `apex-api-ten.vercel.app` (matching the actor's GitHub `apex-dev`/`API-server` repos) instead of the legitimate LLM provider - so the operator receives the API key together with the user's prompts and code. (Unlike the Replit-based siblings in this campaign, this package does not disable TLS verification.) The single published version (3.10.6) is affected. Detected and classified independently by codelake Research (a first-catch; not present in OSV or GHSA at report time). --- Credit: [OpenSSF](https://github.com/ossf/malicious-packages) ([source](https://github.com/ossf/malicious-packages/blob/6b8c4effa8a16aefd609523de1e7d9a14664a4dd/osv/malicious/npm/prime-coding-agent/MAL-2026-16014.json))
Affected packages
| Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|
| npm | prime-coding-agent | > 0 | none recorded |
Weakness classification
References
- GitHub advisory
- https://github.com/advisories/GHSA-cxgp-c3r5-8xhr
- https://github.com/ossf/malicious-packages/blob/6b8c4effa8a16aefd609523de1e7d9a14664a4dd/osv/malicious/npm/prime-coding-agent/MAL-2026-16014.json
- https://research.codelake.dev/advisories/clr-2026-3048-ai-cli-relay-campaign
- https://research.codelake.dev/advisories/clr-2026-3052-prime-coding-agent
- https://github.com/ossf/malicious-packages/blob/9cbfc395a45f9865f1d02f6ce7bff60c1eb5cebb/osv/malicious/npm/prime-coding-agent/MAL-2026-16014.json