1 00:00:00,000 --> 00:00:06,180 For those of you who attended the last talk, mine is not going to be that low level. 2 00:00:06,300 --> 00:00:10,200 It's going to be like poetry compared to it. 3 00:00:10,860 --> 00:00:17,020 I'm here to discuss privacy issues in IoT, to see how privacy issues look like, 4 00:00:17,180 --> 00:00:24,640 and hopefully to bring some awareness to that and send you out with the knowledge. 5 00:00:28,000 --> 00:00:29,280 So let's start. 6 00:00:32,920 --> 00:00:34,500 So the left one is me. 7 00:00:36,240 --> 00:00:40,580 Another guy who worked with me on the research, his name is David Sopas, 8 00:00:40,880 --> 00:00:42,820 very talented man, follow him on Twitter. 9 00:00:43,280 --> 00:00:44,840 We both work at Checkmarks. 10 00:00:45,100 --> 00:00:47,920 I'm the head of AppSec Research of Checkmarks. 11 00:00:49,940 --> 00:00:54,000 This is my details to contact me if you have any questions after the talk. 12 00:00:54,220 --> 00:00:56,620 If you want to connect, I'd be more than happy to do that. 13 00:00:57,000 --> 00:00:59,520 I know some people don't like to ask questions, 14 00:01:00,000 --> 00:01:04,300 but I'm not going to be in a crowd, so this is a good way to catch me. 15 00:01:06,180 --> 00:01:09,080 Okay, so I'm starting with some assumptions. 16 00:01:09,840 --> 00:01:15,720 I'm assuming you're familiar with basics of Bluetooth and BLE. 17 00:01:16,260 --> 00:01:21,040 I'm assuming you're familiar with the attacks on this kind of technologies. 18 00:01:21,920 --> 00:01:26,880 I'm assuming you're going to be cool with oversimplifications that I'm going to do. 19 00:01:27,220 --> 00:01:28,960 We don't have time to... 20 00:01:30,100 --> 00:01:33,320 talk about every single thing, so I'm going to lie a bit. 21 00:01:35,520 --> 00:01:40,900 And I'm assuming you will want some links to the tools and methodologies that I'm going to show, 22 00:01:41,000 --> 00:01:44,140 because I'm not going to discuss them in depth, just to show them. 23 00:01:45,080 --> 00:01:48,740 So I promise to publish everything that you will need. 24 00:01:50,600 --> 00:01:52,540 So let's start with the agenda. 25 00:01:52,700 --> 00:01:58,620 I'm going to describe a bit of privacy, what is it, and what is it good for. 26 00:02:00,200 --> 00:02:05,560 We'll show some IOT privacy leaks as a result of bad implementations. 27 00:02:05,900 --> 00:02:10,780 We'll do the same with malicious intent of devs and vendors. 28 00:02:12,120 --> 00:02:19,920 We'll talk about one very nice privacy leak we made with the high-end IOT. 29 00:02:20,120 --> 00:02:21,860 Spoiler, Amazon Alexa on Echo Dot. 30 00:02:22,540 --> 00:02:24,080 I'm saying that so you'll stay. 31 00:02:24,960 --> 00:02:26,200 And some takeaways. 32 00:02:27,780 --> 00:02:29,320 So let's talk about privacy. 33 00:02:29,560 --> 00:02:29,900 Okay. 34 00:02:30,000 --> 00:02:33,100 I always start with a good book, Wikipedia, to describe things. 35 00:02:34,200 --> 00:02:40,220 So privacy is the ability of an individual or group to seclude themselves or information about themselves 36 00:02:40,840 --> 00:02:43,480 and thereby express themselves selectively. 37 00:02:43,640 --> 00:02:48,200 So there are some points in there that are very important to privacy. 38 00:02:48,800 --> 00:02:50,780 One of them is the right to be let alone. 39 00:02:51,040 --> 00:02:52,000 Yes, it is a thing. 40 00:02:52,620 --> 00:02:59,080 The option to limit some access to information, to private information, secrecy, control over. 41 00:02:59,080 --> 00:03:09,060 Your information about oneself, obviously about oneself, about where you walk or your employees' information as well, et cetera. 42 00:03:12,260 --> 00:03:22,120 So what are the reasons that people have, vendors, developers, if they're legitimate or not, to take one's privacy? 43 00:03:22,720 --> 00:03:23,780 First is security. 44 00:03:24,040 --> 00:03:24,300 Okay. 45 00:03:24,660 --> 00:03:29,060 If I tell you that one of you is a terrorist and I need to check each and every one of you, 46 00:03:30,180 --> 00:03:33,020 this is a good reason to do that, maybe. 47 00:03:35,780 --> 00:03:37,320 Maybe to get something physical. 48 00:03:37,420 --> 00:03:46,580 If I can break into your house or any other private place you have, I can steal things, I can take things, get private information. 49 00:03:46,880 --> 00:03:54,620 There are a few aspects of private information that I can gain from getting your personal information. 50 00:03:54,620 --> 00:03:57,040 It's worth a lot of money, as we know these days. 51 00:03:58,420 --> 00:03:58,920 Maybe. 52 00:03:59,080 --> 00:04:04,260 Maybe some information about organizations, behavior analysis, all these are worth money. 53 00:04:05,060 --> 00:04:11,260 And also sometimes because I lack the interest of actually making sure that your privacy is kept. 54 00:04:11,940 --> 00:04:15,720 I think this is one of the most common issues, actually. 55 00:04:17,600 --> 00:04:21,260 What does it take from a person to forfeit his privacy? 56 00:04:21,760 --> 00:04:22,760 Also security. 57 00:04:23,320 --> 00:04:27,840 At the top place, people believe that if... 58 00:04:29,080 --> 00:04:34,080 They're letting themselves being groped at the airport makes... 59 00:04:34,080 --> 00:04:36,040 It means that their flight will be okay. 60 00:04:36,200 --> 00:04:37,540 Then they agree to it. 61 00:04:39,540 --> 00:04:41,460 Sentences like, I have nothing to hide. 62 00:04:41,980 --> 00:04:43,960 I'm sure you heard it from people. 63 00:04:44,620 --> 00:04:53,460 Try to ask these people some personal questions, like maiden number, date of birth, and sexual preferences, 64 00:04:53,560 --> 00:04:56,160 and you'll see that suddenly they do have stuff to hide. 65 00:04:57,360 --> 00:04:58,400 Sometimes laziness. 66 00:04:59,080 --> 00:04:59,620 I don't care. 67 00:04:59,840 --> 00:05:02,840 I don't read what I'm clicking on. 68 00:05:03,160 --> 00:05:04,380 It doesn't really matter. 69 00:05:05,280 --> 00:05:09,480 Ignorance from people who doesn't really know what they might lose. 70 00:05:11,420 --> 00:05:14,080 And the terrible of all, convenience. 71 00:05:15,380 --> 00:05:22,800 If I can let Google know where I'm going and just wait for them to let me know where I should eat 72 00:05:22,800 --> 00:05:29,060 or what I should pack in my suitcase, then I'm willing to forfeit my privacy. 73 00:05:30,860 --> 00:05:37,940 And then comes IOT and breaks everything because it has all the reasons to take one's privacy, 74 00:05:38,820 --> 00:05:41,040 all the reasons to forfeit one's privacy, 75 00:05:41,300 --> 00:05:47,780 and obviously lack of interest on the side of the vendors and convenience on the side of the users 76 00:05:48,540 --> 00:05:53,020 is a really bad combination. 77 00:05:53,900 --> 00:05:55,080 So what we did? 78 00:05:56,700 --> 00:05:59,060 We gathered a lot of IOTs. 79 00:05:59,080 --> 00:05:59,440 We gathered a lot of IOT devices. 80 00:05:59,600 --> 00:06:00,820 Some are really ridiculous. 81 00:06:01,740 --> 00:06:05,700 Here on top you can see a Bluetooth pacifier. 82 00:06:06,040 --> 00:06:07,020 I kid you not. 83 00:06:07,720 --> 00:06:10,760 People are putting Bluetooth in their baby's mouths now. 84 00:06:12,420 --> 00:06:14,880 Every single device had a privacy issue. 85 00:06:15,360 --> 00:06:18,060 Again, every single device. 86 00:06:18,400 --> 00:06:24,060 We did not manage to find even one device or lacking any problems. 87 00:06:26,100 --> 00:06:27,180 Cheap ones. 88 00:06:30,700 --> 00:06:38,140 Expensive ones, no matter where they were manufactured, made in the U.S., made in China, all the same. 89 00:06:38,320 --> 00:06:39,800 Every single device. 90 00:06:40,720 --> 00:06:42,060 This is a scary thing. 91 00:06:43,240 --> 00:06:45,040 Let's start with physical security. 92 00:06:47,880 --> 00:06:51,880 A lock, a Bluetooth lock, they come in many shapes and sizes. 93 00:06:53,240 --> 00:06:55,060 None of them stays closed. 94 00:06:55,600 --> 00:06:57,380 None of them. 95 00:06:58,260 --> 00:06:59,040 None of them. 96 00:07:00,740 --> 00:07:05,460 It's, first of all, probably if I would hack this thing it would be it live, 97 00:07:05,780 --> 00:07:09,940 but still people want to use it for small things I guess. 98 00:07:11,600 --> 00:07:13,520 It's the same with the houses though. 99 00:07:15,800 --> 00:07:19,760 There are two really effective ways to build a smart lock. 100 00:07:22,220 --> 00:07:23,860 HCI Snooping is a, 101 00:07:23,860 --> 00:07:30,560 I think most of the locks actually broke with this method. 102 00:07:30,880 --> 00:07:33,980 It's really an easy method, easy as one, two, three. 103 00:07:34,780 --> 00:07:37,400 You enable HCI log in your phone. 104 00:07:38,000 --> 00:07:41,200 You use the application that's supposed to open the lock. 105 00:07:41,380 --> 00:07:45,800 You extract relevant data using PCAP, Wireshark, 106 00:07:46,220 --> 00:07:48,860 and then use a script to replay or fuzz. 107 00:07:49,980 --> 00:07:50,820 Extremely easy. 108 00:07:50,820 --> 00:07:56,280 Again, this is how you use HCI, run the application, 109 00:07:57,040 --> 00:08:02,080 and then look at the PCAP files. 110 00:08:02,440 --> 00:08:04,620 In this case, you can immediately see, 111 00:08:06,640 --> 00:08:08,400 well, maybe you can't, but I can, 112 00:08:09,060 --> 00:08:13,360 see that the code is a six-digit number. 113 00:08:14,500 --> 00:08:18,920 Obviously, very easily fuzzed, like in this example. 114 00:08:20,820 --> 00:08:21,860 Here it is locked. 115 00:08:32,180 --> 00:08:33,360 And here it is not. 116 00:08:34,500 --> 00:08:37,860 And this is the time it takes, not more than that. 117 00:08:39,920 --> 00:08:41,400 Almost all locks we checked. 118 00:08:42,640 --> 00:08:47,680 So another, for those that this method did not work, 119 00:08:47,860 --> 00:08:49,840 we actually had to work a bit harder. 120 00:08:50,820 --> 00:08:52,620 We used the middle, a man-in-the-middle attack. 121 00:08:54,280 --> 00:08:57,720 I tried to make a live demo for it, 122 00:08:57,800 --> 00:09:00,640 but the atmosphere here is too dirty. 123 00:09:01,140 --> 00:09:02,520 So it really didn't work. 124 00:09:03,500 --> 00:09:06,500 So we'll just keep it at that. 125 00:09:06,700 --> 00:09:08,740 You run a proxy between a device and a lock, 126 00:09:08,920 --> 00:09:12,500 extract relevant data, replay, and the lock opens. 127 00:09:14,760 --> 00:09:16,700 You remember the right to be let alone. 128 00:09:17,460 --> 00:09:19,740 That's a nice thing, that part of privacy. 129 00:09:20,860 --> 00:09:23,060 This is not something you can do 130 00:09:24,640 --> 00:09:27,920 if you have this kind of a smart band, 131 00:09:28,220 --> 00:09:29,460 an anonymous smart band. 132 00:09:29,880 --> 00:09:31,980 We tried several of those, again. 133 00:09:38,060 --> 00:09:39,240 We will not let you alone. 134 00:09:50,820 --> 00:09:54,200 Again, faking messages using the same methods. 135 00:09:55,340 --> 00:09:56,340 It's really scary. 136 00:09:58,080 --> 00:09:59,100 It's really scary. 137 00:10:00,360 --> 00:10:02,500 Just faking a message, that's it. 138 00:10:02,700 --> 00:10:04,700 Nothing more than that. 139 00:10:05,180 --> 00:10:06,300 So why is it so easy? 140 00:10:06,460 --> 00:10:07,600 Why is it so easy? 141 00:10:09,240 --> 00:10:12,020 Well, two things, two reasons. 142 00:10:12,500 --> 00:10:13,720 One is lack of encryption. 143 00:10:14,800 --> 00:10:18,940 An IoT, a BLE device vendor, they either do not implement 144 00:10:18,940 --> 00:10:19,860 at all encryption. 145 00:10:20,820 --> 00:10:27,620 or they use deprecated methods or they use them wrong, encryption is sometimes complicated. 146 00:10:27,860 --> 00:10:30,440 But if you don't care, it makes it even more complicated. 147 00:10:31,080 --> 00:10:38,740 This really allows easily to sniff either passively or by doing a man-in-the-middle attack. 148 00:10:40,280 --> 00:10:48,180 The second thing is using very weak pairing methods, methods like JustWorks and PASCII. 149 00:10:48,460 --> 00:10:49,540 Read about it. 150 00:10:49,600 --> 00:10:50,660 It's really deprecated. 151 00:10:50,820 --> 00:10:51,340 It's really old. 152 00:10:52,620 --> 00:10:57,140 There are way better methods these days that should be used. 153 00:10:58,160 --> 00:10:59,840 So why not make it better? 154 00:11:00,200 --> 00:11:01,320 Again, it's cheaper. 155 00:11:01,700 --> 00:11:03,380 You don't need to change anything. 156 00:11:03,560 --> 00:11:05,440 I have the same software for four years now. 157 00:11:05,960 --> 00:11:07,700 If it's cheaper, I can sell more. 158 00:11:08,400 --> 00:11:10,300 Vendors come and go very quickly. 159 00:11:10,460 --> 00:11:15,140 Some of them don't really have names, just imaginary names. 160 00:11:15,880 --> 00:11:16,780 Zero liability. 161 00:11:17,360 --> 00:11:20,660 And people keep buying anyway, no matter what. 162 00:11:20,820 --> 00:11:21,960 So why bother? 163 00:11:23,720 --> 00:11:28,140 So this is when you implement in a negligent way. 164 00:11:28,440 --> 00:11:29,620 What about malicious? 165 00:11:31,400 --> 00:11:37,040 Actually, this was kind of surprising because we didn't really aim at finding something like that. 166 00:11:38,980 --> 00:11:43,760 We thought that just bad implementation is what we're going to see all over the place. 167 00:11:45,680 --> 00:11:49,420 And then we took a smart scale by AEG. 168 00:11:50,820 --> 00:11:59,880 The reason we took a smart scale by AEG is because we tried to get serious and not all these no-name IoT devices that we used before. 169 00:12:00,900 --> 00:12:01,780 AEG is German. 170 00:12:03,120 --> 00:12:04,620 Nothing more serious than that. 171 00:12:06,320 --> 00:12:08,580 Also, it was in white or black. 172 00:12:08,780 --> 00:12:09,500 We took the black. 173 00:12:09,640 --> 00:12:10,220 Very serious. 174 00:12:12,280 --> 00:12:20,200 So the scale was AEG, but the app that came with it, not so much. 175 00:12:20,200 --> 00:12:21,360 It wasn't really AEG. 176 00:12:22,500 --> 00:12:29,980 The app was by someone called V-Trump, a Chinese company. 177 00:12:30,940 --> 00:12:34,620 Among their clients are AEG, Texas Instruments, and Realtek. 178 00:12:35,900 --> 00:12:36,840 Seems legit. 179 00:12:37,600 --> 00:12:39,380 Nothing to suspect. 180 00:12:40,180 --> 00:12:41,160 And we didn't. 181 00:12:41,340 --> 00:12:47,920 So we started by installing the app like any other user who needs to check his weight. 182 00:12:48,400 --> 00:12:49,040 Maybe. 183 00:12:49,460 --> 00:12:50,100 Sometimes. 184 00:12:50,200 --> 00:12:54,800 And then we got all these permissions. 185 00:12:55,320 --> 00:12:57,040 All these needed permissions. 186 00:12:58,560 --> 00:12:59,820 It's not that bad. 187 00:12:59,980 --> 00:13:06,980 I mean, it's a bit weird that a smart scale would need to be able to mount and unmount file systems, maybe. 188 00:13:08,920 --> 00:13:20,180 We started to kind of suspect, but we kind of understood what's going on when checking the technology. 189 00:13:21,520 --> 00:13:27,460 First of all, they didn't really try to hide anything because the host, I don't know if you can see it. 190 00:13:27,660 --> 00:13:31,680 It's called gather.lotusseed.com. 191 00:13:32,660 --> 00:13:34,900 They actually gather things. 192 00:13:37,660 --> 00:13:45,740 And then it was pretty horrible to notice that the app connects to a server in China and sends the following info. 193 00:13:46,960 --> 00:13:50,080 IMEI, Wi-Fi ID, phone operator. 194 00:13:50,080 --> 00:13:51,100 Phone brand and model. 195 00:13:51,840 --> 00:13:52,900 Wi-Fi. 196 00:13:52,960 --> 00:13:54,820 Wi-Fi of your house and phone. 197 00:13:54,960 --> 00:13:55,640 MAC address. 198 00:13:57,280 --> 00:14:00,980 Latitude, longitude, and obviously your weight. 199 00:14:05,340 --> 00:14:10,220 This is just to make it insulting of the old data. 200 00:14:14,100 --> 00:14:16,000 So it's not my mistake. 201 00:14:16,180 --> 00:14:17,680 This is not negligent, right? 202 00:14:18,640 --> 00:14:19,920 They actually. 203 00:14:19,920 --> 00:14:23,240 Made a lot of work to gather all this information. 204 00:14:24,440 --> 00:14:28,160 So we tried to get responses from all the previous devices. 205 00:14:28,420 --> 00:14:31,880 We didn't manage to get any response because I don't think it's real companies. 206 00:14:32,500 --> 00:14:34,060 So I just skipped that part. 207 00:14:34,760 --> 00:14:38,200 But here we did have real companies, right? 208 00:14:38,880 --> 00:14:40,200 AEG and V-Trump. 209 00:14:40,860 --> 00:14:46,320 So AEG said we action products with priority whenever we believe it is necessary. 210 00:14:47,500 --> 00:14:49,680 I think they didn't believe it is necessary. 211 00:14:49,680 --> 00:14:54,420 Because I could never manage to contact them again or get any response. 212 00:14:54,740 --> 00:14:56,620 So this is the response we left with. 213 00:14:58,440 --> 00:15:05,120 V-Trump, on the other hand, said that their app functionality does require these permissions. 214 00:15:05,980 --> 00:15:10,840 I mean, they ignored completely the second part of all the information that is sent. 215 00:15:10,920 --> 00:15:12,440 They only talked about the permissions. 216 00:15:12,980 --> 00:15:15,960 And obviously they decided not to change anything. 217 00:15:16,240 --> 00:15:17,500 And this is what they told us. 218 00:15:19,340 --> 00:15:21,900 But they did make some changes. 219 00:15:22,420 --> 00:15:25,500 Just a little before this lecture, we checked again. 220 00:15:26,420 --> 00:15:27,580 They made changes. 221 00:15:27,720 --> 00:15:29,120 First of all, they changed the host. 222 00:15:29,560 --> 00:15:33,300 So it's not gather something something dot com. 223 00:15:34,080 --> 00:15:37,660 It's now just a bunch of characters dot com. 224 00:15:38,400 --> 00:15:41,560 The second thing they did is they added encryption. 225 00:15:43,300 --> 00:15:47,480 So it's actually mitigating the permissions. 226 00:15:47,500 --> 00:15:48,400 It's not just the penetration testers. 227 00:15:48,440 --> 00:15:49,900 It's mitigating the researchers. 228 00:15:50,900 --> 00:15:54,900 Because they didn't want us to see what they're sending. 229 00:15:56,040 --> 00:15:57,260 They did it really bad. 230 00:15:57,860 --> 00:15:58,920 We did check. 231 00:15:59,020 --> 00:16:01,260 They're actually sending the same thing. 232 00:16:01,380 --> 00:16:01,980 Not that important. 233 00:16:04,700 --> 00:16:08,660 And this is an AEG that you would probably think that you should trust. 234 00:16:10,680 --> 00:16:17,480 Let's go a bit high level towards not personal, but maybe corporate, military, I don't know, other users. 235 00:16:19,920 --> 00:16:20,560 Exfiltration. 236 00:16:21,320 --> 00:16:23,980 So everyone knows what airgap is. 237 00:16:24,860 --> 00:16:27,540 Everyone who knows what airgap is, please raise your hand. 238 00:16:28,960 --> 00:16:29,600 Okay. 239 00:16:29,720 --> 00:16:31,920 That's quite an amount. 240 00:16:32,240 --> 00:16:36,860 So airgap is being used for highly sensitive data. 241 00:16:38,380 --> 00:16:41,260 It's disconnected from outside network completely. 242 00:16:41,540 --> 00:16:43,120 It's supposed to be completely disconnected. 243 00:16:43,580 --> 00:16:44,760 Things can get in. 244 00:16:44,860 --> 00:16:45,460 No problem. 245 00:16:45,960 --> 00:16:47,480 It's an assistive network. 246 00:16:47,500 --> 00:16:51,520 It's an assumption that some viruses or malware will go into the system. 247 00:16:52,400 --> 00:16:55,280 And that's, let's say, it's not okay, but it's okay. 248 00:16:56,000 --> 00:16:57,380 But nothing gets out. 249 00:16:57,580 --> 00:16:59,640 So no matter what, nothing gets out. 250 00:17:01,740 --> 00:17:10,620 Unless you're using a $650 smart light bulb in your building, base, room, whatever. 251 00:17:13,220 --> 00:17:15,060 What we did here... 252 00:17:17,500 --> 00:17:19,280 On the left side, you can see... 253 00:17:19,280 --> 00:17:20,380 Well, let's start on the right side. 254 00:17:20,440 --> 00:17:26,260 On the right side, you see simulation of a computer who has, let's say, malware or virus. 255 00:17:28,260 --> 00:17:34,720 And this virus or malware found out that there is a smart light bulb somewhere in the vicinity. 256 00:17:35,540 --> 00:17:36,320 Connects to it. 257 00:17:36,820 --> 00:17:41,280 And start exfiltrating data through the blinking of light bulb. 258 00:17:41,460 --> 00:17:42,040 That's it. 259 00:17:42,840 --> 00:17:45,980 On the left, you can see... 260 00:17:46,640 --> 00:17:47,480 The app is running. 261 00:17:47,500 --> 00:17:48,300 We did it for Android. 262 00:17:49,120 --> 00:17:53,420 That it will start to gather the blinks and make them into letters. 263 00:17:54,480 --> 00:17:58,940 It's very sterile here because it's just aimed at the wall. 264 00:17:59,100 --> 00:18:00,120 At the white wall. 265 00:18:00,460 --> 00:18:01,880 I don't know why it's blue. 266 00:18:02,180 --> 00:18:03,480 But it's a white wall. 267 00:18:03,580 --> 00:18:03,860 Believe me. 268 00:18:06,320 --> 00:18:14,640 We actually tested it from a distance of 100 meters with a telescope during daylight to a window. 269 00:18:14,860 --> 00:18:16,080 And it also works. 270 00:18:17,500 --> 00:18:18,760 You can see it starts blinking. 271 00:18:21,760 --> 00:18:28,980 And soon it will start interpreting the data. 272 00:18:31,440 --> 00:18:33,520 As you can see, just ones and zeros. 273 00:18:33,800 --> 00:18:35,100 Nothing fancy. 274 00:18:37,860 --> 00:18:44,880 Some of you probably say it's not really effective because the victim actually sits in a room and the light blinks. 275 00:18:44,880 --> 00:18:48,420 He should be suspecting something sometimes. 276 00:18:49,420 --> 00:18:52,200 We actually did the same thing with only blue... 277 00:18:53,560 --> 00:18:54,780 Blue wave lights. 278 00:18:55,660 --> 00:18:57,880 It cannot be seen in the eye. 279 00:18:58,040 --> 00:18:59,520 But every camera catches it. 280 00:19:00,140 --> 00:19:03,260 Obviously, we can do it multi-layered with several... 281 00:19:05,740 --> 00:19:07,680 With several colors. 282 00:19:07,940 --> 00:19:11,220 If you want larger, wider bandwidth. 283 00:19:12,720 --> 00:19:14,580 But this is enough for the POC. 284 00:19:14,700 --> 00:19:14,860 So, that's it. 285 00:19:16,260 --> 00:19:21,580 And it was kind of funny to do something through a telescope during daylight. 286 00:19:22,740 --> 00:19:25,220 We didn't look crazy at all, by the way, doing it. 287 00:19:28,240 --> 00:19:28,700 Okay. 288 00:19:31,340 --> 00:19:39,040 So, the same person who said, yeah, but the guy says it's blinking also is saying, yeah, but this is all just cheap crappy devices. 289 00:19:40,380 --> 00:19:41,480 And he's right. 290 00:19:41,940 --> 00:19:43,460 So, we tried something else. 291 00:19:43,720 --> 00:19:44,180 We... 292 00:19:44,860 --> 00:19:46,440 We went for Alexa. 293 00:19:46,880 --> 00:19:51,860 We went for Alexa because it's the least, cheapest, crappiest device we could find. 294 00:20:00,080 --> 00:20:01,360 Amazon Echoes. 295 00:20:01,360 --> 00:20:02,100 The series. 296 00:20:02,400 --> 00:20:04,640 Most sold intelligent personal assistant. 297 00:20:05,380 --> 00:20:09,360 By the end of 2017, 45 million units were sold. 298 00:20:09,740 --> 00:20:12,220 I'm pretty sure some more sold since then. 299 00:20:14,200 --> 00:20:14,840 Popularity. 300 00:20:14,860 --> 00:20:16,340 Popularity rose in last years. 301 00:20:16,640 --> 00:20:22,080 So is the fear of being recorded or listened to unknowingly. 302 00:20:22,660 --> 00:20:25,880 And we wanted to show that the fear is totally justified. 303 00:20:28,280 --> 00:20:30,960 So, we started checking it. 304 00:20:32,660 --> 00:20:36,640 What we wanted is to turn our Echo Dot into a tapping device. 305 00:20:38,140 --> 00:20:40,560 We're coming from AppSec, application security. 306 00:20:41,080 --> 00:20:43,140 So, we don't like soldering. 307 00:20:43,140 --> 00:20:47,660 And we don't like, I don't know, some dirt on our hands. 308 00:20:47,860 --> 00:20:50,440 So, we decided to do it remotely. 309 00:20:53,140 --> 00:20:55,680 We thought it would be easier for us. 310 00:20:57,420 --> 00:21:10,540 Because I think that in the last couple of years, a couple of groups managed to do some hacks and cracks by actually having contact with the Echo. 311 00:21:10,540 --> 00:21:12,700 So, we tried to do something remotely. 312 00:21:15,380 --> 00:21:18,200 The first challenge was actually the activation challenge. 313 00:21:19,640 --> 00:21:23,120 Because Alexa is asleep until you wake her up. 314 00:21:24,040 --> 00:21:30,440 She only starts streaming audio to the cloud after the wake up word Alexa has heard. 315 00:21:31,000 --> 00:21:33,640 This is something that is very hard to do remotely. 316 00:21:33,940 --> 00:21:35,720 Unless you shout really hard. 317 00:21:37,760 --> 00:21:40,100 So, our solution was to start. 318 00:21:40,100 --> 00:21:43,780 After the user wakes her up. 319 00:21:44,420 --> 00:21:48,040 It usually happens several times a day, I guess, for users. 320 00:21:49,480 --> 00:21:53,320 We had several options how to do that. 321 00:21:54,100 --> 00:21:55,900 Not to go into it very deep. 322 00:21:56,020 --> 00:21:57,680 We decided to use Alexa skills. 323 00:21:58,500 --> 00:22:03,080 Alexa skill is like an application that is run by Alexa. 324 00:22:03,780 --> 00:22:08,600 It can be either built in or you can download it for a dedicated Alexa store. 325 00:22:09,560 --> 00:22:10,080 Alexa skill is like an application that is run by Alexa. It can be either built in or you can download it for a dedicated Alexa store. 326 00:22:10,100 --> 00:22:10,580 It can be either built in or you can download it for a dedicated Alexa store. 327 00:22:10,580 --> 00:22:13,640 And we thought it would be really nice to create a malicious one. 328 00:22:14,380 --> 00:22:20,560 Something that starts benign, like a calculator, that you ask him how much is one plus one. 329 00:22:21,900 --> 00:22:28,320 You get the answer and you don't suspect anything, but Alexa will then continue to record you. 330 00:22:28,620 --> 00:22:28,980 But Alexa will then continue to record you. 331 00:22:28,980 --> 00:22:29,900 So this was the grand plan. 332 00:22:32,380 --> 00:22:34,920 The second challenge came quite quickly. 333 00:22:35,260 --> 00:22:38,800 Because we couldn't keep the session alive after the benign part. 334 00:22:39,140 --> 00:22:40,080 The second challenge came quite quickly. We couldn't keep the session alive after the benign part. 335 00:22:40,080 --> 00:22:46,360 gives the answer and then she goes to sleep again. She either shuts down or if you tell 336 00:22:46,360 --> 00:22:54,820 her to stay, she prompts the user. So the partial solution was a flag that we found. 337 00:22:55,000 --> 00:23:00,460 I mean, it's a normal flag. It's a default flag. Should end session. If you mentioned 338 00:23:00,460 --> 00:23:05,120 that you should not end session, then Alexa goes into another cycle, another session. 339 00:23:05,120 --> 00:23:12,440 But Alexa will prompt the user that she's again waiting for a response. So this is kind of 340 00:23:12,440 --> 00:23:17,260 problematic because the users of Alexa are very smart. And they will know that something is 341 00:23:17,260 --> 00:23:27,800 going on. So the complete solution came from a class that is called reprompt. We said what if we 342 00:23:27,800 --> 00:23:35,100 try and put an empty string in reprompt? Well, complete silence. So we tried to put an empty 343 00:23:35,120 --> 00:23:42,620 string in reprompt. So that was pretty cool. We managed to keep the sessions coming without Alexa 344 00:23:42,620 --> 00:23:50,320 saying anything to the user. So that was the first challenge that was solved. The second challenge 345 00:23:50,320 --> 00:23:56,200 that was solved. The third challenge was to actually get the data to the malicious developer. 346 00:23:56,900 --> 00:24:03,820 The actual recording is not accessible for the developers. It's uploaded to the cloud. But the 347 00:24:03,820 --> 00:24:05,100 transcription generates a user's response. And to the developer, the thing that needs to be done is to mushroom 348 00:24:05,100 --> 00:24:13,160 by Amazon is accessible. Usually, the developer needs to choose a specific group of words, 349 00:24:14,560 --> 00:24:22,180 which they call the word slot. For example, if you put cities, Alexa expects to get some 350 00:24:23,800 --> 00:24:33,280 sort of city name in your mumblings. Names, animals, you get the gist. So our solution 351 00:24:33,280 --> 00:24:40,580 was to create the custom word slot that will get everything, whatever is said. Alexa will 352 00:24:40,580 --> 00:24:50,080 try to guess what is the closest word to it. And we actually created a custom one. We called 353 00:24:50,080 --> 00:24:58,880 it input. And this word slot would capture any single word. But we wanted sentences, 354 00:24:59,080 --> 00:25:03,260 not single word. Because if the user says a single word and they don't know what they're 355 00:25:03,260 --> 00:25:07,980 saying, and then goes to another cycle, then we'll probably miss the other ten words in 356 00:25:07,980 --> 00:25:19,220 the sentence. So we actually created templates for different sentences with all lengths of 357 00:25:19,220 --> 00:25:26,500 sentence we could think of. We could think of 15. I don't know why. Maybe you have bigger 358 00:25:28,140 --> 00:25:33,240 vocabulary and you can make sentences of more than 15 words. We couldn't. So we decided, 359 00:25:33,240 --> 00:25:44,060 no, every sentence that is no more than 15 words will be captured by Alexa, transcribed, and 360 00:25:44,060 --> 00:25:51,900 be sent to the malicious user. Okay. I'll give a link to the demo later. Sorry about that. 361 00:25:54,420 --> 00:26:03,220 Sorry. No, there was a perfect line. That was out of order. Thank you. Thanks. So the first thing 362 00:26:10,220 --> 00:26:13,880 Alexa, what's the distance between Tel Aviv and New York? 363 00:26:14,120 --> 00:26:17,840 Can you hear it? No? Okay, let's skip it. 364 00:26:21,200 --> 00:26:21,980 And voila! 365 00:26:27,120 --> 00:26:28,980 Thank you, thank you. 366 00:26:30,360 --> 00:26:31,360 You're a great crowd. 367 00:26:34,760 --> 00:26:41,960 Okay, so that guy from before, from earlier, who pointed out things, he probably is saying now, 368 00:26:42,100 --> 00:26:44,880 what about the blue light? The blue light is on all the time. 369 00:26:46,000 --> 00:26:50,740 And he's right. But it doesn't matter much. 370 00:26:50,940 --> 00:26:58,040 And actually, we thought it lowered the effectiveness of the attack, of the malicious app. 371 00:26:58,480 --> 00:26:58,960 But it didn't. 372 00:26:58,980 --> 00:27:00,380 But Amazon didn't think so. 373 00:27:00,480 --> 00:27:04,240 Amazon thought it's still bad. 374 00:27:04,560 --> 00:27:12,440 And they said that the users of intelligent private assistant are not expected to keep an eye content with the device. 375 00:27:12,680 --> 00:27:15,260 So the blue light is not expected to be there. 376 00:27:15,720 --> 00:27:21,840 Also, and this was actually news for us, there is something called Alexa voice services, 377 00:27:22,840 --> 00:27:27,940 which allows any vendor with some sort of IoT to embed Alexa capabilities 378 00:27:27,940 --> 00:27:31,900 into their probably lightless products. 379 00:27:32,040 --> 00:27:39,600 If I make a teapot or a refrigerator with Alexa in it, I don't have to put any light. 380 00:27:39,800 --> 00:27:44,100 So this does not lower the risk here. 381 00:27:44,840 --> 00:27:47,800 Amazon responds, and they ask that we read it. 382 00:27:48,800 --> 00:27:53,660 Customer trust is important to us, and we take security and privacy seriously. 383 00:27:53,980 --> 00:27:57,860 We have put mitigation in place for detecting this type of skill behavior. 384 00:27:57,860 --> 00:27:59,000 Reported by check marks. 385 00:27:59,440 --> 00:28:03,340 This came from the security team at Lab 126 in Amazon. 386 00:28:05,740 --> 00:28:08,560 Actually, it was amazing working with these guys. 387 00:28:09,060 --> 00:28:13,540 They gave us very rapid responses. 388 00:28:15,380 --> 00:28:18,460 We collaborated with them the entire way with the fixes. 389 00:28:20,620 --> 00:28:24,000 And they decided to make the following mitigations. 390 00:28:24,900 --> 00:28:26,880 Detect and disallow empty reprompts. 391 00:28:26,880 --> 00:28:29,420 There is no use of that feature. 392 00:28:30,800 --> 00:28:33,960 Identify eavesdropping skills that are uploaded to the store. 393 00:28:35,160 --> 00:28:38,760 They didn't really give us more details, but obviously they're on it. 394 00:28:38,960 --> 00:28:43,080 And detect lower than usual sessions and act appropriately. 395 00:28:44,960 --> 00:28:46,820 So this is kind of great. 396 00:28:48,100 --> 00:28:49,620 Quick round of takeaways. 397 00:28:51,620 --> 00:28:54,180 And I'm sorry if I'm getting a bit preachy. 398 00:28:54,180 --> 00:28:57,140 But it's important. 399 00:28:57,400 --> 00:29:09,320 So it's very easy to forget that IoT devices are actually computers who has inputs and outputs, cameras, ears and eyes, whatever. 400 00:29:11,840 --> 00:29:23,300 Really, users, normal users, everyday users do not really think that there may be a privacy breach in stuff they wear all the time. 401 00:29:24,100 --> 00:29:28,900 The breaches, as we said, sometimes it's because the device sucks. 402 00:29:29,340 --> 00:29:31,640 Sometimes it's because it's malicious. 403 00:29:32,220 --> 00:29:34,660 But always because the users allow it. 404 00:29:35,400 --> 00:29:39,740 So privacy issues are a layer eight problem. 405 00:29:41,560 --> 00:29:46,400 Only users can solve it by making sure that they buy only trusted devices. 406 00:29:47,040 --> 00:29:52,760 By making it very clear to vendors that vulnerable devices will stay on the shelves. 407 00:29:53,300 --> 00:29:58,280 And by making it very clear to vendors that found vulnerabilities must be fixed quickly. 408 00:29:59,820 --> 00:30:00,900 Your job. 409 00:30:02,540 --> 00:30:04,380 I'm supposed to write it down. 410 00:30:06,560 --> 00:30:08,440 Talk to users, please. 411 00:30:08,800 --> 00:30:11,280 Talk to vendors, if it's possible. 412 00:30:12,000 --> 00:30:13,180 Educate and bring awareness. 413 00:30:15,060 --> 00:30:17,060 Privacy issues are a real big problem. 414 00:30:18,480 --> 00:30:22,280 Break as many IoT devices as possible and publish your findings. 415 00:30:22,280 --> 00:30:24,520 No matter how small they are. 416 00:30:25,480 --> 00:30:26,340 Bring awareness. 417 00:30:26,780 --> 00:30:27,280 Please. 418 00:30:28,300 --> 00:30:29,220 And that's it. 419 00:30:30,200 --> 00:30:30,980 That was me.