You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Browser: Chrome's DevTools port is reachable from networked sandboxes #517
agent-browser 0.27 starts Chrome with --remote-debugging-port=0, which opens a DevTools listener on a random loopback TCP port. It has no pipe option.
A workspace-write sandbox with network on shares the host's loopback on both platforms, as Codex's does (src/sandbox.rs). An agent there could scan loopback, find that port, and drive Chrome over CDP directly. That gets around everything the browser tool checks:
paths, including downloads to any folder
confirmations
other agents' sessions and sign-ins
Refusing get cdp-url only hides the address.
Agents without network, or the read-only ones, can't reach the port. The browser tool also gates every call of an agent kept off the network.
Options
Pipe, not a port. Ask agent-browser upstream for --remote-debugging-pipe. Playwright uses a pipe by default, which is why Playwright's MCP server doesn't have this problem. This is the tried-and-true answer.
Sandbox loopback rules.
On macOS, Seatbelt could deny outbound to loopback ports the agent didn't open. This is hard to tell apart from the agent's own dev servers.
On Linux, the sandbox could give a networked agent its own network namespace with a forwarding proxy, the way Codex's managed network works.
Chrome in its own network namespace on Linux, reached through the host's socket only.
Recommended: (1) upstream, with (2) as the general fix for loopback services. The same exposure applies to any unauthenticated local service the person runs, not only Chrome.
Update after #526: an agent with the network on now reaches every Unix socket, as Codex's full network does. That includes agent-browser's daemon socket, whose launch takes an executable path, so this issue covers it as well as Chrome's DevTools port. Both are processes outside the sandbox that a networked agent can reach. Codex accepts reachable localhost services, so this stays open as a known edge, not a blocker. The fix would be pipe-based DevTools (--remote-debugging-pipe, as Playwright does) and a socket folder the sandbox can't see, once agent-browser supports a pipe.
Activity
lydakis commentedon Oct 31, 2026
Update after #526: an agent with the network on now reaches every Unix socket, as Codex's full network does. That includes agent-browser's daemon socket, whose
launchtakes an executable path, so this issue covers it as well as Chrome's DevTools port. Both are processes outside the sandbox that a networked agent can reach. Codex accepts reachable localhost services, so this stays open as a known edge, not a blocker. The fix would be pipe-based DevTools (--remote-debugging-pipe, as Playwright does) and a socket folder the sandbox can't see, once agent-browser supports a pipe.Generated by Claude Code