liro

liro

Confidential rooms that still hold after Q-Day. Seal once, and anyone can check who signed it and for whom.

Run the exploit-to-fix demo on your machine (offline)

pnpm run demo

Needs Node 22.13 or newer and pnpm. CLI quickstart

A signed room, not just an encrypted file

A QoreSeal envelope encrypts one data key to every recipient and then encrypts the body under that key. That keeps outsiders out. It does not tell a reader who made the file, which members it was made for, or whether it is still the room's current one. Liro adds exactly that.

The flow

  1. Seal. The owner encrypts the body once, then wraps the data key separately to each member with ML-KEM-1024 and X25519. Every wrap is bound to a transcript: chain, app, purpose, document id, epoch, uploader, the hash of the sorted member set and the member’s own key hash. One canonical manifest lists it all and the owner signs it with ML-DSA-87.
  2. Register. The owner records the manifest hash, the body hash, the member-set digest and the epoch on the room contract. The ciphertext itself stays wherever you keep it.
  3. Grant. The owner grants each member access for that epoch. Grants are the access list and the audit trail; the lock is the encryption.
  4. Open. A member takes the uploader, the anchor and the epoch from the contract, never from the file, then checks the signature under the uploader’s on-chain key, finds their own wrap and unwraps it.
  5. Rotate. To remove a member, the owner seals again at the next epoch to the remaining members. The old envelope no longer matches the contract, and the removed member’s grant is dead.

Raw QoreSeal against Liro

The scenes below are real attacks, most of them by a legitimate member, run by pnpm run demo.

SceneAttackRaw QoreSealLiro
Co-recipient forgerybob rebuilds the body around alice’s untouched entryalice opens bob’s text with no errorBODY_HASH_MISMATCH, UPLOADER_MISMATCH, BAD_SIGNATURE
Set malleabilitybob swaps his slot for an outsider’s entrythe envelope opens cleanly and the outsider can read it tooBAD_SIGNATURE, MANIFEST_NOT_ANCHORED
Context confusionopen on the wrong chain or with the wrong purposegeneric DECRYPTION_FAILED, the same as corruptionCONTEXT_MISMATCH naming the field
Outsidera non-member tries to readNOT_A_RECIPIENT (hint-based, unsigned)NOT_A_RECIPIENT, and KEY_MISMATCH if they pose as a member
Replaya removed member presents the old owner-signed envelopeopens, with no signal that it is no longer currentMANIFEST_NOT_ANCHORED

What goes on chain

Only hashes, a location, the member-set digest, the epoch and the grants. No key and no plaintext ever touches the chain. Member addresses are visible, and so are grants and reported fetches: Liro has no hidden-participation mode, and says so.

Check it yourself

You do not need to trust this page. Keyless verification runs the same public checks from a terminal, and the security model lists what each one defends against.