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 ·
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.
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:
- The victim gets a project dressed up as a financial report and asks the assistant to "set it up per the README".
- 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."
- 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."
- With no directory listing to work from, the page read the hidden
.DS_Storefiles 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.
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.
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
- 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.
- 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.
- 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." - 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."
- 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.
- Start recording reads of the secret folders now. On a Mac with macOS 13 or later,
esloggerprints 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
- EMBRACE: How We Hacked the Browsers Embedded in Top Five Desktop AI Assistants
- Forever Security: EMBRACE technical write-up
- The Register: Researchers find bugs in 5 AI developer tools, with OpenAI and Microsoft flaws still unpatched
- Noma Security: SneakPeek, the preview pane in Claude Code Desktop
- Visual Studio Code documentation: Workspace Trust
- Help Net Security: Researchers broke the browsers built into VS Code, Cursor, Copilot, Codex and Claude Desktop
- Cybereason: Blue teaming on macOS with eslogger
Spotted a mistake? Tell us and we'll correct it.
Comments
No comments yet.