Notarizing documentation
Threat model
This guide describes Notarizing at revision 58d3f66610e4cce25ddd64d065c8f36f06abb229. Source: docs/threat-model.md. Source links require repository access. The App examples on the product page use reviewed revision 98455fe03bb7.
Contents
Notarizing trusts the operating-system account that owns its workspace. Imported source, reports, artifacts and review text remain untrusted data. Report a vulnerability as SECURITY.md describes.
Assets
| Asset | Location |
|---|---|
| Source, evidence, review journal and attribution | workspace.db |
| Administrative control token | Private control.token while the owner runs |
| App session capability | Trusted MCP process memory; never App tool arguments |
| ka2a signing, TLS and SASL credentials | Operator-selected private files |
| Backups and exports | Operator-selected files |
Trust boundaries
- The headless owner serializes writes to one workspace. CLI control has administrative authority. The private App bridge accepts only a closed operation set.
- Agent-facing MCP tools read bounded data. App-only tools can append permitted review commands only after an explicit expiring CLI grant. UI visibility is a host routing hint, not a replacement for server-side authorization.
- The MCP process selects the session capability. A public session ID, forged App message or host claim cannot select another session. Source access and the grant are rechecked in the write transaction. Host compromise can still use an already granted App session within that grant's scope; it cannot manufacture a new grant.
- The host isolates the MCP App and mediates downloads. The resource CSP permits no external connections, resources, frames or base origins. No standalone browser listener, bootstrap secret, cookie or CSRF endpoint remains.
- A verified ka2a principal and configured source binding select evidence submission authority. A reported pass still requires reviewed bindings and policy evaluation.
Threats that notarizing handles
| Threat | Control |
|---|---|
| Forged review authority | Server-owned capability; explicit CLI grant; scope, expiry and source-access checks at commit. |
| Stale or duplicated review commands | Expected object revision, stable operation identity and exact-byte retry checking. |
| App attempts an administrative action | Closed dispatcher with no import, purge, grant, policy, source-write or execution operation. |
| Imported text executes or fetches a URL | Inert rendering, safe Mermaid profile, no imported execution or arbitrary URL fetch. |
| Prompt injection in evidence | Responses label text as untrusted data; agent tools remain bounded reads. Other agent tools remain outside this boundary. |
| Guessed or altered artifact | Local receipt membership, all referenced source-access checks, retained digest verification and bounded parsing in one read transaction. |
| Contradictory replay summary | Expected/observed equality and first divergence are checked against the retained document; this checks consistency, not truth of the producer's observation. |
| Competing workspace owners | Filesystem ownership lock and transactional writes. |
| Cross-source ka2a submission | Verified signature and operator-configured namespace/operation binding. |
Threats that notarizing does not handle
The same OS account can read the database and control token and act as the operator. A host administrator can read all local files. Database files, backups and bundles are not encrypted by notarizing. Malware, compromised MCP hosts and browser extensions are outside this boundary. A purge cannot remove copies in backups, exports or other services. Notarizing cannot prevent an agent from sending displayed content to other tools or a hosted model, and cannot prevent the operator account from exhausting disk space.
Hardening checklist
- Keep the workspace private (directory 0700, files 0600) and use encrypted storage when
required.
doctorchecks local modes and ownership. - Use a trusted MCP host. Configure its data handling for the source material it displays.
- Grant only the needed repository/change scope and duration. Revoke the grant when done.
- Keep control tokens and provider credentials out of App messages, exports and logs.
- Keep backups private and manage their retention separately.