Safety & Write Guard
Safe by mechanics, not by prompt hopes.
Letting an automated crawler or AI agent click buttons on your local app shouldn't risk mutating databases, firing webhooks, or leaking credentials. BrokenApp enforces safety at the Chrome DevTools Protocol layer by default — and documents its exact limits honestly.
CDP write guard on by default
Blocks POST, PUT, PATCH, DELETE, GraphQL mutations, beacons, and form POSTs before they reach your backend, while still recording client wiring as (blocked).
Local-only default
Refuses non-local URLs unless scan.allow_remote = true is explicitly set. Projects marked protected = true are always refused. Staging/prod launch configs are skipped.
Zero secrets in config.toml
init refuses raw secrets in dev_cmd (including /usr/bin/env assignments). Role credentials use env: references or mode-0600 gitignored credentials.toml and are redacted from all logs.
Zero silent telemetry
BrokenApp runs 100% locally as a single Rust binary and never phones home during crawls. Optional brokenapp feedback is strictly opt-in, locally redacts secrets and home paths, and supports --dry-run inspection.
Mechanics
How the write guard works
- Before navigating to any page, BrokenApp attaches a CDP network interceptor with
scan.write_guard = "block"(also supportsstubandoff). On local scans, CDPFetch.enableis scoped to write-capable resource types (Document,Xhr,Fetch,EventSource,Ping,Other) so static JS, CSS, font, and image assets load at native speed without pausing. - Mutating HTTP methods, GraphQL mutations, and form submits are intercepted before reaching your server and recorded cleanly on the triggering control as
calls POST /api/orders (blocked). App-wrappedconsole.errorlogs triggered solely by a write-guard abort are suppressed fromDEAD-UI.mdBroken. - Narrow exceptions allow only same-origin form-login authentication steps (NextAuth, Better Auth, custom login POSTs inside
AuthWriteScope) and explicitwrite_guard_allowpatterns; logout and non-auth writes remain blocked. - Controls with destructive labels (e.g., Delete, Revoke, Remove) are skipped safely and reported honestly as
not_exercised.
Honest limits
What the write guard cannot block
Outside HTTP CDP interception: State changes triggered by GET requests, Service Worker-intercepted traffic, and WebSocket messages are outside the HTTP write guard.
Unobserved server aftermath: In block mode, server-side validation errors or post-write confirmation screens do not run because the write was stopped before hitting the backend.
Interactive session capture: brokenapp login --role <name> for session / manual roles opens a normal unguarded browser strictly for human sign-in; all subsequent crawls run guarded.
Never pass --allow-writes unless your app runs against disposable local data.
Responsible disclosure
Found a vulnerability in BrokenApp itself?
Report issues to security@brokenapp.io or via our contact form. We acknowledge reports within 24 hours and do not pursue legal action against good-faith researchers.
Back to documentation