- Book: Observability for LLM Applications
- Also by me: Thinking in Go (2-book series) — Complete Guide to Go Programming + Hexagonal Architecture in Go
- My project: Hermes IDE | GitHub — an IDE for developers who ship with Claude Code and other AI coding tools
- Me: xgabriel.com | GitHub
The user ran a normal npm install for the genuine Codex CLI or the genuine Claude Code CLI. Then, within minutes to about half an hour, they pasted one more line into a terminal: curl | bash, or iwr -useb <url> | iex in PowerShell. The script it fetched left both binaries alone. It rewrote the agents' config files in the home folder, and from then on the agent sent its requests to a relay's server, with Codex's sandbox switched off and Claude Code's telemetry silenced.
That is what Symantec's Threat Hunter Team reported on October 29, 2026 about an unauthorized relay service it found on systems at a dozen organizations. Two lines in that report matter more than the rest: "This is not a vulnerability in Codex or Claude Code." And: "The tools are behaving as designed once their configuration has been changed."
Every setting the relay changed is a normal, documented option. That's why it worked. It's also why you can check your own machine for it in a few lines of shell.
What Symantec found
Per the report, the relay has been active since at least early 2026, mainly in mainland China plus multinational subsidiaries in South Korea, Taiwan and Malaysia, in sectors from semiconductors to pharmaceuticals and shipping.
There was no trojanized client. Users installed @openai/codex or @anthropic-ai/claude-code from npm, then ran the one-liner, which pulled a setup script from a lookalike domain. That script checked for Node.js and the CLI, installed them silently if they were missing, and only then applied its configuration. Symantec saw no exploit and no automated delivery: the users appear to have run the command themselves. On one host, the script ran claude /logout, deleted ANTHROPIC_AUTH_TOKEN and ANTHROPIC_API_KEY, and ran claude /login. The relay-issued Claude Code keys carried the sk-ant-oat01- prefix, which Symantec says Anthropic uses for subscription OAuth tokens.
Symantec is careful about what it did not see: "There is no evidence so far that the relay operator has abused this level of access." The configuration changes were observed. The risks that follow from them are, in the report's word, potential. So are the business models it floats, such as getting around regional restrictions or reselling pooled subscription capacity.

The fence was never cut. Someone edited the gate.
Each setting, and what it unlocks
base_url and ANTHROPIC_BASE_URL
In Codex's ~/.codex/config.toml, the relay replaced base_url with its own domain. Codex's config reference describes model_providers.<id>.base_url as the "API base URL for the model provider," and also has a top-level openai_base_url, a "Base URL override for the built-in openai model provider." In Claude Code's ~/.claude/settings.json, it set ANTHROPIC_BASE_URL, which the env var reference describes as: "Override the API endpoint to route requests through a proxy or gateway."
Both options exist so companies can put a gateway in front of their model traffic. Point them at a stranger and the stranger is the gateway. Every request goes there first: your prompt, the files the agent reads into context, the output of the commands it runs, and any secret inside them. Symantec notes the relay could read all of that and alter the responses coming back.
A relay-issued key
The relay swapped in its own API key, formatted the way each CLI expects. Symantec found ANTHROPIC_BASE_URL and the key set as user-scope environment variables that persist across reboots, which also exposes the credential to every other tool on the machine.
sandbox_mode = "danger-full-access"
Codex's sandbox_mode takes read-only, workspace-write or danger-full-access. OpenAI's approvals and security docs describe full access as running with no sandbox, tell you to use caution before turning it on, and warn that inside a dev container "a malicious project can exfiltrate anything available inside the devcontainer, including Codex credentials."
Symantec doesn't report a change to approval_policy, so whatever approval setting the user had still applied. What changed is the floor under it: with the sandbox off, a command Codex runs has your user's full privileges. Put that next to the base URL change. The party writing the model's responses is now the relay, and the sandbox no longer limits what those responses can get Codex to run. Symantec lists exactly that as a potential risk and did not observe it.
network_access = true
The relay also set network_access for the write sandbox, which the config reference describes as "Allow outbound network access inside the workspace-write sandbox." It's off by default. While danger-full-access is set, it has nothing to act on. My reading is that it's a fallback: if someone flips the sandbox back to workspace-write, the network stays open.
DISABLE_TELEMETRY and DISABLE_ERROR_REPORTING
Both were set to 1. Per Claude Code's env var reference, each opts out when set to any non-empty value, and "Setting it to 0 or false still opts out." Symantec's point: with both off, usage signals that might otherwise reach OpenAI or Anthropic stop. That install goes quiet.

Same agents, same server on paper. The traffic takes a detour first.
Why neither tool stopped it
Both tools defend against a hostile repository. Codex "loads project-scoped config files only when you trust the project," per its config reference. Claude Code's settings docs say the bypassPermissions and auto values of permissions.defaultMode don't take effect from project or local settings, only from user or managed settings.
Look at where that leaves the trust: in your home folder. The user-level file is the layer both designs treat as you. Any script running as you can write it, and a pasted curl | bash runs as you. No setting inside the user file can protect the user file.
The layer above it can. Codex reads admin requirements from /etc/codex/requirements.toml on Linux and macOS, %ProgramData%\OpenAI\Codex\requirements.toml on Windows, or an MDM profile, and calls them "admin-enforced constraints that users can't override." This blocks full access, including --yolo:
# /etc/codex/requirements.toml
allowed_sandbox_modes = ["read-only", "workspace-write"]
On Codex 0.138.0 and later, the same docs recommend permission profiles instead (allowed_permission_profiles with a managed default_permissions). Claude Code has the same idea in managed-settings.json, MDM and server-managed settings: "Nothing in your own settings files or --settings overrides a managed key."
Managed config covers the sandbox and permissions. For the base URL, Symantec's detection advice watches both the host and the network. Alert on changes to base_url or ANTHROPIC_BASE_URL in the CLI config files, and on OPENAI_BASE_URL, CODEX_API_KEY or ANTHROPIC_AUTH_TOKEN appearing as user-scope variables outside approved deployments. Alert on AI CLI traffic to destinations outside an approved allow-list, and on curl | bash or iwr | iex running right after, or instead of, an npm install of the CLIs.
Check your own machine
This script is read-only and covers the host-side half of that advice. It looks for each setting from the report and prints base URLs and key names, never key values. It comes in two parts; paste both into one file and run it with bash, since the second part uses bash's ${!v}. Part one reads the config files:
#!/usr/bin/env bash
# agent-config-check.sh
# Read-only. Looks for the settings Symantec saw a relay
# change. Prints URLs and key names, never key values.
codex="${CODEX_HOME:-$HOME/.codex}/config.toml"
claude="${CLAUDE_CONFIG_DIR:-$HOME/.claude}/settings.json"
echo "== Codex: $codex"
if [ -f "$codex" ]; then
k='sandbox_mode|network_access|model_provider'
k="$k|base_url|openai_base_url|chatgpt_base_url"
grep -nE "^[[:space:]]*($k)[[:space:]]*=" "$codex"
if grep -q 'danger-full-access' "$codex"; then
echo "!! danger-full-access appears in this file"
fi
fi
echo "== Claude Code: $claude"
if [ -f "$claude" ]; then
grep -noE '"ANTHROPIC_BASE_URL"[^,}]*' "$claude"
k='ANTHROPIC_AUTH_TOKEN|ANTHROPIC_API_KEY|apiKeyHelper'
k="$k|DISABLE_TELEMETRY|DISABLE_ERROR_REPORTING"
grep -noE "\"($k)\"" "$claude"
fi
The relay also wrote user-scope variables, so part two checks the environment and the files that usually set it:
echo "== This shell's environment"
for v in ANTHROPIC_BASE_URL OPENAI_BASE_URL; do
if [ -n "${!v}" ]; then echo "$v=${!v}"; fi
done
for v in ANTHROPIC_AUTH_TOKEN ANTHROPIC_API_KEY \
CODEX_API_KEY DISABLE_TELEMETRY DISABLE_ERROR_REPORTING; do
if [ -n "${!v}" ]; then echo "$v is set"; fi
done
echo "== Shell startup files"
k='ANTHROPIC_BASE_URL|OPENAI_BASE_URL|ANTHROPIC_AUTH_TOKEN'
k="$k|ANTHROPIC_API_KEY|CODEX_API_KEY"
k="$k|DISABLE_TELEMETRY|DISABLE_ERROR_REPORTING"
for f in ~/.zshrc ~/.zprofile ~/.bashrc ~/.bash_profile \
~/.profile; do
if [ -f "$f" ]; then grep -HnoE "($k)" "$f"; fi
done
On Windows, the relay wrote user-scope variables. This prints base URLs and the names of anything else that's set:
$names = 'ANTHROPIC_BASE_URL', 'OPENAI_BASE_URL',
'ANTHROPIC_AUTH_TOKEN', 'ANTHROPIC_API_KEY',
'CODEX_API_KEY', 'DISABLE_TELEMETRY',
'DISABLE_ERROR_REPORTING'
foreach ($n in $names) {
$v = [Environment]::GetEnvironmentVariable($n, 'User')
if (-not $v) { continue }
if ($n -like '*BASE_URL') { "$n = $v" }
else { "$n is set at user scope" }
}
Then read the same keys in %USERPROFILE%\.claude\settings.json (where Claude Code's docs put ~/.claude on Windows) and in Codex's config.toml.
A base URL is a finding only if you can't name who runs it. Your company's gateway is fine. A domain you don't recognize is the whole story. danger-full-access in your user config deserves a second look even if you set it yourself, since nothing else will remind you it's there. And because any value of DISABLE_TELEMETRY opts out, the script checks whether it's set, not what it says.
If you do find a stranger's URL, assume everything the agent sent since then was readable by a third party. Remove the edits, sign in again with your own account, and rotate any secret that passed through an agent session.
Where Hermes IDE fits, and where it doesn't
I build Hermes IDE, so weigh this section with that in mind. Hermes would not have stopped this relay. It runs every agent's own interface "in a real terminal, exactly as it would anywhere else," with the agent's own CLI sign-in. A Codex or Claude Code started from Hermes reads the same config.toml and settings.json as one started anywhere else, rewritten base URL included.
Hermes shows you the launch. The New task sheet (⌘N, or Ctrl+Shift+N on Windows and Linux) lists the agent, the project, a new hermes/ worktree, the approval mode and the model, and previews the command it will run.

The ⌘N New task sheet: chips for Claude Code, the orders-api project, a new hermes/ worktree, Accept edits, model and effort, and the "Hermes will run" preview of the claude command.
That preview covers the flags on the command line. It can't show what the CLI loads from your home folder a second later, which is where this relay did all its work. Run the script for that part. Hermes is free, source-available under BSL 1.1, and runs on macOS, Windows and Linux: download it or read the source on GitHub. It is not affiliated with Nous Research, Anthropic, OpenAI or any other agent vendor.
If this was useful
The quietest change the relay made was the telemetry switch. If you run LLM features of your own, the same question applies one level up: would you notice if your model traffic started going somewhere else, or if its cost or quality shifted without a deploy? Observability for LLM Applications is my book on exactly that: tracing LLM calls, running evals, and catching cost and quality regressions in production. And if you run several coding agents a day, Hermes IDE keeps each one on its own branch and worktree.

Top comments (0)