Blog · Security
The technical specs, and what we leave out
What protects your connection, your sign-in, your loops and your messages, from your phone to our database, as IRL runs on 23 November. Most of it anyone can check from outside. The rest is how we keep what you send. At the end: the parts we leave out on purpose, and why.
From your phone to our database
Every step is encrypted. Here is each one, and what protects it.
- Your phone to our edge. A current browser connects with TLS 1.3 and the key exchange
X25519MLKEM768: today’s elliptic curves mixed with ML-KEM, the post-quantum standard NIST published in 2024. It’s designed so traffic recorded today can’t be opened later by a quantum computer, as long as ML-KEM holds. It goes over HTTP/3 on QUIC where your browser offers it, and HTTP/2 where it doesn’t. - The name of the site, hidden too. In browsers that support Encrypted Client Hello, the name irl.ing is encrypted inside the connection. The network you’re on sees a connection to our edge, not which site it was for. It can still see the name in your DNS lookup unless your device encrypts that as well.
- Our edge to our app. Encrypted again.
- Our app to our database. Encrypted, and the database’s certificate is checked against its name every time. In production our app connects no other way: if the certificate can’t be checked, it doesn’t connect.
- Our app to anyone else. Mail and the other services we call: HTTPS only. A test fails if our server’s code names a plain
http://address, and in production a setting given one is ignored.
Held to HTTPS, and to the right certificates
- HTTPS only, even the first time. Every name ending in .ing is on the list of HTTPS-only sites built into browsers, so a browser never connects to irl.ing, or to any name under it, over plain HTTP. Our own header says the same for two years, for browsers that don’t carry the list.
- Who may issue our certificates. Our DNS names the certificate authorities allowed to issue a certificate for irl.ing. Any other is required to refuse.
Signing in
- No passwords. You sign in with a passkey, or a code sent to your email. A passkey’s private half never leaves your device; we keep only the public half. There are no passwords on our side to leak.
- Your session. It lives in a cookie marked Secure and HttpOnly: it only travels over HTTPS, and scripts on the page can’t read it. It lasts 30 days, renewed as you use it, and ends when you sign out: once it has, it can’t be used again.
What your browser is told
- A strict content-security policy. Our pages run only scripts we serve, plus the bot check. They load no plugins, send forms only to us, and refuse to be shown inside another site’s frame. The one exception is the players made to be embedded elsewhere.
- Told when it refuses something. When a browser refuses something under that policy, it tells us. We count those reports by kind, and keep nothing about who you are.
- Pages write HTML only through checked paths. Our page scripts may write HTML or load a script only through a few checked paths (Trusted Types). It’s enforced in our tests; on the live site, browsers report anything that would break it.
- Nothing personal in a shared cache. An answer that depends on who’s asking is never kept where someone else could be given it. A test reads every route of our server, and fails if one that a shared cache may keep looks at who’s asking.
- No tracking or analytics scripts.
Your loops and pictures
They’re kept in private storage: nobody can list it or read from it directly. A loop plays through a signed link that ends after ten minutes, made only for someone allowed to see it. An upload goes through a link signed for that one file, at its exact size.
Your messages
- Sealed at rest. The words of a text message are sealed with ChaCha20-Poly1305, using HACL*. Its cipher code is mathematically proven to compute the standard exactly, and written so its timing doesn’t depend on the key. The proof covers that code, not the code around it or the machine it runs on. Each message is bound to its conversation, its sender and its own id, so sealed words can’t be moved into another conversation or swapped with another message. The key lives outside the database, so a copy of the database shows scrambled text.
- Never stored in the clear. In production, if the key were missing, sending would stop rather than store your words unsealed.
- What this isn’t. End to end. Our server opens a message to review it before it’s delivered, and to show it to the people in the conversation. We’d rather say so.
A key’s life
New this week. Each time the cipher seals a message, it uses a random 96-bit number called a nonce. If one ever came up twice under the same key, that key would be weakened. The chance grows with every seal, so now every seal is counted against its key, before what it sealed is stored. The count can run a little over, never under.
At 228 seals, about 268 million, our health check asks for a new key, and a person puts it in. That is sixteen times under the usual limit of 232, and the chance of any repeat by then is about one in two trillion. The limit itself is enforced: a key that reaches 232 seals nothing more, and text messages pause until the new key is in.
When the key changes, every deploy seals stored messages again with the new one. That includes the copies kept in our review record when a message is reported or held, and older copies kept before sealing, which are now sealed too. Each one is rewritten only if it hasn’t changed since it was read, so a re-seal can run beside the live site, or stop halfway and start again, without losing a message. An old key leaves the live site only once nothing stored is sealed with it, and our health check turns red if a stored message’s key is ever missing.
Backups hold what was stored when they were made, until they expire. So an old key is kept offline, out of the site, for as long as a backup might need it.
Checked against our real database
IRL Formal 5 writes two rules exactly: someone outside a conversation never reads its messages, and with no key, no message’s words are stored. Then it tests them against our real database code:
- the key changing while messages are still being written: 60 of them, half arriving during the change, none lost or changed;
- a key at its limit: nothing more is sealed, and a message sent then is refused and not stored;
- a re-seal stopped partway, then run again;
- an old key retired, and a missing one noticed;
- a signed-out session asking for a conversation;
- two people asking for the same conversation at the same moment, one in it and one not.
All pass. These are tests: they sample, they don’t prove. So a model checker also tries every order of every step in a key’s life, within a small size: sending and unsending, changing and retiring keys, and a deploy’s re-seal stopping anywhere and starting again. Across all 693,189 states it reaches, every rule holds. Switch off any one protection in the model and it finds the rule that protection is there for, broken.
It found one more problem, now fixed. When the key changed, a deploy moved stored messages to the new key while the version still serving didn’t have it yet. For a short time those messages couldn’t be opened, and for longer if the deploy then failed. Now they move only once the live version has sealed a message with the new key.
What IRL Formal is, and what it doesn’t claim, is in Checking the rules a bot must never get around.
What we watch
Our own health check reads the live site: whether the database connection is encrypted with a checked certificate, whether HTTP/3 is on offer, how many seals each key has made, and whether any key is missing. It turns red when one slips.
What this doesn’t cover
- Messages aren’t end to end, as above.
- The certificate that proves the site is ours is still signed the classic way. Browsers don’t accept post-quantum certificates yet.
- A browser that doesn’t offer the post-quantum key exchange gets today’s. One without Encrypted Client Hello sends the site’s name in the open.
- We run on hosting, storage and network providers, and their security is part of ours.
What’s next
- Trusted Types enforced on the live site too, once the reports show nothing real would be refused.
What we leave out
This post covers what anyone can see from outside, like headers, DNS and how a connection is made, and how we keep what you send. Some of how we keep bots out is public too, in IRL Formal. What we don’t publish: the thresholds, the signals we look for, the details of how reviews decide, and which provider does what. Those work better unknown.
If you find a weakness, write to [email protected] and tell us how to see it. Please don’t test it on other people’s accounts; make your own.
New to IRL? Make your @name.