1 00:00:00,000 --> 00:00:00,520 All right. 2 00:00:00,520 --> 00:00:03,280 Thank you all for coming to our last talk of the day today. 3 00:00:03,600 --> 00:00:10,560 Next up we have Vitor Ventura who will be speaking about how to hack or snoop at least all telegram messages. 4 00:00:10,960 --> 00:00:11,980 Thank you. 5 00:00:12,580 --> 00:00:14,160 Good afternoon, everyone. 6 00:00:15,180 --> 00:00:16,740 Just a little bit about me. 7 00:00:16,740 --> 00:00:20,060 I've worked in the industry for quite a while. 8 00:00:20,500 --> 00:00:23,840 And I've worked in all sides of the industry. 9 00:00:23,840 --> 00:00:28,880 And one thing I have to say to everybody, at a certain point, you need to see the light and do research. 10 00:00:28,880 --> 00:00:30,700 That's the most fun of it. 11 00:00:30,700 --> 00:00:33,760 So moving on to what really matters. 12 00:00:34,080 --> 00:00:35,420 Secure IAM. 13 00:00:35,420 --> 00:00:38,520 So there are several types of secure IAM around. 14 00:00:38,700 --> 00:00:41,700 I've picked up a couple of examples. 15 00:00:42,000 --> 00:00:45,680 Most of them will share some kind of protocol. 16 00:00:45,920 --> 00:00:53,080 So WhatsApp, Signal will use the Whisper protocol. 17 00:00:53,080 --> 00:00:58,020 Facebook also uses it on their off the record chats. 18 00:00:58,020 --> 00:01:02,440 Google also uses it on their own private version of chats. 19 00:01:02,620 --> 00:01:06,340 Then we have telegram which is they have their own protocol. 20 00:01:06,660 --> 00:01:08,100 Quick question. 21 00:01:09,020 --> 00:01:11,900 Is telegram encrypted by default? 22 00:01:11,900 --> 00:01:13,140 Who think it is? 23 00:01:15,260 --> 00:01:16,180 Great. 24 00:01:16,180 --> 00:01:16,800 Yeah. 25 00:01:16,800 --> 00:01:17,440 That's it. 26 00:01:17,440 --> 00:01:18,420 It isn't. 27 00:01:18,600 --> 00:01:24,720 And then we have also I picked up also because they are a zero knowledge secure IAM. 28 00:01:24,720 --> 00:01:29,740 So you are supposed to be able to set up a session without having to give away your phone number. 29 00:01:29,740 --> 00:01:33,040 So they are really innovative on what they do. 30 00:01:33,140 --> 00:01:39,360 And they are based on an open source library which is the NACL for cryptography. 31 00:01:40,760 --> 00:01:43,960 So let's focus on telegram which is the main talk. 32 00:01:43,960 --> 00:01:47,760 So telegram has a base of 200 million users. 33 00:01:47,760 --> 00:01:55,580 It was created by the Vukov brothers after they sold out the Facebook version. 34 00:01:55,620 --> 00:01:58,820 They were kind of well, they sold it. 35 00:01:58,820 --> 00:02:00,440 Maybe they were not very happy about it. 36 00:02:00,440 --> 00:02:01,560 But they did sell it. 37 00:02:01,560 --> 00:02:04,860 And in the end, they ended up creating telegram. 38 00:02:04,860 --> 00:02:08,440 Telegram has a different architecture than the others. 39 00:02:08,620 --> 00:02:24,840 So they although they are not encrypted by default, they do have the keys which are spread in several countries in such a way that if you want, if some government wants to get the keys to the crypt data, they will need to go through the legal process on several different countries. 40 00:02:24,940 --> 00:02:31,960 So until now, they have, they are really proud of the fact that never, that has never happened before. 41 00:02:32,100 --> 00:02:36,280 But in the end, we need to keep in mind that they are not end to end encrypted. 42 00:02:36,280 --> 00:02:48,860 Telegram is used a lot in western countries, in Iran, in Russia, in all of the ex-USSR countries for several reasons. 43 00:02:48,920 --> 00:02:52,300 But mainly because it's easy, it's really easy to use. 44 00:02:52,600 --> 00:02:58,820 So one thing that also to talk about is that this is really important. 45 00:02:58,820 --> 00:03:04,960 200 million users does not mean that you have 200 million security educated users. 46 00:03:05,380 --> 00:03:06,560 That's not the point. 47 00:03:06,560 --> 00:03:08,640 They are not security educated. 48 00:03:08,640 --> 00:03:19,440 So when we say that this is secure IM and the users should do this, we need to remember that among this room, a lot of you knew that telegram was not end to end encrypted by default. 49 00:03:19,540 --> 00:03:22,500 But you are subject matter experts. 50 00:03:22,800 --> 00:03:31,780 You need to, we need to think that when these kind of applications are created, they are not created for people like us, they are created for people in general. 51 00:03:31,880 --> 00:03:37,780 And hence they have 200 million users, but these 200 million users are not security experts. 52 00:03:37,780 --> 00:03:39,400 They don't know better. 53 00:03:39,440 --> 00:03:40,700 And this is important. 54 00:03:41,600 --> 00:03:49,520 So before going to all the technicalities, I want to talk a little bit about all the censorship that has been around on telegram. 55 00:03:49,520 --> 00:03:58,600 So there have been several attacks on telegram from Russia, from Iran, from a lot of countries using different techniques. 56 00:03:58,720 --> 00:04:05,680 So there have been attacks that they tried to get the tokens for the registration. 57 00:04:05,680 --> 00:04:10,240 There have been attacks where they have even done BGP hijacking. 58 00:04:10,240 --> 00:04:12,800 So I've published a couple of things on that. 59 00:04:12,800 --> 00:04:23,920 So Iran back in 2016 did an attack where they hijacked all the networks from telegram in order to get the messages using the BGP hijacking. 60 00:04:24,620 --> 00:04:27,480 All of this has been happening for a long time. 61 00:04:27,920 --> 00:04:35,420 Again, there was also the thing with Russia and where Google and Amazon stopped doing the domain fronting. 62 00:04:35,680 --> 00:04:38,340 There was a lot of attacks on them. 63 00:04:38,340 --> 00:04:42,300 The most recent one is with all that is happening in Hong Kong. 64 00:04:42,300 --> 00:04:47,740 There was an attack on telegram where the Vukov brothers blamed China. 65 00:04:47,740 --> 00:04:51,660 I don't know if it's true or not, I don't know who did it, but this is what's happening. 66 00:04:51,660 --> 00:04:56,800 So they have been really targeted by governments to stop them. 67 00:04:57,960 --> 00:05:00,680 So let's go now into the technicalities. 68 00:05:02,200 --> 00:05:04,660 First I should do a disclaimer. 69 00:05:05,020 --> 00:05:12,460 Everything that I will show here from this point on was sent to telegram and we didn't get any response from them. 70 00:05:13,300 --> 00:05:14,760 I don't know why. 71 00:05:15,640 --> 00:05:26,900 So one of the things that I also want to mention about telegram is that on the session management you can clone sessions and you don't need to reestablish them. 72 00:05:27,060 --> 00:05:36,420 So on my previous work what I did was I just picked up a token from a desktop session, copied it to another machine and I could see all the messages going on. 73 00:05:36,420 --> 00:05:37,460 So as simple as that. 74 00:05:37,460 --> 00:05:39,220 And that is being exploited in the wild. 75 00:05:39,660 --> 00:05:41,300 So this is an important point. 76 00:05:41,300 --> 00:05:43,060 This is session cloning. 77 00:05:43,080 --> 00:05:52,260 There's nothing, well, it's just like cloning a session on a browser, but it's something that is going on and it's not, they're not doing anything about it. 78 00:05:52,260 --> 00:05:55,520 By the way, all of them are subject to this. 79 00:05:55,660 --> 00:05:59,420 Signal, WhatsApp, telegram, all of them are subject to this. 80 00:05:59,420 --> 00:06:06,360 They have different responses, they have different ways of dealing with the problem, but all of them are subject to this. 81 00:06:06,360 --> 00:06:10,460 So using any of these applications on your desktop, it's a bad idea. 82 00:06:10,460 --> 00:06:15,340 Again, non-identicated users, they don't, they are not aware of this. 83 00:06:15,340 --> 00:06:16,720 And this is important. 84 00:06:17,680 --> 00:06:23,220 So what makes the difference between telegram and all of the other? 85 00:06:24,640 --> 00:06:27,540 It's one specific thing. 86 00:06:27,540 --> 00:06:33,700 None of the other applications allows multiple sessions from the same phone number. 87 00:06:34,640 --> 00:06:45,200 So if you try to, if you have a WhatsApp installation on your phone and you try to install another WhatsApp with the same phone number, it will not work. 88 00:06:45,240 --> 00:06:52,120 So the session will bounce from one side to the other and you will never have two sessions active at the same time, established at the same time. 89 00:06:52,520 --> 00:06:54,980 This is the same thing with signal. 90 00:06:54,980 --> 00:06:57,660 And this is because of the way that the signal protocol works. 91 00:06:58,100 --> 00:07:00,420 Now, with telegram, it's different. 92 00:07:00,640 --> 00:07:05,320 With telegram, you can, in fact, have two sessions hooked to the same phone number. 93 00:07:06,680 --> 00:07:12,760 So this is one of the main things that allow you to snoop messages. 94 00:07:13,400 --> 00:07:15,640 So I will get back to this in a minute. 95 00:07:15,900 --> 00:07:28,300 Another thing that I want to say is that there is a two-factor, a second-factor authentication that when I started to do my experiments was not enforced on the same device. 96 00:07:28,420 --> 00:07:31,200 Later, it was enforced on the same device. 97 00:07:31,200 --> 00:07:34,540 There was a change somewhere in the time on the different versions. 98 00:07:34,740 --> 00:07:37,240 However, it's still not enforced by default. 99 00:07:37,540 --> 00:07:39,860 Again, the regular user will start using telegram. 100 00:07:39,860 --> 00:07:40,440 It's okay. 101 00:07:40,440 --> 00:07:41,020 They use it. 102 00:07:41,020 --> 00:07:42,440 There's nothing bad there. 103 00:07:42,740 --> 00:07:49,960 So if you don't have the second-factor authentication, you can literally read all the message on an Android phone without rooting the device. 104 00:07:50,360 --> 00:08:00,220 And this is one of the things that this kind of option should be explained to the user and the user should have the choice of opting out or in when they do the first registration. 105 00:08:00,380 --> 00:08:04,500 Instead, it's just they're hidden and you need to go and look for it. 106 00:08:05,500 --> 00:08:09,040 So how do you actually snoop the messages? 107 00:08:10,720 --> 00:08:12,840 Let me just take a little water. 108 00:08:23,030 --> 00:08:23,510 Okay. 109 00:08:23,510 --> 00:08:34,630 So one of the things that telegram does when you try to register a second session is that it will send you the token using its own channel. 110 00:08:34,850 --> 00:08:45,710 So if you have a telegram installed on your mobile device and you saw a second version, it will try to send you a token for the second session over its own channel, which is the safest way to do it. 111 00:08:46,030 --> 00:08:51,070 So one of the first things that you should do when you try to do it like this is basically kill the background process. 112 00:08:51,070 --> 00:08:53,310 This is just a dirty way to do it. 113 00:08:53,310 --> 00:09:01,050 But if you do it like this, the user won't see the message arriving with the token and he won't notice that something is going on. 114 00:09:01,050 --> 00:09:04,750 Of course, if you do this in the morning, it will never know anyway. 115 00:09:04,750 --> 00:09:05,290 But okay. 116 00:09:05,290 --> 00:09:07,470 It's one approach. 117 00:09:08,690 --> 00:09:13,450 So then what you need to do actually is to send a request. 118 00:09:13,530 --> 00:09:19,890 So all of these pieces of code, it's from the actual telegram client that I changed in order to do the demo. 119 00:09:19,910 --> 00:09:27,190 So instead of coding a whole new thing, I just went into the telegram client and just tweaked the code to do what I wanted. 120 00:09:27,870 --> 00:09:29,770 So I'm kind of lazy to code. 121 00:09:29,770 --> 00:09:35,390 So basically what I'm doing is that I'm building a new request for a completely new registration. 122 00:09:35,390 --> 00:09:38,490 One of the things that is really important is this line. 123 00:09:38,970 --> 00:09:45,430 So this line says to telegram server that I don't want to receive a phone call to register . 124 00:09:45,650 --> 00:09:52,870 So if I'm trying to build something that will snoop the messages, it will be really odd for my target if he receives a call at 2 a.m. 125 00:09:52,870 --> 00:09:56,550 from telegram saying your code is 2134. 126 00:09:57,210 --> 00:09:58,530 So that doesn't really work. 127 00:09:58,530 --> 00:10:08,530 So what I do is, okay, let me put this allow flash call to false and when the registration request goes to the server, the server knows that it should not call me. 128 00:10:08,690 --> 00:10:09,310 Okay? 129 00:10:09,750 --> 00:10:12,130 So this is basically what it does. 130 00:10:12,850 --> 00:10:33,310 The other thing which is interesting and if you are lucky or if you can manipulate the network enough is that if you are on the correct build of Android, so with SDK 26 or above, it will use something which is called, yeah, create app specific SMS token. 131 00:10:33,370 --> 00:10:37,850 This is a really specific API and a really fun one if you don't know it. 132 00:10:37,850 --> 00:10:44,830 So this pretty much allows any application to receive an SMS code without the read SMS permission. 133 00:10:45,570 --> 00:10:59,930 So this is something that Google did so that when you want to build an application and you want to have a confirmation by SMS and that's all you want to do with the SMS, you don't actually need to give the read SMS permission to the application. 134 00:11:00,150 --> 00:11:04,090 Of course, this is fun and it's a security method that was implemented. 135 00:11:04,170 --> 00:11:06,350 In this case, it's a little twisted. 136 00:11:06,810 --> 00:11:15,990 Because this way, I can actually get the token without having the permission to read SMS and I can go all the way through to do the registration without the user noticing. 137 00:11:16,430 --> 00:11:25,110 Again, the server will only actually does this if it cannot deliver the message on their own check. 138 00:11:25,110 --> 00:11:28,570 So if you can manipulate the network enough, it will be easier. 139 00:11:28,630 --> 00:11:31,910 If you can't, well, I will show you how we go next. 140 00:11:31,910 --> 00:11:35,830 But this is just, well, this is a best case scenario, let's face it. 141 00:11:37,330 --> 00:11:40,730 So what you do is that you build a request and then you send it to the server. 142 00:11:41,770 --> 00:11:50,710 Another thing is that the protocol says that you need to wait 31 seconds, well, 30 seconds before you can request a resend. 143 00:11:50,850 --> 00:11:59,370 So all of this goes around manipulating the request process from Telegram in order to do it without the client ever noticing. 144 00:11:59,750 --> 00:12:08,090 So we need to wait 30 seconds because that's the amount of time that the protocol says that you should wait before requesting a new code. 145 00:12:08,370 --> 00:12:16,630 So the code is always the same, but instead of being delivered by the regular Telegram channel, it will be delivered as an SMS. 146 00:12:17,170 --> 00:12:18,850 But you need to request it. 147 00:12:18,870 --> 00:12:32,450 So what we want really is to receive the token as an SMS because if I can receive the token as an SMS, in the worst case scenario, I need to have the read permission to get the SMS, put the code in and have a new session. 148 00:12:32,530 --> 00:12:35,970 In the best case scenario, I will receive it directly and I don't need to do anything. 149 00:12:36,190 --> 00:12:47,270 So after the 31 seconds, what we do basically, so this is the code that I did just to wait the seconds and then do the request. 150 00:12:47,270 --> 00:12:49,750 Again, you need to do the request. 151 00:12:49,750 --> 00:12:55,730 The request is basically this, which is a new packet where you just create an object called resend code. 152 00:12:55,730 --> 00:13:00,810 In this code, you cannot specify things like I don't want the flash talk. 153 00:13:00,810 --> 00:13:02,830 So this is always tied with the initial code. 154 00:13:02,830 --> 00:13:20,370 You cannot at this point, for instance, the application specific SMS token will not work anymore because it's now the service in a different state where it's saying, okay, I've sent the code, you didn't read it for some reason and now you asked me for another code. 155 00:13:20,590 --> 00:13:24,790 Well, you asked me for the same code again and I'm delivering the code with an SMS. 156 00:13:25,270 --> 00:13:27,490 So the state is it's a little different. 157 00:13:27,710 --> 00:13:33,310 So when you send this, it's the same code, it will go in and you will receive an SMS with that code. 158 00:13:33,310 --> 00:13:36,170 Once you have that code, you have a new established session. 159 00:13:36,610 --> 00:13:42,390 As I said before, you can have two sessions on the same SIM card and you can have clone sessions. 160 00:13:42,550 --> 00:13:55,070 So all of this together allow you to basically read all the messages from Telegram and you can do it, you can put this on an application, whatever you want and it will go through and no one will ever notice. 161 00:13:55,550 --> 00:13:57,130 So you don't need root. 162 00:13:57,410 --> 00:14:02,790 At most, you need the read permission or you don't, depending if you are lucky or not. 163 00:14:03,170 --> 00:14:05,270 And that's pretty much it. 164 00:14:05,270 --> 00:14:06,970 It's as simple as that, really. 165 00:14:07,170 --> 00:14:15,090 So just to have a little summary, so I created a cycle to kill the background message so that the user wouldn't see it. 166 00:14:15,090 --> 00:14:27,470 Then I do the request, I wait the 30 seconds, I send the request for the re-send of the code, I have the SMS code, now I can push it to the server and I will have access. 167 00:14:27,670 --> 00:14:33,630 So it's not, it's about abusing the status. 168 00:14:33,690 --> 00:14:43,450 One thing you need to be careful about is that if you do this, if you try this and if you go wrong, you'll start burning a lot of phone numbers. 169 00:14:44,070 --> 00:14:48,330 So because after a while, Telegram will notice that you are playing with them and they will block your phone number. 170 00:14:48,330 --> 00:14:53,950 So be prepared to have a huge bunch of SIM cards when you're doing some tests because you'll burn a lot of them. 171 00:14:55,450 --> 00:14:57,310 So just a summary. 172 00:14:58,550 --> 00:15:03,910 You may want to kill the background, you may need that permission or not, depending on how you do it. 173 00:15:03,910 --> 00:15:08,550 You have another thing which is great, which is the accessibility API from Android. 174 00:15:08,570 --> 00:15:16,090 You can pretty much use that to hide, click, change whatever you want and the user will hardly notice it. 175 00:15:16,090 --> 00:15:18,910 So it's also a very good API to do that kind of stuff. 176 00:15:19,290 --> 00:15:22,350 The two-step verification is not active by default. 177 00:15:22,350 --> 00:15:31,710 Again, if it is active by default, you can always use again the accessibility API to trick the user when he's using its legit Telegram API. 178 00:15:31,710 --> 00:15:38,050 Telegram app, just pop up an overlay and ask for the pin, something like that. 179 00:15:38,050 --> 00:15:39,190 It will work. 180 00:15:40,230 --> 00:15:45,310 It allows, what you need is something that allows the multiple sessions on the same phone number. 181 00:15:45,310 --> 00:15:47,170 It does allow it. 182 00:15:47,290 --> 00:15:50,350 You don't need to do it on the same device. 183 00:15:50,350 --> 00:15:55,770 So you could be creating your session from another device as long as you can read the SMS. 184 00:15:55,770 --> 00:15:59,210 There's no link between the device and the session. 185 00:15:59,490 --> 00:16:03,050 That's when I first said that you can do it on the desktop. 186 00:16:03,050 --> 00:16:04,810 That's also true for mobile phones. 187 00:16:05,230 --> 00:16:13,790 So you can do all of this on a separate machine and you just need the piece that receives the SMS on the device so that you can create the session. 188 00:16:13,790 --> 00:16:15,230 That's the only thing you need. 189 00:16:16,650 --> 00:16:22,270 Yeah, you may need or not the read SMS permission and one thing that you don't need is root. 190 00:16:22,490 --> 00:16:28,090 So let me see if my video works. 191 00:16:30,190 --> 00:16:33,950 I did some editing so that we didn't have to wait for 30 seconds. 192 00:16:33,950 --> 00:16:35,250 It would be too much. 193 00:16:35,250 --> 00:16:38,590 So let me just see if this works. 194 00:16:39,110 --> 00:16:39,690 Yeah. 195 00:16:43,340 --> 00:16:46,460 So yeah, this is the application. 196 00:16:47,540 --> 00:16:49,260 This is running a little fast. 197 00:16:49,260 --> 00:16:52,580 So at this point I did the request. 198 00:16:52,580 --> 00:16:55,140 I'm now supposed to wait for the 30 seconds. 199 00:16:55,540 --> 00:16:57,700 My SMS has arrived. 200 00:16:59,040 --> 00:17:06,890 I'm just filling out the code and now I have the session. 201 00:17:06,890 --> 00:17:10,930 So what I will do now is that so beta is my malicious one. 202 00:17:11,030 --> 00:17:14,410 It was not a great name, but anyway, it works. 203 00:17:16,050 --> 00:17:18,170 And now I have the two applications. 204 00:17:18,170 --> 00:17:19,570 This is the legit one. 205 00:17:19,570 --> 00:17:21,610 This is the better one, the one that I did. 206 00:17:21,610 --> 00:17:24,630 And now I have a third phone where I'm contacting and sending SMS. 207 00:17:24,630 --> 00:17:27,830 And now you will see that the messages will appear on both applications. 208 00:17:40,340 --> 00:17:44,260 So you see that I sent a hi back from this one and it's already here. 209 00:17:47,240 --> 00:17:51,340 And finally, I think I said hello again. 210 00:17:52,760 --> 00:17:56,860 Of course, this is a crude proof of concept. 211 00:17:56,860 --> 00:18:00,420 You can improve it a lot, but it proves what needs to be proved. 212 00:18:00,940 --> 00:18:08,000 And now I'm sending another message from my other phone and it will also appear here. 213 00:18:10,540 --> 00:18:13,980 Another thing, yeah, as you see, it's on both applications. 214 00:18:14,320 --> 00:18:17,000 So I'm receiving all the messages and I can read messages. 215 00:18:18,220 --> 00:18:21,060 You see that sometimes it says you're connecting. 216 00:18:21,280 --> 00:18:28,840 The reason why it's saying connecting is because, again, I was a little lazy and I didn't stop the cycle that is constantly killing the background process. 217 00:18:28,900 --> 00:18:32,640 So it's still trying to kill it and it's still trying to reconnect. 218 00:18:36,360 --> 00:18:43,060 So as a quick wrap up, instant messaging has a lot of value. 219 00:18:43,500 --> 00:18:47,160 And this is not just about how you can stop the messages, it's about the value. 220 00:18:47,160 --> 00:18:52,180 This is just the price of exploits running on instant messaging. 221 00:18:52,180 --> 00:18:54,400 As you can see, it's extremely high. 222 00:18:54,400 --> 00:18:59,560 Also some information disclosure, but for WeChat, Viber, Signal, Telegram, everything is extremely high. 223 00:18:59,560 --> 00:19:04,280 So there's a huge value in this kind of attacks. 224 00:19:04,280 --> 00:19:06,440 And the reason is obvious. 225 00:19:06,440 --> 00:19:11,980 So as I showed you before, all the censorship attempts, all of that leads to this. 226 00:19:12,460 --> 00:19:15,040 The higher value of these kind of vulnerabilities. 227 00:19:15,100 --> 00:19:20,460 So as a conclusion, secure instant messages is not just about end-to-end encryption. 228 00:19:21,220 --> 00:19:27,520 So Telegram protocol for on-the-wire communication has never been broken. 229 00:19:27,520 --> 00:19:29,860 Just like Signal has never been broken. 230 00:19:31,120 --> 00:19:34,960 Sorry, the communication on the wire has never been broken. 231 00:19:35,000 --> 00:19:37,640 But that's not the only point that you need to secure. 232 00:19:37,640 --> 00:19:39,680 The end point is a problem also. 233 00:19:39,780 --> 00:19:43,380 And that's where sometimes some of them are lacking security. 234 00:19:44,140 --> 00:19:47,860 And well, Telegram is not safe by default. 235 00:19:48,720 --> 00:19:51,120 And if you have any questions... 236 00:19:52,900 --> 00:19:53,980 All right. 237 00:19:53,980 --> 00:19:55,200 Thank you, Vitor. 238 00:19:58,840 --> 00:20:01,200 We'll take Q&A up here by me. 239 00:20:02,920 --> 00:20:04,920 Can you come up to the mic, please? 240 00:20:08,500 --> 00:20:10,180 Hey, great talk, by the way. 241 00:20:10,400 --> 00:20:14,920 Some of these sessions include a notification for when the message has been checked. 242 00:20:16,100 --> 00:20:21,520 Some of the messages include notifications for when the messages have been read or checked. 243 00:20:22,180 --> 00:20:25,900 If you're viewing those directly on the second session, will that be a problem? 244 00:20:25,900 --> 00:20:26,820 No, it won't. 245 00:20:27,200 --> 00:20:31,160 They won't notice that the message has been read on the other side. 246 00:20:31,160 --> 00:20:31,900 Thank you. 247 00:20:31,900 --> 00:20:32,420 Okay. 248 00:20:33,980 --> 00:20:34,800 Other questions? 249 00:20:34,800 --> 00:20:36,320 Come on up to the mic, please. 250 00:20:43,460 --> 00:20:49,560 You mentioned that other secure messaging apps also have to contend with the session hijacking. 251 00:20:50,640 --> 00:20:55,400 Could you give a brief overview of what they have done that makes them different from Telegram? 252 00:20:55,500 --> 00:20:56,620 Or if they are? 253 00:20:56,700 --> 00:20:59,160 Sorry, I had a hard time listening. 254 00:20:59,160 --> 00:20:59,740 Sorry. 255 00:20:59,740 --> 00:21:08,700 What are other messaging apps like Signal doing that can prevent the session hijacking issue with Telegram? 256 00:21:08,700 --> 00:21:09,620 Okay. 257 00:21:09,820 --> 00:21:21,620 So WhatsApp, for instance, they have some kind of notification that allows the user to know that the session has been hijacked. 258 00:21:21,620 --> 00:21:28,100 However, I did in September last year, I did a post about that. 259 00:21:28,320 --> 00:21:31,220 And they denied that that is a security feature. 260 00:21:31,220 --> 00:21:34,040 So they didn't fix the work around that. 261 00:21:34,320 --> 00:21:37,800 So they have a way to notify users. 262 00:21:37,800 --> 00:21:39,200 You can bypass it. 263 00:21:39,200 --> 00:21:42,280 But because they don't consider it a security feature, they didn't fix it. 264 00:21:42,280 --> 00:21:43,940 So they didn't consider the vulnerability. 265 00:21:45,480 --> 00:21:50,180 Signal, they actually, there's a race condition, which is really hard to bypass. 266 00:21:50,240 --> 00:21:53,920 So they also have the same problem, but they handle it a little bit better. 267 00:21:53,920 --> 00:21:58,380 Telegram, yeah, they don't handle that good. 268 00:21:58,380 --> 00:22:02,740 So all of the three, Signal is the one that handles it better. 269 00:22:02,740 --> 00:22:04,240 But still, it's vulnerable. 270 00:22:06,140 --> 00:22:08,220 So I play with Telegram a little bit. 271 00:22:08,220 --> 00:22:18,460 And so if I start a secure messaging conversation with you on my phone, that doesn't show up on, say, if I set it up on the desktop, I would have to start a new session. 272 00:22:18,460 --> 00:22:21,000 So how does this proof of concept work in that? 273 00:22:21,000 --> 00:22:29,060 So that's about when you start secure sessions, secure chats, they will be end-to-end on the device. 274 00:22:29,060 --> 00:22:30,920 So that doesn't cross here. 275 00:22:30,920 --> 00:22:32,280 These are the regular ones. 276 00:22:32,280 --> 00:22:38,960 However, the interesting fact is that if I create a secure session with my new session, the user will never know. 277 00:22:38,960 --> 00:22:48,140 So I can impersonate you all the way, and my victim will never know that I'm talking with your target and the other way around. 278 00:22:48,500 --> 00:22:52,220 So you can impersonate anyone that you want, and they will never know. 279 00:22:52,220 --> 00:22:56,280 They don't have a way to know because there is absolutely no information going back to them. 280 00:22:58,060 --> 00:22:59,680 Other questions? 281 00:23:02,040 --> 00:23:04,680 So always use secure chats. 282 00:23:05,000 --> 00:23:05,540 Does 283 00:23:09,500 --> 00:23:14,110 this show up in the Telegram session manager? 284 00:23:15,180 --> 00:23:19,040 So if you go to your settings, you can see all active sessions. 285 00:23:19,040 --> 00:23:22,800 Yeah, it will show there, but it will show there has a session from the same device. 286 00:23:22,880 --> 00:23:29,100 So, again, for a regular user, that's not something that you'd consider weird because it's on the same device. 287 00:23:29,100 --> 00:23:31,100 It's just another copy of itself. 288 00:23:31,140 --> 00:23:34,480 So it would show up as a duplicate on the same device. 289 00:23:34,480 --> 00:23:35,480 Yeah, exactly. 290 00:23:35,480 --> 00:23:35,880 Interesting . 291 00:23:39,680 --> 00:23:42,580 You covered the three, but you didn't mention Threema. 292 00:23:42,580 --> 00:23:45,920 Have you done much experimentation or compared those to, say, Signal? 293 00:23:45,920 --> 00:23:52,740 So I have Threema there because they are a zero-knowledge secure IM, and that's a really good fact. 294 00:23:52,740 --> 00:23:56,020 I did look into their protocol, but I didn't do any testing. 295 00:23:56,040 --> 00:24:01,400 But Threema has the advantage, the good side is that you don't need a phone number to initiate any session. 296 00:24:01,580 --> 00:24:06,240 So it's a zero-knowledge, absolutely zero-knowledge, not like any of these. 297 00:24:06,300 --> 00:24:09,580 And, well, that can be better from the privacy point of view. 298 00:24:09,840 --> 00:24:12,120 But I haven't tested the protocol, definitely. 299 00:24:13,740 --> 00:24:17,380 We still have a little more time if you have any further questions. 300 00:24:20,120 --> 00:24:22,620 All right, one last... oh, one more. 301 00:24:22,660 --> 00:24:23,540 He came up. 302 00:24:26,020 --> 00:24:27,660 GeigerWy is in the back of my head. 303 00:24:28,780 --> 00:24:30,060 Thanks for the talk. 304 00:24:30,620 --> 00:24:34,440 What are some more secure options other than Threema? 305 00:24:36,440 --> 00:24:37,720 Well, let's... 306 00:24:38,880 --> 00:24:47,700 So even Telegram, if you use it with the right settings, it will be more secure, just like Signal or any of the others. 307 00:24:47,700 --> 00:24:51,040 So one of the things I would say is don't use desktop apps. 308 00:24:51,220 --> 00:24:54,080 You have your phone, use the ones that you have on your phone. 309 00:24:54,080 --> 00:24:56,340 Don't root your phone, don't jailbreak your phone. 310 00:24:56,580 --> 00:25:00,480 When you're using Telegram, use the secure chats. 311 00:25:00,520 --> 00:25:01,500 Those are end-to-end. 312 00:25:01,500 --> 00:25:05,140 You won't be able to see them on the web browser, but you have your phone, right? 313 00:25:05,200 --> 00:25:07,700 Use the two-factor authentication all the time. 314 00:25:08,540 --> 00:25:11,160 Disable and re-enable sessions whenever you need. 315 00:25:11,780 --> 00:25:14,280 All of those features will keep you more safe. 316 00:25:14,280 --> 00:25:16,120 They will give you more trouble to use. 317 00:25:16,120 --> 00:25:20,260 But that's always the trade-off between privacy and usability. 318 00:25:21,420 --> 00:25:25,780 Because as I said, none of these have been broken on the wire. 319 00:25:25,820 --> 00:25:29,920 So as long as your device is safe, you should be okay. 320 00:25:29,920 --> 00:25:36,940 But an Android device, if you install software that comes from the wrong side of the table, or unsafe software, well, you know what it is. 321 00:25:36,940 --> 00:25:37,760 It's Android. 322 00:25:38,680 --> 00:25:38,980 All right. 323 00:25:38,980 --> 00:25:40,460 We have time for one more question. 324 00:25:42,220 --> 00:25:44,640 What about the safety of the web app? 325 00:25:44,640 --> 00:25:49,980 Not just using it on your phone, like through the browser, or using it on the browser on your computer. 326 00:25:49,980 --> 00:25:50,320 Is that... 327 00:25:50,320 --> 00:25:51,680 Don't use the web app. 328 00:25:53,800 --> 00:25:55,120 That one is simple. 329 00:25:56,220 --> 00:25:56,860 All right. 330 00:25:56,860 --> 00:25:57,840 Thank you, Vitor. 331 00:25:57,840 --> 00:25:58,120 Okay. 332 00:25:58,120 --> 00:25:59,040 Thank you, everyone. 333 00:25:59,920 --> 00:26:00,720 Thank you.