5.8 KiB
Threat model
Review status: M0 draft, prepared for project-owner review. This document does not approve a cryptographic library or claim that the scaffold provides secure calls.
Scope and trust boundary
- MVP protects one-to-one voice calls between registered Android devices. Group calls, video, PSTN and endpoint compromise are out of scope.
- Each endpoint is trusted with its own microphone audio and the plaintext audio it receives from the other endpoint.
- API, key directory, signaling, push and TURN services are untrusted with respect to call secrets and media plaintext. They may deny service or observe metadata.
- WebRTC DTLS-SRTP protects transport legs. The call is not considered end-to-end encrypted unless the selected RFC 9605 SFrame transform also protects encoded audio between the two authenticated devices.
- Network E2EE does not protect audio from a rooted/compromised device, a malicious OS, a user-approved recording path, or an authorized remote participant.
Assets
Device identity private keys, prekey private material, call session secrets, SFrame sender keys, microphone audio, account credentials and contact relationships.
Adversaries
- Malicious or compromised signaling/API server
- Compromised TURN relay
- Network operator observing traffic metadata
- Active network attacker modifying or replaying signaling
- Stolen or rooted endpoint
- Malicious registered contact
Protected properties
- Confidentiality and integrity of audio between authenticated endpoints
- Authentication of the remote device
- Forward secrecy properties provided by the selected audited handshake/session protocol
- Replay resistance and device revocation
- Downgrade resistance: an endpoint cannot silently fall back to unprotected media or a weaker handshake profile
- Call and direction separation: media keys from one call or direction cannot be reused in another
Limitations
The mobile operator can observe that the device communicates, timing, IP/network metadata and approximate traffic volume. Endpoint malware, a compromised OS, microphone permissions abuse and social engineering are outside the guarantee of network E2EE. Push providers may observe opaque notification delivery metadata.
SFrame leaves routing metadata visible, including timing and media traffic volume. It does not provide confidentiality for its header or prove the civil identity of the sender. The handshake and user verification flow authenticate the remote device; SFrame key management must bind each sending direction to that authenticated call session. In the two-party MVP both endpoints are trusted participants and can derive call-session material, so this design does not provide non-repudiation between them.
Media security invariants
These are protocol requirements, not claims about the current scaffold:
- A call is shown as secure only after both endpoints have authenticated the same call transcript, confirmed the negotiated protocol profile, installed the required receive key, and enabled encryption for the local audio sender. Failure at any step aborts secure setup.
- No plaintext fallback is permitted. If a required transform is absent, a key is missing, a frame fails authentication, or the negotiated profile is unsupported, drop the frame and fail or terminate the call. Never pass the frame through as plaintext.
- Derive separate media key material for each call, sending direction, sender device, key epoch and SFrame context using the selected protocol's reviewed key schedule. Do not use the raw handshake output directly as an SFrame key, reuse a sender key for both directions, or treat a shared symmetric key as proof of an individual sender's identity.
- Bind call ID, both device IDs, protocol/profile version, handshake transcript hash and direction into the authenticated call context. Reject mismatches and unknown profile versions. Signaling metadata alone is not an authenticated identity claim.
- A
(key, nonce/counter)pair must never repeat. Counters do not reset while their key remains active. If counter continuity cannot be preserved across process death or recovery, install fresh media key material and a new key ID before sending again. - Receivers maintain per-sender replay state and a bounded reordering window. Reject duplicate or stale frames while accepting valid reordered frames within that window. Malformed SFrame headers and authentication failures are rejected without changing live key state.
- Key rotation installs a receive key before the sender uses it, changes the key ID/epoch, and retires old material after the defined overlap window. Teardown erases call and media key state; device revocation prevents new handshakes for that device.
- ICE restart does not authorize key or counter reuse. Continue with preserved counters only when cryptographic state is intact; otherwise rekey before media resumes.
The exact SFrame cipher suite, KDF labels and lengths, SFrame header mode, replay-window size, rotation overlap, and secure-indicator UX remain open until the implementation candidates are selected and reviewed. RFC 9605 requires applications to define key management and anti-replay behavior; this project must not infer those rules from a frame-transform API.
Required mitigations
- QR/safety-number verification
- Signed identity/prekey bundles
- One-time prekey atomic consumption
- Strict transcript binding and replay protection
- Directional media keys and nonce uniqueness
- Authenticated protocol/profile negotiation with downgrade rejection
- Fail-closed encoded-audio encryption and decryption, with no plaintext pass-through
- Per-sender SFrame key IDs, counter continuity, replay window and rotation rules
- Short-lived authenticated TURN credentials
- Minimal server logs and retention
- Secure local storage and device revocation
- Independent cryptographic review before release