Transparency Logs: CT, Sigstore & Witnesses
Hold central authorities accountable with append-only logs, SCTs, consistency proofs, Sigstore Rekor, Key Transparency, and witness cosigning.
In this lesson (3 bite-sized sections)
Making central authorities accountable without removing them
Some infrastructure must stay centralized for usability or speed: Certificate Authorities issue TLS certs in seconds, package registries sign releases, and messaging providers serve key directories. Historically, if a CA got compromised (like DigiNotar in 2011) and secretly minted a fraudulent *.google.com certificate for targeted surveillance, nobody noticed for weeks. Transparency logs flip the security model from "blindly trust the authority" to "detect every misbehavior publicly within minutes."
A transparency log is an append-only Merkle tree that accepts signed entries, returns a cryptographic promise or proof of inclusion, and periodically signs its current tree root and size as a Signed Tree Head (STH) (or signed checkpoint). Even if an attacker compromises a CA or release key, browsers and package managers refuse to accept any certificate or artifact that lacks a log entry, forcing the attacker to publish evidence of their own compromise into the public log where domain owners and monitors spot it immediately.
SCTs, consistency proofs, and real deployments
Three production ecosystems run on this exact pattern:
- Certificate Transparency (CT, RFC 9162): Browsers require at least two SCTs (Signed Certificate Timestamps) from independent CT logs embedded inside every TLS certificate. An SCT is a log's signed promise to merge the cert within its Maximum Merge Delay (typically 24 hours).
- Sigstore Rekor: Developers sign container images and packages with short-lived OIDC-backed ephemeral keys (Fulcio) and log every signature into Rekor, an immutable transparency log. Even after the 10-minute certificate expires, Rekor's inclusion proof proves the artifact was signed while the maintainer's identity was valid.
- Key Transparency (WhatsApp, Apple iMessage): Messaging directories commit every user's public-key history into a verifiable tree so clients automatically audit whether a server ever served a fake key for their account.
An inclusion proof only shows an entry is in today's tree; it does not prove the log operator did not silently delete yesterday's rogue entry and rebuild history. That is the job of a consistency proof: given an old STH at size M and a new STH at size N > M, the log supplies O(log N) hashes proving that the new tree is a strict append-only extension of the old tree with zero edits or deletions.
| Proof / Mechanism | Question it answers | Proof size | Attack it catches |
|---|---|---|---|
| Inclusion proof | Is entry X inside tree root at size N? | O(log N) hashes | Log claims it accepted an entry (SCT) but omitted it |
| Consistency proof | Does tree size N strictly extend tree size M? | O(log N) hashes | Log rewrites or deletes past entries after publishing STH M |
| Witness cosigning | Did independent auditors see the exact same STH? | Constant (K signatures) | Split-view attack showing victim and monitors different trees |
Stopping split-view equivocation with witness cosigning
What if a nation-state compromises both a CA and the transparency log operator? The malicious log can mount a split-view (equivocation) attack: it shows the global public monitors a clean tree A, while handing one targeted victim a fork B containing the fraudulent certificate. Both trees have valid internal inclusion and consistency proofs on their own!
To defeat split views without forcing every browser to gossip peer-to-peer (which leaks browsing privacy), modern transparency systems (Go Checksum Database, Sigstore, C2SP) use witness cosigning. A diverse set of independent witnesses (run by different organizations) continually polls the log, verifies a consistency proof from the last checkpoint they saw to the new checkpoint, and countersigns the checkpoint only if it strictly extends their stored state. Clients reject any checkpoint lacking a threshold of witness cosignatures (e.g., 3 of 5 independent witnesses). Since honest witnesses refuse to sign two diverging forks at the same tree size, split-view equivocation becomes cryptographically impossible unless an attacker compromises the threshold of witnesses simultaneously.
Publicly accountable transparency log with witness cosigning: an architecture diagram of 5 components and 5 connections. Full description follows.
- CA or CI Signer (submits entry): service.
- Append-only Transparency Log (CT / Rekor): database.
- Independent Witnesses (verify consistency & cosign): external system.
- Domain / Package Monitors (alert on rogue entries): service.
- Browser or CLI (checks inclusion + witness quorum): client.
- CA or CI Signer (submits entry) calls synchronously Append-only Transparency Log (CT / Rekor) (appends cert or artifact sig).
- Append-only Transparency Log (CT / Rekor) calls synchronously Independent Witnesses (verify consistency & cosign) (sends new STH + consistency proof).
- Append-only Transparency Log (CT / Rekor) sends asynchronously to Domain / Package Monitors (alert on rogue entries) (streams all logged entries).
- Independent Witnesses (verify consistency & cosign) sends asynchronously to Browser or CLI (checks inclusion + witness quorum) (cosigned checkpoint bundle).
- Append-only Transparency Log (CT / Rekor) calls synchronously Browser or CLI (checks inclusion + witness quorum) (O(log N) inclusion proof).
Match each real-world transparency mechanism to the exact failure it closes.
Sort 4 more items to check
Recap: transparency logs turn silent authority compromise into publicly observable evidence using O(log N) inclusion proofs, consistency proofs enforce append-only history, monitors alert asset owners, and independent witness cosigning eliminates split-view equivocation.
Sources: RFC 9162, Certificate Transparency 2.0 · Sigstore Rekor Architecture · C2SP Witness Cosigning Spec
Apply
Your turn
The task this lesson builds to.
Propose a public software-release transparency architecture for a package registry serving 500,000 open-source packages so a compromised registry or maintainer key cannot silently ship a backdoored release to a single targeted enterprise.
Think about
- How do ephemeral OIDC signing (Sigstore style) and an append-only transparency log work together?
- What stops the package registry from deleting a rogue entry or showing a targeted company a forked split-view log?
- What runs continuously to catch unauthorized releases once they enter the log?
Draft your design answer here Save your draft, compare against the model answer, and track progress.
Practice
Make it stick
A second problem on the same idea, so it survives past today.
Specify the client verification and privacy architecture for an enterprise mobile OS adopting Certificate Transparency (CT) and Key Transparency (KT) across 1 billion devices without leaking users' browsing histories or contact graphs to log operators.
Think about
- Why would a browser querying a CT log live during every TLS handshake be both a latency disaster and a privacy catastrophe?
- How do stapled SCTs / inclusion proofs and witness-cosigned checkpoints let clients verify offline?
- How does Key Transparency prevent a directory from telling an auditor who Alice messages?
Draft your design answer here Save your draft, compare against the model answer, and track progress.