Protocol guide
Security model
What each security mode protects and against whom, what servers still see in secure contexts, the accepted residual risks, and the security checklist for clients, bots and servers.
Specification: 22 Security considerations and threat model, 00 Overview, architecture and conventions
This page explains what the Sloppy Voice protocol promises about security, what it deliberately doesn't, and which requirements keep those promises. It summarises the trust model of 00 §5 and the threat model of document 22. Read it before you describe a client, bot or SDK as secure, and before you review an implementation.
Document 22 defines no endpoint, object, event, error code or timer. Every mechanism it names is specified in its owning document, and where 22 and that document disagree, the owning document wins (22 §1.2). Most of 22 is analysis. Three parts are normative (22 §1.3):
- the list of claims that clients, their help pages and their documentation MUST NOT make (22 §12.3);
- the implementer checklist (22 §13), where each item has the force (MUST or SHOULD) it has in its owning document;
- the residual-risk register (22 §8.2): a risk counts as "accepted" only if it has an
RR-*ID there (PD-22-3).
Warning
Insecure contexts are readable by their servers by design. In an insecure channel, DM or group DM, the hosting server, its relay and its SFU can read, hear, see, record, alter and forge everything, and the user's home server can read notification previews and impersonate the user. TLS and DTLS protect insecure contexts only against third parties: the network and unrelated servers. This is the owner's core requirement, not a defect (00 §5.1, RR-3).
The two modes
Every context (a channel, a 1:1 DM or a group DM) is either insecure or secure (00 §4.1). The two modes rest on different trust:
- Insecure mode is conventional client–server trust. Confidentiality and integrity rest on TLS and an OIDC-derived session. The only promise is that no third party can read or impersonate (00 §5.1).
- Secure mode removes servers from the content path, not from the membership path. Servers never hold content keys, but they still order messages, store ciphertext, see metadata, and decide membership in channels.
- Identity is server-validated in channels and client-validated in DMs. This is an owner requirement and the main asymmetry in the model (00 §5.3).
- Every key that matters to other people chains to one identity key per account. Leaves, message signatures and media attestations chain through a DeviceCertificate to the identity key, which the home server's IdentityState binds to the canonical address.
Document 22 analyses four modes (22 §2.2):
| Mode | What it covers | Protection |
|---|---|---|
| Insecure | Insecure channels, 1:1 DMs and group DMs, and their calls | TLS and DTLS hop by hop (D-021) |
| Secure channel | Every secure channel, including every channel of a secure server | MLS group, SealedMessage, identity validated by the hosting server (D-035) |
| Secure DM | Secure 1:1 DMs and secure group DMs | MLS group with sv_participants, SealedMessage, identity validated by clients with pins (D-036) |
| Calls | Calls in any context; a call has the mode of its context (SM-11) | Insecure: DTLS only. Secure: SFrame keyed from MLS, plus MediaAttestation. In every mode, all media goes through the hosting server's relay or SFU (D-094) |
How the modes are set, combined and changed is on Introduction, Communities and channels and Direct messages.
Security goals
The goal table in 22 §3.2 has 15 rows. These are the ones that most often decide a design question. "No" means the protocol doesn't provide the goal at all.
| Goal | Insecure | Secure channel | Secure DM | Calls |
|---|---|---|---|---|
| Confidentiality against third parties (SG-1) | Yes, by TLS and DTLS, except against a DNS attacker at first contact with a cross-site, non-DNSSEC delegation (RR-8) | Yes | Yes | Yes |
| Confidentiality against the servers involved (SG-2) | No | Content and media yes; metadata no; not against members the hosting server admits (RR-2) | Content and media yes; metadata no | Insecure: no. Secure: yes, except a removed member colluding with the relay until the removal commit (RR-12) |
| Sender authenticity against servers (SG-3) | No: the server attributes senders and can forge anything | Yes for live content; for history received through the key archive or a share, only as strong as the hosting server's credential records (RR-37) | Yes | Insecure: no. Secure: yes, except members colluding with a relay for seconds (RR-11) |
| Membership integrity (SG-5) | The server decides | The hosting server decides and can admit accounts it controls, which appear in the member list | The participants decide; the host can't add a person | As the context |
| Identity continuity (SG-6) | No identity keys exist | Visible only to the user themself (W4a, W4b), and an equivocating home server can delay that (RR-25); other members aren't told | W2 to every contact who pinned the old key; first contact is trust on first use (RR-9) | As the context |
| Forward secrecy (SG-7) | Not applicable | Partial: content keys don't expire on members' devices or in the key archive (RR-7) | Partial, as channels | Secure calls: yes; media keys are never archived |
| Downgrade resistance (SG-9) | Not applicable | After first sight only, by pins and W9 (RR-47) | 1:1: computed from home-signed IdentityStates. Group: pinned, W9 | The client's own view of the context |
| Bounded authority (SG-10) | Cut within 4 s: every call path goes through the hosting server's relay or SFU, which enforces leases (D-094) | Within 4 s for media; cryptographic exclusion follows the removal commit | As channels | As stated |
| Non-repudiation (SG-12) | Not applicable | Yes, deliberately: device keys sign messages and media (RR-22) | Yes | Secure calls: yes |
| Metadata privacy against servers (SG-13) | No | No, beyond padding and constant-bitrate audio | No | No |
| Availability against the servers involved (SG-14) | No | No | No | No |
| IP address privacy against strangers (SG-15) | Yes for message requests and links; not against the servers a client connects to | As insecure | As insecure | Yes against other participants, because all media goes through the hosting server's relay or SFU (D-094); not against the hosting server and its relay and SFU |
Non-goals
The design deliberately doesn't try to provide these (22 §3.3):
- Protection of insecure contexts against the servers that handle them.
- Anonymity. Every party is known by its canonical address to the servers it uses.
- Protection against the user's own compromised device, operating system or browser extensions.
- Protection against a member who copies or forwards what they can read.
- Hiding who is a member of a context from its hosting server, or hiding a user's communities from their home server.
- Deniability of messages or media (PD-22-1).
- Availability against a server, relay, gateway or network that drops traffic.
- Protection against a user who is socially engineered into approving an attacker's device or typing a code on an attacker's screen. The design reduces this; it can't prevent it.
- Cryptographic protection of channel membership against the channel's hosting server (D-035).
Parties and trust
The analysis crosses five trust boundaries again and again (22 §2.1):
- Client and every server. In insecure contexts everything crosses in plaintext under TLS. In secure contexts only ciphertext and metadata cross.
- Home server and hosting server. The home server vouches for its users with HomeAssertions and IdentityStates. The hosting server decides membership and, in channels, is the MLS Authentication Service.
- Hosting server and its relay and SFU. The relay and SFU are inside the hosting server's trust domain.
- A device and the user's other devices. They share the identity key, the vault and the pins. Each has its own device signing key (DSK).
- A web client and its origin. A web client is exactly as trustworthy as the origin that serves its code (HP-10).
No connection runs between two clients (22 §2.1). Clients never communicate with each other directly: every exchange between them goes through servers, and all call media goes through the hosting server's relay or SFU, in every context and mode (D-094).
What each party is trusted for, condensed from 00 §5.2:
| Party | Insecure contexts | Secure contexts | Can never do, in any mode |
|---|---|---|---|
| OIDC provider | Full account takeover if compromised | Can start an identity reset, which takes effect at once and is silent in channels; a reset gives no earlier secure content (D-007) | Obtain the identity key, decrypt the KeyBackup, or enrol a device |
| Home server | Asserts its users' identity anywhere; can impersonate them | Asserts which identity key and devices are current; a malicious one can publish a key it generated and be accepted in channels silently for other members | Decrypt the KeyBackup or AccountVault; add a device under the existing identity key |
| Hosting server (channel) | Reads, alters, records and forges all content and media | Decides who is admitted; orders, delays and deletes ciphertext; sees metadata; can admit a leaf with a fabricated IdentityCertificate for a user of another server, which member clients detect only through silent diagnostics | Read secure content or media; forge one member's messages as another's; downgrade a channel the client already saw as secure without W9 |
| Hosting server (DM) | Reads and alters insecure DMs | Delivery Service only: orders, delays, drops; can remove participants | Add a person to a secure DM; read content |
| Relay and SFU | Hear and see all media they forward | Forward SFrame ciphertext; see sizes, timing and who speaks when; enforce leases | Decrypt secure media; forge it without a member's help |
| Push gateway and push services | Learn which device is woken, and when | Same | See any content or sender: pushes carry only an opaque ID (D-051) |
| Other members | See what the context shows | Decrypt everything their membership covers; may deliberately share earlier messages with one member, visibly (K8) | Forge another member's text; forge another member's media without the relay's or SFU's help, and with it only for seconds |
| Bot operators | See what the bot sees | Read everything a secure bot can read (W6) | — |
| Client software and web origin | Fully trusted | Fully trusted | — |
Identity in channels and DMs
In channels the hosting server validates identity. It is the MLS Authentication Service: it admits a leaf only when the leaf's device credential chains to the identity key in the IdentityState published by the user's home server, the device is listed active there, and the account may join (00 §5.3). Clients accept its decision, keep no pins in channels, and show no warning when another member's identity changes. They still run two silent checks (07 §13.6):
- S1 (MUST): the credential chain inside the leaf. A commit whose leaf fails it is rejected and reported with mls.verification_failed.
- S2 (SHOULD): the home server's signature on the relayed IdentityState, in the background. A failure is reported as an identity diagnostic to the hosting server and the client's own home server, subject to the device's diagnostics setting, and is never shown to the user (D-035). With diagnostics
offnothing is reported, and these diagnostics are the only detection of a fabricated user (RR-42).
The only identity alerts in channels concern the user's own account: W4a when the user's identity was reset from elsewhere, and W4b when a device that isn't theirs appears under their address in a roster (07 §18).
In DMs each client validates identity. It pins each contact's identity key on first use, keeps the pin in the AccountVault so all the user's devices share it, accepts new devices silently when they chain to the pinned key and appear in a fresh IdentityState, and shows W2 when the key changes. For a contact the user verified by safety number or QR code, W2 blocks sending until the user accepts the new key (07 §16).
Both rest on dual control: a device is valid only if its DeviceCertificate verifies under the current identity key, it is listed active in a fresh IdentityState, and no DeviceRevocation covers it (00 §2.4, D-033). A home server can't add a device because it lacks the identity key; a thief holding a copy of the identity key can't add one because they have no home session to get it listed.
The IdentityState is public, at GET /v1/users/{local}/identity. This payload is the example from 00 §7.13; everything in it is visible to anyone, which is why it appears again under metadata below:
{
"iss": "a.com",
"sub": "alice@a.com",
"inc": "sLGys7S1tre4ubq7vL2-vw",
"ver": 17,
"sec": "secure",
"igen": 1,
"idc": "eyJhbGciOiJFZERTQSIsInR5cCI6InN2LWlkY2VydCtqd3QiLCJraWQiOiJOemJMc1…",
"devices": [
{ "did": "q2bS9xVg3m0yJpQe1vT0Aw", "dkf": "0f4mJ0yZ8tq3mX2l0b4vC1y9Zr6pQhN7sW3eK5uT8dA", "plat": "ios", "since": 1764800000 }
],
"revoked": [
{ "did": "Yx3kP0aL9qR2sT5uV8wZ1A", "at": 1764700000 }
],
"iat": 1764872400,
"exp": 1764958800
}Verifiers keep the highest ver they have seen and reject lower ones. The full rules are on Secure accounts.
Adversaries
Document 22 defines 15 adversaries (22 §4.1). One real organisation can play several roles; the most common case is one operator running both a user's home server and the hosting server of their DMs and local channels. For a user whose home server also hosts the context, the capabilities of ADV-HOME and ADV-HOST combine (22 §15 item 5).
| ID | Adversary | Typical instance |
|---|---|---|
| ADV-NET | Network attacker: reads, drops, delays, replays and injects packets, but can't break TLS 1.2+ with a valid certificate or DTLS | Public Wi-Fi, an ISP |
| ADV-DNS | Controls the DNS answers a verifier sees; can't forge DNSSEC | A malicious resolver |
| ADV-REG | Controls a server's domain registration, and so gets legitimate certificates | A hijacked registrar account; a lapsed domain re-registered by someone else |
| ADV-HOME | Malicious or compromised home server | A malicious operator, an insider, a breach |
| ADV-HOST | Malicious or compromised hosting server, including its relays and SFU | As ADV-HOME; often the same server |
| ADV-MEDIA | Malicious relay or SFU, without MLS secrets | A compromised media node |
| ADV-PUSH | Push gateway or push provider | APNs, FCM, a Web Push service, the official gateway |
| ADV-OIDC | Can pass a login as the victim at one of their linked providers | A hijacked Google or GitHub account |
| ADV-DEV | Holds a stolen or lost device | A phone taken from a table |
| ADV-TOK | Holds copies of bearer credentials, but not the device or its keys | Malware reading app storage, a leaked log |
| ADV-MEM | A legitimate member, with a conforming or modified client | A troll, a stalker, an infiltrator |
| ADV-BOT | Runs a bot that was added to a context | A third-party bot service |
| ADV-WEB | Can serve any code from the origin of a web client | A breached static host |
| ADV-PEER | Any other federated server | A hostile server operator |
| ADV-QC | Records traffic now and later breaks X25519 and Ed25519 | A future quantum attacker |
The analysis assumes that the user's own client follows the specification, the primitives of document 04 are secure as used, every key and nonce comes from a working CSPRNG, certificate authorities behave, clocks are within 60 s, and the user's provider login is as secure as their own account security (22 §4.2). It also analyses collusions explicitly: home and hosting server run by one operator, a member with the relay, a member with the hosting server, a provider takeover with a stolen device, a provider takeover with a malicious home server, a DNS attacker with a mis-issued certificate, and a hosting server that serves its own web client (22 §4.3).
Summary matrix
The one-word summary from 22 §5.15. Full means reads and forges, Read means reads but can't forge, Meta means metadata only, DoS means can deny service, Imp means can impersonate a user to others.
| Adversary | Insecure contexts | Secure channel | Secure DM | Secure call |
|---|---|---|---|---|
| ADV-NET | Meta, DoS | Meta, DoS | Meta, DoS | Meta, DoS |
| ADV-DNS (after first contact) | DoS | DoS | DoS | DoS |
ADV-DNS (first contact, dns-only) |
Full, Imp | Imp (fake members; first-contact identity) | Imp (wrong pin) | Meta |
| ADV-REG (after first contact too) | Full, Imp | Imp (silent key replacement) | Imp with W2 | As the context |
| ADV-HOME | Full for its users; Imp | Imp, silent to others (W4a or W4b to the victim unless it equivocates, RR-25); Meta, DoS | Imp with W2, Meta, DoS | Meta, DoS |
| ADV-HOST | Full | Meta, DoS; admits members; fabricates users (diagnostics only) | Meta, DoS | Meta, DoS; admits members, who can decrypt the calls |
| ADV-MEDIA | Full (calls) | — | — | Meta, DoS; short forgery with a member |
| ADV-PUSH | Meta (timing), DoS | Meta, DoS | Meta, DoS | Meta, DoS |
| ADV-OIDC | Full (takes the account) | Imp after a reset (silent to others, W4a to the victim); no earlier content | Imp after a reset with W2; no earlier DM or group DM history | As the context |
| ADV-DEV (until revoked) | Full as the user | Reads all the user's history; acts as the device | As channel | As the context |
| ADV-TOK | As the token allows | Meta (ciphertext) | Meta (ciphertext) | Meta |
| ADV-MEM | Read | Read from their join on; deliberate sharing, visible as K8 | Read | Read; short forgery with a relay |
| ADV-BOT | Read | Read (W6) | Read (W6) | Read |
| ADV-WEB | Full for its users | Full for its users (keys taken) | Full for its users | Full for its users |
| ADV-PEER | False events within its own authority; Meta | None beyond insecure | DoS on KeyPackages (bounded) | None |
The sections below cover the adversaries whose limits most affect how you build. The full per-mode tables, with the mechanism and owning section for every "can't", are in 22 §5.
Home and hosting servers
A home server can impersonate any of its own users anywhere in insecure contexts, because it mints their HomeAssertions (22 §5.3). In secure channels it can publish an IdentityState with a key it generated, and hosting servers admit that key silently for other members. Only the victim's devices can notice (W4a, W4b), and a home server that equivocates, showing different IdentityStates to different verifiers, can delay W4a until a hosting server on another operator relays the newer state. There is no key transparency log in v1 (RR-25). In secure DMs the same replacement raises W2 for every contact who pinned the old key.
What a home server can't do: add a device under the existing identity key, read secure content, history or the vault with its users' existing keys, decrypt the KeyBackup without the recovery phrase, or make a client accept a moved base URL without strong evidence or a URL-bound rotation. Replacing a user's identity doesn't give it earlier channel content either (D-007). A client that sees an unaccepted home move shows the server as temporarily unreachable and refuses to start an upgrade, reset, pairing or backup upload unless the IdentityState names its own identity key (02 §10.6).
A hosting server in a secure channel decides membership as the Authentication Service (22 §5.4). It can admit accounts it controls; they appear in the member list and read what is sent from their admission on. It can also admit a leaf with a self-consistent but fabricated IdentityCertificate for a user of another server; member clients detect this only through the background check S2, whose failures are diagnostics (RR-2, RR-42). It can order, delay, withhold and delete ciphertext, partition a group without members noticing (RR-36), and read reported content (D-077).
It can't read content or media, forge a member's message, edit, reaction or delete, move a SealedMessage to another context or sender, or downgrade a channel the client pinned secure without W9. In secure DMs it can't add a person, because sv_participants changes only by member commits that clients check (13 §5.3). It can invent a new group DM naming any participants, which arrives as a message request shown "via" that server (RR-38).
A third party that steals only the hosting server's MLS external-sender key gets denial of service only: clients refuse server changes to sv_participants and other extensions, refuse external Adds, and accept a new external sender only if the hosting server's ServerMetadata lists it (13 §21 item 9).
Login provider takeover
Anyone who can sign in at one of a user's linked providers can replace that user's encryption identity at once, or turn encryption off at once (refused on a secure server, SM-3), without any of the user's devices. The owner chose no reset hold so that someone who has genuinely lost every device and their recovery key isn't made to wait (D-071, 22 §8.1.1). The consequences:
- In secure channels, the new identity is accepted without notice to other members. Its device reads and posts from its join on, but gets none of the earlier encrypted messages, because nothing hands keys to newcomers (D-007).
- In secure DMs and group DMs, every contact who pinned the old key sees W2, and verified contacts can't send until they decide. The re-added identity starts a new membership and is served nothing from before the re-add (12 §11.5).
- The user's own signed-in devices see W4a at once. The attacker can sign those devices out first; they then get no push and show W4a only when the app is next opened.
- If the attacker turns encryption off instead, the victim's devices see W4a and leave every secure channel and group DM. DM contacts see W2, and from then on their 1:1 DMs with that address aren't end-to-end encrypted (K2, W7), so the hosting server and the attacker read new messages. Verified contacts stay paused until they decide (22 §8.1.1).
- For an insecure account, a takeover is a full account takeover, and the attacker can turn on encryption with their own key, which contacts pin without a warning (RR-10).
W4d, "New sign-in on device (provider)", tells the user's other signed-in devices about every new sign-in, announced by device.added with via: "login" (D-084). It is the only alert for insecure accounts, and without a reset hold it gives no time to act before a reset. A stolen session token alone can turn on encryption for an insecure account only within 24 h of the session's last provider sign-in (D-085).
To take an account back, the user first gets the provider account back, then removes the attacker's sign-in methods and devices, then resets encryption. A reset before the first two steps is pointless, because the attacker can reset again at once (22 §5.7, 22 §12.2). Old pins and history keys come back only by pairing an old device that still holds the old vault keys.
Stolen devices and tokens
A stolen device acts as the user until it is removed. If its keys are unlocked (subject to hardware-backed wrapping and the device lock, 08 §13), it reads everything the user could read, including all history through the key archive, and keeps a copy of the identity key, the vault key and the recovery-phrase entropy (22 §5.8). It can't enrol a new device with the copied identity key alone (dual control), and after revocation it is delisted, removed from every MLS group, and its later SealedMessages and MediaAttestations are rejected. Removing a device as lost or stolen also makes a new recovery key, which keeps it out of vault records written after the rotation (D-082). After a routine removal it keeps a working phrase (RR-33).
Operations that need fresh authentication (revoking other devices, unlinking providers, deleting the account, resetting, downloading the KeyBackup) fail with auth.reauth_required for a thief who only holds the device, unless the unlocked device also gives access to a linked provider login: a signed-in provider session, a saved password, or GitHub, whose re-authentication can't be forced (RR-41).
A token thief gets what the token gives, for as long as it lasts. Secure contexts stay confidential against every token thief, because tokens never carry keys (22 §5.9):
| Credential | What it gives | Bound |
|---|---|---|
| HomeAssertion | For an insecure account, one session at its one audience if presented first. For an enrolled device, nothing without the DSK | 300 s; single use |
| Home access token | The account's home API, including insecure previews and the DM index | 15 minutes |
| Home refresh token | The session until both copies refresh; reuse detection then revokes the device. Within 24 h of the session's last provider sign-in, also turning on encryption for an insecure account (RR-10) | Every other fresh-authentication operation stays out of reach |
| Remote session token | Insecure contexts in full; secure ciphertext and metadata only | 1 h, or up to 24 h when extended during a home outage; not sender-constrained (RR-23) |
| Bot token | The bot's account; for a secure bot, also a reset of its identity | Until revoked |
| Fetch token | Notification records, insecure previews and event tickets | Rotated at least every 30 days; expires after 60 |
| Event ticket | Exactly the events it names; ciphertext in secure contexts | 72 h |
| RelayTicket | One connection to one relay for one pid |
60 s |
The common rules: tokens are bearer secrets kept out of URLs and logs, stored only as hashes on servers, and never sent to a server other than the issuer, and no cookie or other ambient credential authorizes a request (D-026, 03 §3.2). See HTTP API for how this fits with open CORS.
Web origins
A web client runs whatever code its origin serves. Whoever controls that origin can take the identity key, DSK, vault keys, recovery-phrase entropy and session tokens of every secure user who loads the code, and read and act as them (22 §5.12). Dual control doesn't help, because the origin holds both the identity key and a session. Browsers offer no way to pin code, and browsers are a v1 platform, so this is accepted (D-065, RR-4).
The web hardening profile (20 §16) limits what injected script and a later-fixed origin can do: strict CSP, Subresource Integrity on every script except the service worker, Trusted Types, no third-party code, and keys only on the home server's links.web origin, or on any origin when the home server publishes none (PD-20-12). A malicious origin's own code ignores that last rule and can still ask for the recovery key. After an origin compromise, each affected user should revoke the web device, make a new recovery key, and reset if they believe the identity key was taken, because identity rollover is deferred (D-072).
Members, bots and relays
A member of a secure context reads everything sent while they are a member and keeps it after removal (22 §5.10). They can hand keys or content to anyone; group messaging can't prevent that. With share_history in a channel, or as any participant in a secure DM or group DM, they can deliberately share earlier messages with one specific current member; every other member sees K8 (RR-55). They can't forge another member's text, inject content through a HistoryShare (every shared key is checked against the stored SealedMessage's key commitment and sender signature), or forge a report.
SFrame keys are shared by the whole group, so a member colluding with the relay or SFU can inject media under another member's key until MediaAttestation stops the source: normally under 1 s, up to about 3 s per episode if the relay also drops attestations, at most 3 counted episodes per participant and source per minute, plus up to about 3 s per minute excused as route disruptions (18 §9.7 item 11, RR-11). Without control of the relay or SFU, which carry all media, a member can't inject under another member's key (18 §14 item 2, D-094). Forged media that already played can't be taken back. A relay that isn't a member can't silence anyone with fake attestations, because an attestation whose signature doesn't verify stops nothing (D-080).
Every member of a secure channel's group can decrypt its calls, whether or not they joined, with the relay's help. Call confidentiality equals channel membership, which the hosting server decides (RR-44).
A secure bot is a full MLS member: whoever runs it reads everything it can read, which W6 tells every member (D-061). Like every newcomer it reads only from its join on, unless a member shares earlier messages with it. Webhooks and other non-member integrations are refused in secure contexts with security.context_secure_unsupported.
A relay or SFU alone sees, in secure calls, who sends which source when, frame sizes and timing, the KID leaf index, epoch residue and attestation timing (18 §14 item 12). Lease ticks aren't signed, so it can delay or extend coverage by about 3 s (RR-39). On the SFU path, capture timing and webcam orientation aren't authenticated (RR-13). Media details are on Media and Calls.
DNS and domain registration
Without DNSSEC, first contact with a domain delegated cross-site (dns-only) is trust on first use: a DNS attacker can point the domain at a server they run whose metadata lists the victim domain (D-074, RR-8). After first contact, servers pin the base URL and key set per domain and accept a change only through keyChain or strong evidence; otherwise federation with the domain is suspended, which is denial of service, not impersonation (02 §10). Same-site delegation narrows the first-contact problem without DNSSEC: the attack then works only if another party holds a host in the victim's registrable domain. A mis-issued certificate defeats same-site and wellknown evidence and pinning (RR-8).
Whoever controls a server's domain registration gets legitimately issued certificates and strong evidence, so pinning doesn't stop them even after first contact. They can impersonate every account of the domain and sign IdentityStates: a silent key replacement in channels, W2 in DMs (RR-52). The mitigations are operational: registrar locks and two-factor authentication, DNSSEC, Certificate Transparency monitoring, and keeping a domain registered long after its server shuts down (22 §5.2). Shutting a server down is covered in 21 §11.9. Discovery details are on Discovery.
What servers see in secure contexts
End-to-end encryption hides content and media. It doesn't hide who talks to whom, when, how much, or from where (00 §5.4, RR-48). The full table gives each item an MX-* ID (22 §7.1).
The secure message example from 00 §7.4 shows the cleartext a hosting server receives with every SealedMessage:
POST {base}/v1/contexts/ch:01938a11-2b3c-7d4e-8f90-112233445566/messages
{ "mid": "01938f30-1b2c-7d4e-8f90-a1b2c3d4e5f6",
"sealed": {
"v": 1,
"ctx": "ch:01938a11-2b3c-7d4e-8f90-112233445566",
"gen": 1,
"mid": "01938f30-1b2c-7d4e-8f90-a1b2c3d4e5f6",
"epoch": 42,
"ekid": "q83vEjRWeJA",
"kind": "message",
"did": "q2bS9xVg3m0yJpQe1vT0Aw",
"nonce": "3q2-7wAAAAAAAAAA",
"kc": "mZ8rQ1cX0vB7nT4yL2kP9w",
"ct": "Vt1yQm9…",
"sig": "Jk3b0xW…"
},
"mentions": ["bob@b.com"],
"mentionAll": false }Everything in this request except ct is readable by the hosting server. It learns the context, the sending device (did, and the account from the session), the entry kind, the epoch, the ciphertext length (padded to 256-byte buckets, 14 §4.5), and the mention hint mentions and mentionAll, which exists so that offline recipients get mention notifications. A user can turn mention hints off, at the cost of those notifications (D-063).
What each observer learns (22 §7.3):
- The hosting server learns the context's full social graph and activity pattern: who is a member, who talks when and how much, whom they mention or ping with a reply (unless hints are off), who calls, who speaks when, who watches whom, and from which IP addresses. It doesn't learn content or media.
- The user's home server learns where the user goes (audiences, community list), whom the user talks to in DMs (DM index, KeyPackage claims), when and from where the user is notified, and the shape of the user's vault. It doesn't learn content, except insecure previews.
- A relay or SFU learns per call who sends which source when, sizes and timing, and participants' IP addresses.
- A push gateway or provider learns when an installation is woken and with what push type. The payload is a fixed 93-octet opaque ID (19 §10). The official gateway learns this for every installation of the official apps, with the home server that sent each push (D-093).
- An OIDC provider learns when the user signs in to their home server.
Selected rows that implementers are often surprised by:
| Item | Who sees it | Note |
|---|---|---|
| Roster, device counts, join and leave times (MX-1) | Hosting server, members; the home server for its users' communities and DMs; call participants for the relay | Hidden channels answer like unknown names |
| Context names, topics, group DM names (MX-2) | Hosting server, members; the home server through notification records | Group names are metadata even in secure groups |
| Typing, presence, custom status (MX-10, MX-11) | Hosting server, members | invisible hides presence from users, not from the server |
| Subscriptions and foreground state (MX-12) | Hosting server | Clients subscribe at full only to contexts in view or in a call (03 §18.11) |
| Manual history shares (MX-14) | Hosting server, members; channel audit log | Who shared with whom, and which seq range; never the keys |
| Public identity (MX-20) | Anyone | Whether an account is secure, device count, each device's platform and enrolment time, recent revocations |
| Device IDs (MX-21) | Servers, members, anyone | The same did at every server, so servers can correlate a device's visits (RR-49) |
| Talkspurts, video frame sizes (MX-25, MX-26) | Hosting server, relay, members, partly the network | Constant-bitrate Opus hides phrases; video isn't padded (RR-31) |
| IP addresses (MX-29) | Every server, relay and SFU a client connects to; the network | Never other call participants, because all call media goes through the relay or SFU (D-094) |
| Reported content (MX-34) | Plaintext to the hosting server's moderators | Only reported messages and up to 10 on each side (D-077) |
In an insecure context the hosting server sees all of this plus all content and media, and the user's home server sees insecure previews of up to 140 characters in notification records, unless it is a secure server, which discards them (22 §7.2). Nothing in the protocol limits what these servers keep.
A user can turn off mention hints, use invisible presence, turn problem reports off, and use a separate account for memberships their home server shouldn't know about. Nothing hides metadata from the hosting server of a context the user takes part in (22 §7.4).
Residual and accepted risks
The register in 22 §8.2 gives every residual risk an RR-* ID; RR-35 is withdrawn. Each risk remains when every party follows the specification. Five of them shape what users can be told, and each was accepted by the owner or through a logged decision (22 §8.1):
- No reset hold (RR-1, D-071). A hijacked provider login replaces the user's identity at once, silently for channel members. Covered under the provider takeover section above.
- Server-validated identity in channels (RR-2, D-035). The hosting server decides membership and the home server decides keys; a malicious one adds members or replaces keys without other members noticing. Channels can have thousands of members whose keys change, and per-member warnings would be noise.
- Insecure mode offers no protection from servers (RR-3, D-021). Insecure-by-default is the owner's core requirement: no keys, no security friction. The open lock tells secure users; insecure users in insecure contexts see no lock and no security text by design.
- Web clients trust their origin (RR-4, D-065). Covered under the web origins section above.
- Content keys don't expire on members' devices (RR-7, D-007, D-054). Whoever compromises one current member's device, or obtains a user's vault together with the vault key, reads everything that member can read. This is the price of a user's new devices seeing everything the user could already read. Regular UpdatePath commits limit how long a compromise exposes new content.
Other entries that implementers meet in practice:
| ID | Risk | Mitigation or note |
|---|---|---|
| RR-8 | First contact with a cross-site, non-DNSSEC delegation is trust on first use | Pinning; same-site delegation |
| RR-9 | DM identity pins are trust on first use | No pin before Accept; pin from the contact's own home server after Accept; safety numbers |
| RR-11 | A member with the relay can forge media under another member's key for seconds | MediaAttestation, play floor and per-source budget |
| RR-12 | A removed member colluding with the relay keeps hearing until the removal commit, with no upper bound if no member commits | Delivery and leases cut at once; designated committer every 3 s |
| RR-14 | Harvest now, decrypt later: recorded MLS traffic, VaultKeyGrants and 6-digit pairing transcripts | sv1-c2 hybrid suite planned; offer the QR code first |
| RR-22 | Secure messages and media are non-repudiable | Never claimed deniable |
| RR-25 | A home server can equivocate; no key transparency log in v1 | Highest-ver rule; W4b |
| RR-26 | Some limits are server-enforced: withholding later edits on pre-join messages, VisibilityGrant extent, all insecure visibility rules, retention and deletion | Copy never promises more than "deleted in the app" |
| RR-27 | Delivered content can't be recalled | Honest clients delete |
| RR-31 | Encrypted media leaks timing and sizes | Constant-bitrate Opus |
| RR-44 | Every member of a secure channel can decrypt its calls | Relay forwards only to listeners |
| RR-46 | Pre-upgrade plaintext stays on the server and in its backups | K3 marker; W5 doesn't promise erasure |
| RR-47 | Downgrade detection works only after a client has seen the context as secure | A lookalike insecure channel has no history and no lock |
| RR-55 | A member may share earlier messages with someone who shouldn't see them | Never automatic or prompted; K8 for every member; audit log in channels |
The register is the only place where a risk is "accepted": a risk described as accepted without an RR-* entry is a defect in document 22 (22 §15 item 4). Don't describe a risk your implementation adds as accepted.
Privacy
Security modes are about content. Privacy covers who learns what about people, which the metadata table already lists. The design limits it with six principles (22 §9.1):
- Each server learns only what its role needs. Remote servers store only what serving a user needs, for bounded times. Presence is per server and never federated. Push registrations exist only at the home server.
- No contact with strangers before consent. A message request is shown from the recipient's own home server; the recipient's client contacts no hosting server, and so reveals no IP address, until Accept (D-049). No call rings for an unaccepted request.
- Nothing is fetched because of message text. Clients make no request for a link until the user taps it, never fetch link previews automatically in secure contexts, and never load remote resources in content.
- No e-mail use. Provider e-mail addresses have no relation to Sloppy Voice addresses; servers SHOULD NOT request the
emailscope (05 §22.5). - Content-free telemetry. Diagnostics hold counters and reasons only, never content, keys, other people's addresses or IP addresses; they go only to the server involved, are kept at most 30 days, and follow the user's setting, which sends failure reports by default (D-089).
- Location stripped by default. Clients strip photo location data from attachments unless the user keeps it (11 §14.3).
The design doesn't hide the social graph from hosting or home servers, doesn't provide anonymity, and doesn't hide timing from an observer who sees both ends (22 §9.3). The specific exposures and their handling, including shared computers, global push-to-talk hooks and account deletion, are in 22 §9.2.
Denial of service
Every server can deny service to what it handles, and the protocol doesn't pretend otherwise. The aim is that denial of service never turns into a confidentiality or integrity failure, and that ordinary outages look like outages, not security events (22 §10.1). Some consequences for implementers:
- A home server outage leaves existing leaves in place: removal needs positive evidence, and in channels an existing leaf can still self-update with a byte-identical credential under an unexpired IdentityState (D-083). Remote sessions may be extended to 24 h while the home server is unreachable (D-062).
- A hosting server that sends a commit clients must reject leaves them
blocked, shown like an unreachable server. - Relays and SFUs stop forwarding 3 s after the last lease snapshot.
- A DNS spoof of a pinned domain suspends federation instead of redirecting it.
- MLS traffic is exempt from every moderation restriction, so muting a member can't starve key management (10 §3.5).
Moderation works in every mode, and in calls it is enforced the same way in every context, because all media goes through the hosting server's relay or SFU, which stops forwarding within 4 s of a mute or revocation. In secure contexts content already decrypted can't be recalled, and cryptographic exclusion follows the removal commit (22 §10.4).
The bounds on attacks against servers and clients (rate limits, size limits, commit storms, KeyPackage draining, W2 floods, pairing prompt floods) are tabled in 22 §10.2, and abuse by people in 22 §10.3.
Cryptographic agility
Version 1 has exactly one suite, sv1-c1, and nothing is negotiated inside it, so there is nothing for an attacker to downgrade (22 §11.1). A verifier rejects any object that names a different algorithm, suite, format version or parameter set, with crypto.unsupported_algorithm. Implementations MUST keep primitive choices isolated in code, reject every unknown suite and never "try" a sv1-c2 object (04 §17.4).
The post-quantum outlook (22 §11.2):
- Recorded MLS traffic (X25519 HPKE), and through it history keys, SealedMessages, attachment keys and SFrame keys, is exposed to harvest-now-decrypt-later.
sv1-c2plans a hybrid X25519 + ML-KEM-768 MLS ciphersuite and a 256-bit SFrame suite. - VaultKeyGrants (HPKE to X25519 box keys) are exposed the same way; a hybrid KEM is planned through new grant fields in document 08.
- Pairing with the 6-digit code can be brute-forced offline from a recorded transcript once discrete logarithms fall. Until a hybrid PAKE exists, clients SHOULD offer the QR code first, because its 128-bit secret keeps the transcript out of reach (04 §17.3).
- Ed25519 signatures become forgeable, not retroactively. Moving an identity to a new key type needs identity rollover, which is deferred (D-072).
- The KeyBackup isn't practically affected: a quantum search still needs about 2^40 sequential Argon2id evaluations of 64 MiB each.
Primitives and labels are on Cryptography.
Writing about security
22 §12.3 is normative for clients, their help pages, their documentation and their marketing. None of these may state or imply the claims below. The section names clients; a bot's or an SDK's README that describes security should follow the same list, because each claim is false under the specification whoever makes it.
| # | False claim | Why it's false |
|---|---|---|
| NC-1 | The server can't see who you talk to, or when | Metadata is visible (22 §7) |
| NC-2 | An unlocked context is private from its server, or "not encrypted" only means "not encrypted between devices" | RR-3 |
| NC-3 | A channel lock protects against the community's server or a member's home server | RR-2 |
| NC-4 | Members are told when another member's identity changes in a channel | D-035 |
| NC-5 | Messages are deniable, or can't be used as proof | RR-22 |
| NC-6 | Deleting a message removes it from everyone's devices, or retention guarantees erasure | RR-27, RR-26 |
| NC-7 | An encrypted chat is protected if a member's device is later compromised, or a later joiner can never see earlier messages | RR-7, RR-55 |
| NC-8 | "Delete messages sent before encryption" removes them from backups | RR-46 |
| NC-9 | The web app is as safe as the native app, or the release manifest hash verifies the running code | RR-4 |
| NC-10 | The server that hosts a call can't see who is in it, who speaks when, or the participants' internet addresses | Metadata is visible (MX-24, MX-25, MX-29) |
| NC-11 | Bots in encrypted contexts can't read messages | D-061 |
| NC-12 | Reported encrypted messages stay encrypted | D-077 |
| NC-13 | A verified contact can never be impersonated, or verification protects channels | Verification protects DMs only, and only while pins hold |
| NC-14 | Sloppy Voice is anonymous | No anonymity (22 §9.3) |
| NC-15 | Encrypted calls are protected from every member, or only people visibly in a call can hear it | RR-44 |
When you need to explain a mode, adapt the reference statements of 22 §12.2 to your product's voice without strengthening them (PD-22-2). For example, the channel lock: "Messages, files and calls are end-to-end encrypted: the server stores and forwards them but can't read or hear them. The server still decides who is a member, and its operators can see who is in the channel, when people post and how much. Look at the member list to see who can read the channel. If someone takes over a member's sign-in account, they can appear as that member from then on without other members being told, but they can't read the channel's earlier messages; only that member's own devices are told. The same is true if a member's own server is dishonest, and then even that member may not be told." Leaving out the last part would strengthen the statement. In-app warning text is owned by document 20, and clients show only the warnings in the closed catalogue of 00 §4.12 (D-055). See Client requirements.
Implementer checklist
22 §13 is a cross-index of the requirements that keep the model true. Each SC-* item restates its owning section, which governs, and has that section's force. An implementation that claims a conformance class and fails an item that applies to it doesn't conform (22 §1.3). The section numbers in the checklist can move when documents are edited, so implement from the owning document's text (22 §15 item 1).
Every implementation
These apply to servers, clients, bots and push gateways alike (22 §13.1):
| ID | Requirement | Source |
|---|---|---|
| SC-A1 | Verify every JWS with the fixed profile: a protected header of exactly alg (EdDSA), typ (the exact registered value) and kid (used only as a cross-check); reject jwk, jku, x5u, x5c, crit and every other member; never re-serialize signed payloads. The RFC 8292 VAPID JWT is outside this profile |
04 §6 |
| SC-A2 | Verify Ed25519 strictly: S < L, canonical R and public keys, small-order keys rejected, cofactorless equation; wrap a less strict library |
04 §4.3 |
| SC-A3 | Reject unknown suites, algorithms, format versions and parameter sets; never fall back or negotiate | 04 §2.2 |
| SC-A4 | Parse JSON as I-JSON: reject duplicate members and non-canonical or padded base64url; ignore unknown members | 00 §7.2 |
| SC-A5 | Use a CSPRNG for every key, nonce, jti, did and joinNonce; abort on failure |
04 §13 |
| SC-A6 | Use each key for one purpose; erase secrets after use; keep them out of logs, crash reports and diagnostics; avoid secret-dependent timing | 04 §14 |
| SC-A7 | Name only canonical addresses in signed and stored objects; reject a signed object naming an alias with address.non_canonical | 01 §7.5 |
| SC-A8 | Allow ±60 s clock skew and no more | 00 §7.7 |
| SC-A9 | Never treat an IdentityCertificate's sub as authenticated without a current IdentityState, HomeAssertion or pin |
07 §9 |
| SC-A10 | Bind every labelled-signature content to its context, with length-prefixed fields |
04 §7.2 |
| SC-A11 | Respect AEAD nonce rules and per-key usage bounds; check key commitments wherever keys can be revealed | 04 §9.2 |
A protected header that passes SC-A1, from the HomeAssertion example in 00 §7.13:
{ "alg": "EdDSA", "typ": "sv-assert+jwt", "kid": "a.com#2026-12a" }Clients and bots
The client list (22 §13.5) has 34 items. The ones that most often go wrong:
- Compute the lock, never remember it. Show the closed lock only when the context is advertised secure and you hold current MLS state for its group (SM-12, SC-C1). Pin the secure state of channels, servers and group DMs, raise W9 with no override on a downgrade, and take a call's mode from your own view of its context (SC-C2).
- Never fall back to plaintext silently. Never send content composed under a closed lock as plaintext without a user action, and never trust a hosting server's word alone that a secure conversation became insecure (SC-C3). Compute a 1:1 DM's mode from home-signed IdentityStates (SC-C4).
- Verify before you decrypt. Check a SealedMessage's signature against a validated leaf, check
kc, then decrypt; never show unverified content (SC-C9). Verify every key of a received HistoryShare the same way before storing or showing it, and never prompt or suggest sharing (SC-C10). - Keep tokens with their issuer. Send each session token only to the base URL that issued it, unless your own pin accepts a move (SC-C14).
- Respect message requests. Before Accept, contact only the home server and create no pin; after Accept, fetch each participant's IdentityState from that participant's home server and pin from it (SC-C15).
- Keep channel identity checks silent. Run S1 on every leaf and S2 in the background, report failures as diagnostics only, and raise only W4a and W4b (SC-C7).
- Secure calls. Use a fresh random
joinNoncefor every encryptor instance and never persist counters instead (SC-C20). Send a MediaAttestation every 500 ms per source, stop a stream silently on a validly signed contradiction or after 3 s unattested, and never stop one because of an attestation whose signature doesn't verify (SC-C21). Use constant-bitrate Opus for every source (SC-C22). Enforce leases on the audio clock (SC-C23), and never send audio or video captured during an outage or while muted (SC-C24). - Media only to the relay or SFU. Send media only to the relay or SFU the hosting server assigns, never directly to another client, and use fresh DTLS certificates per call join or context, because a reused certificate identifies the device across contexts (SC-C28).
- No automatic fetches. Make no network request for a link before a tap (SC-C13); never auto-fetch link previews in secure contexts; render content without HTML (SC-C31).
Web clients add SC-W1 to SC-W5 (22 §13.6): the web hardening profile (WH-1 to WH-10, 20 §16), keys wrapped under a non-extractable WebCrypto key and unwrapped only in a dedicated Worker, and discovery through /v1/resolve or DNS-over-HTTPS with your own check of the domain list. Secure bots use one DSK per process and kind: "bot", and revoke a leaked bot token rather than rotate it, because the token allows an identity reset (SC-B1).
Servers and operators
The server lists (22 §13.2 to §13.4) cover transport, discovery, federation, accounts, identity, secure mode and the media plane. A few that hold the model together:
- Bearer tokens only in
Authorizationorsession.hello, never in URLs; no cookie authorizes a request (SC-S2). Authorize a WebSocket fromsession.helloonly, never fromOrigin(SC-S4). - Re-check authorization on every delivery and answer hidden resources as core.not_found (SC-S5).
- Pin each peer domain's first-seen base URL and key set, and never accept a peer's
securegoing from true to false (SC-S8). - Enforce dual control (SC-S25) and SM-4 at every door, refusing with security.account_required or security.device_not_enrolled (SC-S26).
- On removal, cut delivery and leases at once, send Remove proposals, freeze content until a commit, and designate committers every 3 s (SC-S29).
- In secure contexts, serve sealed items only from the account's
visibleFromSeqor within its VisibilityGrants (SC-S32); never accept plaintext afterupgradeSeq, and refuse every downgrade (SC-S33). - Send pushes with the fixed opaque payload only (SC-S42), and store KeyBackups and vault records without the ability to read them (SC-S43).
- Announce every new sign-in with device.added
via: "login"on the account'smestream (SC-S46).
Operators (22 §13.7, SC-O1 to SC-O8):
- keep signing keys in an HSM or KMS and out of database backups, and pre-pin a standby key;
- prefer same-site delegation, use validating resolvers and monitor Certificate Transparency for their domains;
- keep identities out of metrics labels and limit relay logs;
- keep alias domains registered after removing them, and never change the canonical domain;
- protect backups like the live database and restore only with the security journal procedure;
- share a relay only with servers they control;
- keep server clocks within 1 s of UTC;
- record every operator action outside the protocol in the audit log.
A push gateway seals platform tokens into push keys bound to one home server, authenticates home servers with sv-push+jwt, rate-limits per push key and per home server, and publishes its source (SC-P1). See Running a server and Notifications.
Open points in the specification
The consistency review in 22 §14 records where documents disagree. These findings are still open, and an implementation may meet them as behaviour that differs from the wording in document 00:
- X-7: 00 §4.7 says only participants can hear secure channel calls. Every member of the channel's group can derive the media keys and, with the relay's help, hear a call without joining it (RR-44). Treat a channel call as visible to the channel's members.
- X-11: HP-5 in 00 §6 says removed participants are cut by lease revocation independently of the commit. That holds only on honest paths (RR-12).
- X-18: 07 §22.12 says clients SHOULD warn about a wrong clock through general diagnostics, while 04 forbids showing clock errors to the user and 20 shows clock offset only on the connection details screen. A clock message must never look like a security warning.
- X-20: pins keep no history of identity keys, so genuine DM messages signed under a key older than the pin's previous key show as "This message can't be shown".
- X-21: after a lossy server restore, nothing makes clients re-upload a KeyBackup or vault records registered after the backup point, so a recovery key created after it can silently stop working.
- X-22, X-23: wording in 00 §5.2 about what a home server can never do, and the missing resolve-back check in 00's description of
canonicalize().
One open question would change client behaviour: OQ-22-2 recommends making S2 a MUST and having clients silently stop playing media from a leaf whose IdentityState positively fails, showing its messages as "This message can't be shown" (22 §16.1). It would amend D-035 and isn't adopted.
Related pages
- Introduction: the modes, roles and conformance classes.
- Secure accounts: identity keys, IdentityState, pins, pairing and recovery.
- MLS and sealed messages: the group profile, SealedMessage and history sharing.
- Media and Calls: SFrame, MediaAttestation, leases, relays and the SFU.
- Discovery and Federation: delegation evidence, pinning, assertions and revocation fan-out.
- Client requirements: warnings, the lock indicator and web hardening.