start	end	text
0	2920	I have two really awesome speakers to introduce to you today.
3260	5820	We have Gabriel and Max who is behind me.
5820	8000	Max is our first time DEF CON speaker.
8300	10140	So please welcome them.
10140	18700	They will be talking about actually the title of their talk is silent signals, exploiting security and privacy side channels in end-to-end encrypted messengers.
18700	20160	So let's give it up for these guys.
25280	26200	Hi, guys.
26200	27020	I'm Max.
27020	36680	Like Jenny said, we're going to talk about silent signals, which is a little introduction about privacy side channels we found in Signal and WhatsApp and also some other nice vulnerabilities.
36860	39620	So first of all, why are we doing this?
39620	41800	So I'm going to ask you guys a question.
41860	43440	Who in here is using WhatsApp?
43440	45140	Just raise your hand if you're using WhatsApp.
45140	45420	Okay.
45420	47180	That's a good amount of hands.
47520	48980	Who's using Signal?
49300	50020	Okay.
50020	50620	Okay.
50980	51700	Privacy aware.
51700	52560	I like that.
52740	54180	Who's using Telegram?
55380	56040	Okay.
56040	56460	Okay.
56460	56980	Cool.
57200	58120	That's nice.
58420	59520	That's nice.
59520	66900	So, yeah, we're not going to talk about Telegram, but we're going to talk about WhatsApp, which is the world's largest messenger service basically.
67100	68580	Has over 3 billion users.
68580	70000	It's a massive amount of users.
70460	73060	It's used for private and for professional communication.
73360	76280	So private, you might, maybe some of you guys use it every day.
76280	79920	Some of you guys maybe only use it for this one family group chat they have to be a part of.
81080	88340	And some of you guys use professional for support or for deliveries or for other things like appointments.
88880	98000	And compared to Signal, WhatsApp is massive, but Signal is also, again, like I've seen, important for privacy aware users and maybe some government officials.
98160	100420	And it's only 70 million users strong.
100420	103260	But I guess all of these users are quite privacy aware.
103720	109300	So for this talk, remember that anyone using these apps is affected by the findings that we are going to demonstrate.
109380	115040	And the only requirement for all of the vulnerabilities to properly work is that we just have to have your phone number.
115040	119960	So we don't need your acceptance or like interaction in some way.
120580	121360	So, yeah.
121360	124100	But if we're going to go into the fun part, we're going to talk about ourselves.
124440	125900	So the speakers, who are they?
125900	126960	It's going to be Gabriel.
127000	129540	He's a PhD candidate at the University of Vienna.
129540	132800	He's also a talented security researcher at SBA Research.
132960	135740	He's also a cellular networks and mobile security expert.
135880	143540	And he's been a speaker at multiple conferences like previous DEF CONs, Black Hat events, and a lot of academic conferences as well.
143800	145300	And then there's me on the other hand.
145300	146940	Hi, I'm Max.
147460	149840	I'm a master student at the University of Vienna.
149840	151420	I wrote my bachelor thesis with this guy.
151420	152620	That's how I know him.
153440	155300	And I'm also a bug bounty hunter.
155300	159260	And I'm also super terrified since it's my first time speaking at DEF CON.
159340	165620	I've met so many amazing and smart and also crazy people, to be honest, which makes me more terrified now.
165620	170420	Not because of the crazy people, but because I now have to like fill out some really massive shoes.
170420	171900	So I'm going to try my best here.
173340	174740	So how did it get here?
174900	180560	Everything started as my bachelor's thesis, where I just needed a semi-positive grade to graduate.
180600	183260	And I went to Gabriel to ask for a nice topic.
183260	188780	And he actually said that we could look into WhatsApp and poke around WhatsApp, which we did.
188780	192940	And this escalated in me graduating, which is quite cool.
193300	198400	And also us discovering vulnerabilities, which affected billions of users, which is also nice.
198880	210260	But for this, we needed also a little bit of help of a small team where we basically validated our findings, improved our findings, found new stuff and also made important and valid research for the community out of this.
210260	214340	And this is where these beautiful people that you can see in the bottom down here come into play.
214340	218880	They were helping us at SBA Research, also finding new abilities with them.
219440	222180	And yeah, it's also a really small team.
222180	224700	So initially it was basically Gabriel and I.
224700	230740	So we basically, we were not a massive, massive state-funded hacking group.
230740	236720	We're just some really motivated security researchers who just like to poke around and stuff.
236780	242380	And this proves that you can as well find security vulnerabilities in such massive systems like WhatsApp and Signal.
242520	244040	So yeah, go there.
244380	247040	And yeah, also one of the guys is here as well.
247040	247620	It's Philip.
247620	249000	It's the guy that's spinning right now.
249000	251260	So he's down there if you want to talk to him as well.
251260	253040	He's also a really, really smart guy.
253600	259400	And yeah, now I'm going to give over to Gabriel, who's going to give you a small crash course on the mobile instant messengers.
259920	261720	Yeah, thanks, Max.
261920	265480	So we'll have some, some slides about background.
265480	279340	It's just a short introduction to make sure that everybody's on the same page and everybody understands the concepts that are relevant and important to understand our vulnerabilities that we discovered and the issues that we found.
280080	288140	Yeah, today we talk about end-to-end encryption, but also there was a time before that and there are still many messengers that do not use end-to-end encryption.
288140	292000	But basically, any messenger has transport encryption.
292000	302640	So this means when the messages, when they are sent from a smartphone to the platform, so to the platform operator, to the server, they are encrypted.
302640	305380	Usually this is done via TLS.
305380	313440	And it's nice because it protects against the local eavesdropper, maybe also against free letter agencies sitting at internet exchange points.
313640	324380	But of course, like the messenger application, like the platform operator, they could still see the clear text message and still read the content of your messages.
324480	335760	And example for this kind of encryption are TikTok, like direct messages on TikTok or Snapchat, and also default messages in Telegram.
335980	338660	On the other hand, we have end-to-end encryption.
338660	341580	So this is the stuff we will talk about today.
341920	345720	And in this case, usually there's transport encryption on top of that.
345720	352880	But in this case, like the messages are really encrypted between the two ends, so between the two communication parties.
352880	355660	In this picture, it's two smartphones.
355820	364220	And when the message traverses the platform operator, it is encrypted with a key that only the two parties know.
364220	369700	So the message operator, the platform operator cannot read the message.
370300	375220	And it's basically just responsible for forwarding the messages to the right party.
375220	379220	Of course, there's still a lot of metadata that could be inspected.
379320	383280	But yeah, the message is confidential now.
383280	385560	And this breaks lawful interception.
385560	389080	So especially in Europe, there is a big discussion about this.
389440	397480	But yeah, it's a great improvement in terms of privacy and confidentiality.
397480	403340	And as you probably know, WhatsApp and Signal are both using this kind of end-to-end encryption.
403660	407540	Another thing that is very popular is multi-device support.
407540	413220	It's nice and convenient, but it also complicates the end-to-end encryption.
413500	417140	I guess most of you will know WhatsApp Web, for example.
417140	428180	So you just open that website, you scan the QR code with your main device, and then you can also use the secondary device, sometimes also called companion device, for messaging.
428420	431980	And from a technical perspective, there are two different approaches.
431980	436840	The first one is the leader- based approach, and the second one is client fan-out.
437680	441440	In the leader-based approach, as the name suggests, there is a leader device.
441440	451660	So usually this is the main device, the smartphone, and this is the only one that is visible to external devices, actually, that has end-to-end encryption keys.
451820	456740	And for the secondary devices, it's just internal communication.
456740	462760	So those secondary or companion devices, they just synchronize with the main device, with the leader device.
462860	475140	And this is nice because it takes a lot of complexity away in terms of end-to-end encryption, but also because there's just one set of keys that we need to manage for every user, but also it creates this single point of failure.
475140	483460	So as soon as the main device is offline, there is no possibility to send and receive messages anymore.
483720	489000	And by the way, this was the approach that was also used by WhatsApp until 2021.
489360	493420	However, then they moved towards client fan-out.
493420	495560	This is real end-to-end encryption.
495560	500900	So every device of every user has its own set of encryption keys.
501180	503220	And we can see it in this picture.
503220	519080	If Alice wants to send a message to Bob, she basically needs to retrieve all encryption keys of all three existing devices, so of B1, B2, and B3, and then individually encrypt the message for every device and then basically send out free messages.
519080	525480	So this is why it's called client fan-out, because the client hands out the message to all the target devices.
526160	533420	And actually, she even needs to encrypt it a fourth time because she also needs to send it to her own companion device.
533420	540080	So she takes the key of A2, encrypts the message again, and then also mirrors that message to her own device.
540620	545840	And this is the scheme or the concept that is nowadays used by WhatsApp and also by Signal.
547400	551120	And this basically brings me to the first privacy leak.
551120	555840	It's not a very severe one, but still users should be aware of that.
555940	564740	It's possible for Alice, in this case, to retrieve the amount of devices and their keys of Bob.
564740	575140	So she basically could just monitor that consistently and maybe write a command line program that notifies her as soon as Bob creates a new device.
575160	582380	So this is already a privacy leak and even a little bit more severe due to this design when Alice sends a message.
582380	586820	So let's say she uses her device A2 to send a message to Bob.
586820	594540	Bob could know which device was used to send that because there are these pairwise encrypted sessions.
595180	602560	And yeah, basically when Bob receives a message, he can check which session was used to send that message.
602580	618760	And this could already leak Alice's location if she was using A2, a desktop device, and Bob would know that this desktop device sits at her home, let's say, then this could already disclose her physical location to him.
619640	621580	This is the last background slide.
621580	624140	It's about the message delivery process.
624280	628900	And we need to introduce the concept of delivery and read receipts here.
628900	631240	I guess most of you will know read receipts.
631240	635640	So it's those double blue check marks that show up when a message was read.
635640	638780	You can turn it off in the privacy settings actually.
638780	648720	But regarding delivery receipts, so the double checkmark that are not blue, there is no possibility to turn them off because they are more inherent to end-to-end encryption.
648720	653100	So it's not only a convenience feature, but also a control flow message.
653880	659140	And yeah, if we take a look at that picture, it's basically the control flow when you send the message.
659140	671020	So you get the first checkmark when the message was received by the platform, by the server basically, when it was queued for further transmission.
671020	675480	Then you get the double checkmark when it was received by the first receiving device.
675480	681040	And then when it was read and when read receipts are turned on, they at some point turn blue.
681560	683440	Yeah, let's come to the fun part.
683440	687000	Let's take a look at some vulnerabilities that we discovered.
687780	692580	And I will talk about findings that we also made in this paper.
692580	693660	It's an academic paper.
693660	704080	The name is Careless Whisper because we show that it's possible to create some silent ping messages and to use delivery receipts to monitor users.
704480	707340	How did we approach this research?
707340	719000	So we started off by experimenting with the official Android and iOS clients, but very soon we saw that we needed more flexibility because we want to send different message types.
719000	721800	So also editing or reaction messages.
721800	724480	We also want to craft some mail-formed messages.
724480	727460	And for that, we need more freedom.
727680	729780	And for Signal, it's nice because it's open source.
729780	732920	So we can just fork the official client and modify it.
732920	738380	For WhatsApp, it was a little bit trickier, but also there are a couple of nice projects.
738380	743500	So open source projects where people reverse engineered the main application, also WhatsApp web.
743500	750620	And we then use these applications that you can see here to craft mail-formed messages and do some testing.
751140	757580	As I already mentioned, we were interested in getting some silent probing capability.
757700	766840	So we needed to find out which message types create a delivery receipt and which message types create maybe a push notification at the target site.
766840	770500	So if they do, they are not stealthy, obviously.
770920	775320	And interestingly, like at the first row of this table, you can see the normal message.
775320	778680	Obviously, it creates a delivery receipt and the push notification.
778680	783220	So the delivery receipt is the double checkmark, as I just mentioned.
783460	789620	And interestingly, also reactions and editing messages, they create this kind of delivery receipt as well.
789620	792220	The only difference is that it's not shown in the UI.
792220	801440	So you do not get this double checkmark, but in the protocol, it's still existing and it's sent in the background and the application is still receiving that.
801440	804140	So that's something that we could use here.
804480	813920	And regarding push notifications or notifications in general, as you can see in the table, there are also some actions that do not create the notification at the target site.
813920	825000	And then we went one step further and we even found a way of creating mail-formed messages, basically reactions to non-existent message IDs that are totally silent.
825000	837100	So there is no way for the victim to tell that they received such a message, but it still creates this kind of delivery receipt that we can use to ping the target.
837340	842060	And it's not only possible to do this once, but we can do this consistently.
842060	847180	So yeah, over a long period, so even over multiple days.
847180	854400	And this is the thing that we abused or that an attacker could abuse.
854660	856800	So this is the first vulnerability.
856800	872680	We can just consistently ping all existing devices of the victim and then we would know which device currently is online and which one is not, because if we do not get any response, any delivery receipt, the device is obviously offline.
872980	898840	And if you do this, again, consistently over longer periods of time, it would basically leak the schedule of a person, especially if companion devices are involved, because the smartphone most probably is online for the whole day, I guess, but companion devices like maybe a work computer or a home workstation will just be online for specific times.
898840	902120	This could already be used to leak the schedule then.
903180	904900	But this was just a binary state.
904900	911080	So we just measured whether we get a response or whether the response is absent, the delivery receipt is absent.
911080	916500	And of course, we could also measure the time and try to do some finer differentiation here.
916500	930280	So the thesis here is that there are different timings or like different speed in which we get this delivery receipt, depending on the state at the target.
930280	945260	So in this case, at the smartphone, and we try to differentiate between the standby state when the screen was off, between the active state when the screen was on, and the third state was when the corresponding messaging app was actually in foreground and actively used.
945780	948900	And it turns out that's totally possible.
948900	953280	So at the left side, you see a graph, a figure .
953600	956660	And at the y-axis, there is the latency.
956660	963940	So the round-trip time of that delivery receipt, which has consistently probed the target device, it was an iPhone .
964040	974960	And you can see that the round-trip time differs between the white area where the phone was in standby state and the orange area where the phone was active.
974960	976360	So the screen was active.
976360	981520	And this didn't just only work on main devices, but also on companion devices.
981520	984240	So on the right side, you see a browser.
984300	987320	This was a Firefox using WhatsApp Web.
987320	994620	And we could actually differentiate between the phases where the browser tab was active or the browser tab was not active.
994620	997720	So any other tab was active or the browser was minimized.
997720	1004040	So if it was active, the delivery receipt got triggered immediately.
1004040	1007980	And if it was in standby, more or less, it took three seconds.
1008600	1011920	And this brings me to our first demo.
1016500	1019460	So let me introduce you to our office dog.
1019460	1021140	He is an iPhone user.
1021140	1024580	And we consistently pinged his phone.
1024580	1030080	And we can see that the round-trip time, it sits at about 1,500 milliseconds.
1030320	1033920	And very soon, he will turn on the screen of the phone.
1034440	1037480	And we... yeah, now he did.
1037480	1044020	We can see that the round-trip time of our measurements, that it dropped to at least below one second here.
1044020	1047920	So we can differentiate between these two states.
1048240	1051060	And very soon, he will turn it off again.
1056240	1057400	Now he did.
1057400	1062140	And we can see that the round-trip time again raises to a higher level.
1062140	1067760	So again, it stabilizes at about 1,500 milliseconds.
1069640	1079340	And the third state is the state where the messaging application, so WhatsApp, is in foreground, which he just did right now.
1079340	1081880	So he turned the screen on and opened WhatsApp.
1081880	1085420	And we can see that we get even lower response timing here.
1085420	1088120	So it's below 500 milliseconds.
1089020	1100100	And as soon as the screen is turned off, we can see that it again raises to the baseline, so to the standby level right now.
1101340	1108960	So yeah, I think that shows that you can really differentiate between those three states.
1114190	1118530	And let me talk some words about the probing frequency and some limitations there.
1118530	1120750	So this also worked for Signal, by the way.
1120750	1123590	But for Signal, there was rate limiting that we discovered.
1123590	1128330	It was possible to probe the target every two seconds.
1128330	1135870	But if we went faster than that, or faster than one second maybe, we got a response that said rate limit exceeded.
1135870	1138850	So we needed to wait some time and then it worked again.
1139290	1143930	But yeah, consistently pinging with a two seconds delay worked very well for Signal as well.
1143930	1147730	And for WhatsApp, there was actually no limits that we observed.
1147730	1155930	So you could actually send a lot of messages here and every message would be transmitted and responded by the target.
1156190	1165830	I just showed you the example with an iPhone, but we also measured some Android phones here and it worked in any case.
1166010	1172450	But yeah, sometimes we needed to trim the probing because different devices show different characteristics.
1172450	1182850	So on the left side, we see a Xiaomi device and we needed to actually probe faster here to be able to detect the difference between the standby state and the active state.
1182850	1185150	And for Samsung, it was the exact opposite.
1185150	1192190	So if we probe too fast with too high frequency, then our probing would prevent the phone from going into standby.
1192210	1197930	So we needed to actually have a 30 seconds sleep here.
1200310	1208790	And we also tested some other devices and the main message of this graph is just that it's possible to really differentiate between the on state.
1208790	1212070	This is the yellow part of the graph and the off state.
1212070	1213970	So the blue part of the graph.
1214250	1218310	And yeah, for every measured device, there was a great difference there.
1219830	1223350	But the measurements I just showed, we did them in our office.
1223350	1225390	So it was more or less a controlled environment.
1225390	1230490	And now we also wanted to know whether this would work in practice in an open world scenario.
1230570	1235410	So what we did is we asked a colleague whether it's OK to track them for some time.
1235650	1237670	And thankfully, they agreed.
1237670	1244650	So we tracked them on the way to the office and we can see that there were three devices involved.
1244650	1249170	The top one is the main device and then we've got two companion devices.
1249670	1257890	And we can see that at the beginning of the measurement, the first companion device, it's a home workstation, was online.
1257890	1259670	So it responded to our probing.
1259670	1264310	We can also see there is very little fluctuation or little jitter there.
1264310	1268210	This is because it was connected over a wired connection.
1268270	1272730	And then towards the end of the message, we can see that the person arrived at our office.
1272730	1280650	So we can see that the work computer, the work laptop, logged in into the Wi-Fi and started responding to our messages there.
1281070	1287790	Also at the top, at the main device, we can also differentiate between the phases where it was connected over Wi-Fi.
1287790	1295410	So this is the orange area versus the area where it was connected over 4G, which is the yellow area here.
1297390	1301010	Yeah, so much about the monitoring part.
1301010	1312250	We also, since there was no rate limiting, especially at WhatsApp, we tried to do some resource exhaustion attacks and we just sent a lot of reactions to the victim.
1312250	1320350	And the nice thing is that a reaction, usually it just carries one emoji, but the protocol allows to also send bigger messages than that.
1320350	1324250	So in this case, it allowed up to 1,000 characters.
1324670	1332690	And by the way, if a longer message is sent as a reaction, then the UI would just display it as you can see in this picture.
1332690	1335110	So it wouldn't display an emoji there.
1335490	1339790	This maybe could be used as a covert channel because the content is still transmitted.
1340130	1347570	But yeah, in this case, in the resource exhaustion case, we actually again used totally invisible messages.
1347570	1361170	So we again made reactions to non-existing IDs and we were able to drain the battery of the victim in the standby state for 18 percent per hour, although the phone was in standby state.
1361170	1364570	Likewise, we were able to drain the data usage.
1364570	1367190	So we drained 13 gigabytes per hour.
1367190	1374570	So if the victim currently is on holiday, maybe on roaming, this could get very expensive very quickly.
1376110	1381890	Yeah, but let's come back to the privacy things and what's the impact?
1381890	1388610	So as we just showed, the attacker could detect how many devices of the victim are involved.
1388630	1391170	They could find out their device types.
1391170	1395210	They could find out some schedules, some usage patterns there.
1395230	1402750	Also see whether the device was actively used a lot or not or which connectivity type maybe is behind that.
1402770	1405570	And I guess we just scratched the surface here.
1405570	1409770	So I guess you could even do some more advanced probing.
1410410	1414550	But yeah, let's take a look at for which cases this could be used.
1414550	1416970	I guess it could be useful for reconnaissance.
1416970	1423370	So maybe for a more advanced exploit chain to customize or weaponize an exploit.
1423370	1433770	Maybe it could also be used for law enforcement to detect a window of opportunity when a device is unlocked and when they could rate the suspect.
1433770	1443810	But I guess, yeah, the worst thing even is that it could be used and abused for stalking, to stalk, yeah, personal contacts maybe.
1443810	1445950	So that's pretty creepy.
1446610	1449870	And actually, yeah, we wanted to get that fixed.
1449870	1453110	So of course we engaged in a responsible disclosure procedure.
1453110	1459790	We sent these things to WhatsApp already 11 months ago in September 2024.
1460070	1466010	We then some weeks after got some message that it was forwarded to the relevant engineering team.
1466010	1468730	Maybe this was even an automated message.
1469630	1475150	But yeah, basically since September 2024, there was no further feedback.
1475730	1482510	Until like two days ago, I again got another notification that it will be forwarded to the corresponding team.
1482510	1485690	So it's still somewhere in the pipeline, I think.
1486450	1495770	And yeah, something that also we noticed that shortly after our report, there was a new privacy setting that could maybe have something to do with our findings.
1495770	1500390	But yeah, since we do not get any feedback, we cannot say for sure.
1500450	1503190	So it wasn't the best experience here for WhatsApp.
1503250	1505250	We also disclosed this to Signal.
1505250	1508350	And sadly, the experience wasn't really better.
1508350	1514470	So for Signal, we reported it as well 11 months ago, and we did not get any response.
1515390	1518950	And yeah, now I can hand over to Max for the second vulnerability.
1523000	1524560	Hi guys, it's me again.
1524780	1536160	So while we, with Gabel's talk, focused on the message receipt mechanism of WhatsApp, for the second paper, which is called Pre-Key Pogo, we are messing around with the pre-key mechanism of WhatsApp.
1536560	1540340	So again, we have to do a little bit of a background on this.
1540780	1545180	Here we have three pre-keys in WhatsApp, and all of them have a certain purpose.
1545580	1550480	And all of these keys are bunched into a key bundle and are individual for each device.
1550480	1552960	Like Gabel explained, there's the client fan-out architecture.
1552960	1556000	So basically every single device has this bundle.
1556600	1560340	And we have the identity key, which is static and generated during the device setup.
1560380	1564080	We have the signed pre-key, which is medium term and rotated every 30 days.
1564100	1567880	And we have the one-time pre-key, which is ephemeral and single-use only.
1567880	1569700	And this one is going to be the most important one.
1569700	1574580	So every time we're going to talk about keys missing, it's going to be the one-time pre-key.
1575220	1580380	So all of these keys are used to ensure the perfect forward secrecy and the post-compromised security.
1580380	1583380	So they ensure that your message shouldn't be read.
1583640	1587640	And if there is a leakage , it shouldn't distribute.
1588460	1592600	Yeah, all the three keys are combined to a bundle and are used to initiate a new conversation.
1592600	1598280	And this is where we're going to jump now into some Bob and Alice action, where we have the server in the middle.
1598280	1604700	We have Bob and Alice, who regularly upload their pre-keys, which can either be done by a threshold for a one -time pre-key, for example.
1604700	1608720	So there's a level of pre-keys that have to be on the server.
1608760	1612000	And if Bob undermines this, he's basically forced to push new pre-keys.
1612860	1619280	Same goes for Alice, or on expiration, when the signed pre-key, for example, every 30 days expires, we also have to push new pre-keys.
1620260	1624340	And for conversation, Alice basically requests Bob's pre-keys.
1624340	1626520	Bob's pre-key bundle will be returned by the server.
1626700	1632600	With this, she encrypts her message as her pre-key as well, in order to establish the end-to-end encrypted channel.
1632660	1641060	And once Bob receives this, it's basically now an end-to-end encrypted channel, and Bob then can communicate without the server reading the message.
1642100	1644540	This is where we come to a question that we ask ourselves.
1644540	1647800	What happens if there are no one-time pre-keys left anymore?
1648100	1652100	And for this, we wrote a custom client, which repeatedly requests the keys.
1652440	1657680	It also monitors the amount of keys that are left on the server, and it also detects the moment the keys are refilled.
1658140	1659220	So this is really cool.
1660000	1662440	And this is where we're going to jump now into the vulnerabilities.
1663220	1668920	And here we can see again that we can track the online state of the device.
1668920	1679320	This time, by repeatedly querying the pre-key bundles of the server and draining the one-time pre-keys, we can now basically see if a device still uploads these one-time pre-keys.
1679500	1683900	And if there are basically pre-keys left, we receive a pre-key bundle with one-time pre-keys.
1684820	1691860	And if the device is offline, the pre-keys cannot be pushed, basically, so they are drained they are on zero.
1691860	1694120	And if we request some, we don't get any.
1694160	1700600	And if we monitor this, we can assume or we can see basically when a device turns offline, or when a device turns online.
1700600	1706220	Like we see, for example, down here, we see that the smartphone is online the whole time.
1706220	1708700	So it basically is pushing pre-keys regularly.
1709280	1713720	And the work computer used to be online, it's pushing pre-keys, so we can retrieve them.
1713720	1716300	But at some point, there are no pre-keys on the server left.
1716920	1718300	And it turns offline.
1718360	1719900	The other way around, it also works.
1719980	1724720	So we didn't get any pre-keys, and then we get pre-keys, so we can assume the device turned online.
1724720	1733680	So this is pretty cool, because with Gabel's methodology, we had to interact with the end client in some way, which doesn't mean that the end client will see something.
1733680	1734860	It's still super stealthy.
1734860	1739260	But in this case, we only have to interact with the server, so the server does all the dirty work for us.
1740180	1748300	So if we do this now on a bigger scale and across multiple devices, we can notice that there are certain characteristics between these devices.
1748860	1756500	So the pre-key behavior, the refill behavior is based sometimes on states, but mostly based on the operating system.
1757040	1759300	And this can be used for device fingerprinting.
1759480	1763100	As you can see on the table, we will show it visually, so it's a little bit more clear.
1763780	1770840	But just remember, 100% success rate means that the device doesn't update, can't upload pre-keys anymore, so it's offline, basically.
1771040	1786660	So visually, this looks like that, where we have on the left the iPhones, and we have here multiple different iPhones, and we basically ran our drainage over three hours, over multiple states, and standby, Wi-Fi, 4G.
1786880	1799420	And we noticed that the iPhone is really, really slow in pushing those pre-keys or filling up these pre-keys again, compared to the Android side of things, where you can see way more blue, which means that there are pre-keys left on the server, or basically updated on the server.
1799720	1802640	Especially the Samsung was really fast across all the states.
1802640	1810740	But for example, on the Xiaomi, on the top and the bottom Android column, we can see that the state also influences the pre-key refill behavior.
1810880	1816680	So again, this can be used to narrow in the device that the victim might be using.
1817400	1834000	Another thing we saw, what happens when we deplete the one-time pre-keys, is that the new conversation that will be established between the victim and the third party doesn't use one-time pre-keys anymore.
1834000	1837480	So it basically will be only secured by the identity key and the signed pre-key.
1837480	1846040	This is basically a PFS downgrade, so perfect forward secrecy becomes a little imperfect, and we basically stripped a whole layer of keys.
1846040	1855880	This doesn't break the encryption completely, the message is still hard to decrypt, but it still is something that should be considered not to be easily done.
1856220	1861400	Another way we figured out how to disclose the OS is by looking at the initial values for the IDs.
1861400	1867040	So you get basically a JSON struct back from the server, which also has some IDs.
1867040	1874160	And if we check these IDs, we see that there's an implementation difference between the Android version of WhatsApp and the iPhone version of WhatsApp.
1874160	1888800	So for example, in the signed pre-key column, you can see that the Android initial ID is zero, while it's randomized in the beginning for the iPhone, and on the one-time pre-key, the ID is random, and it starts with one on the iPhone.
1888800	1893620	So again, it's a really easy way of figuring out which device the victim is using.
1893620	1895560	And the same goes also for the desktop version.
1895560	1902740	So we can also differentiate between the different desktop client versions, web, macOS, or Windows, as well.
1903180	1907960	So this is where I come into the last vulnerability, which is actually quite cool and my most favorite one.
1907960	1912720	We have, again, Alice and Bob, and we have our attacker, who is training Bob's pre-keys really, really fast.
1912720	1914440	So we can see there's a bunch of requests.
1914440	1920220	Bob is still uploading his pre-keys regularly, but the server has to synchronize all of these requests.
1920220	1925000	So every single pre-key request has to basically have a unique one-time pre-key.
1925560	1927200	And there's a lot of strain on the server.
1927280	1939400	And if we do this heavily, we notice that the server, at some point, basically bricks to a certain degree and just returns five or three messages to the attacker, but also to Alice, who wants to initiate a conversation with Bob.
1939540	1949980	So like we've seen in the previous example, where I explained the message flow, Alice needs to download Bob's pre-keys before she can start a conversation with him in order to encrypt her message.
1949980	1955160	Since she cannot do this anymore, the messages are basically stuck and she cannot contact Bob anymore.
1955160	1959940	And this is not only for Alice, but for any third party that wants to contact Bob.
1961220	1966420	And like you see on the picture, it has just a clock, so the message is basically stuck in ether.
1966980	1972780	And no one is basically able to get pre-keys from Bob anymore.
1972780	1974960	And this basically stops the whole conversation flow.
1975440	1977300	But we also have video proof of this.
1977300	1978480	So it's demo time.
1978480	1982440	And I'm going to just enjoy the awkward silence while I open up this video.
1984680	1985480	Okay.
1985480	1993280	So here we have our Alice trying to message the victim, which is Bob.
1993320	1996180	And on the right, we have our attacker running our script already.
1996180	1997640	So we can see that the attack is already running.
1997640	1998840	We get five or three messages.
1998840	2001400	And we see Alice now trying to message Bob.
2001460	2003300	And the message doesn't get through.
2003300	2008000	So she's still, like I said in the beginning, she can message other people, but she cannot message Bob anymore.
2008140	2010680	And now she will even start to initiate a call.
2011180	2011980	Cool.
2012100	2012420	Okay.
2012420	2012700	Yeah.
2012700	2013020	Yeah.
2013020	2013500	Okay.
2013500	2027980	She will initiate a call , which also immediately stops because in order to start a call on WhatsApp , there has to be an initialization message being sent, which agrees in certain settings, which also immediately fails since the message can't be sent since there's no keys left on the server anymore.
2028120	2031680	And we can see that she still is able to message someone else.
2031720	2034220	And it works perfectly fine.
2034520	2039240	But she cannot reach our victim anymore or call him or, yeah, anything else.
2039340	2043600	So even after restarting WhatsApp and stuff, this doesn't work either because, again, there are no pre-keys left.
2043600	2046380	The messages are trying to be redelivered, but this doesn't work.
2046860	2048690	So I'm going to skip a little bit ahead.
2049610	2050670	It should be good.
2050670	2053430	So we're going to stop our attack in a few seconds.
2053490	2060210	You will see on the right side that we will cancel script, which will be in any second now.
2060490	2060850	Yeah.
2060850	2061070	Okay.
2061070	2062410	Now we stopped it.
2062410	2065330	And the messages are still not being sent because they're on cooldown now.
2065330	2073050	But as soon as our initiator restarts the phone, we will see that the message will be redelivered.
2073050	2076890	And now we'll be actually showing up on the victim side of things.
2077130	2078110	Yeah, side of the screen.
2079550	2080010	So, yeah.
2080010	2081450	Now the messages appear.
2081970	2086590	And we successfully, basically, denied of service, tossed our victim.
2088170	2089050	Yeah.
2089270	2090010	Thank you.
2090010	2090790	Thank you, guys.
2090790	2091350	Thank you.
2091350	2091810	Thank you.
2091890	2095190	Thank you.
2095190	2095710	Thank you.
2096530	2097290	Okay.
2097730	2098270	So, yeah.
2098270	2100890	I guess you guys understand this is really bad.
2100970	2107810	So it hinders basically everyone from establishing a new conversation with our target, which is super annoying for users.
2107810	2113390	It's also really annoying for reporters that maybe want to meet up with informants and they cannot be content anymore.
2113390	2114910	So they're basically silenced.
2115150	2124710	And it's also really not so good for business, I guess, since you can run no appointments, you have no support anymore, you have no orders, you cancel drugs, or whatever you want to do over WhatsApp.
2124710	2125930	This doesn't work anymore.
2125930	2129010	So again, I guess this is really bad for business.
2130130	2142650	So for the privacy leaks of things, we basically have the same issues that Gabel already said, and the same attack vectors that we have here, but a little bit more stealthy, since we don't need to interact with the client directly anymore.
2142930	2146270	It still was really stealthy already on Gabel's side of things, I don't want to talk it down.
2146350	2149450	But this time, we only have to interact with the server.
2149470	2150970	So yeah, it's quite cool.
2151890	2157110	Of course, we saw the issue here and we reported the findings to Meta on March 28, 2025.
2157650	2160470	The issue was closed on March 30, 2025.
2162250	2169870	And it was flagged as a duplicate to Gabel's report, which doesn't make a lot of sense since we showcase different vulnerabilities use a different mechanic.
2170090	2174890	And yeah, so we argued with them a little bit, but have gotten no answer so far.
2174890	2176410	So yeah, there's that.
2176670	2181250	That's what I gave now to Gabel, who's gonna explain how you might be able to fix this mess.
2181250	2182930	And yeah, give you some takeaways as well.
2182930	2183950	So thank you guys.
2189700	2192760	Yeah, let's quickly talk about some mitigations.
2192760	2199700	I mean, many of these things that we just showed are very hard to fix because they are inherent to end-to-end encryption.
2199780	2205540	But of course, there are some things that you can do to lower the impact, let's say at least.
2205840	2209440	So Signal already did rate limits the messages.
2209440	2211320	And I think that's a good thing.
2211440	2212860	That's recommendable.
2212860	2215100	I think WhatsApp should do this as well.
2215600	2221360	Also, it's a very easy to differentiate between iOS and Android.
2221360	2227100	So there were different source codes used for these applications.
2227100	2232860	And I guess trying to harmonize or unify the client behavior there would be a good idea.
2232860	2239100	Regarding the delivery receipt issues, I guess it would be a good idea to randomize the timing.
2239100	2244040	So to add some random delay of a couple of seconds on the receiving client.
2244040	2252560	This wouldn't really degrade the quality of experience, but I guess it would again mitigate some of the findings that we just showed.
2253180	2267480	Also, improving the client-side message validation would be a good thing to do because in many cases, we were sending mail-formed messages and they were still properly received and acknowledged by a delivery receipt.
2268000	2273800	But yeah, with proper validation, I think you could just not send receipts for those messages.
2274060	2286280	Regarding the pre-key issues, especially for the perfect forward secrecy downgrade, I mean, it was still encrypted, but there was no way for the victim to see that there is this downgrade.
2286280	2293380	So I guess it would be good to have some visual indication if messages are transmitted with less security here.
2293760	2305740	And regarding key takeaways, I guess we've shown that if there are some privacy leaks and if we have multi-device end-to-end encryption, this basically amplifies the leak.
2305740	2311840	So every single device leaks independently and this makes things worse, obviously.
2312120	2327120	Also, as I just mentioned on the previous slide, due to end-to-end encryption, there is no server-side message validation anymore because previously, the server could check that only well-formed messages are transmitted to the receiving side.
2327120	2334140	And in this case, you can just send malformed messages and there is no way from the server to tell and to prevent that.
2334140	2339840	So client-side message validation on the receiving side is even more important.
2340860	2345000	And I mean, in our case, it was just the delivery receipt that was triggered.
2345000	2357480	But of course, the sender could also send really malicious messages there that maybe trigger some buffer overflow in the parser and that are really also security-relevant.
2357480	2361320	So yeah, client-side message validation is important.
2361700	2366500	And the last key takeaway, it brings me back to the very beginning of this talk.
2366500	2384860	So although we were focusing on hardened messaging protocols and applications here, we still found some security and privacy issues because sometimes it's implementation choices or sometimes it's just some, yeah, something that was not considered.
2384860	2391500	And although these were hardened protocols and hardened applications, we still were able to find some bugs.
2391500	2395880	So I think if we are able to do this, you would be able to do this as well.
2395880	2403180	So maybe if this talk got you interested in the topic, yeah, just try it yourself and see whether you can find similar things.
2403780	2412020	And also maybe because I do not want to just bully WhatsApp and Signal here, they are doing great work.
2412020	2421460	Also WhatsApp, they really made a huge step by enabling end-to-end encryption for all their clients and for all their users.
2421520	2431720	But still, I think it's important to scrutinize these applications and protocols and to show that there's still some security and privacy issues here.
2432960	2434920	And yeah, that's basically it.
2434920	2437040	So thank you for your attention.
2437140	2439000	And we are open for questions.
