E2EE Compromise When Inviting External Bots or Using Untrusted Infrastructure

(#4127) Feature Open: Under consideration privacy security

Current problem

When bots are invited to E2EE voice calls, they receive the same symmetric encryption keys as human group members. Users cannot guarantee external or third-party bots won't be compromised or have their encryption keys extracted, allowing offline decryption of audio. Server-side deafening the bot provides no cryptographic guarantee since the bot still possesses decryption keys. Users are forced to choose between inviting convenience-hosted bots and maintaining E2EE peace of mind. Take this under consideration when changing to DAVE encryption.

Proposed change

When DAVE is implemented, use a 2-stream model where only bots get cryptographic isolation via deafening. Main stream stays for all human participants with shared DAVE group keys. Deafened bot stream is for deafened bot participants with separate DAVE keys. The deafened bot stream spins up as soon as a bot is deafened. Human and bot users are always on the deafened bot stream; audio is never sent to deafened bots, but deafened bots still send audio, and human users never send audio on that stream. Deafened humans don't go to the deafened bot stream because the bot could still theoretically decrypt deafened human audio. Only bots get the crypto isolation. Here's how it works: Deafen a bot and they're removed from the main stream, can't access those keys. Deafen a human and they stay on the main stream, keep the keys. Why? Humans are trustworthy enough. If you don't trust them, kick them. Bots on sketchy VPS or sketchy bot owners? That's the threat model. Music bots still need to send audio, so this just moves untrusted bots to their own isolated stream. This prevents compromised bots from decrypting human audio. Correct me if I'm wrong but with this approach the voice gateway controls stream placement, right? Which means a compromised gateway could silently add a bot to the main stream. And with DAVE, clients can't reject gateway proposals, right? So if that's not preventable at the protocol level, we need UI/UX to: show that the bot is clearly on the bot stream + alert if it moves to main stream. This is of course calculated on the client side.

Platform

Web, API, Self-hosting

Additional information

Alternative: Per user/bot deafened streams. Each deafened user/bot gets their own stream with separate DAVE keys. Non-deafened subscribe to all active deafened streams to hear everyone. Security-wise this is better, a compromised deafened bot can't decrypt other deafened bots' DAVE streams. But it's overkill: N deafened people means N streams, N DAVE key groups, and routing gets messy. A shared deafened bot stream with shared DAVE keys does the same job. It's probably not a real problem if deafened bots can decrypt each other's audio anyway. They're already isolated from main stream keys where the humans are. Whether this is the best implementation or if there's a better approach, the core issue is that inviting an external bot currently cannot be done securely under the assumption that the bot's infrastructure might be compromised.

Comments

Sign in with Fluxer to comment and vote.

No comments yet.