An agentic browser harness: an AI side panel & orb in your own logged-in Chrome, Edge, Arc, Brave or even Firefox run by the agent/subscription you already use (Claude Code, Codex, Antigravity). Free, open source, no API key. Also an MCP server.
TypeScript agentic-browseragentic-browsingagy-cliaiai-agentai-browser-extensionai-toolsbrave-extensionbrowser-agentbrowser-automationbrowser-extensionbrowser-usebrowserskillchrome-extensionclaude-codecodexfirefox-addonmcp-servernanobrowserweb-automation
docs(secrets): where a credential may become plaintext, and where it may not
Shahriar5379bc15a3e5
diff --git a/README.md b/README.mdindex 2381906..10e7957 100644--- a/README.md+++ b/README.md@@ -75,6 +75,7 @@ The extension dials out to the daemon, because a Manifest V3 service worker cann- **Both Ends Prove Themselves**: Neither secret crosses the wire; each side answers the other's nonce, so no local process can squat a port and pose as your daemon- **Consequential Actions Ask First**: Form submission, file upload, answering a captcha and leaving the run's sites all pause for an explicit Allow or Deny- **Agent Runs Are Contained**: The spawned CLI gets Browsentic's tools and nothing else — no shell, no filesystem, no other MCP servers, and a sealed environment stripped of your cloud keys and tokens+- **Credentials Are Sealed, Not Read**: A deterministic sanitizer runs on both sides of the socket. Passwords, keys, tokens, cookies and card numbers found in a page are replaced by a placeholder before the agent ever sees them, and become plaintext again only in the field they are typed into- **Recordings Capture What You Do, Not What You Type**: Passwords, hidden fields, one-time codes and card numbers are never storedTwo limits worth stating plainly: pairing controls **which browser**, not which local process, and an agent reading a hostile page is still susceptible to prompt injection. Both are covered in [Limits](docs/guide/limits.md).diff --git a/SECURITY.md b/SECURITY.mdindex 4cbe463..b861737 100644--- a/SECURITY.md+++ b/SECURITY.md@@ -25,14 +25,19 @@ The full write-up lives in the docs and is the authority:- [Transport and authorization](docs/internals/transport.md) — the origin gate, the mutualpairing handshake, why a web page can never reach the control path- [Guardrails](docs/internals/guardrails.md) — the action policy, run scope, fencing of page- text, containment of the spawned agent CLI+ text, sealing of credentials, containment of the spawned agent CLI- [Limits](docs/guide/limits.md) — the boundaries stated plainly-Two of those boundaries matter enough to repeat here. **Pairing controls which browser, not+Three of those boundaries matter enough to repeat here. **Pairing controls which browser, notwhich local process**: anything running as your user can drive an already-paired browser, so-your user account is the trust boundary. And **prompt injection is mitigated, not solved**: an+your user account is the trust boundary. **Prompt injection is mitigated, not solved**: anagent reading a hostile page can be influenced by it, and the design goal is to leave a-successful injection nowhere to act or send data — not to make injection impossible.+successful injection nowhere to act or send data — not to make injection impossible. And+**secret detection is a filter, not a proof**: the sanitizer is deterministic and errs toward+sealing, but a credential with no recognisable shape, no label near it and low entropy — a short+passphrase in running prose — can still read as ordinary text. Held secrets live in the+extension's session storage in the clear, gone when the browser closes; they are never written to+disk and never cross the socket.## Disclaimer and liabilitydiff --git a/docs/internals/state.md b/docs/internals/state.mdindex 9adc3e1..f5debbb 100644--- a/docs/internals/state.md+++ b/docs/internals/state.md@@ -26,7 +26,11 @@ Nothing lives in the repository.| `approvals.json` | **Always on ‹host›** | One action + host per entry. Only short-circuits a `confirm` || `daemon.log` | The daemon | `browsentic-mcp logs`. Local [instant commands](../guide/features/instant-commands.md) never appear here, by design |-## The two exceptions+## The three exceptions++**Held secrets** never reach disk at all. A credential the sanitizer seals out of a page is kept in+the extension's `browser.storage.session` under `browsentic/secrets`, capped at 64 entries, expiring+after two hours and emptied by the browser on restart. The daemon never receives one.**Recordings** stay in the extension's own storage, not on disk. Removing the extension removes them.diff --git a/docs/reference/errors.md b/docs/reference/errors.mdindex 5cb74fc..30029f3 100644--- a/docs/reference/errors.md+++ b/docs/reference/errors.md@@ -61,6 +61,8 @@ repeatedly: failures carry the *fix* in the message, and a failed tool call neve| --- | --- | --- || `DECLINED` | Approval gate | The user said no. **Final** — do not seek another route to the same effect || `BLOCKED` | Policy | A `deny` rule matched, or a `confirm` with nobody to answer it. The message names why. [Guide](../guide/approvals.md) |+| `SECRET_NOT_RELEASABLE` | Extension | A sealed secret placeholder was passed somewhere it cannot be released. Only `page_fillInput`'s `value` and `page_typeText`'s `text` release one |+| `SECRET_EXPIRED` | Extension | That placeholder is no longer held — it aged out, or it was read in an earlier browser session. Read the value again || `MAPPING_READ_ONLY` | Mapping gate | A mapping run may only call the 14 read-only actions (plus `page_clickElement` when `allowClicks` is on) || `MAPPING_OFF_SITE` | Mapping gate | Navigation must be an absolute URL on the mapped origin — `back` and `forward` included || `MAPPING_BUDGET` | Mapping gate | The page or screenshot budget is spent |