Skip to content
SigilChain

SigilChain

Trace leaked files to a signed decryption session

Created on 11th October 2026

•

SigilChain

SigilChain

Trace leaked files to a signed decryption session

The problem SigilChain solves

A leaked page rarely points to a person. When a confidential PDF goes to dozens of people, they all decrypt the same bytes. Server logs can be edited, "downloaded" is not "opened", and a static watermark is identical on every copy.

SigilChain ties a leaked page to one recorded decryption session, and lets an investigator verify that without trusting anyone's server.

  • Encrypt once for named recipients: one AES-256-GCM ciphertext plus a post-quantum ML-KEM-768 key envelope per recipient.
  • Mark at decryption: the recipient's own device embeds a fresh, random, invisible 96-bit watermark (DCT + Reed-Solomon) into every page.
  • Sign the event: the agent signs the session record with the recipient's ML-DSA-65 key. The private key never leaves the device.
  • Commit before release: three validators on an etcd/Raft ledger must return two signed receipts before the marked PDF is written. No commit, no copy.
  • Trace and prove: upload a leaked screenshot or PDF to the trace console. It recovers the watermark, re-verifies the signature, the pinned validator receipts and the hash-chain proof itself, and exports an evidence bundle that can be checked offline.

Who it helps: teams that share sensitive material with a controlled group (defence and government units, legal and compliance teams, boards, research consortia), including networks with no cloud, since it deploys air-gapped with Docker.

Honest by design: if the watermark is weak or fewer than two validators agree, SigilChain reports inconclusive and names no one. The evidence links a file to a recorded session and recipient key. It does not, by itself, prove who physically distributed the file.

Challenges we ran into

1. Two offline Docker stacks overwrote each other's image. Both stacks used the same local image tag, so starting one could silently replace the image the other expected. The original validators then crashed with missing Python modules. I made the offline flow reload the bundled images before starting the stack, and added SHA-256 verification of the image archive, so the import refuses a corrupted or incomplete bundle and the expected images are always restored.

2. The trace console hung on its loading screen. Streamlit relies on a WebSocket, and it failed behind our reverse proxy. Two causes: the proxy was not negotiating a valid Sec-WebSocket-Protocol (echoing the raw header produced an invalid response, and omitting it was rejected by Streamlit's client), and Docker Desktop's injected host-proxy settings were being applied to an internal container-to-container hop. I fixed the subprotocol negotiation, bypassed the host proxy for the internal connection, and confirmed the console loads and checks a marked PDF.

3. Photographed pages broke the watermark. On a tilted photo, extraction fell to a bit error rate of about 51%, which is random guessing. Adding document-boundary detection, perspective correction and sub-pixel corner refinement recovered the payload exactly on all three synthetic tilts we tested. Because real camera conditions are harder, we gate the result on confidence: weak evidence is reported as inconclusive, never as an accusation.

Discussion

Builders also viewed

See more projects on Devfolio