Skip to content
PdfWatch.
Technical Security Whitepaper

PdfWatch Security & Zero-Knowledge Architecture

Document Version: 2026.11 · Classification: Public Customer & Investor Due Diligence

1. Executive Overview

PdfWatch provides encrypted PDF sharing and Virtual Data Rooms (VDR) built on a client-side zero-knowledge model. Document files, filenames, Data Room document titles, Q&A messages, Q&A answer templates and custom NDA texts are encrypted and decrypted inside the user's browser using the Web Crypto API with AES-256-GCM. Data Room and folder names are stored in plain text so the entrance gate and verification emails can show them.

2. Zero-Knowledge Key Hierarchy

Decryption keys are never transmitted to PdfWatch servers in plaintext:

  • Owner Vault Key: Derived locally in the browser from the owner's vault password and a 16-byte per-user random salt using Argon2id. Used to wrap document keys and data room master keys at rest.
  • Data Room Key: A 256-bit random AES-GCM key placed in the URL fragment (#key=...) of investor share links. Browsers never send URL fragments in HTTP requests.
  • Stage-Gated Folder Sub-Keys: Locked folders use an independent 256-bit AES-GCM stage sub-key wrapped with the room key. The server only releases the wrapped stage sub-key to sessions whose email has an approved access request or group grant.

3. Cryptographic Parameters Implemented in Code

OperationAlgorithm & Parameters
Document & Metadata EncryptionAES-256-GCM (256-bit key, 96-bit / 12-byte random IV per encryption via Web Crypto API)
Vault Key DerivationArgon2id (memory = 65,536 KiB / 64 MiB, time = 3 iterations, parallelism = 1, hashLen = 32 bytes, 16-byte random salt)
Room Entrance Password Hashbcrypt (cost factor 10) verified server-side prior to issuing a room session cookie
Viewer Session TokenHMAC-SHA256 signed HttpOnly cookie (pdfwatch_room_sess_<roomId>) bound to roomId, shareToken, email, linkId, and NDA version
Email OTP Verification6-digit CSPRNG numeric code hashed with SHA-256, 10-minute TTL, max 5 attempts
NDA Evidence IntegritySHA-256 hex digest of the exact NDA text presented to the signer plus AES-GCM encrypted snapshot
Outbound Webhook SignaturesHMAC-SHA256 over <unix_timestamp>.<raw_json_body> in X-PdfWatch-Signature

4. Access Controls & Step-Up Authentication

Room owners can enforce email OTP verification, domain allowlists and blocklists, consumer email blocking, per-recipient share links with max-open limits, investor group folder visibility, and one-sign master NDAs. For owner accounts with TOTP two-factor authentication (2FA) enabled, destructive or compliance-sensitive actions (deleting a room, managing webhooks, exporting audit logs, deleting NDA templates, running GDPR privacy tools, or deleting an account) require an active aal2 step-up session.

5. Audit Logging, Backups & Retention Schedule

Every administrative and investor room event is recorded in an immutable audit log. Encrypted database backups run nightly using pg_dump piped directly into age public-key encryption.

Audit log integrity: Each room audit entry is assigned a monotonic per-room sequence number (chain_seq) and a SHA-256 digest (row_hash) computed over the entry fields and the preceding entry's prev_hash. This per-room hash chain proves that retroactive edits or deletions in the middle of the chain are detectable during verification. It does not, by itself, prevent a party with full database write access from recomputing the tail of the chain unless the room owner has previously exported a snapshot containing an earlier head_hash.

Data CategoryRetention Period
Data Room Audit Logs (data_room_audit)3 years (1,095 days)
Notification & Event Outbox (data_room_events)90 days
Webhook Delivery Logs (data_room_webhook_deliveries)30 days
System Health Pings (health_pings)90 days
Encrypted Nightly DB Backup Artifacts30 days

6. Infrastructure Compliance & Authentication Standards

PdfWatch combines zero-knowledge client-side cryptography with enterprise cloud infrastructure and multi-factor authentication controls:

  • SOC 2 Type II Infrastructure Subprocessors: Database storage, serverless compute, and edge security are hosted on SOC 2 Type II and ISO 27001 certified cloud infrastructure (Supabase, Vercel, and Cloudflare), while client-side AES-256-GCM encryption ensures plaintext documents are never exposed to underlying cloud providers.
  • Multi-Factor & Step-Up Authentication: Accounts support email/password and OAuth sign-in hardened by RFC 6238 TOTP authenticator two-factor authentication (2FA) and mandatory aal2 step-up verification for sensitive data room and compliance operations.

7. Responsible Disclosure

If you discover a security vulnerability, please report it to [email protected]. See also our RFC 9116 policy at /.well-known/security.txt, our Subprocessors List, and our Data Processing Agreement (DPA).