Trust
Security
Each statement on this page names the code that makes it true and the law that holds it in every build, and the build fails when a statement loses its evidence. The facts are the platform’s, for both of its brands.
- Made true by:
src/lib/security/facts.ts- Held by:
src/lib/security/facts.test.ts
What is not claimed
DraftCounsel is not SOC 2 certified and holds no security certification. The controls below are implemented and each names its evidence in the repository; control evidence is being assembled toward a SOC 2 Type I examination, which has not been performed.
- Made true by:
src/lib/lifecycle/procurement.ts,docs/registers/PROCUREMENT-PACKAGE.md- Held by:
src/lib/lifecycle/procurement.test.ts
Every response
Every response carries Strict-Transport-Security for two years, with subdomains and preload; X-Content-Type-Options: nosniff; a strict-origin-when-cross-origin referrer policy; and a permissions policy that refuses the camera, geolocation, payment and the microphone, which only the workspace allows, for dictation on this origin.
- Made true by:
next.config.ts- Held by:
src/lib/security-headers.test.ts- See it
- This page’s own response headers:
curl -sI https://draftcounsel.io/security
Every page carries a Content-Security-Policy built for its own response: scripts run only from this site or under that response’s nonce, plug-ins never, forms post only to this site, and no other site may frame the page, except the Word add-in’s task pane, which Office on the web frames from Microsoft’s origins. Inline styles are still allowed. Violations are reported to /api/security/csp-report.
- Made true by:
src/lib/http-security.ts,src/proxy.ts- Held by:
src/lib/http-security.test.ts,src/lib/security-headers.test.ts
A request that would change something and carries this site’s cookies is refused unless it comes from this site’s own origin. The only exceptions are the payment providers’ webhooks and the scheduled jobs, which authenticate their own requests, and the content-security reports, which change nothing.
- Made true by:
src/lib/http-security.ts,src/proxy.ts- Held by:
src/lib/http-security.test.ts
The database
Every table the platform’s migrations create has row-level security switched on and every privilege of the database roles a browser can reach revoked, so a query from a browser straight to the database reads and writes nothing. Access is decided on the server, by one authorization function per matter, with walls that deny whatever the role.
- Made true by:
supabase/migrations,src/lib/authorization.ts- Held by:
src/lib/rls-intent.test.ts,src/lib/authorization.test.ts
Every database function pins its search path, and every function that runs with its owner’s privileges is withheld from those roles.
- Made true by:
supabase/migrations- Held by:
src/lib/rls-intent.test.ts
Both production databases were last read for this on 2026-09-25: every public table had row-level security on, no table was granted to those roles, and no privileged function was executable by them.
- Made true by:
docs/registers/RLS-EVIDENCE.md- Held by:
src/lib/rls-intent.test.ts
Sessions and the two brands
The access session is a cookie signed with HMAC-SHA256 under a secret the server holds. It expires after 30 days and carries an opaque id that a server-side store records, so a session can be revoked.
- Made true by:
src/lib/session.ts,src/lib/session-store.ts- Held by:
src/lib/session.test.ts,src/lib/session-store.test.ts
DraftCounsel and LegalDraft are one platform in two deployments. A session names the brand that minted it and is refused on the other brand’s deployment.
- Made true by:
src/lib/session.ts- Held by:
src/lib/session-brand.test.ts
A record fetched by its id is scoped to the brand serving the request, so an id minted on one brand does not open the record through the other. Access codes and firm memberships are bound to their brand the same way.
- Made true by:
src/lib/brand-scope.ts- Held by:
src/lib/audit-2026-10-05.test.ts,src/lib/access-code-brand.test.ts,src/lib/membership-brand.test.ts
What leaves the platform, and what it may cost
Every outbound request passes an allow-list of the vendors declared in the code, each with the classes of data it may receive. A request to any other destination, or one carrying a class its vendor is not cleared for, is refused before a byte leaves; configuration can narrow the list, never widen it.
- Made true by:
src/lib/egress/vendors.ts,docs/registers/EGRESS-VENDORS.md- Held by:
src/lib/egress/vendors.test.ts
The model gateway’s spending governor runs in one of two modes, shown live on /engine. Enforcing, when its switch and all four ceilings are set (monthly, per user, per matter and per call), it refuses a call that would pass a ceiling, and refuses when the spend cannot be read. Observing, it lets the call run and records the overage in its operational signals.
- Made true by:
src/lib/ai/gateway.ts,src/lib/ai/spend.ts- Held by:
src/lib/ai/gateway.test.ts,src/lib/ai/spend.test.ts
Uploads
Uploads are checked before parsing: the byte signature must match the declared type, the size must sit under the published cap, a Word file must expand within fixed limits with no nested archives, and plain text must be text. Parsing runs in an isolated serverless function with a fixed time budget. Uploads are not scanned by antivirus software; a refused upload returns a receipt naming the check that failed.
- Made true by:
src/lib/upload-guard.ts- Held by:
src/lib/upload-guard.test.ts
Reporting a vulnerability
Report a vulnerability to support@draftcounsel.io with SECURITY in the subject: security reports are triaged ahead of all other mail. The machine-readable contact is /.well-known/security.txt.
- Made true by:
src/app/.well-known/security.txt/route.ts- Held by:
src/lib/audit-2026-10-21.test.ts
Every governance document, dated
Every document a security reviewer asks for, with the date its words last changed and its version. The build fails when a document’s words change without a new dated version. A document marked on request is held for a reviewer: write to support@draftcounsel.io.
- Made true by:
src/lib/registers/governance-documents.ts,src/lib/registers/governance-words.ts- Held by:
src/lib/registers/governance-documents.test.ts
Security facts and this index
Where: /security
Version 1
Words last changed: Tue, Nov 10, 2026
History, 1
- 1, Tue, Nov 10, 2026: First published, with the trust index.
Trust center, with the sub-processors
Where: /trust
Version 2
Words last changed: Tue, Nov 10, 2026
History, 2
- 2, Tue, Nov 10, 2026: The sub-processor section links the dated list and its change log on /subprocessors, and the hosting provider’s row names the Web Analytics and Speed Insights scripts the layout loads.
- 1, Tue, Nov 10, 2026: The words as they stood when the trust index began; 19 earlier changes of its words since 2026-07-09 are in the repository.
Governance
Where: /governance
Version 1
Words last changed: Wed, Oct 14, 2026
History, 1
- 1, Wed, Oct 14, 2026: The words as they stood when the trust index began; 5 earlier changes of its words since 2026-07-10 are in the repository.
Transparency report
Where: /transparency
Version 1
Words last changed: Mon, Oct 26, 2026
History, 1
- 1, Mon, Oct 26, 2026: The words as they stood when the trust index began; 13 earlier changes of its words since 2026-07-16 are in the repository.
Accessibility statement
Where: /accessibility
Version 1
Words last changed: Wed, Oct 21, 2026
History, 1
- 1, Wed, Oct 21, 2026: The words as they stood when the trust index began; 3 earlier changes of its words since 2026-08-19 are in the repository.
Refusals
Where: /refusals
Version 1
Words last changed: Tue, Oct 27, 2026
History, 1
- 1, Tue, Oct 27, 2026: The words as they stood when the trust index began; 55 earlier changes of its words since 2026-09-24 are in the repository.
Privacy policy
Where: /privacy
Version 1; it states policy version 2026-08-31
Words last changed: Mon, Oct 26, 2026
History, 1
- 1, Mon, Oct 26, 2026: The words as they stood when the trust index began; 12 earlier changes of its words since 2026-06-11 are in the repository.
Terms of service
Where: /terms
Version 1; it states version 2.2, last updated October 11, 2026
Words last changed: Sun, Oct 11, 2026
History, 1
- 1, Sun, Oct 11, 2026: The words as they stood when the trust index began; 7 earlier changes of its words since 2026-06-11 are in the repository.
Sub-processors, dated, with their change log
Where: /subprocessors
Version 2
Words last changed: Tue, Nov 17, 2026
History, 2
- 2, Tue, Nov 17, 2026: Each group’s table, where it shows at desktop widths, takes a name of its own (it had shared its section’s); no word a reader sees changed.
- 1, Tue, Nov 10, 2026: First published, with its change log.
Security contact (security.txt)
Where: /.well-known/security.txt
Version 1
Words last changed: Wed, Oct 21, 2026
History, 1
- 1, Wed, Oct 21, 2026: The words as they stood when the trust index began; unchanged since they were first committed on 2026-10-21.
Procurement and trust package
Where: /procurement
Version 1
Words last changed: Tue, Nov 10, 2026
History, 1
- 1, Tue, Nov 10, 2026: The words as they stood when the trust index began; 62 earlier changes of its words since 2026-09-25 are in the repository.
Data processing agreement, the template for counsel
Where: /dpa
Version 1
Words last changed: Fri, Sep 25, 2026
History, 1
- 1, Fri, Sep 25, 2026: The words as they stood when the trust index began; unchanged since they were first committed on 2026-09-25.
Accessibility conformance report
Where: On request
Version 1; it states report date 2026-08-19
Words last changed: Wed, Aug 19, 2026
History, 1
- 1, Wed, Aug 19, 2026: The words as they stood when the trust index began; unchanged since they were first committed on 2026-08-19.
Row-level security, the live evidence
Where: On request
Version 1
Words last changed: Mon, Oct 26, 2026
History, 1
- 1, Mon, Oct 26, 2026: The words as they stood when the trust index began; 2 earlier changes of its words since 2026-09-24 are in the repository.
Outbound vendors and their contractual record
Where: On request
Version 1
Words last changed: Sat, Oct 10, 2026
History, 1
- 1, Sat, Oct 10, 2026: The words as they stood when the trust index began; 5 earlier changes of its words since 2026-09-24 are in the repository.
Incident runbook
Where: On request
Version 1
Words last changed: Fri, Sep 25, 2026
History, 1
- 1, Fri, Sep 25, 2026: The words as they stood when the trust index began; unchanged since they were first committed on 2026-09-25.
Incident and break-glass procedure
Where: On request
Version 1
Words last changed: Sun, Aug 30, 2026
History, 1
- 1, Sun, Aug 30, 2026: The words as they stood when the trust index began; unchanged since they were first committed on 2026-08-30.
Restore runbook
Where: On request
Version 1
Words last changed: Fri, Sep 25, 2026
History, 1
- 1, Fri, Sep 25, 2026: The words as they stood when the trust index began; unchanged since they were first committed on 2026-09-25.
The release ritual
Where: On request
Version 1
Words last changed: Fri, Sep 25, 2026
History, 1
- 1, Fri, Sep 25, 2026: The words as they stood when the trust index began; unchanged since they were first committed on 2026-09-25.
Lifecycle and recovery register
Where: On request
Version 1
Words last changed: Mon, Oct 26, 2026
History, 1
- 1, Mon, Oct 26, 2026: The words as they stood when the trust index began; 25 earlier changes of its words since 2026-09-25 are in the repository.
Governance calendar
Where: On request
Version 1
Words last changed: Wed, Oct 21, 2026
History, 1
- 1, Wed, Oct 21, 2026: The words as they stood when the trust index began; 3 earlier changes of its words since 2026-09-20 are in the repository.
Unauthorized-practice governance
Where: On request
Version 7
Words last changed: Wed, Nov 11, 2026
History, 7
- 7, Wed, Nov 11, 2026: A row for /developers, the contract of the access door, a public page of the attorney brand.
- 6, Tue, Nov 10, 2026: A row for /firm/controls, the firm controls, private and behind its switch.
- 5, Tue, Nov 10, 2026: A row for /workspace/today, the daily board, private and behind its switch.
- 4, Tue, Nov 10, 2026: Rows for /help and its guides, public pages of the attorney brand.
- 3, Tue, Nov 10, 2026: A row for /evaluation, a public page of the attorney brand.
- 2, Tue, Nov 10, 2026: Rows for /subprocessors, /dpa and /procurement, each a public page of the attorney brand.
- 1, Tue, Nov 10, 2026: The words as they stood when the trust index began; 60 earlier changes of its words since 2026-09-20 are in the repository.
Firm evaluation guide, as the thirty-day evaluation
Where: /evaluation
Version 2
Words last changed: Tue, Nov 10, 2026
History, 2
- 2, Tue, Nov 10, 2026: Published as /evaluation: the thirty days, the acceptance checklist from the capability register and the security questions answered in advance.
- 1, Fri, Sep 25, 2026: The words as they stood when the trust index began; unchanged since they were first committed on 2026-09-25.
The contract of the access door
Where: /developers
Version 3
Words last changed: Tue, Nov 17, 2026
History, 3
- 3, Tue, Nov 17, 2026: Each operation’s example takes the keyboard’s focus and a name, so a keyboard can scroll it on a phone; no word a reader sees changed.
- 2, Wed, Nov 11, 2026: What a keyed call is answered once the door opens: the reads served, and the three reads and the inbox that still fault with their reason.
- 1, Wed, Nov 11, 2026: First published, with the door closed (the owner’s D-12).
| Document | Where | Version | Words last changed | History |
|---|---|---|---|---|
| Security facts and this index | /security | 1 | Tue, Nov 10, 2026 | History, 1
|
| Trust center, with the sub-processors | /trust | 2 | Tue, Nov 10, 2026 | History, 2
|
| Governance | /governance | 1 | Wed, Oct 14, 2026 | History, 1
|
| Transparency report | /transparency | 1 | Mon, Oct 26, 2026 | History, 1
|
| Accessibility statement | /accessibility | 1 | Wed, Oct 21, 2026 | History, 1
|
| Refusals | /refusals | 1 | Tue, Oct 27, 2026 | History, 1
|
| Privacy policy | /privacy | 1; it states policy version 2026-08-31 | Mon, Oct 26, 2026 | History, 1
|
| Terms of service | /terms | 1; it states version 2.2, last updated October 11, 2026 | Sun, Oct 11, 2026 | History, 1
|
| Sub-processors, dated, with their change log | /subprocessors | 2 | Tue, Nov 17, 2026 | History, 2
|
| Security contact (security.txt) | /.well-known/security.txt | 1 | Wed, Oct 21, 2026 | History, 1
|
| Procurement and trust package | /procurement | 1 | Tue, Nov 10, 2026 | History, 1
|
| Data processing agreement, the template for counsel | /dpa | 1 | Fri, Sep 25, 2026 | History, 1
|
| Accessibility conformance report | On request | 1; it states report date 2026-08-19 | Wed, Aug 19, 2026 | History, 1
|
| Row-level security, the live evidence | On request | 1 | Mon, Oct 26, 2026 | History, 1
|
| Outbound vendors and their contractual record | On request | 1 | Sat, Oct 10, 2026 | History, 1
|
| Incident runbook | On request | 1 | Fri, Sep 25, 2026 | History, 1
|
| Incident and break-glass procedure | On request | 1 | Sun, Aug 30, 2026 | History, 1
|
| Restore runbook | On request | 1 | Fri, Sep 25, 2026 | History, 1
|
| The release ritual | On request | 1 | Fri, Sep 25, 2026 | History, 1
|
| Lifecycle and recovery register | On request | 1 | Mon, Oct 26, 2026 | History, 1
|
| Governance calendar | On request | 1 | Wed, Oct 21, 2026 | History, 1
|
| Unauthorized-practice governance | On request | 7 | Wed, Nov 11, 2026 | History, 7
|
| Firm evaluation guide, as the thirty-day evaluation | /evaluation | 2 | Tue, Nov 10, 2026 | History, 2
|
| The contract of the access door | /developers | 3 | Tue, Nov 17, 2026 | History, 3
|