Security
Last updated:
Vaakil AI holds confidential legal work. These are the controls actually in place today, enforced in the database and on the server rather than in your browser.
1. Your rows, enforced by the database
Every request that reads or changes your data runs inside a database transaction that switches to a restricted role (app_user) and records your verified user ID. Postgres row-level security policies then allow that role to see and change only rows that belong to you: matters, documents, chats, drafts, assistants, consents, usage records and payments.
Because the check lives in the database, a bug in application code cannot show one user's records to another. Tables such as sessions, two-factor secrets and one-time passcodes are not readable by that role at all. Your identity always comes from the verified session, never from anything your browser sends.
2. Records nobody can quietly change
- Audit log: important events (sign-ins, consent changes, signature steps, administrative actions) are appended to a log in which each entry stores a SHA-256 hash of the previous entry and its own contents. Database triggers reject any update or deletion, and the chain can be re-verified end to end; any edit, deletion or reordering breaks it.
- Draft history: each saved version of a draft is kept with its hash and cannot be edited afterwards.
- E-sign: signing events are append-only and hash-chained per envelope. The hashes of the original, locked and final documents cannot be changed once set, completed or voided envelopes cannot change state, and only drafts can be deleted.
3. Sign-in and sessions
- Two-factor authentication with an authenticator app (TOTP), with one-time backup codes.
- Passwords of at least 10 characters, stored only as one-way hashes. Resetting a password signs out other sessions.
- Rate limits on sign-in (5 attempts a minute), sign-up, password reset and two-factor verification, plus Postgres-backed limits on expensive actions that hold across servers.
- Sessions expire after seven days; cookies are marked secure in production and email verification is required there.
- E-sign one-time passcodes are stored only as hashes, expire, and lock after repeated wrong attempts.
4. Browser protections
Every response carries security headers:
- A Content Security Policy that loads scripts, styles, fonts and connections only from our own origin, blocks plugins (
object-src 'none') and forbids other sites from framing ours (frame-ancestors 'none'). - Strict-Transport-Security for two years, including subdomains, so browsers use HTTPS only.
X-Content-Type-Options: nosniff,X-Frame-Options: DENY, a strict referrer policy and a cross-origin opener policy.- A permissions policy that turns off camera, geolocation, payment and USB access, and limits the microphone to our own pages.
No third-party analytics or advertising scripts run on Vaakil AI.
5. Uploads and keys
- Uploaded files are identified by their content (magic bytes), not by name or the type your browser claims, and are size-limited.
- File paths are generated by the server; nothing you type is used to build one.
- API keys for AI, email, payments and e-sign stay on the server and are never sent to your browser.
- AI requests pass through one server-side gateway that applies fair-use limits and records usage, so keys are used in one place.
6. Privacy by design
Consent is recorded per purpose with the notice version, a data-rights centre lets you download your data or ask for correction or erasure, and requests are tracked to the 90-day deadline in the DPDP Rules. See the privacy notice.
7. What we do not claim
Vaakil AI has not yet completed an independent security audit, penetration test or certification such as ISO/IEC 27001 or SOC 2. We will not describe the service as certified until that is true, and will publish the results here when we have them.
8. Report a vulnerability
If you find a security issue, email help@vaakil.com with the subject “Security report” and the steps to reproduce it. Please do not access other users' data or disrupt the service while testing. We will acknowledge your report and keep you informed.