ENCRYPTION & ISOLATION
Each client engagement is sealed inside an AES-256-GCM Data Ball.
Client tax records, normalized ledgers, and phase reports are stored inside a per-client encrypted container (vault.databall). Each container uses authenticatedAES-256-GCM encryption, per-client HKDF-SHA256 key derivation, a SHA-256 Merkle integrity tree, and rolling encrypted snapshots.
1 · Per-client Data Ball specification
| Layer | Mechanism | Guarantee |
|---|---|---|
| Envelope cipher | AES-256-GCM (96-bit IV, 128-bit auth tag, AAD bound to slug) | Confidentiality and authentication. Any byte modification fails GCM tag verification before decompression. |
| Per-client key derivation | HKDF-SHA256 + optional per-client scrypt passphrase | Derives an isolated 256-bit key per client (cmsg-databall:v1:<slug>). Keys are not shared across engagements. |
| Merkle integrity tree | SHA-256 per file + sorted Merkle root | Detects disk corruption or unsealed edits across source documents, ledgers, and reports. |
| Cold-storage lock | Lock / Restore in the Data Ball tab | Seals and verifies vault.databall, then deletes plaintext working files from disk until restored. |
| Encrypted snapshots | Rolling .vault-snapshots/*.databall + archive export | Retains up to 10 point-in-time encrypted archives per client, with portable download and verification on import. |
2 · Engagement directory boundary
The server scanner only mounts valid client containers inside clients/<slug>/. Directories outside clients/ and blocked legacy slugs are ignored by the scanner and never served over the API.
3 · Runtime and network controls
- Filename sanitization: Uploaded filenames are stripped to a safe basename and checked against an extension allowlist; path traversal sequences and executable scripts are rejected.
- AST report rendering: Markdown deliverables and annotations are parsed into React elements without
dangerouslySetInnerHTML. - Loopback bind and authenticated tunnels: The server binds to
127.0.0.1by default. Remote deployments run behind a Cloudflare Tunnel withscryptpassphrases,HMAC-SHA256session cookies, and IP allowlists.