Know Your Contacts: Usable Authentication for Secure Messaging

This is my master's thesis, which I wrote at the Secure Mobile Networking Lab (SEEMOO) at TU Darmstadt. You can download the full thesis as PDF.

In Signal, WhatsApp and also twonly, the server distributes the public keys and also delivers the messages. So a compromised server can simply swap a key and read along. And this is not only theoretical: the Dutch police read over 258,000 messages of the encrypted messenger IronChat by replacing keys, and nobody noticed, because the key-change warnings were "easy to overlook".

WhatsApp and Signal have since deployed Key Transparency (WhatsApp, Signal), which makes the key distribution of the server auditable. But it only proves which key belongs to a phone number, so you still need the right number, ideally exchanged in person. That this goes wrong was shown by SignalGate, where a journalist's number ended up saved under the wrong contact and he was added to a White House group chat. twonly has no phone numbers, and Signal can also be used without them. And a study showed that Key Transparency does not increase the trust in the messenger, but can even make users feel less secure. So to really know who you are talking to, you still need the authentication ceremony. Almost nobody does it.

Prior research already showed why: the wording is confusing, verification has to be done per chat, both people have to scan each other, and users do not know where to find it. So in my thesis I tried to fix this in twonly, my open-source Snapchat alternative, and then looked at whether people actually verify more.

Redesigning the Authentication Ceremony

Results: Usability Is Not Enough

I tested the design in five iterations, first with two usability walkthroughs and then with three rounds of user testing, fixing the problems after each round. In the last round, all five participants completed the ceremony, and none of the problems from previous research came up again.

In a survey with 23 people using both twonly and Signal, 65% preferred twonly's verification and 17% preferred Signal's. 78% would like verification badges in Signal as well.

But looking at the in-app statistics from 32 users:

Share of verified contacts per week by verification method: QR code, Web of Trust, shared contact and profile link.

Share of verified contacts per week by verification method: QR code, Web of Trust, shared contact and profile link.

The share of contacts verified by QR code barely moved, from about 35% to 40%, no matter what I changed. Making the ceremony easier did not make people do it more often. Most of them simply do not see a reason to: they already "know" it is their friend from the chat. What did increase the coverage was the Web of Trust. In the last week, almost 29% of all contacts were verified through it, bringing the total to nearly 80%.

So my main takeaway: better usability alone does not get users to verify their contacts. Automation does.

And unlike Key Transparency, the Web of Trust also gives users trust they can actually feel. It is much easier to understand that a friend has verified a contact than to trust some complex algorithm on a server. It also gives more context: my sister is verified by my other family members, while a friend is verified by our mutual friends, and so on.

Want to Try It?

The new ceremony and the Web of Trust are now part of twonly.

Try it out yourself and verify your contacts in twonly now

Thanks to Florentin Putz for supervising this thesis and to Prof. Matthias Hollick for making it possible at SEEMOO, and to everyone who took part in the studies.

← All posts