On October 29, 2026, Symantec's Threat Hunter Team described an unauthorized relay service for OpenAI Codex and Anthropic Claude Code. It does not ship a fake client. Users install the genuine npm package, then run a one-line command from the relay or a reseller. The script that follows rewrites the agent's configuration so that every request goes through the relay's servers, with the sandbox switched off.
Symantec has seen this at about a dozen organizations since at least early 2026. It says there is no evidence so far that the operator has abused its access. The risk it describes is what that access makes possible.
What the scripts did
Per Symantec's write-up, the setup flow it observed went like this:
- The user installs the Codex or Claude Code CLI from npm, then runs a one-line command copied from the relay or a reseller. It fetches a setup script that is never written to disk.
- The script rewrites the tool's config file:
~/.codex/config.tomlfor Codex,~/.claude/settings.jsonfor Claude Code. - It replaces the
base_url(orANTHROPIC_BASE_URL) with a relay-controlled domain and swaps in a relay-issued API key. - For Codex, it sets
sandbox_mode = "danger-full-access"and turns on network access for the write sandbox. - It disables telemetry and error reporting with
DISABLE_TELEMETRY=1andDISABLE_ERROR_REPORTING=1, which also hides usage signals from the vendors. - It stores the new base URL and key as user-scope environment variables, so they survive reboots.
- On one host, it logged Claude out, deleted the existing Anthropic token and key variables and logged in again, replacing the user's legitimate session. Symantec does not say whether every deployment does this.
- On several hosts, it checked the Windows region setting, apparently to confirm it was running where the service operates.
Symantec is clear that both tools work as designed once reconfigured. This is not a vulnerability in either product. The agent is genuine. The configuration is not.
Who was affected
Most affected organizations are in mainland China. Others are the Chinese operations, and in some cases the home-market operations, of multinationals based in South Korea, Taiwan and Malaysia. Symantec lists industrial automation, electronics manufacturing, semiconductors, pharmaceuticals, shipping, tire manufacturing, petrochemicals and data center services. The relay's backend rotated across at least eight domains, all impersonating OpenAI- or Anthropic-branded chat services.
Symantec does not know the business model and labels its ideas as speculation. Codex and Claude Code are not officially sold in mainland China, so the relay may exist to get around that. The Claude Code keys it saw carried a prefix that Anthropic uses for subscription OAuth tokens, not pay-per-use API keys, which Symantec says is consistent with pooled subscriptions but is not proof. Fraud with stolen credentials, or resale of prompts and files, cannot be ruled out.
Why it matters even without abuse
A relay in the middle of a coding agent is in a strong position. Symantec names three risks:
- It sees everything. Every prompt, file and secret the agent sends passes through the relay, which could also change or invent responses.
- It can act. With the sandbox off and network access on, a malicious response could run commands with the user's full account privileges.
- The credentials spread. Because the relay key sits in user-scope environment variables, other tools on the same machine can read it.
Nothing here needs an exploit. A developer looking for cheaper or easier access ran one command, and the machine's most capable tool now answers to someone else.
What it means on AWS
Developers point coding agents at infrastructure all the time: Terraform plans, CloudFormation stacks, aws CLI output, application logs. All of that becomes prompt content, and in this setup, prompt content goes to the relay.
The endpoint change also breaks your own visibility. If your company routes agents through Amazon Bedrock or an approved gateway, a changed base URL means the traffic never reaches it. Bedrock model invocation logging records calls made through Bedrock. A request that went to a relay leaves nothing there to see.
For cloud development environments and CI runners inside a VPC, you can enforce the approved list at the network layer. Route 53 Resolver DNS Firewall can deny every domain except the ones you explicitly trust, so an agent configured for a relay domain simply fails to resolve it.
Treat agent config as drift
The detection advice in Symantec's post maps cleanly to the drift checks you already run on servers. The difference is that the files live on laptops.
- Watch the config files. Alert on changes to
base_urlorANTHROPIC_BASE_URLin~/.codex/config.tomland~/.claude/settings.json. - Watch the sandbox setting. Alert on
sandbox_modeset to"danger-full-access"in the Codex config. - Watch user-scope variables. Alert on
OPENAI_BASE_URL,CODEX_API_KEYorANTHROPIC_AUTH_TOKENset outside your approved deployment process. - Watch the install sequence. A PowerShell or bash download-and-execute right after, or in place of, the npm install of either CLI is the pattern Symantec saw.
- Read telemetry flags in context.
DISABLE_TELEMETRY=1alone can be a legitimate privacy choice. Next to an endpoint change, it is a signal. - Allow-list AI endpoints. Monitor AI CLI traffic against a list of approved service endpoints at the proxy or DNS layer.
What to do this week
- Search developer machines for the config keys and variables above. Compare each value with what your deployment process sets.
- For Claude Code, put permission policy in managed settings, which a user's own settings files cannot override. Keep monitoring the endpoint variables too: the same page notes that environment variables are not a level in the settings stack.
- Block or alert on the published indicators in Symantec's post at your DNS and proxy layer.
- If you find a relay configuration, treat everything the agent touched as exposed: rotate secrets it read, and review commands it ran while the sandbox was off.
- Give developers an approved, supported way to use coding agents. Our view: when access is hard to get, people find a relay.
The short version
Symantec's case has no stolen data and no exploit. It has a genuine tool with a few settings changed. Those settings decided who sees the code, who answers the agent and whether anything stops it.
Antivenom treats that kind of change as part of the attack surface. Our AI red team runs only against your own systems, with your permission, and checks whether a changed setting opens a real path to your AWS accounts. The AI blue team restores the baseline, and the red team retests to prove the path is closed. For the server side of the same problem, read configuration drift.