← Back to all posts
Published on · by Renaud Deraison

The dev server served the key

On November 23, VulnCheck published eleven months of exploitation data from its canary network. Credential theft made up 13% of it, and since May attackers have been adding AI keys to the list: 1,756 attempts from 406 IPs across 27 CVEs, including requests for Claude Code's ~/.claude/.credentials.json and Codex's ~/.codex/auth.json through bugs in Vite, Next.js and Langflow. In Bromure Agentic Coding, the dev server runs on a private network nothing outside can reach, and every credential file and variable in the VM holds a stand-in that opens nothing.

GET /@fs/root/.config/anthropic/credentials/default.json?raw??

On November 23, VulnCheck researcher Patrick Garrity published a study of credential harvesting built on the company's Canaries, decoy systems that log what attackers send when they exploit a known bug. From January to November 2026, 127 of the 694 CVEs VulnCheck tracks drew at least one request for credentials, and those requests made up 13% of all exploitation it recorded. Harvesting grew about sixfold from July to October. Open source software, AI products and developer tools account for 77 of the 127 CVEs. The Hacker News picked it up on November 26.

The attackers have added a new target. "We first started seeing credential harvesting campaigns targeting AI-related credentials in May 2026," the report says, and they have shown up every month since: 1,756 attempts from 406 IP addresses across 27 CVEs. Among the files requested are Claude Code's ~/.claude/.credentials.json, OpenAI Codex's ~/.codex/auth.json and Cline's MCP settings. "It's early," Garrity writes, "but attackers have clearly added these files as targets."

What the requests asked for

VulnCheck's table shows the requests themselves. Through the Vite file-read bug, CVE-2025-30208, scanners ask for:

GET /@fs/root/.openai/config.json?raw??
GET /@fs/root/.config/anthropic/credentials/default.json?raw??
GET /@fs/root/.config/github-copilot/hosts.json?raw??

Through the Next.js middleware bypass, CVE-2025-29927, they ask for /.cache/huggingface/token. Through a Traefik bug they ask for /.cursor/mcp.json. Once a bug gives them code execution, as Langflow's CVE-2025-3248 and React2Shell's CVE-2025-55182 do, the payloads read the environment for OPENAI_API_KEY, ANTHROPIC_API_KEY, DEEPSEEK_API_KEY, GROQ_API_KEY, MISTRAL_API_KEY and a list of Chinese providers' keys, and search files for the prefixes sk-ant-, sk-proj-, sk-or-v1- and gsk_.

By provider, OpenAI keys drew 1,085 attempts from 290 IPs and Anthropic keys 778 from 246, followed by Hugging Face, Gemini, Groq, DeepSeek, Mistral and OpenRouter. Requests for coding-agent files remain the smallest group, each from five or fewer IPs, but they name the exact paths.

Why the dev server is the door

Read the Vite line again. /@fs/ is a route of Vite's dev server, the one that serves your app while you build it. The advisory says only "apps explicitly exposing the Vite dev server to the network" are affected, which means starting it with --host or setting server.host. You start it with --host when the preview has to be reachable from another device, from a container, or from a cloud dev box you work on over SSH. Coding agents start dev servers all day, and they add --host when the preview won't load.

A dev server runs as the person who started it, so the file-read bug reads that person's home directory. On a developer laptop or a cloud workstation, that's where the credentials live: Claude Code's sign-in in ~/.claude/.credentials.json, Codex's in ~/.codex/auth.json, ~/.aws/credentials, ~/.git-credentials, the project's .env. The same goes for Langflow, which developers run on their own machines to wire up agents, and for the Next.js app the agent is building. A scanner needs one open port and an unpatched version to find you.

After the first read, attackers move fast. In a report published November 24, Unit 42 measured attacks where a person places a foothold and an AI agent takes over the credential harvesting and lateral movement. The median gap between commands fell from 23.9 seconds in the human phase to 1.4 seconds in the agent phase. A key read from your home directory can be in use before you notice the dev server was listening on every interface.

1. The scannersprays known CVEs atevery open port it findsGET /@fs/root/.claude/.credentials.json?raw??406 IPs since May2. An exposed servicevite --hosta Next.js appLangflow on :7860on a laptop or a clouddev box, unpatched,bound to every interface3. It reads your homefile read or code exec,running as you:~/.claude/.credentials.json~/.codex/auth.json~/.aws/credentials.env $OPENAI_API_KEYall of them real4. The keys workthe response carriesthe file's contentsthe attacker signs infrom its own machines:your model bill, yourrepos, your cloudVulnCheck Canaries, January to November 2026127 of 694 CVEs drew credential-harvesting requests · 13% of all exploitation records77 of the 127 are open source software, AI products and developer toolsAI credentials since May: 1,756 attempts · 406 IPs · 27 CVEs · OpenAI 1,085 · Anthropic 778requested by name: ~/.claude/.credentials.json, ~/.codex/auth.json, Cline MCP settings
The path VulnCheck's canaries recorded. A dev server or AI tool reachable from the network, an old bug that reads files or runs code, and a home directory full of real credentials. The attacker reads them over HTTP and uses them from its own machines.

The same dev server in Bromure Agentic Coding

Bromure Agentic Coding runs Claude Code, Codex, Grok, Kimi and omp in Ubuntu VMs on your Mac. The agent's shell, its dev servers and the tools it installs run inside the VM. Your real credentials stay on the Mac, encrypted, and a proxy on the Mac adds them to requests on the way out. Each layer answers one step of the chain VulnCheck recorded.

Nothing outside can reach the port

By default every machine sits on a private network inside the Bromure app, behind a single macOS NAT interface. Your Mac can reach the VMs, and so can the browser VM, so the agent can start a dev server and check it in the browser pane. Your physical network can't, and neither can the internet. The manual says "nothing else can connect to them unless you explicitly publish a service."

So vite --host is the normal way to work in Bromure. The agent binds the dev server to the VM's address, opens http://<machine-ip>:5173 in the browser pane, and takes its screenshots. Scanners spraying /@fs/…?raw?? across the internet have no route to that address. The same holds for Langflow on port 7860 and for the Next.js app the agent is building.

You can see what's listening. While a machine runs, its Listening Ports card lists every socket reachable from outside the VM as <VM-IP>:<port>, and bromure-cli vm ports <workspace> shows the same list with the owning process and loopback-only binds marked. Publishing a service to the internet takes a click on its globe button, which opens a Cloudflare quick tunnel for that one port after a consent dialog the first time.

The files the scanners want hold stand-ins

Suppose you did publish that preview to show a client, and the Vite version was old. The request reads the VM's home directory. The real credentials are on the Mac, not in that directory.

  • Claude Code. When you sign in through Bromure, the proxy answers the token exchange itself and keeps the real tokens on the Mac. Claude Code is told the credential stays there and runs on a stand-in ANTHROPIC_API_KEY that starts sk-ant-api03-brm-. There is no sign-in token in the VM for ~/.claude/.credentials.json to give up.
  • Codex. ~/.codex/auth.json holds a bogus JWT with a far-future expiry, so the client never tries to refresh it. The guest never holds a refresh token. The host refreshes every sign-in itself.
  • API keys. OPENAI_API_KEY, ANTHROPIC_API_KEY and every key you bring in with Import env file… hold provider-shaped stand-ins: sk-brm-…, sk-ant-api03-brm-…, brm_….
  • Git, cloud and SSH. ~/.git-credentials holds a fake ghp_ token. ~/.aws/config points at a helper that vends the real access key ID with a fake 40-character secret. SSH private keys never enter the VM at all; the guest can only ask the host for signatures.
  • MCP servers. HTTP MCP configs get brm-mcp_… stand-ins, scoped to their server's host.

VulnCheck's payloads search for sk-ant- and will match. What they find is a stand-in Bromure derived from your real key with HKDF-SHA256 and a per-install salt, so nobody can work the real key out from it. It works only when a request leaves your Mac's proxy for the host it was minted for. Sent to Anthropic from the attacker's servers, it fails authentication.

The VM's home directory also isn't your Mac's. Bromure doesn't import your Mac's own CLI sign-ins, and the VM sees only the folders you share with it. Whatever the scanner reads, your Mac's ~/.claude, ~/.aws and ~/.ssh aren't in it.

Code execution can't send them anywhere

The Langflow and React2Shell payloads don't stop at reading. They run code, collect the environment, and post it to a server the attacker controls. In a Bromure machine, that upload goes through the proxy on the Mac, and the proxy scans every outbound request, headers and body, for stand-ins headed somewhere other than their own host. When it finds one, it blocks the request with HTTP 451 before forwarding a byte, pauses the VM, and opens This environment may have been compromised, naming the credential, the host it was minted for, and the host it was sent to. The event lands as a red Credential brokering row in the Security Timeline.

Two settings tighten this further. With Only allow credentials Bromure injects on, any request carrying a credential Bromure didn't put there is blocked, which covers a real key someone pasted into a config file. With the OpenShell + Sentry engine, outbound traffic is denied unless a policy rule allows it, so the payload's collection server isn't on the list to begin with.

Cleaning up takes one button

A machine the alert marks as compromised refuses to boot until you wipe it. Wipe and Launch resets the VM disk and its home folder and keeps your tokens, SSH keys and workspace settings, which were on the Mac the whole time. If you want to see what happened first, Save for Investigation exports the disk and home folder before shutting the VM down, and the Trace Inspector or bromure-cli trace leaks shows the request that tripped the alarm. There are no keys to rotate, because the real ones never entered the VM.

Internet scannerGET /@fs/…?raw??x-middleware-subrequestno route to the VM:private network, NATBromure VM, private networkvite --host :5173langflow :7860next dev :3000reachable from the Mac and thebrowser pane, listed in Listening Portswhat a file read would find:ANTHROPIC_API_KEY=sk-ant-api03-brm-…OPENAI_API_KEY=sk-brm-…~/.codex/auth.json: bogus JWT~/.git-credentials: fake ghp_…~/.aws: real ID, fake secret~/.ssh: no private keyno refresh token, no sign-in token,none of your Mac's own CLI logins,only the folders you chose to shareYour Macreal keys and sign-ins, encryptedproxy: swaps each stand-in for its realvalue only toward its own hostscans every outbound requestA stand-in used from elsewheresent to the provider from the attacker'sservers: authentication failsAn RCE payload uploads the environmentHTTP 451, no byte forwarded, VM paused,alert names the destination hostA port on the internetonly after you click Expose for that oneservice: a Cloudflare quick tunnel
The same chain against a Bromure machine. The dev server is on a private network the scanner can't reach. If you publish it, the files it serves hold stand-ins. If the bug runs code, its upload goes through the proxy on the Mac, which blocks stand-ins headed to the wrong host and pauses the VM.

No route in

Machines sit on a private network behind NAT. The browser pane can load the agent's dev server, and scanners on the internet can't. A port goes public only when you click Expose for it.

Stand-ins in every file

Claude Code and Codex sign-ins, API keys, git tokens and AWS secrets stay on the Mac. The files the scanners ask for by name hold stand-ins that open nothing from anywhere else.

Uploads trip the alarm

A payload that posts the environment to its own server carries stand-ins to the wrong host. The proxy answers 451, pauses the VM and names the destination.

Nothing to rotate

Wipe and Launch resets the VM and keeps your credentials, which never left the Mac. Save for Investigation keeps the evidence.

What to do this week

  • Patch the bugs on VulnCheck's list. Vite's file-read fix is in 6.2.3, 6.1.2, 6.0.12, 5.4.15 and 4.5.10. Next.js fixed the middleware bypass in 15.2.3 and 14.2.25. Langflow fixed CVE-2025-3248 in 1.3.0.
  • Look for dev servers and AI tools listening on every interface. On macOS, lsof -iTCP -sTCP:LISTEN -n -P; on Linux, ss -ltnp. Watch for *:5173, *:3000 and *:7860, and start with cloud dev boxes that have a public address.
  • If an internet-facing app or dev server could read a home directory with agent credentials in it, sign out of Claude Code and Codex, rotate the API keys, and check each provider's usage page for traffic you don't recognize.
  • Follow VulnCheck's detection advice: alert on /@fs/ requests, on the x-middleware-subrequest header, and on requests for /.env, /proc/self/environ and .aws/credentials.

Then move the agent and its dev servers into a machine that holds nothing worth stealing. The manual covers the stand-in model and the sign-in flow in Credentials & the Wire Boundary, the private network in Concepts, the Listening Ports card in Machines, and strict mode in Guardrails.

Related articles

The comment was for the agent

Two researchers crawled 142.7 million GitHub issues, pull requests and comments for text that GitHub hides from people and hands to AI agents. They found 2,281 cases. Forty-three are attacks, almost all in HTML comments inside issue bodies, aimed at the triage agents maintainers run on new issues. Most go after the agent's secrets, and 34 were still live in November. In Bromure Agentic Coding, an issue that fires an automation is screened before any agent reads it, the triage agent runs on stand-in tokens, and any write it tries waits for you on the Mac.

Agentic CodingNews & Analysis

The agent deleted the rule

On November 26, Apiiro reported that six of seven popular coding agents could rewrite the ignore files and deny rules meant to keep them out of .env. Qwen Code removed the rule, read the key and put the rule back. On public GitHub, 243 agent-signed commits removed the last rule guarding .env, and 131 of them committed the file. In Bromure Agentic Coding, the key isn't in .env to begin with, the rules that matter are set on your Mac where the agent can't edit them, and every push waits for you.

Agentic CodingNews & Analysis

The improved skill had a DLL

On November 26, AIR Research published TrojanPony: fake "improved" copies of popular Claude Code skills that work like the originals and launch a signed Notepad++ updater, which side-loads a trojan. The kit sits in 487 public GitHub repositories, passed three scanner audits on skills.sh, and spread into 20 real repositories through one stolen GitHub token. In Bromure Agentic Coding, a skill installs into a Linux VM that holds only stand-in tokens, connections nobody allowed don't leave the Mac, and every push waits for you.

Agentic CodingNews & Analysis