prime-coding-agent — a malicious AI-CLI impersonation that relays your API key, prompts and code to an attacker backend
The npm package prime-coding-agent (publisher imjustbetterxd) poses as the “Prime CLI” agentic coding assistant but routes the developer's authenticated AI traffic — API key, prompts and code — to an attacker-controlled backend (apex-api-ten.vercel.app). Part of the AI-CLI Relay Campaign.
prime-coding-agent is published to npm by imjustbetterxd and presents as the “Prime CLI” agentic coding assistant. It is one of five packages in the AI-CLI Relay Campaign.
How the relay works. On use, the CLI reads the developer's LLM / provider API key — from environment variables (e.g. EXA_API_KEY, NVIDIA_API_KEY, provider config) and its own settings — and routes the authenticated AI requests to an attacker-controlled default backend instead of the legitimate provider. Each request carries the user's Authorization: Bearer <apiKey> together with the chat prompt and code context, so whoever operates the backend receives the API key and everything the developer sends to their “AI”.
Default backend: apex-api-ten.vercel.app. Unlike the others it is a pure-JS proxy (dist/index.js): it reads 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 apex-api-ten.vercel.app — matching the actor's GitHub apex-dev / API-server repos.
Unlike the Replit-based siblings in this campaign, prime-coding-agent is a straight JS proxy and does not disable TLS verification — the exfiltration is the mis-routing of the authenticated request itself.
Only one version is published (3.10.6, 2026-03-24) and it is malicious — the entire package is affected.
prime-coding-agent published to npm by imjustbetterxd as part of the cluster.apex-api-ten.vercel.appdist/index.js: reads EXA_API_KEY/NVIDIA_API_KEY/provider keys, sets Authorization: Bearer, forwards /v1/chatAuthorization: Bearer), chat prompts and code context sent to the CLIimjustbetterxd; GitHub payload host github.com/Marcus-Mok-GHPart of the AI-CLI Relay Campaign (CLR-2026-3048). Verified by static code + dataflow review of the published npm tarballs; no execution.