Honest, specific, and short. Nothing in this doc is a hedge or an aspiration — the guarantees below are what the code actually delivers today (Phase 1). Aspirational items are called out as explicit non-goals.
Quorum's signed hash chain gives you cryptographic proof that:
| Threat | Detected by |
|---|---|
| A row's content was modified after signing | chain_hash recompute mismatches stored chain_hash → verify returns ok:false, reason: "content tampering" |
| A row was deleted from the middle of the chain | Next row's prev_chain_hash no longer matches the actual prior tip → reason: "chain link broken" |
| A row was inserted retroactively | Same as above — the neighbour's prev_chain_hash doesn't match |
| Rows were reordered | Same as above — chain integrity fails at the reordered boundary |
The signature on any row was forged / substituted |
ECDSA verification fails against the named signer_key_id's public key |
| A revoked API key is used to append new events | Server rejects with 401 |
| A client tries to append to a different app's namespace than its key was issued for | Server rejects with 403 |
| The tail of the chain was truncated (last N rows deleted) | Caller passes expected_last_seq (from its own remembered tip) OR expected_tip_hash (from an off-box anchor via GET /v1/events/tip) to /v1/events/verify → reason: "chain truncated" or "tip mismatch". The Python SDK persists the remembered tip automatically and defaults expected_last_seq on every verify() call — truncation detection is on by default. |
Verification uses ONLY the event data + the public keys — no server state is
trusted. An auditor can pull /v1/keys/public, take a snapshot of the events,
verify offline, and the result stands even if the server is later compromised.
A malicious but authenticated client submitting logically-false-but-syntactically-valid
events. Quorum proves the event was signed AT the time claimed; it cannot judge
whether the event's content reflects reality. If your app's record_action("deleted customer 42") runs when no delete happened, Quorum will sign that lie faithfully.
Mitigation: least-privilege API keys + application-side correctness. Same as
any authenticated system.
Compromise of the Quorum Server's ROOT process — an attacker with root inside the container can read the private signing key and re-sign anything. Mitigations available today:
- Run Quorum on a hardened, minimal host (the shipped Docker image runs as a non-root user, but the host it runs on matters).
- Enable per-client-provided signing keys (deferred to Phase 2) — the client holds the private key, Quorum only accepts pre-signed events. Compromised server can rewrite storage but can't re-sign.
- Snapshot chain tips off-box on a schedule (e.g. hourly
chain_hashof the latest event pinned to a separate append-only store like S3 Object Lock or a git repo you control). Server compromise can't forge history that's already been anchored elsewhere.
Physical tampering with the storage device. SQLite file bytes on disk are readable to root. Mitigation: full-disk encryption, hardware attestation, standard infra hygiene. Quorum doesn't try to solve this at the app layer.
Key exfiltration via the private key file. The private key lives at
/var/lib/quorum/keys/signing.key with mode 0600 (owned by the quorum
user in the Docker image, devon on bare-metal). Mitigation: HSM-backed
keys, deferred to Phase 2. The API surface is compatible — only the storage
backend changes.
A common (and fair) question: "Doesn't Quorum also use SQLite under the hood? How is that different from any other app that logs to SQLite / Postgres / whatever?"
There are two layers in any audit system, and it matters which one carries the security guarantee:
- Storage substrate — where bytes live on disk (SQLite, Postgres, a file, S3, whatever the platform ships with).
- Cryptographic tamper-evidence layer — what makes modifications to those bytes detectable (signatures + hash chain + tip anchoring).
Most enterprise AI-logging setups today ship with layer 1 only — a plain SQLite or Postgres table into which the platform writes structured events. Anyone with database access (a DBA, an ops engineer, an attacker with a stolen credential, a support person with root) can UPDATE a row silently, and neither the application nor the auditor can tell it happened.
Quorum uses SQLite for layer 1 AND provides ECDSA P-256 + SHA-256 hash-chain for layer 2, so a direct DB modification is detected on the next /verify call:
| Attack against SQLite directly | Plain audit-log app | Quorum |
|---|---|---|
| Modify a row's payload | Silent — no way to know | /verify → reason: "content tampering" at exact seq |
| Delete a row from the middle | Silent | /verify → reason: "chain link broken" with gap |
| Truncate the tail (delete last N rows) | Silent | /verify catches via expected_last_seq + expected_tip_hash (SDK on by default) |
| Rewrite the whole DB | Silent | /verify → broken_at: 1 on first check |
The substrate matters less than the cryptographic layer on top of it. Every event's chain_hash is recomputed on /verify from the stored data + the signed neighbours — modify anything, that recomputation diverges, and the tamper is reported with a specific seq and reason.
Phase 2 will add a Postgres backend option — that's for scale (multi-node, higher throughput, HA) and enterprise integration, NOT because SQLite is a security weakness. The Phase 1 SQLite implementation is fully tamper-evident today: 5/5 smoke gates + 6/6 red-team gates PASS on the lab. See QUORUM-MVP-Spec.md and test_redteam.py for the exact scenarios.
Key mental model: the tamper-evidence isn't a policy Quorum enforces — it's a math property of the chain. That distinction is what auditors care about, and it's what survives a hostile forensic review 18 months after an incident.
Design question, honestly on the table. Quorum's Phase 1 signs events with a server-side ECDSA key. The chain is fully tamper-EVIDENT under that model — any modification, deletion, or reorder is detected on verify. What Phase 1 does NOT yet provide is fully independent evidence: because the server operator holds the signing key, a determined operator could in theory refuse to append events, or (with root access, see above) re-sign a rewritten history.
For most applications this is fine — the server operator is the customer's own infrastructure, the risk model is "detect tampering by outsiders," and the ECDSA + hash-chain layer handles it cleanly.
For regulated-buyer scenarios where the customer needs the chain to constitute independent evidence — evidence that stands up even if the vendor, the customer's own IT, or a court-appointed forensic reviewer wants to interrogate it — the design open question is where the signing key sits. Options being explored for the Team tier:
- KMS-backed keys — signing key held in the customer's own cloud KMS (AWS KMS, Azure Key Vault, GCP KMS). Server calls out to sign; server operator never sees the private material.
- HSM-backed keys — hardware security module at the customer, same shape.
- Threshold (M-of-N) signing — private key sharded across multiple parties; no single party (including Devon Microsystems) can sign alone.
- Public-anchor notarization — periodic tip anchoring to a public/permissionless chain, so history rewrites become detectable by any external observer.
Design is not finalized. Current thinking routes this through the Sept 2026 collaboration with the ITAM identity-framework community. If your compliance model requires customer-held key material, open an issue or reach out — the Team-tier architecture will be shaped by real-world requirements before it ships.
- Algorithm: ECDSA P-256 (secp256r1) with SHA-256 for signatures. Chosen because it's ubiquitous, hardware-supported (HSM path stays open), and produces short signatures (~70 bytes).
- Generation: Automatic at first boot. Private key persisted at
<QUORUM_DATA_DIR>/keys/signing.key(PKCS8 PEM, mode 0600). Public key atsigning.pub(world-readable). - Rotation:
POST /v1/admin/keys/rotatearchives the current key (public PEM moved tokeys/rotated/<key_id>.pub, private key destroyed) and generates a new active pair. Prior events keep verifying because each event'ssigner_key_idnames the specific key that signed it. - Storage backend: File-only in Phase 1. HSM (PKCS#11 / KMS-signing)
compatible via the same
SigningStoreinterface — planned for Phase 2.
Generated at first boot. Persisted at <QUORUM_DATA_DIR>/admin_token.txt,
mode 0600. This is the ONLY credential that can create API keys or rotate
signing keys. Treat it like a root password:
- Store in your existing secret manager (Vault, AWS Secrets Manager, 1Password).
- Rotate periodically by wiping the file + restarting (a new one generates).
- Never commit it to git or ship it in images (the
.gitignore+.dockerignoreblockadmin_token.txtby name — but be careful with volume mounts / backups).
Per-app credentials issued by the admin. Stored hashed at rest with argon2id
(never in plaintext after creation). Format: <id>.<secret>. The id is safe
to log; the secret is only ever returned once — like Stripe's model.
Scope: each key is bound to a single app name at creation. A my-app key
cannot submit event.app: "other" — the server enforces this at every
POST /v1/events/append.
Revocation is instant. Revoked keys keep failing 401 forever; already-signed events remain valid (revocation ≠ tampering).
The shipped Docker image serves HTTP. Terminate TLS in front of it for any deployment where the network isn't fully trusted:
- A reverse proxy (Caddy, nginx, Traefik) is the standard pattern.
- The Docker Compose file can be extended with a
caddyservice — seedocs/DEPLOYMENT.md.
Uvicorn does support --ssl-certfile / --ssl-keyfile if you prefer to
terminate directly in the container. Either works.
Before pointing Quorum at real production audit traffic:
- Non-default admin token (never share the first-boot token; rotate on install)
- TLS in front of the server (real cert, no self-signed for production)
- Data volume on encrypted storage
- Regular backups of
/var/lib/quorum(event log + keys + admin token) - Off-box chain-tip anchoring on a schedule — poll
GET /v1/events/tip(returnslast_seq,chain_hash,signature) and append it to a separate write-once store (S3 Object Lock, git repo, an air-gapped log). Laterverifycalls passexpected_tip_hash=<anchored value>to catch any history rewrite that would otherwise be internally consistent - Server exposed only via allow-listed origins (VPC / firewall / mTLS)
- Signing key rotation policy defined (recommended: yearly, or on any operator with private-key access leaving)
- Admin token stored in a real secret manager, not on disk in plaintext
- Audit log RETENTION policy documented (how long do you keep chain history? Legal + compliance driven, not technical)
- Monitoring: alert on
/healthfails, on new admin API key creations, on anyverifyresult withok:false
For MVP: open an issue tagged security in the repo. For pilot customers
under NDA: whatever channel we agreed on in your contract.