Insights

Why this site keeps a ledger

A defacement string sat in a journal's settings table and nobody noticed. Here is how we make sure that cannot happen to us.

Block 54 Verified

On a recent recovery job we found a line of text in a journal's settings table: a hacker's signature, left there months earlier. The site looked normal. Nothing alerted anyone, because nothing was watching the database.

Shared hosting is like that. The web server, the code and the database all trust each other, so anyone who gets into one can quietly change the others.

What we do instead

Every time we save anything on this site, the CMS writes a block to a ledger: what changed, a SHA-256 fingerprint of the new content, and the fingerprint of the block before it. The block is signed with a key that never leaves the server's private folder.

When a page is shown, the site re-fingerprints the content and compares it with the ledger. If someone edits the database directly, the fingerprints stop matching. The page says so in red, and we get an email.

Why that is not enough on its own

An attacker with full access could rewrite the ledger too. Two things stop that:

  • Every few hours, the newest blocks are combined into one Merkle root and timestamped on Bitcoin through OpenTimestamps. Rewriting our history would mean rewriting Bitcoin's.
  • Witness nodes on other servers record our latest block. If our chain ever disagrees with what they saw, we know.

Check it yourself

The ledger page re-verifies the entire chain in your browser, signatures included. You do not have to trust us.

More notes