Blog
Unofficial AI relays rerouted Codex and Claude Code: what to check
The story: Sandbox Flipped to 'Danger-Full-Access': Unauthorized AI Relays Create Risk for Organizations · Symantec (Broadcom) ·
Topics: AI tools
On 29 October 2026 Symantec described an unofficial reseller whose one-line setup script points Codex and Claude Code at its own servers and, in Codex, turns the sandbox off. What the relay could see, how to check each machine, and why the question afterwards is what the agent read.
On 29 October 2026 Symantec's Threat Hunter Team described an unofficial service that resells access to OpenAI's Codex and Anthropic's Claude Code. Its setup script installs the genuine tools, then points them at the reseller's own servers and, in Codex, turns the sandbox off. For anyone running coding agents, it is a reminder that where an agent sends what it reads is a line in a settings file.
What happened
According to Symantec's report, the service has been running since at least early 2026. Symantec found about a dozen organizations using it, most in mainland China, among them local operations of companies based in South Korea, Taiwan and Malaysia, in sectors from semiconductors and pharmaceuticals to shipping and data centres. It names none of them, and describes most as employees or companies looking for a coding assistant not officially sold in their market.
The steps Symantec saw on affected machines:
- Someone installs the genuine tool from npm,
@openai/codexor@anthropic-ai/claude-code. - Within minutes to about half an hour, they run a one-line command from a lookalike domain,
iwr | iexin PowerShell orcurl | bash, which fetches a setup script and runs it. Symantec saw no exploit and no automated delivery. - The script rewrites the tool's settings. In
~/.codex/config.tomland~/.claude/settings.jsonit replaces the service address and the key with the relay's own, and also stores them as user-level environment variables, so they survive a restart. It switches off telemetry and error reporting. - For Codex it also sets
sandbox_modetodanger-full-accessand turns on network access.
On one machine the script also signed out of Claude Code, removed the existing credentials from the environment and signed in again; Symantec couldn't tell whether that happens everywhere. The relay's servers have moved across at least eight domains, each imitating an OpenAI- or Anthropic-branded chat service.
Symantec is clear on two points: "This is not a vulnerability in Codex or Claude Code", and "There is no evidence so far that the relay operator has abused this level of access." Its report carries no comment from OpenAI or Anthropic.
What it means
A coding agent sends its model what it needs to answer: the prompt, the output of the commands it runs and the contents of the files it reads. Whoever runs the address it sends to receives all of that. Symantec puts it plainly: "A relay in this position sees every prompt, file, and secret an employee sends to the agent, and can alter or fabricate every response it returns."
None of this needs a flaw. Anthropic documents ANTHROPIC_BASE_URL as the way to "route requests through a proxy or gateway" (environment variables), a setting meant for companies that run their own. The address is a line in a file in the user's home folder, and any script the user runs can change it. A changed address is a problem only when it isn't yours.
The sandbox change adds to that. OpenAI's documentation describes full access as running with no sandbox and recommends against it. The sandbox keeps the commands Codex runs from writing outside the working folder and, by default, from reaching the network. With it off, any command the agent runs, including one prompted by a response the relay altered, has all of the user's rights.
That leaves an affected company with one question afterwards: which files did the agent read while it was pointed at the relay? The relay saw them; the company can't see what the relay kept. The agents' own transcripts help, for as long as they last: Claude Code keeps them under ~/.claude/projects/ and deletes them after 30 days by default, Codex under ~/.codex/sessions/, as we described in an earlier post. But they sit in the same home folder the script edited, and Symantec notes that switching off telemetry and error reporting suppresses the usage signals that might otherwise reach the vendors.
What you can do
Check the settings on each machine. On a Mac or Linux machine:
grep -niE 'base_url|sandbox_mode' ~/.codex/config.toml ~/.claude/settings.json
env | grep -E 'OPENAI_BASE_URL|CODEX_API_KEY|ANTHROPIC_'
On Windows, in PowerShell:
Select-String -Path "$HOME\.codex\config.toml", "$HOME\.claude\settings.json" -Pattern 'base_url', 'sandbox_mode'
reg query HKCU\Environment
Look for an address that isn't OpenAI's, Anthropic's or a gateway your company runs, and a sandbox_mode of danger-full-access that nobody chose. reg query HKCU\Environment lists the user-level environment variables Windows keeps; Symantec names OPENAI_BASE_URL, CODEX_API_KEY and ANTHROPIC_AUTH_TOKEN set outside an approved deployment as signs to look for.
Look for the install pattern. Symantec's other sign is iwr | iex or curl | bash run shortly after, or instead of, a global npm install of either tool. Check shell history and your endpoint tool's process records. The report lists the domains and the setup scripts' file hashes.
If you find it, restore the vendor's settings, sign in with your own account, and rotate what the agent could have sent: API keys, tokens in .env files it read, secrets pasted into prompts. Then work out which files it read from the day the settings changed, while the transcripts still exist; the date the settings file last changed is a first clue.
Decide where agents may connect. Symantec recommends watching for traffic from AI command-line tools to anything not on an approved list of AI endpoints. With a relay that changes domains, a block list alone falls behind.
Where ProofStream fits
ProofStream records which program opened which folder on each Mac, Windows and Linux machine, from the operating system's own file events, and keeps that history in the console, away from the laptop. In a case like this it would show which folders the agent's process opened from the day its settings changed, on which machines, with file names in folders you choose: the list of what could have reached the relay. It wouldn't have stopped the setup script, it doesn't record the settings being rewritten, and it doesn't see prompts, file contents or the network, so it can't say what the relay received. How it works.
Sources
- Sandbox Flipped to 'Danger-Full-Access': Unauthorized AI Relays Create Risk for Organizations
- OpenAI: Codex sandbox and approvals
- OpenAI: Codex configuration reference
- Anthropic: Environment variables (Claude Code)
- Anthropic: Settings files and precedence (Claude Code)
- Anthropic: Explore the .claude directory (Claude Code)
- Microsoft Learn: reg query
- Microsoft Learn: Select-String (PowerShell)
Spotted a mistake? Tell us and we'll correct it.
Comments
No comments yet.