Explain rationale behind dropping SAS verification & cached shared secrets
In RedPhone (and other ZRTP implementations) users have to manually confirm to the app that the SAS has been verbally verified. This appears to not be supported in Signal.
Further (presumably related to the above decision), there doesn't appear to be caching of shared secrets. A RP user talking to a Signal user will be asked to verify the SAS with every single phone call, unlike the RP-to-RP behaviour which resembles other ZRTP implementations and caches some secret material after the first session, therefore not asking the users to verify the SAS with every call.
Is this the intended behaviour? Did you consider the UX of verifying the SAS to the app messy/unintuitive and decided to go with the cleaner approach of "here is the SAS - verify it with each call"? Or is this a bug?
You're correct that the ZRTP implemention currently doesn't cache the shared secrets. The ZRTP implementation in Signal was written to interop with the RedPhone implementation, so it deviates from the RFC in some places (e.g. the legacy fun that happens when the padding bit is set). When the ZRTP implementation was written, RedPhone didn't support key continuity yet and was randomizing the relevant fields. So... I did it too.
Since it started from a similar point, the changes made to RedPhone to support key continuity would make a decent inventory of the changes needed here.
Thanks for the background, this nicely explains the lack of shared secret caching.
There's still a question in my mind about UX and security misconceptions here: Signal is using a strong statement ("Secured. You can be heard now.") before users verify the SAS, when, due to lack of caching, a MITM may well be happening in every single call.
The SAS seems superfluous in the current UI for new users ("what the heck are these words?") - so people who understand ZRTP need to explain the importance of SAS verification to each new user.
This is a wider question for RP as well, but it seems that both apps should:
- Build the (call) connection
- Advertise the call status as "Unverified" (amber background or something equally mildly unsettling)
- Offer a simple widget (like RP's "tick" mark) for users to signal to the app that they've manually verified the SAS.
- Switch the call status to "Verified" (green background or something equally reassuring)
It's even more fun when both ends ask each other "what the heck are these words?". Countless minutes have been wasted wondering. On a positive note, it is a conversation opener.
Concur with UI suggests above, but propose having clear instructions at point 2 on why the call is not yet verified and how to proceed. Otherwise non-technical users may wonder why after all efforts to try out something built for security his/her first call turns out "unsecured", or worse "am I hacked?!"