Threat model
loot protects your content from the servers that store and carry it, and from repo members you have not granted. It does not protect the machine you work on, the shape of your history, or anything someone has already read.
This page names the adversaries. Which reader can read which tier is on the trust matrix, the canonical answer, and this page does not restate it.
Who loot defends against
A curious or compromised host
A host is a server you push to: a relay you run with loot serve, or a forge. It cannot read Restricted or Embargoed content, even after the reveal, because those keys reach it only inside grants sealed to a recipient's public key. It cannot forge a change in your name: every finalized change is signed, and a relay or peer rejects one whose signature does not verify. It cannot swap one object for another, because an object's address is the hash of its own bytes.
It can read everything around your content, listed on What a host can read. A relay also reads Internal content, because those keys ride in every sync bundle. A forge drops them and reads only Published content.
A network attacker
loot serve speaks plain HTTP. Over plain HTTP, anyone on the path sees what the relay sees, Internal keys included, so put TLS in front of any relay that is reachable from another machine (see Run a host of your own). A grant delivered over a relay stays sealed to its recipient even then. A grant written to a file with loot grant <path> <identity> <file> carries the key unsealed, so move that file as you would the secret itself. loot refuses to write one inside the working tree, or to record one found there.
A repo member without a grant
A member reads Internal content and carries Restricted content as ciphertext. A clone reports how many sealed paths it skipped. Taking someone's name does not help: keys are sealed to public keys, and an identity's name is a label loot displays, not a credential it checks. A member still sees every path and, unless you restrict .lootattributes itself, every rule in it, holder names included.
A former member
Take them off the host's access list and they can no longer pull from it (see Access control and allowlists). To close a Restricted path to them going forward, loot maroon <path> <identity> re-seals it under a new key and re-grants everyone else. Neither reaches what they already hold.
A lying clock
An embargo does not trust the reader's clock. Until the reveal time the key is not on a recipient's machine: the relay holds it as a grant sealed to them and releases it when its own clock passes the reveal time. An advanced clock or a patched binary has no key to open, and Evidence has the run that shows it. The relay's clock is trusted, so a hostile or wrong relay can release early. It cannot change the reveal time, because the grantor signs it.
A change's authored time is self-reported. It is signed, so no host can restamp it, but the signature proves who claimed the time, not that it is right.
What loot does not defend against
- Your own machine. Anything that can read
.loot/holds every tier unless you set a custody passphrase, and anything that can also read your unlock session holds it anyway. /trust starts there. - Metadata. loot seals content, not the shape of your history. Paths, messages, author keys, sizes and timing are readable by every host and member.
- Someone who already read it. A maroon, removing a member and a burn recall no copy anyone already made. If a secret leaked, rotate the secret.
- A stolen identity key. It opens everything sealed to it. Rotating changes what comes next, not what the thief already holds.
- Where a grant's key came from. A grant proves who issued it, not that they were entitled to the key. loot quarantines a grant from a key you have not registered with
loot peer add. - A git mirror. Restricted paths are kept out of git by omission, not by keys. /trust explains the difference.
- Flaws in loot itself. The cryptography's design has had no external review. If you find a flaw, report it.