Shared DevTools Components Security

//components/devtools/ provides shared unsandboxed Browser-process helpers (devtools_pipe and SimpleDevToolsProtocolClient) used across Chromium embedders. It defends against compromised renderers on IPC responses and inherits the CDP Security Framework and Security for Agents.

Security Boundaries

  • Startup pipe descriptor verification: When --remote-debugging-pipe is requested, verifies at early startup that pipe file descriptors 3 and 4 are open before browser files are opened, preventing internal files from colliding onto FDs 3 or 4.
  • Protocol client response validation: Parses pre-validated JSON messages with Chromium's memory-safe JSON reader, correlates response IDs against pending requests, and terminates offending renderers on unexpected root-session response IDs (callers must still treat target-returned payload fields from web renderers as untrusted).

Local Non-Bugs

  • Local --remote-debugging-pipe parent access and synthetic caller misuse: Privileged CDP commands issued by a local parent process spawning Chromium with --remote-debugging-pipe (or clean startup exit when FDs 3 and 4 are closed), and unit-test harnesses violating documented in-process C++ lifetime or trusted-method preconditions.