ZeroDOM is a terminal-native DOM awareness layer, aimed at red teams and AI agents, used to deterministically map the page attack surface. The parsing process does not call an LLM: input HTML, output a node graph, with consistent results on every run.
Main capabilities: connect to your already logged-in Chrome via chrome.debugger in relay mode (cookies, MFA, and SSO are all ready); --stealth mode instead launches a one-time-configured Chrome through a CDP pipe, without exposing a localhost debugging port and without leaving traces on disk. It compresses HTML tokens by a median of about 98.9%, turning the page into a flat node list, where each node has a unique id and can be resolved to the exact DOM element, avoiding CSS locator hallucinations, pixel coordinate drift, and (role, name) ambiguity.
Usage: supports Python (any Playwright page, sync or async) and TypeScript (any object with content()/url()); it can also directly parse existing HTML without a browser. Provides MCP configuration for Claude Desktop and Cursor. zerodom scan runs a deterministic YAML rule set against the node graph and outputs JSONL findings; zerodom crawl performs deep, authenticated, read-only reconnaissance and outputs an attack surface map; zerodom compare uses two saved sessions to fetch the same URL and compare responses, for cross-tenant IDOR detection; zerodom audit checks selectors in an existing test suite. Supports Unix pipes, reading URLs from stdin, with --pipe streaming node output as JSONL.
Applicable scenarios: authorized security testing, attack surface mapping, AI agent-driven browser operations.
Limitations: does not bypass bot detection; cannot access closed shadow roots; iframes require explicitly enabling frames=True; zerodom_eval_js and zerodom_get_cookies can read live session cookies and execute arbitrary code in an authenticated browser, and if the MCP client is untrusted or can be prompt-injected there is a real risk, and the project does not enforce restrictions against this. Only scan targets you are authorized to test.