Healthcare Compliance · November 19, 2026 · Maryna Poplavska

Is WebRTC End-to-End Encrypted? What “Encrypted” Really Means for Telehealth

Is WebRTC End-to-End Encrypted? What “Encrypted” Really Means for Telehealth

By Maryna Poplavska, Lead Project Manager · Last updated 19 November 2026

WebRTC media is always encrypted, but it is not end-to-end encrypted by default. Every WebRTC media channel runs over DTLS-SRTP, which encrypts each network hop. In a direct peer-to-peer call the only hop is between the two people, so that is effectively end to end. Many telehealth platforms route media through an SFU (selective forwarding unit), and a standard SFU decrypts it. That gap shapes what your BAAs and GDPR processor terms must cover, and whether “end-to-end encrypted” on your website is true.

Sources as read on 17 November 2026 unless another date is given. This is engineering guidance, not legal advice; confirm your setup with counsel in each market.

Key takeaways

  • DTLS-SRTP is mandatory in WebRTC and encrypts hop by hop. It is transport encryption, not end-to-end encryption.
  • In a 1:1 peer-to-peer call, hop by hop is end to end, including through a TURN relay, provided you trust the signalling that carries each side’s DTLS fingerprint.
  • A standard SFU terminates DTLS-SRTP, so it handles your media unencrypted in memory before re-encrypting it for each recipient.
  • End-to-end encryption does not, by itself, remove the BAA. Under HHS guidance, a cloud provider that maintains encrypted health data is a business associate even without the key.
  • True E2EE over an SFU in practice means frame-level encryption (SFrame, RFC 9605), in browsers through the Encoded Transform API, and the hard part is key management, not the cipher.
  • E2EE switches off server-side recording, transcription and AI notes. Decide which you need before you choose, and describe the result accurately.

Security or compliance lead? Read why the SFU decides your compliance posture and what to write in a security questionnaire. Engineer? Start with what an SFU does to encryption.

Is WebRTC end-to-end encrypted by default?

No. Your media is encrypted, but by default that encryption ends wherever the connection ends.

WebRTC secures media with SRTP (Secure Real-time Transport Protocol), and the SRTP keys come from a DTLS handshake between the two ends of each connection. This is not optional. RFC 8827, the WebRTC security architecture, says media “MUST NOT be sent over plain (unencrypted) RTP or RTCP” and “DTLS-SRTP MUST be offered for every media channel” (§ 6.5). There is no unencrypted WebRTC. That statement covers the WebRTC legs only: a SIP or phone gateway, or any non-WebRTC leg, has its own encryption rules.

How DTLS-SRTP secures the media path

Two endpoints exchange SDP offers and answers, which carry each side’s DTLS certificate fingerprint. They gather ICE candidates to find a path through NATs and firewalls, run a DTLS handshake over that path, and derive SRTP keys from it. For the full walkthrough of SDP negotiation, ICE/STUN/TURN candidate gathering and the handshake, this HackerNoon deep-dive, Under the Hood of WebRTC: From SDP to ICE and DTLS in Production, is a clear reference, so we won’t re-derive it here.

The property to hold onto: DTLS-SRTP protects one connection. Who sits at the two ends of that connection is the whole question.

In peer-to-peer, hop by hop is end to end

In a direct 1:1 call there are two endpoints, the clinician and the patient, and one DTLS-SRTP session between them. Media is encrypted when it leaves one device and decrypted only on the other. In this topology “end-to-end encrypted” is an honest claim, with two caveats a security reviewer will ask about:

  • TURN relays. When a direct path fails, the call falls back to a TURN relay. The DTLS handshake still runs between the two endpoints, so the relay forwards SRTP packets it has no keys for. It does see who is connected to whom, when, and how much traffic flows. By our reading this keeps the call end-to-end encrypted, but the relay is still a server in the media path, so run it on infrastructure you control and include its logs in your data map.
  • Signalling trust. Each side learns the other’s DTLS fingerprint through your signalling service. RFC 8827 describes this as security “provided merely by having the fingerprint in the message and having that message received securely from the signaling server” (§ 4.1). A compromised signalling server could substitute its own fingerprint and sit in the middle. So P2P is end to end against the network and the relay, not against whoever runs signalling, unless you verify identity another way.

The trouble starts when a server joins the media path. For many telehealth products it will.

What happens to encryption when you add an SFU?

A standard SFU decrypts your media. It terminates the DTLS-SRTP session with each participant, reads what it needs to route, and re-encrypts the media in a separate SRTP session for each recipient.

You move to an SFU once you need more than a few people in a room, server-side recording, or the bandwidth control a media server gives you. An SFU receives each participant’s stream and forwards it selectively to the others, choosing which layer each recipient can handle. (For the general trade-offs, see SFU vs MCU vs P2P; here we care only about encryption.)

A standard SFU doesn’t forward your encrypted packets untouched. It keeps a separate SRTP session per subscriber and rewrites packet headers, which means terminating each DTLS-SRTP session. RFC 7667 says such middleboxes “need to be able to decrypt the media to perform its function” (§ 6). So the flow is not Alice → (encrypted) → Bob. It is:

Alice → (DTLS-SRTP, hop 1) → [SFU: decrypts, routes, re-encrypts] → (DTLS-SRTP, hop 2) → Bob

Media is encrypted on every wire, but it exists unencrypted in the SFU’s memory. That isn’t a defect. It is how selective forwarding is normally built, and it is what makes server-side recording, transcription and real-time AI possible. It also means whoever operates the SFU can, in principle, see and hear every consultation.

The SFrame standard describes the same split. RFC 9605 says an SFU “typically does not need access to the media content”, but “usually needs to be able to access RTP metadata and RTCP feedback messages”. It concludes that “two layers of encryption and authentication are required”: hop by hop between endpoints and SFU, and end to end between the endpoints (§ 1). Default WebRTC gives you only the first.

Why does the SFU trust boundary decide your HIPAA, GDPR and KBV posture?

Whoever operates the SFU handles your patients’ media. If that is a vendor, it is normally a business associate under HIPAA, a processor under GDPR, and the central question in a certified German video service.

HIPAA. The Security Rule’s transmission-security standard asks you to guard ePHI sent over a network, and lists encryption as an “Addressable” specification: “Implement a mechanism to encrypt electronic protected health information whenever deemed appropriate” (45 CFR 164.312(e)(2)(ii)). A proposed rule published on 6 January 2025 would make encryption required; a Federal Register search on 17 November 2026 showed that proposal and no final rule. HIPAA does not define or require end-to-end encryption.

The BAA question turns on handling PHI, not on reading it. Under 45 CFR 160.103, a business associate creates, receives, maintains or transmits PHI on a covered entity’s behalf. HHS’s cloud computing guidance says that lacking a decryption key “does not exempt a CSP from business associate status”, and limits the conduit exception to “transmission-only services” where access is “only transient in nature”. So:

  • If a vendor runs your SFU, treat it as a business associate and sign a BAA, whether or not media is end-to-end encrypted. E2EE reduces what the vendor can see; it does not remove the agreement. Whether a pure real-time relay that stores nothing could count as a conduit is a question for your counsel, not an assumption to build on.
  • If you run the SFU yourself as the covered entity, or as a business associate of your customers, your own safeguards apply, and your cloud host is your business associate or subcontractor.

GDPR. Video of a consultation is health data, a special category under Article 9. A vendor running your SFU is a processor (or sub-processor) under Article 28, which means a data processing agreement, a documented list of sub-processors, and an honest answer on where media is decrypted, physically and legally. Your DPIA should state in one sentence where in the path media exists unencrypted. If it doesn’t, it is incomplete.

KBV and German video consultations. In Germany the question is part of certification, not only marketing. Anlage 31b to the physicians’ federal framework contract (BMV-Ä, version of 5 August 2026) sets the technical rules for statutory-insurance video consultations:

  • § 2 (2): transmission “soll über eine Peer-to-Peer-Verbindung … ohne Nutzung eines zentralen Servers, erfolgen” (should run peer-to-peer, without a central server; our translation). A provider who deviates must ensure “ein angemessenes Schutzniveau” (an appropriate level of protection).
  • § 2 (3): all content end-to-end encrypted “während des gesamten Übertragungsprozesses” (throughout transmission), to the state of the art per the BSI’s Technical Guideline TR-02102.
  • § 2 (4): “Sämtliche Inhalte der Videosprechstunde dürfen durch den Videodienstanbieter weder eingesehen noch gespeichert werden können” (the video-service provider must not be able to view or store any content of the consultation).

By our reading, an SFU that terminates DTLS-SRTP sits uneasily with § 2 (3) and § 2 (4), because the provider’s server can technically read the media. Frame-level E2EE with keys the provider never holds fits the wording most plainly. How a given service meets these clauses is settled in certification, not by the text alone.

The marketing trap

The failure mode to watch for: engineering knows the product runs an SFU that decrypts media, and the website still says “end-to-end encrypted, so your conversations are completely private”. In a consumer app that is sloppy. In a hospital procurement questionnaire or an audit, it is a statement someone will check, and it can stall a deal or trigger a finding.

The fix is to say what is true. The next section shows the wording.

What should you write in a security questionnaire?

Describe the boundary you actually have. These are starting points for the three common designs, to adapt with your compliance owner:

Your design Accurate wording Avoid
1:1 peer-to-peer, TURN on your infrastructure “Video is encrypted end to end between participants with DTLS-SRTP. Relay servers, when used, forward encrypted packets and cannot decrypt them.” Implying no server is involved at all
SFU, standard DTLS-SRTP “Video is encrypted in transit with DTLS-SRTP. Media is processed on our SFU, which [we operate / is operated under a Business Associate Agreement], hosted in [region], with access controlled as follows: […].” “End-to-end encrypted”
SFU with SFrame, keys never on our servers “Video is end-to-end encrypted with SFrame (RFC 9605). Our servers forward encrypted frames and never hold the keys. Server-side recording and transcription are not available in this mode.” Claiming server-side recording or AI notes in the same mode

The second row is accurate and defensible. “We’re end-to-end encrypted”, when the SFU decrypts, is neither.

How do you get true end-to-end encryption over an SFU?

You add a second encryption layer, applied to each encoded frame before it reaches SRTP, with keys the SFU never holds. The SFU then forwards ciphertext.

Layer diagram: DTLS-SRTP ends at the SFU, while an SFrame layer stays encrypted from sender to receiver

The browser hook: Encoded Transform. The W3C WebRTC Encoded Transform API (historically “Insertable Streams”) lets your application transform each encoded frame before it is packetised, and reverse it on the receiving side. The current document is a W3C Working Draft of 25 June 2026; it defines script transforms and an SFrame transform. MDN’s compatibility data, read on 17 November 2026, lists RTCRtpScriptTransform from Chrome 141, Firefox 117 and Safari 15.4; Chromium’s older createEncodedStreams API predates it. We found no compatibility entry for the SFrame transform itself, so don’t count on it in browsers yet. Native iOS and Android SDKs have their own frame-encryption hooks; check yours.

The format: SFrame. SFrame (Secure Frame) is RFC 9605, published by the IETF in August 2024. It encrypts the media payload and leaves a small header in the clear. The SFU can still forward, and it can still adapt bandwidth:

  • Simulcast: each simulcast layer is a separate encoded frame, encrypted independently (§ 6.1.2), so the SFU can pick a layer per recipient.
  • SVC: “the sender MUST encapsulate each layer in a different SFrame ciphertext” (§ 6.1.3), so the SFU can drop layers without decrypting.

What the SFU still sees is metadata. RFC 9605 says observers of the header “may learn, for example, which parties are sending SFrame payloads (from KID values) and at what rates (from CTR values)” (§ 7.1). Add to that what any server sees: IP addresses, timing and packet sizes. The content is opaque to it.

Key management is the hard part. “Like SRTP, SFrame does not define how the keys used for SFrame are exchanged by the parties in the conference” (RFC 9605 § 4.1). You design that, and it must keep keys away from the SFU and your other servers, or the E2EE claim fails. The cipher is the easy part. Key distribution, rotation when someone joins or leaves (RFC 9605 § 7.3 says every client “SHOULD change their keys”), and proving who holds a key are where the work is. Options range from a room secret your application rotates and derives each sender’s key from, to per-sender keys sent over an end-to-end secure channel, to keys derived from an MLS group (Messaging Layer Security, RFC 9420), which RFC 9605 § 5.2 describes. Whether your media server and SDK expose the hooks for this is part of choosing an SFU for telemedicine.

Done properly, the trust boundary moves back to the endpoints, where “end-to-end encrypted” was supposed to live all along.

What do you give up when you turn on end-to-end encryption?

Anything that needs to see the media on the server stops working. For telehealth, that list matters.

With end-to-end encryption on, a server-side recorder receives ciphertext and cannot record or transcribe the call
  • Server-side recording. A recorder next to the SFU receives ciphertext with no key and cannot produce a viewable recording.
  • Server-side transcription and AI notes. Live captions, clinical NLP and an AI scribe drafting the visit note all need the audio unencrypted. Under E2EE they get noise.
  • Content-aware media processing. Server-side mixing, compositing, watermarking and live translation need decoded frames. Forwarding and layer selection survive, as described above.

The compliance trade-off

E2EE is a stronger privacy property, not a “more compliant” setting. HIPAA and GDPR do not, by themselves, require you to record consultations. Many telehealth products still keep recordings or AI-generated notes for documentation, quality review or medico-legal reasons, and those features depend on the server seeing the media. In Germany the pressure runs the other way: Anlage 31b § 2 (4) bars the video provider from viewing or storing content, and § 3 allows recordings documenting treatment only with consent.

So the decision is which you need: server-side recording and AI on media your servers can read, or end-to-end encryption without them. Decide that before you choose an architecture, not after.

Mid-decision on where your encryption boundary sits? Our WebRTC development specialists can mark where media is decrypted in your current design.

So what should a telehealth video architecture actually do?

Choose by two questions: do you need more than two participants or any server-side recording, and which jurisdiction’s rules apply? The first decides whether P2P is possible. The second decides how much server access to media is acceptable.

Decision flowchart: P2P, SFU under a BAA, or SFrame end-to-end encryption for telehealth video

1:1 consult, no server-side recording → peer-to-peer. You get end-to-end encryption from DTLS-SRTP with no SFrame and no key-management project, provided TURN runs on infrastructure you control and signalling is trusted. It is also the German default. Don’t add an SFU you don’t need.

Multiparty, recording or AI needed, US/HIPAA → an SFU, described honestly. The defensible setup for most US telehealth products:

  • DTLS-SRTP in transit (you have this automatically);
  • a BAA with whoever operates the SFU, recorder and transcription service, and with their subcontractors;
  • recordings encrypted at rest and access-controlled;
  • a risk analysis and, for EU users, a DPIA that states where media is decrypted;
  • website and questionnaire copy that says “encrypted in transit”, not “end-to-end encrypted”.

German statutory-insurance video, or a strict E2EE promise → E2EE, and recording only by design. If the provider must not be able to view or store content, the SFU must not hold keys. If you still need a record, the options are:

  • Client-side recording on an authorised participant’s device, with consent;
  • a declared recorder that joins as a named participant and holds a key. It protects against the SFU host, but not against whoever runs the recorder, so in Germany the provider must neither run it nor be able to access it;
  • a non-E2EE mode, clearly labelled, for sessions outside German statutory-insurance video where server-side features are agreed.

Each is a real pattern. Each needs to be recorded in your risk assessment as a deliberate choice. Group sessions add removal, rekeying and per-participant consent on top; plan those separately.

The failure is never “we chose an SFU”. It is choosing one and then not documenting the trust boundary, or claiming an encryption property you don’t have.

What has Trembit built around this?

Our clearest example of the P2P pattern is webPRAX Face2Face, a KBV-listed psychotherapy video platform we built for Healthy Projects GmbH. Its case page describes true peer-to-peer WebRTC with no server-side media processing or interception, on German-hosted infrastructure with zero third-party data access. Read how the webPRAX platform was built.

The opposite design is Cloudbreak, a healthcare video product where we built real-time translation inside a custom mediasoup SFU. Live translation needs the server to hear the audio, so there the server is a trusted party and media is encrypted in transit. Neither design is wrong. They answer different requirements, and each has to be described accurately.

FAQ

Does a TURN server decrypt WebRTC media? No. A TURN server relays packets between two endpoints, and the DTLS handshake still runs between those endpoints, so the relay never holds the SRTP keys. An SFU is different: it terminates the DTLS-SRTP session itself.

What can an SFU still see when end-to-end encryption is on? Routing metadata: who is connected, from which IP address, when, which participants are sending and at what rate, and packet sizes. It cannot read the audio or video.

Can we call our telehealth video “end-to-end encrypted” if we use an SFU? Only if frame-level encryption such as SFrame is on and your servers never hold the keys. Otherwise say “encrypted in transit with DTLS-SRTP”, and name who operates the SFU and under which agreement.

Does end-to-end encryption slow down a call? Frame encryption adds processing on each device and a few bytes per frame; it doesn’t change the network path. We publish no general overhead figure because it depends on codec, device and implementation. Measure it on your lowest-end target device.

Unsure what your questionnaire answer should say?

Book a free 30-minute call. Bring the security questionnaire or your architecture diagram. We will show you where media is decrypted in your design and how to word the answer accurately. No deck, no pitch.

For the build itself, see our WebRTC development work.

This article is engineering guidance, not legal advice. Rules and vendor agreements change; confirm your compliance posture with qualified counsel and with your infrastructure vendors.

Maryna Poplavska
Written by Maryna Poplavska Project Manager & Business Analyst

Related Articles

Ready to start?

Let Us Work Together

Tell us about your project and we'll get back within 24 hours.

Get in Touch