Blog

Coding tools' built-in browsers can read files far beyond a project

The story: EMBRACE: How We Hacked the Browsers Embedded in Top Five Desktop AI Assistants · Forever Security ·

Topics: AI tools macOS

On 29 October 2026 researchers showed that a local HTML file opened in the built-in browser of Codex, VS Code or Claude Desktop could read files across a Mac, SSH keys and .env files included. Codex and VS Code had no fix that day. What it takes, what to do, and how to see what was read.

Drawing: a project folder holding one page, with lines running from the page out to three other folders, one of which holds a key marked in amber.

On 29 October 2026 the security company Forever Security published research showing that the browsers built into five AI coding tools give a web page or a local file more power than an ordinary browser would. In three of them, Codex, VS Code and Claude Desktop, a local HTML file opened in that built-in browser could read files elsewhere on the Mac, SSH keys and .env files included. On the day of publication the researchers said the Codex and VS Code issues were still open.

For teams that hand these tools to developers, two questions follow: what it takes to set off, and whether anyone could tell afterwards which files were read.

What happened

The research, by Gal Weizman, calls the pattern EMBRACE: an embedded browser "trusted like a real one". Two of its five findings are not about files. In Cursor, a page in the built-in browser could pass hidden instructions to the agent, which then asked to run a command; in GitHub Copilot, a page in the browser preview could show a false address. The researchers say Cursor fixed its issue on 1 October and GitHub fixed Copilot in version 1.1.29 on 13 October.

The file-reading finding, as the researchers tested it on a Mac:

  1. The victim gets a project dressed up as a financial report and asks the assistant to "set it up per the README".
  2. The assistant offers a clickable link to an HTML file in the project. In the write-up's words, "The only thing the victim does is open the file."
  3. Claude Desktop and VS Code limit a local page to its own project folder. The page, though, can start a web worker, a script running in the background, and the check didn't apply to it. Codex had no such limit: "A local page there reads any file on the machine directly."
  4. With no directory listing to work from, the page read the hidden .DS_Store files that Finder leaves in folders, which name the files beside them, and worked outward from the home folder, sending what it found to a server.
Diagram: in Claude Desktop and VS Code, a page is held inside its project folder but a worker it starts reaches the rest of the disk; in Codex, the page itself reaches the rest of the disk.
How the file read worked in Forever Security's tests on a Mac, as its write-up of 29 October 2026 describes it.

The disclosures, by the researchers' account, went like this. They reported Claude Desktop to Anthropic on 23 July and were turned down, with Workspace Trust, the prompt asking whether to trust a project's folder, given as the security boundary. Noma Security, which had reported a file-reading flaw in Claude Desktop's preview pane on 4 July, reported the web-worker route on 24 July; Noma says Anthropic fixed it fully on 17 August, in Claude Desktop 1.30096.1. Codex was reported to OpenAI on 27 July and, the researchers say, never answered. VS Code was reported to Microsoft on 10 September and declined, again citing Workspace Trust.

On 29 October an OpenAI spokesperson told The Register the company is "aware of the issue and working to address it". Microsoft and Anthropic did not respond to it. The write-up shows only macOS, and doesn't say whether Windows or Linux were tested. The researchers don't report the technique being used in a real attack.

Timeline, 2026: Noma reports a Claude Desktop flaw 4 July and the worker route 24 July; Anthropic declines Forever's report 23 July; Codex reported 27 July; Claude Desktop fixed 17 August; VS Code reported and declined 10 September; published 29 October, Codex and VS Code open.
All dates 2026, as the researchers give them: Forever Security for 23 July, 27 July, 10 September and 29 October; Noma Security for 4 July, 24 July and 17 August.

What it means

The files at stake are the ones that open everything else. On the researchers' own machine the sweep collected SSH keys, .env files, npm tokens and the hosts file; they list cloud credentials, browser databases and private documents as within reach too.

The chain needs one click and no approval prompt: no command runs, and the reading is done inside the coding tool itself, a program that opens files all day as part of its job.

That leaves the question for afterwards: did an editor that normally reads one project folder open ~/.ssh, a cloud credentials folder, or the .DS_Store files of folders it never works in, and on which machines? None of the three desktop systems keeps that record unless someone set it up beforehand. Without it, a team that learns a developer opened such a project has to assume every key on that laptop is gone.

Microsoft's position, as the researchers report it, rests on that trust prompt. Its Workspace Trust documentation says a trusted folder lets VS Code and its extensions run the project's code without asking, and that trusting a parent folder trusts every folder below it. A developer who once trusted their home folder or Downloads has trusted everything they open from there.

What you can do

  1. Know where the tools run. The researchers' first advice: "Know which of these tools run in your estate." List which machines have Codex, VS Code, Claude Desktop, Cursor and GitHub Copilot.
  2. Update what has a fix. Copilot 1.1.29 or later; Claude Desktop 1.30096.1 or later, by Noma's account; Cursor, which the researchers say fixed its issue without a version number. Codex and VS Code had no fix as of 29 October.
  3. Don't open untrusted HTML in the built-in browsers. In a project you haven't checked, don't follow an assistant's file:// link or preview its HTML files. The researchers warn: "Don't count on 'a user would have to click something' as a defence."
  4. Prune VS Code's trusted folders. Run Workspaces: Manage Workspace Trust from the Command Palette and remove broad entries such as the home folder or Downloads. Microsoft's own advice: "When in doubt, leave a folder in Restricted Mode."
  5. Rotate on suspicion. If someone opened such a project in Codex or an unpatched tool, reissue the SSH keys, tokens and cloud keys on that machine.
  6. Start recording reads of the secret folders now. On a Mac with macOS 13 or later, eslogger prints Endpoint Security events as JSON, one per line. It runs as root, and the terminal that runs it needs Full Disk Access:
sudo eslogger open > open-events.json

Then count which programs opened anything under a .ssh folder:

jq -r 'select(tostring | contains("/.ssh/")) | .process.executable.path' open-events.json | sort | uniq -c

The file grows fast, and the record lasts only as long as you keep it running. For Linux and Windows, the equivalents are in our earlier post on infostealers. Machine by machine, across a fleet, that is the hard part.

Where ProofStream fits

ProofStream records which program opened which folder on each Mac, Windows and Linux machine, and keeps that history searchable for months. In a case like this it would show whether VS Code, Codex or Claude Desktop opened ~/.ssh, a cloud credentials folder or a run of folders far outside the project, when, and on which laptop; file names are recorded only in folders a customer chooses, on the Business Plus plan. It wouldn't have stopped the read, and it doesn't see what the page sent or where. How it works.

Sources

Spotted a mistake? Tell us and we'll correct it.