Updated November 2026: OpenSSL 4.1.0 adds DTLS 1.3 for servers, two 2026 Pion DTLS CVEs to patch, the SNAP origin trial extension, post-quantum DTLS status rechecked.
DTLS and SRTP in WebRTC: the short answer
Yes. Every WebRTC call is always encrypted in transit. The exception to watch is group calls routed through a media server: that server can see the audio and video unless you add end-to-end encryption (SFrame).
DTLS in WebRTC is the handshake that runs over the same UDP path as the call. It authenticates each peer's certificate against the fingerprint sent in SDP and exports the keys for SRTP. SRTP (Secure Real-time Transport Protocol, RFC 3711) uses those keys to encrypt and authenticate every audio and video packet. The pair is known as DTLS-SRTP (RFC 5764), and WebRTC does not let you switch it off: RFC 8827 §6.5 forbids the older SDES key exchange and makes DTLS-SRTP the only option.
In November 2026 the baseline is still DTLS 1.2 plus the SRTP_AES128_CM_HMAC_SHA1_80 profile (both mandatory under RFC 8827). Chrome also negotiates DTLS 1.3 (RFC 9147), which saves one round trip at call setup. DTLS-SRTP leaves two gaps open. A media server (SFU) can still see the media; SFrame (RFC 9605) addresses that. RTP header extensions also stay readable; cryptex (RFC 9335) addresses that.
Why this matters
If you ship a WebRTC product (a telemedicine consultation, an e-learning live class, a video-conferencing room, a contact-centre channel, a live-shopping floor, a remote-collaboration tool, or an AI voice-and-video agent), security is wired into every packet your engineers send and every line of SDP they exchange. You cannot tick it off during the security review. A product manager, founder or buyer should be able to answer four questions: what exactly is encrypted, where the keys come from, what an attacker on the signalling channel can and cannot do, and at what point end-to-end encryption (E2EE) starts requiring application-layer work. This article answers those questions for readers who are not network engineers and gives senior engineers the RFC sections they need to verify each claim.
What WebRTC encrypts, and what it does not
A WebRTC call moves three kinds of bytes across the public internet, and the standard treats each one differently.
The first is the media plane: the audio and video frames that make up the call itself. Each frame is wrapped in an RTP packet, encrypted with SRTP, and sent over UDP. SRTP is mandatory in WebRTC. The W3C specification calls it required, and the browser API has no "off" switch. Even a localhost demo running between two tabs of the same Chrome window encrypts its media on the way through the UDP socket.
The second is the signalling plane: the SDP offers and answers, ICE candidate exchanges, and any application-level chat that sets up the call. WebRTC has no built-in transport for signalling. The application picks the channel (WebSocket, HTTPS, even a long-poll endpoint), and the standard requires that channel to be authenticated and confidential, which in practice means HTTPS or WSS. Over a plaintext signalling channel, an on-path attacker can rewrite the SDP, swap the fingerprint, and complete a man-in-the-middle attack on the DTLS handshake before any media flows.
The third is the data channel, the optional RTCDataChannel for arbitrary application data, used by collaboration tools, multiplayer games and file transfers. It rides on the same DTLS association that keys SRTP, so it gets the same encryption properties.
WebRTC does not encrypt anything that happens at the application layer above the browser API. If your app sends audio to a server for transcription before passing it to the other browser, securing that path is your job. If your app records a call to disk, the recording is plaintext unless your code encrypts it. And if the call goes through a Selective Forwarding Unit (SFU), as almost every conference of more than two people does, the SFU sees the decrypted media unless you also deploy application-layer end-to-end encryption (SFrame, covered below). For the wider SFU picture, see SFU vs MCU vs Mesh: the three WebRTC topologies.
SRTP in plain language
SRTP, Secure Real-time Transport Protocol, is defined in RFC 3711, published in March 2004 by Baugher, McGrew, Naslund, Carrara and Norrman. It is a profile of RTP, an extension that adds three properties to the ordinary RTP header: confidentiality (the payload is encrypted), authentication (a short tag at the end of each packet lets the receiver check that the packet was not modified), and replay protection (an index inside the packet stops an attacker from saving an old packet and re-sending it later).
The original RFC 3711 specifies AES in counter mode (AES-CM) for encryption and HMAC-SHA1 for the authentication tag. That combination is now considered dated. Modern WebRTC implementations prefer AEAD-AES-128-GCM and AEAD-AES-256-GCM, the Authenticated-Encryption-with-Associated-Data ciphersuites that RFC 7714 (December 2015) added to SRTP. With AEAD, encryption and authentication happen in one pass with a single key, which runs faster on modern CPUs and is simpler to reason about. The GCM profiles are optional, though. RFC 8827 §6.5 makes SRTP_AES128_CM_HMAC_SHA1_80 the only profile every WebRTC endpoint must support, and GCM is used only when both sides offer it. To check what your own calls negotiated, read srtpCipher, dtlsCipher and tlsVersion from the transport entry of RTCPeerConnection.getStats() or in chrome://webrtc-internals.
A note for anyone who searched "SRTP chat": text chat in a WebRTC app does not use SRTP. Chat and file transfer go over the data channel, which is SCTP carried inside the same DTLS association, so they are protected by DTLS encryption instead.
SRTP itself does not say where the encryption key comes from. The key is negotiated by some other protocol, and SRTP consumes the result. In WebRTC that protocol is DTLS, and the two are wired together by use_srtp, the DTLS extension defined in RFC 5764.
Two details of SRTP tend to surprise people who are not network engineers.
The first is that only the payload is encrypted, not the RTP header. The sequence number, the timestamp and the SSRC (synchronisation source identifier) are visible to anyone on the path. This is deliberate: the network needs those fields for pacing, jitter buffering and congestion-control feedback (see Bandwidth Estimation and Congestion Control in WebRTC). What stays hidden is the content of the speech and the pixels of the video. RTP header extensions are exposed too, and some reveal a lot: the audio-level extension tells an observer who is speaking and when. RFC 9335 (cryptex, January 2023) encrypts header extensions and CSRC lists along with the payload. libwebrtc landed cryptex negotiation in May 2026, but the commit left the policy disabled by default, so native builds have to turn it on explicitly.
The second is that the authentication tag is short. With the mandatory AES128_CM_HMAC_SHA1_80 profile it is 80 bits (10 bytes) on every packet, audio and video alike. The _32 variant cuts it to 4 bytes and is used mostly for audio. AES-GCM profiles (RFC 7714) carry a 128-bit (16-byte) tag instead. Eighty bits is a deliberate trade-off: long enough to make forgery impractical, short enough not to bloat a 20-millisecond audio packet. RFC 3711 explains the reasoning.
DTLS: TLS that survived a flight over UDP
DTLS, Datagram Transport Layer Security, is the version of TLS that runs over UDP instead of TCP. WebRTC needs UDP for media, because TCP's head-of-line blocking would ruin real-time audio and video (for the wider rationale, see TCP, UDP, and the choice every streaming protocol must make). It also needs what a TLS handshake provides: mutual proof of identity, agreement on cipher suites and derivation of session keys. DTLS covers both. The current version is DTLS 1.3, RFC 9147, published April 2022. The prior version, DTLS 1.2 (RFC 6347, 2012), is still in production but being phased out. RFC 8827 still names DTLS 1.2 with TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256 on the P-256 curve as the mandatory baseline, so every endpoint has to be able to fall back to 1.2. In 2026 Chrome negotiates DTLS 1.3 for WebRTC without flags, and native libwebrtc builds enable it with the WebRTC-ForceDtls13 field trial (per OpenAI's 2026 Realtime API WARP guide). If your SFU's DTLS stack only speaks 1.2, the handshake settles on 1.2. That is changing on the server side: OpenSSL 4.1.0, released on 23 October 2026, added DTLS 1.3 (RFC 9147) and DTLS support in its listener API, so SFUs built on OpenSSL can offer 1.3 after they upgrade. The same release notes list four open DTLS bugs, among them a DTLS 1.3 server that can abort the handshake after packet loss, so test 1.3 on lossy networks before enabling it. The IETF is also revising the protocol: draft-ietf-tls-rfc9147bis-02 (July 2026) would obsolete RFC 9147 once approved.
In a WebRTC call the DTLS handshake runs on the media path itself, not on the signalling channel. The whole architecture depends on this. Once ICE has nominated a candidate pair (a working address on each side, see NAT, firewalls, STUN, TURN, ICE: how WebRTC actually reaches a phone), the two endpoints exchange ClientHello and ServerHello UDP datagrams across that pair, agree on a cipher suite, do the key exchange and finish, all over the same UDP socket the media will later use. The handshake takes one round trip in DTLS 1.3 (down from two in 1.2). Encrypted media therefore costs one round trip of setup latency and a few kilobytes of one-time bandwidth compared with plaintext.
How DTLS keys SRTP
Here the two protocols join up. During the DTLS handshake, both sides negotiate the use_srtp extension defined in RFC 5764. Each side uses it to advertise the SRTP profiles it supports (SRTP_AEAD_AES_128_GCM, SRTP_AES128_CM_HMAC_SHA1_80, etc.), and one is picked. After the handshake, neither side uses the DTLS application keys for SRTP directly. Both call the TLS Key Material Exporter (RFC 5705) with the label EXTRACTOR-dtls_srtp and pull out one block of 2 × (key + salt) bytes. RFC 5764 §4.2 splits it in order into the client write key, the server write key, the client salt and the server salt (in DTLS 1.3 the exporter comes from the exporter master secret). The SRTP context uses those two key-and-salt pairs to encrypt and decrypt every later media packet.
The important property is that the SRTP keys never travel on the signalling channel. The signalling server never sees them, and the SDP offers and answers do not contain them. Each endpoint derives them locally after a DTLS handshake whose security rests on the endpoints' certificates rather than on anything the signalling channel says. This makes WebRTC strictly stronger than the older SDES (Session Description Protocol Security Descriptions) approach, which sent SRTP keys directly inside the SDP and which the WebRTC specification explicitly forbids.
WARP: shaving round trips off call setup
DTLS 1.3 is one part of WARP (WebRTC Abridged Roundtrip Protocol, IETF draft draft-uberti-tsvwg-warp). The other two parts are SPED (draft-hancke-webrtc-sped), which carries DTLS handshake messages inside the authenticated STUN checks so DTLS no longer waits for ICE to finish, and SNAP (draft-hancke-tsvwg-snap), which speeds up data-channel setup. As of November 2026 all of these are still Internet-Drafts. Chrome ran a SNAP origin trial in versions 151–156, and on 6 November 2026 the Chromium team filed an intent to extend it to Chrome 162 while the IETF decides how SNAP is signalled in SDP. SPED has no browser origin trial yet. The security model stays the same: the fingerprint is still checked before any media or data is delivered.
Post-quantum DTLS: where WebRTC stands in 2026
Chrome switched its HTTPS key exchange to the hybrid ML-KEM group in Chrome 131 (Google Security Blog, September 2024), and Firefox 145 added mlkem768x25519 for TLS 1.3 and HTTP/3. Signalling that runs over HTTPS or WSS is therefore already covered. On the media path, a hybrid post-quantum key exchange requires DTLS 1.3, and as of November 2026 we have not found a browser release note that enables ML-KEM for WebRTC DTLS by default. The W3C discussion (webrtc-extensions issue #207) gives the reason: a post-quantum key share turns the DTLS ClientHello into two packets instead of one, and Firefox Nightly accepts mlkem768x25519 in WebRTC but does not send that key share. Treat "harvest now, decrypt later" as an open risk for recorded SRTP traffic, and check tlsVersion in getStats() before you claim anything in a security questionnaire.
The fingerprint: how SDP binds the media path to the signalling path
Since DTLS keys SRTP on the media path and the signalling channel never carries the SRTP keys, the signalling channel matters for security for one reason: the a=fingerprint attribute in SDP, defined in RFC 5763 (with the underlying mechanism in RFC 4572).
When a WebRTC endpoint generates its DTLS certificate (browsers do this automatically, and in the standard case create a fresh, disposable self-signed certificate per RTCPeerConnection), it hashes the certificate with SHA-256 and writes the hash into the SDP it sends. The line looks like this:
a=fingerprint:sha-256 02:1A:CC:54:27:AB:EB:9C:53:3F:3E:4B:65:2E:7D:46:3F:54:42:CD:54:F1:7A:03:A2:7D:F9:B0:7F:46:19:B2
When the DTLS handshake later runs on the media path, each endpoint takes the certificate the other side presented, computes the same SHA-256 over it, and compares the result with the fingerprint it received in SDP. A match means the endpoint is talking to the same party whose certificate fingerprint arrived over the signalling channel. A mismatch tears the connection down.
For a vanilla WebRTC call, that comparison is the entire identity check. It ties the media plane to the signalling plane. An attacker who can rewrite SDP in flight can substitute their own fingerprint, terminate the DTLS handshake on their side, open a second DTLS handshake to the real callee, and sit in the middle unseen. This is why the WebRTC specification requires an authenticated and confidential signalling channel, typically HTTPS or WSS. The fingerprint links the two planes, and HTTPS keeps anyone from swapping that link out.
The choice of SHA-256 matters. RFC 8122 (which obsoletes RFC 4572) bans MD2 and MD5 for fingerprints, makes SHA-256 the preferred hash and requires every endpoint to compute at least a SHA-256 fingerprint. SHA-1 is still listed but no longer preferred, so a sha-1-only fingerprint in a modern stack points to an outdated implementation. Chromium and Firefox emit sha-256.
"WebRTC fingerprinting" in the browser-privacy sense is a separate topic: sites reading your local IP addresses through ICE candidates. Browsers hide those addresses behind mDNS host names. For that product-level side of security (IP leaks, signalling hardening, real-world attacks), see our WebRTC security guide on IP leaks, attacks and hardening.
One detail is easy to miss: the certificate is self-signed and ephemeral. No public certificate authority issues it, its common-name field holds no DNS name, and it usually lives only as long as the RTCPeerConnection. Its only job is to carry a public key whose hash becomes the fingerprint being compared. That is sufficient, because the real identity check is delegated to the signalling channel, which the browser already trusts since it served the page over HTTPS.
The threat model: what an attacker can and cannot do
RFC 8826, "Security Considerations for WebRTC", describes the threat model in detail. Here is a short summary with the practical implications for a product team:
A passive eavesdropper on the media path sees encrypted SRTP packets and learns almost nothing about the call content. They can see the IP addresses, the packet rate per second, the size of each packet (which reveals something about the codec and bitrate; voice activity can be inferred from packet timing), and the unencrypted RTP header fields. They cannot hear the audio or watch the video.
A passive eavesdropper on the signalling path, if signalling does not run over HTTPS, sees the whole SDP, fingerprints included. Fingerprints alone do not let them decrypt anything, since the SRTP keys are derived on the media path from the DTLS exporter and never appear in SDP. The SDP does contain IP addresses, ICE candidates and user identifiers, though, so it leaks who calls whom.
An active attacker on the media path can drop, reorder or inject packets. SRTP's authentication tag keeps injected packets from being accepted, and the replay-protection window rejects saved packets sent again later. On this path the attacker is limited to denial of service: they can make the call unusable, but they cannot impersonate either side.
An active attacker on the signalling path is the dangerous case. If the signalling channel is not authenticated, they can rewrite SDP, swap fingerprints and complete a man-in-the-middle attack. RFC 8827 §9.1 describes this attack: when HTTPS does not protect the signalling server, an on-path attacker can replace the DTLS-SRTP fingerprints. The defence is HTTPS for the page and HTTPS or WSS for the signalling endpoint. Without them, the DTLS-SRTP design fails at the signalling channel, and media ends up encrypted between the attacker and each victim instead of between the victims.
A malicious peer (the person at the other end of the call) can record everything you send, replay it later, post it publicly or feed it into a deepfake pipeline. Neither SRTP nor any other media protocol can prevent this. Once you decide to talk to someone, assume they keep the bits.
A malicious SFU in a multi-party call routed through a server sees decrypted media, because it terminates the SRTP context. E2EE closes this structural gap; see the SFrame section below.
A cross-origin attacker, such as a website that wants to switch on a victim's microphone and camera without asking, is blocked by the W3C getUserMedia permission model. WebRTC's security architecture treats permission to access local media as its most important consent gate, and prompting on first use is a deliberate part of that design.
Unknown key-share: a subtle attack worth knowing
A January 2021 IETF document, RFC 8844, described an "unknown key-share" attack on DTLS-SRTP. Attacker M copies B's fingerprint into its own signalling with C and relays only the DTLS packets. C completes a valid handshake with B but believes it is talking to M. RFC 8844 fixes this with the external_session_id TLS extension, which binds the handshake to the tls-id value from RFC 8842; browser support is limited. The attack is rare in practice, but it matters if your product's threat model includes adversarial callees.
Identity: the part of the spec almost nobody deploys
RFC 8827, the WebRTC Security Architecture, also defines an optional identity layer on top of DTLS-SRTP, mirrored in the W3C WebRTC Identity specification. Its goal is to make a WebRTC call cryptographically attributable across origins. If a user on acme.example calls a user on globex.example, each side can prove to the other (and to the browser) who the caller is, as attested by a third-party identity provider (IdP) and not by the calling website.
How it works: each endpoint loads a JavaScript snippet from its chosen IdP (Google, historically Mozilla Persona, or an OAuth provider). The IdP signs the SDP fingerprint with a token bound to the user's identity at the IdP. The receiving side fetches the IdP's verification script, checks the signature, and learns that "this fingerprint really belongs to alice@example.com". Browsers expose this as RTCPeerConnection.setIdentityProvider().
In practice, almost nobody ships this. The W3C Identity for WebRTC 1.0 specification has been a Candidate Recommendation since 27 September 2018, and Firefox is the only major browser that implemented setIdentityProvider(). Most real WebRTC products live inside a single trust domain (the same company's app on both sides), so cross-origin identity is moot. The IdP loading model is intrusive and brittle. Other approaches (server-side authentication of the WebSocket signalling channel, JWT bearer tokens passed through SDP a= attributes) cover the same ground with less overhead. As of November 2026 nothing has changed, and you can build a serious WebRTC product without ever calling it.
What people deploy instead
What ships in production looks like this. The application authenticates the user on the signalling server (OAuth, SSO, magic link, whatever the rest of the product uses), then issues a short-lived JWT or similar token that the WebRTC client presents to the SFU before it may publish or subscribe. The SFU enforces the policy: who can join which room, who can publish which track, who can talk to whom. The DTLS-SRTP layer below protects the media cryptographically, and the application layer above handles identity. LiveKit, mediasoup, Janus, Jitsi and every commercial SFU platform document this pattern, and our WebRTC development team uses it by default in every new project.
End-to-end encryption: the gap SRTP does not close
A two-person WebRTC call is end-to-end encrypted in the strict sense: only the two browsers hold the SRTP keys, and a third party can read the media only by compromising one of them. A multi-party call routed through an SFU is not. SRTP keys are per hop. The SFU runs its own DTLS-SRTP session with each participant, decrypts the full payload from the sender and re-encrypts it for each subscriber, so it sees the plaintext media. For the user, "WebRTC is encrypted" is technically true and operationally misleading.
RFC 9605, Secure Frame (SFrame), published August 2024, is the IETF standard that closes this gap. SFrame encrypts each media frame before it is wrapped in RTP and SRTP, using a key the SFU does not hold. The SFU sees encrypted frames inside SRTP packets: it can read the SRTP headers and forward packets, but it cannot decrypt the payload. Participants get end-to-end encryption and the SFU keeps routing, only now it forwards ciphertext.
In the browser, SFrame is built on Insertable Streams (officially WebRTC Encoded Transform), a Worker-based API that gives JavaScript access to encoded frames before they enter SRTP on the send path and after they leave SRTP on the receive path. The standard RTCRtpScriptTransform API became Baseline in October 2025, when Chrome joined Firefox and Safari (MDN); Chromium also keeps its older createEncodedStreams() path. Group key management (who gets which SFrame key, how a key rotates when a participant joins or leaves) is left to an application protocol. The typical 2026 choice is MLS (Messaging Layer Security, RFC 9420, July 2023), though custom key-management schemes are still common in production. Google Meet shipped client-side encrypted calls for Workspace Enterprise Plus and Education editions in August 2022, and LiveKit ships E2EE in its client SDKs.
For most products the decision breaks down like this. Routine conferencing: DTLS-SRTP is enough. Regulated healthcare or finance: DTLS-SRTP already meets "encrypted in transit", so add SFrame when calls pass through a media server and your contract, regulator or privacy policy promises that no server can see the media. A "no server can see my data" claim in marketing: add SFrame and document how keys are managed.
What changed in WebRTC transport security in 2025–2026
- Encoded transforms reached every engine.
RTCRtpScriptTransform, the hook SFrame needs, has been Baseline since October 2025 (MDN). - DTLS 1.3 in Chrome. Chrome negotiates DTLS 1.3 for WebRTC in 2026; DTLS 1.2 remains the mandatory fallback under RFC 8827.
- WARP drafts. DTLS 1.3, SPED and SNAP combine into
draft-uberti-tsvwg-warpto cut setup round trips. Chrome 151–156 ran a SNAP origin trial, and in November 2026 Chromium asked to extend it to Chrome 162. - OpenSSL 4.1.0 ships DTLS 1.3. Released on 23 October 2026, it brings RFC 9147 to the C library many SFUs and media servers link against; four DTLS bugs were still open at release.
- Pion DTLS security fixes. CVE-2026-26014 (February 2026, CVSS 5.9): random AES-GCM nonces could expose the authentication key, fixed in pion/dtls v3.0.11 and v3.1.1. CVE-2026-54908 (July 2026, CVSS 5.3): a crafted ECDHE_PSK message crashes the endpoint, fixed in v3.1.4.
- Cryptex in libwebrtc. RFC 9335 header-extension encryption landed in May 2026, disabled by default.
- Post-quantum key exchange. On by default for HTTPS in Chrome (since 131) and Firefox (145); not yet confirmed for WebRTC DTLS as of November 2026.
- EU Cyber Resilience Act. Since 11 September 2026, makers of products with digital elements sold in the EU (WebRTC apps included) must send an early warning within 24 hours of learning about an actively exploited vulnerability. Full product rules apply from December 2027.
A common WebRTC security mistake
When we review a WebRTC project, the most common production failure we find sits outside the media stack: the signalling channel runs over plain WebSocket (ws://) instead of secure WebSocket (wss://). In testing the call looks encrypted. SRTP is on, the DTLS handshake completes, and the browser console reports a secure connection, so the team ticks the box and ships. In production, an attacker on the same Wi-Fi network or on a compromised intermediate hop can rewrite the SDP in flight, swap the fingerprint, run a separate DTLS handshake with each victim and relay all media without either side noticing. DTLS reports success on both ends, because the certificates do match the substituted fingerprints in the rewritten SDP. The fix is one character: wss://. RFC 8827 §9.1 describes this exact attack, and browsers already refuse camera and microphone access on pages not served over HTTPS. Checking wss:// belongs at the top of any WebRTC pre-release security checklist.
WebRTC security mechanisms compared
| Mechanism | What it protects | Where it lives | Required by spec | Typical 2026 status |
|---|---|---|---|---|
| SRTP (AES-CM or AES-GCM) | Media confidentiality, integrity, anti-replay | Media path, every RTP packet | Yes (RFC 8827 §6.5: AES128_CM_HMAC_SHA1_80 mandatory) | Universal; GCM used when both ends offer it |
DTLS 1.2/1.3 + use_srtp | Key exchange for SRTP, peer authentication via certificate | Media path, runs once after ICE | Yes (RFC 8827 §6.5: DTLS 1.2 minimum) | Universal; Chrome negotiates DTLS 1.3 in 2026, OpenSSL 4.1.0 adds it for servers (October 2026), 1.2 remains the fallback |
SDP a=fingerprint (SHA-256) | Binds signalling identity to media-path certificate | Signalling plane, in every offer/answer | Yes (RFC 5763, RFC 8122) | Universal; SHA-256 preferred and always computed, MD5 banned (RFC 8122) |
| HTTPS / WSS signalling | Authenticates the signalling channel, blocks fingerprint substitution | Signalling plane, the transport itself | In practice yes (RFC 8827 §9.1; browsers require HTTPS for camera and mic) | Universal in well-built products; the most common misconfiguration in early production |
| mDNS host candidates | Hides local IPs in ICE candidates | Signalling plane, ICE only | No (de-facto) | Chromium-based browsers since 2019; check other engines in your test matrix |
| Cryptex (RFC 9335) | RTP header extensions and CSRC lists (e.g., who is speaking) | Media path, inside SRTP | No | In libwebrtc since May 2026, disabled by default |
| W3C Identity / IdP | Cross-origin identity binding via third-party IdP | Browser API, opt-in JavaScript | Optional (RFC 8827 §7) | Rarely deployed; superseded by JWT-bound app auth |
| SFrame (RFC 9605) | E2EE through an SFU; SFU sees only ciphertext | Application layer, on top of Insertable Streams | No | Encoded-transform API Baseline since October 2025; standard for regulated verticals |
Numeric example: the cost of "encrypted"
The usual objection to encryption is overhead, so here is the arithmetic for a routine WebRTC audio-video call.
A 720p H.264 video stream at 1500 kbps, packetised into roughly 1200-byte RTP payloads, produces about 156 packets per second. With the mandatory AES128_CM_HMAC_SHA1_80 profile, SRTP appends a 10-byte authentication tag to each packet:
156 packets/s × 10 bytes = 1,560 bytes/s ≈ 12.5 kbps of authentication-tag overhead
For an audio stream at 32 kbps Opus, 50 packets per second, with the same 10-byte tag:
50 packets/s × 10 bytes = 500 bytes/s = 4 kbps of authentication-tag overhead
If both ends negotiate AES-GCM, the tag grows to 16 bytes: about 20 kbps for the video and 6.4 kbps for the audio.
Encryption runs in place and adds no bytes to the payload, since AES-CM and AES-GCM work on it as-is. SRTCP adds a 4-byte index and a 10-byte tag to each RTCP packet, which is small next to the SRTP tags. Counting SRTP tags only, "encrypted" costs roughly 16.5 kbps more than "plaintext" on a 1.53 Mbps call, about 1.1 % of the bitrate (about 26 kbps, or 1.7 %, with GCM). Modern x86 and ARM cores have AES instructions (AES-NI on x86, Cryptography Extensions on ARMv8), and a single core encrypts hundreds of megabits per second. On a phone that CPU cost is unmeasurable next to video decoding. The DTLS handshake happens once and adds one round trip to call setup with DTLS 1.3 (two with DTLS 1.2), typically 30–150 ms per round trip, plus a few kilobytes of bandwidth.
WebRTC has never had a production reason to turn encryption off, and the standard does not allow it in any case.
FAQ
What is DTLS in WebRTC?
DTLS (Datagram Transport Layer Security) is TLS adapted to UDP. In WebRTC it runs once per connection on the media path, checks the peer's certificate against the SDP fingerprint and exports the SRTP keys. The data channel also travels inside it.
What does SRTP mean?
SRTP means Secure Real-time Transport Protocol (RFC 3711). It encrypts the payload of each RTP audio or video packet and adds an authentication tag and replay protection. WebRTC always uses it, with keys from DTLS.
What is RFC 9605?
RFC 9605, published in August 2024, defines SFrame (Secure Frame). It encrypts each media frame with a key the SFU does not hold, so a group call stays end-to-end encrypted while the server still forwards packets.
Is WebRTC chat encrypted with SRTP?
No. SRTP covers audio and video only. Text chat and files go over the WebRTC data channel, which is SCTP inside DTLS, so they are encrypted by DTLS.
What is the difference between mTLS and DTLS?
mTLS is ordinary TLS over TCP in which both client and server present certificates. DTLS is TLS over UDP. WebRTC's DTLS handshake is in practice mutual as well, since both peers present certificates that are checked against SDP fingerprints. The DTLS, SRTP, TLS and mTLS comparison for media covers the wider picture.
Does WebRTC use post-quantum DTLS?
Not by default as of November 2026. Hybrid ML-KEM key exchange protects HTTPS signalling in Chrome and Firefox, but we have not found a browser release that enables it for WebRTC DTLS, which would require DTLS 1.3.
Which DTLS stacks do WebRTC products use?
Chrome uses BoringSSL, Firefox uses NSS, and servers commonly use OpenSSL, BoringSSL, wolfSSL (which supports DTLS 1.3) or Pion's Go DTLS library. OpenSSL added DTLS 1.3 in version 4.1.0 (October 2026), and Pion described its DTLS 1.3 implementation in August 2026. If you run Pion, use pion/dtls v3.1.4 or later to pick up the two 2026 CVE fixes. Any of them must interoperate on DTLS 1.2 with the RFC 8827 cipher suite.
What is the WebRTC DTLS handshake?
The WebRTC DTLS handshake is a TLS handshake over UDP that runs on the media path right after ICE picks a candidate pair. Each peer checks the other's certificate against the SDP fingerprint, the two sides agree on an SRTP profile through use_srtp, and both export the SRTP keys locally. It takes one round trip with DTLS 1.3 and two with DTLS 1.2.
What is RFC 3711?
RFC 3711, published in March 2004, is the base specification of SRTP. It defines payload encryption with AES counter mode, the HMAC-SHA1 authentication tag and replay protection. WebRTC uses it with keys exported from DTLS (RFC 5764).
Free download: WebRTC Security Pre-Flight ChecklistA 28-item checklist across 8 areas to run before a WebRTC release: signalling encryption, DTLS, SRTP profile, fingerprint, mDNS, identity, SFrame and observability.Where Fora Soft fits in
Since 2005 Fora Soft has worked mainly on WebRTC, conferencing, telemedicine, e-learning, contact-centre video, surveillance and live shopping, with 250+ shipped projects. Securing the media plane is routine for us. Every project ships DTLS-SRTP by default, terminates HTTPS at the signalling gateway and gets an SFU configuration audit for token-bound room access. End-to-end encryption depends on the product. Most live-shopping and consumer products do not need SFrame, telemedicine and regulated-finance products often do, and e-learning falls in between depending on jurisdiction. The pattern that scales is "DTLS-SRTP for transport security, JWT-bound authentication for identity, SFrame on top when the threat model requires E2EE through the SFU". To have that pattern checked against your own stack, our WebRTC security and architecture consulting reviews the SFU, signalling and token setup, and our telemedicine software development projects add SFrame E2EE where the threat model requires it.
The book
Video Streaming: A Complete Guide to Video Delivery: From ABR and CDNs to Players, WebRTC, DRM, and the Economics of Streaming
Book 3 covers WebRTC end to end, from the SFU and E2EE with SFrame to DRM and content protection, so you can decide what each layer of a call must defend. Book 2 goes under it: UDP transport, NAT traversal and the network path the DTLS handshake runs on. Written by Nikolay Sapunov, CEO at Fora Soft.
Is your WebRTC product secure past the SRTP checkbox?
Tell us your signalling stack, SFU and threat model. We will check the wss:// and fingerprint path, token-bound room access and whether you need SFrame, and send you a short list of what to fix before release. 250+ video products shipped since 2005.
See our case studies
Case study
Nucleus
On-premise WebRTC and SIP calling for a Canadian telecom, built to SOC II, GDPR and HIPAA requirements for 5,000+ businesses.
Case study
CirrusMed
HIPAA-compliant browser video visits for a telemedicine practice licensed in 48+ U.S. states, with 20+ physicians on the network.
Case study
ProVideoMeeting
WebRTC and FreeSWITCH conferencing where participants sign legally valid documents mid-call, verified by SMS or photo.
What to read next
Security
DTLS, SRTP, TLS, mTLS: The Encryption Layer for Media
The same encryption layer across streaming protocols, beyond WebRTC.
WebRTC
SDP Offer/Answer In Depth
Where the a=fingerprint line lives and how offer and answer carry it.
WebRTC
NAT, Firewalls, STUN, TURN, ICE: How WebRTC Actually Reaches a Phone
How ICE picks the UDP path the DTLS handshake then runs on.
Architecture
SFU vs MCU vs Mesh: The Three WebRTC Topologies
Why the SFU sees your media, and what each topology means for E2EE.
References
- RFC 8827 — WebRTC Security Architecture, Rescorla, January 2021. Standards-track. The authoritative description of the WebRTC security model: §6 (Communications security), §7 (Identity), §9.1 (signalling-path attacks). Tier 1; used for every normative claim about what WebRTC requires.
- RFC 8826 — Security Considerations for WebRTC, Rescorla, January 2021. Standards-track. Threat-model document; §4.3 (Communications Security) covers man-in-the-middle attacks by a compromised calling service. Tier 1.
- RFC 3711 — The Secure Real-time Transport Protocol (SRTP), Baugher, McGrew, Naslund, Carrara, Norrman, March 2004. Standards-track. Base spec for SRTP confidentiality, authentication, and replay protection. Tier 1.
- RFC 7714 — AES-GCM Authenticated Encryption in SRTP, McGrew, Foley, December 2015. Standards-track. Adds AEAD-AES-128-GCM and AEAD-AES-256-GCM to SRTP as optional ciphersuites, used when both ends offer them. Tier 1.
- RFC 5764 — DTLS Extension to Establish Keys for SRTP (DTLS-SRTP), McGrew, Rescorla, May 2010. Standards-track. Defines the
use_srtpDTLS extension and the SRTP-keying derivation referenced in the "How DTLS keys SRTP" section. Tier 1. - RFC 5763 — Framework for Establishing a Secure Real-time Transport Protocol (SRTP) Security Context Using DTLS, Fischl, Tschofenig, Rescorla, May 2010. Standards-track. Defines the SDP fingerprint mechanism and the binding between signalling and media; cited for the
a=fingerprintsemantics. Tier 1. - RFC 9147 — The Datagram Transport Layer Security (DTLS) Protocol Version 1.3, Rescorla, Tschofenig, Modadugu, April 2022. Standards-track. DTLS 1.3 spec; cited for the 1-RTT handshake property and the cipher-suite tightening compared to DTLS 1.2. Tier 1.
- RFC 9605 — Secure Frame (SFrame): Lightweight Authenticated Encryption for Real-Time Media, Omara, Uberti et al., August 2024. Standards-track. End-to-end encryption framework for media frames through an SFU; cited in the E2EE section. Tier 1.
- RFC 8844 — Unknown Key-Share Attacks on Uses of TLS with the Session Description Protocol (SDP), Thomson, Holmberg, January 2021. Standards-track. Documents the unknown-key-share attack class against DTLS-SRTP and the
external_session_idTLS extension that mitigates it (used together with thetls-idattribute from RFC 8842). Tier 1. - W3C WebRTC Identity Specification, W3C Candidate Recommendation, 27 September 2018. Defines
RTCPeerConnection.setIdentityProvider()and the IdP integration model discussed in the Identity section. Tier 1. - WebRTC Source:
transport-wide-cc-02and SRTP profile documentation, Google. Reference implementation documentation for the cipher-suite negotiation and SRTP profile selection in libwebrtc. Tier 2. - draft-ietf-mmusic-mdns-ice-candidates-02, Uberti, Shieh. IETF draft for mDNS host-candidate obfuscation, used by Chrome since 2019 to hide local IPs in WebRTC SDP. Cited for the privacy-leak discussion. Tier 1 (draft, subject to revision before RFC publication).
- The WebRTC Security Architecture (rtcweb-wg), IETF rtcweb working group, living document. The pre-RFC editor's copy of the security architecture document, used by the WG for ongoing edits. Useful for understanding pre-RFC 8827 drafts and rationale. Tier 2.
- RFC 9335 — Completely Encrypting RTP Header Extensions and Contributing Sources (cryptex), January 2023. Standards-track. Cited for header-extension encryption. Tier 1.
- RFC 8122 — Connection-Oriented Media Transport over TLS in SDP, March 2017. Standards-track; obsoletes RFC 4572. Cited for fingerprint hash rules (SHA-256 preferred, MD5 banned). Tier 1.
- libwebrtc commit "Implement cryptex header extension negotiation", Google, May 2026. Source for cryptex landing in libwebrtc with the policy disabled by default. Tier 2.
- OpenSSL Release Announcement for 4.1.0, OpenSSL, 23 October 2026. Cited for DTLS 1.3 (RFC 9147) support, DTLS in the listener API and the four known DTLS issues. Tier 2 (vendor).
- draft-ietf-tls-rfc9147bis-02 — DTLS 1.3, Rescorla, Tschofenig, Modadugu, 6 July 2026. Internet-Draft that would obsolete RFC 9147 once approved. Tier 1 (draft).
- CVE-2026-26014 — pion/dtls random AES-GCM nonces, published 11 February 2026. Fixed in v3.0.11 and v3.1.1. Tier 2.
- CVE-2026-54908 — pion/dtls ECDHE_PSK denial of service, published 31 July 2026. Fixed in v3.1.4. Tier 2.
- W3C webrtc-extensions issue #207 — Post-Quantum Crypto support in WebRTC. Cited for the two-packet ClientHello problem and Firefox Nightly ML-KEM behaviour in WebRTC. Tier 2.
- blink-dev: Intent to Extend Experiment, WebRTC Data Channel SNAP, 6 November 2026. Cited for the SNAP origin trial (Chrome 151–156) and the requested extension to Chrome 162. Tier 2.
- WebRTC with WARP, OpenAI Realtime API docs, 2026. Cited for DTLS 1.3 in Chrome, the WebRTC-ForceDtls13 field trial, SPED/SNAP drafts and the Chrome 151–156 SNAP origin trial. Tier 2.
- MDN — RTCRtpScriptTransform. Cited for Baseline status since October 2025. Tier 2.
- EU Cyber Resilience Act — NCSC Ireland. Cited for the 11 September 2026 reporting start and the 24-hour early warning. Tier 2 (national authority).
