1 00:00:00,000 --> 00:00:06,140 So, quick introduction. I'm Wes Weinberg. I'm a member of Synac's R&D team. 2 00:00:07,380 --> 00:00:15,340 Synac is a company that leverages the best combination of humans and technology to discover security vulnerabilities. 3 00:00:16,360 --> 00:00:22,640 Basically, we do crowdsourced security testing, so if you like security testing, you should check us out. 4 00:00:22,880 --> 00:00:27,360 And if you happen to need a company security tested, I mean, we do that kind of thing too. 5 00:00:28,380 --> 00:00:31,480 Some background on myself. I used to work for a company called World Tech. 6 00:00:31,600 --> 00:00:36,240 They did SCADA, smart grid, medical device hacking. 7 00:00:36,740 --> 00:00:44,880 So, devices, I guess, that were a lot more critical than Internet of Things devices generally, but a lot of the same techniques. 8 00:00:45,300 --> 00:00:54,460 They got acquired by GE, and then about a year ago, I joined Synac as a member of their research and development team. 9 00:00:56,400 --> 00:00:57,340 So, before I get into that, I want to talk a little bit about the R&D team. 10 00:00:57,340 --> 00:01:02,460 Before I start, I just want to make sure that I give a special thanks out to my co-worker, Colby Moore. 11 00:01:03,220 --> 00:01:08,340 He's giving a talk here at DEF CON on hacking satellites, so you guys should check that out too. 12 00:01:09,740 --> 00:01:17,460 But the testing that I did for these 14 devices, I split it up initially with Colby, so I did seven of the devices and he did seven of the devices. 13 00:01:20,100 --> 00:01:25,720 I further did some testing to make this presentation, but definitely need to give him credit for the work that he did. 14 00:01:28,400 --> 00:01:29,500 So, a quick outline. 15 00:01:30,480 --> 00:01:34,260 Basically, I'm going to cover two different things in this talk. 16 00:01:34,460 --> 00:01:40,840 The first is kind of how we decided to test the devices, what our techniques were, what our strategy was. 17 00:01:41,080 --> 00:01:44,240 I'm not going to spend a ton of time going through that. 18 00:01:44,400 --> 00:01:51,240 I think there's been some other talks, and I think there's going to be some other talks, more around techniques and tools that you can use. 19 00:01:51,780 --> 00:01:56,340 But I want to at least give an overview of what we did, what we put in place. 20 00:01:56,780 --> 00:02:01,460 And then, I want to spend the majority of the time going through the 14 devices that I looked at. 21 00:02:02,140 --> 00:02:08,540 We've got, I don't know, 45 minutes to get through 14 devices, so it doesn't leave us a ton of time for each one. 22 00:02:09,260 --> 00:02:15,740 And there's probably a million things I could say for each of them, but I've tried to condense it down to the most interesting points. 23 00:02:16,900 --> 00:02:19,980 So, that's going to be the plan here. 24 00:02:22,700 --> 00:02:25,480 So, we're going to start with testing techniques. 25 00:02:26,340 --> 00:02:28,660 And, really, testing goals that we had. 26 00:02:29,220 --> 00:02:33,540 I tried to find some clip art of a data chisel, but Google could find me nothing. 27 00:02:33,760 --> 00:02:34,640 I was a little bit disappointed. 28 00:02:38,140 --> 00:02:44,060 So, our starting goal is to figure out what do we want to get out of testing these devices. 29 00:02:45,560 --> 00:02:50,920 And when it comes to, I guess, an attacker's perspective, that's really what we want to consider. 30 00:02:51,180 --> 00:02:53,200 A company that's making one of these devices, 31 00:02:54,180 --> 00:02:55,880 their only real concern, 32 00:02:55,880 --> 00:02:57,100 when it comes to security, 33 00:02:57,340 --> 00:03:00,460 is what's someone likely to try and do to their device 34 00:03:00,460 --> 00:03:03,560 that's going to make them look bad or make their customers unhappy. 35 00:03:05,100 --> 00:03:08,720 They generally aren't going to care a lot about security beyond that, 36 00:03:08,840 --> 00:03:11,860 because it's never going to directly impact them. 37 00:03:12,840 --> 00:03:13,280 So, 38 00:03:15,020 --> 00:03:19,340 McAfee predicts that attacks are going to ramp up on the Internet of Things. 39 00:03:21,040 --> 00:03:25,860 And I generally would only sarcastically quote threat predictions, 40 00:03:25,880 --> 00:03:30,980 but I think it's pretty accurate and actually coming true for a lot of embedded devices. 41 00:03:31,160 --> 00:03:34,740 You see botnets of home routers and that type of thing. 42 00:03:34,920 --> 00:03:39,360 And a lot of these Internet of Things devices are going to be very similar in attack surface. 43 00:03:40,840 --> 00:03:46,580 So then, thinking like an attacker, we've got kind of three different ways of accessing an Internet of Things device. 44 00:03:47,240 --> 00:03:52,020 We've got direct physical access, where you pretty much have to have the device in your hands. 45 00:03:52,540 --> 00:03:54,700 We've got local network access, 46 00:03:54,700 --> 00:04:00,980 which for a lot of these devices just means you've got to hop on the same Wi-Fi network that the device is connected to. 47 00:04:01,420 --> 00:04:05,140 But basically, I guess, non-routable traffic that you can get to the device. 48 00:04:05,480 --> 00:04:09,180 And then the third way to get to these devices is remotely. 49 00:04:09,400 --> 00:04:13,460 So, from the Internet, what can you do to this device potentially? 50 00:04:14,320 --> 00:04:15,040 And so, 51 00:04:16,640 --> 00:04:18,540 from an attacker's perspective, 52 00:04:19,480 --> 00:04:22,680 physical is less valuable than local network, 53 00:04:22,920 --> 00:04:24,540 which is less valuable than 54 00:04:25,140 --> 00:04:26,160 over the Internet, 55 00:04:27,260 --> 00:04:29,420 almost entirely because of the scale of things. 56 00:04:29,740 --> 00:04:33,500 I, as an attacker, might be great at, you know, hacking devices. 57 00:04:34,320 --> 00:04:37,660 But if I have to go around each of your houses to hack your device, 58 00:04:38,120 --> 00:04:40,540 that's not going to get me very many results. 59 00:04:41,180 --> 00:04:43,340 And, you know, a lot of risk behind that. 60 00:04:43,580 --> 00:04:48,760 Local network is primarily just you're just going to be concerned about people doing it for fun. 61 00:04:48,980 --> 00:04:52,040 You know, is your neighbor going to be messing with your Internet of Things devices? 62 00:04:53,180 --> 00:04:54,120 Whereas, remotely, 63 00:04:54,700 --> 00:05:01,040 what an attacker's likely to be after can they turn your device into a botnet can they crash 64 00:05:01,040 --> 00:05:06,080 every single camera out there things with real scale is what attackers are going to be really 65 00:05:06,080 --> 00:05:15,660 interested in and so with that in mind we kind of defined a set of goals of we don't just want 66 00:05:15,660 --> 00:05:21,980 to test any one of these devices as an individual device we want to look at its whole ecosystem so 67 00:05:21,980 --> 00:05:29,380 we want to see what is there for the hardware but also what what works with that is there PC 68 00:05:29,380 --> 00:05:38,600 applications that you use to configure or or to control this device does it have mobile 69 00:05:38,600 --> 00:05:44,580 applications associated with it what kind of access do they have and then finally cloud 70 00:05:44,580 --> 00:05:50,260 communications does the device connect to the cloud does the mobile application connect to the 71 00:05:50,260 --> 00:05:51,960 cloud consider that perspective 72 00:05:51,980 --> 00:05:57,000 as well we felt that if we only really looked at one of these or a few of these would be kind 73 00:05:57,000 --> 00:06:01,300 of missing the point attackers aren't necessarily going to limit themselves so we don't want to 74 00:06:01,300 --> 00:06:06,820 limit ourselves either so when we came to testing each of these our goal with hardware testing was 75 00:06:06,820 --> 00:06:12,900 really to to try and route the device as quickly as possible to turn it from a complete black box 76 00:06:12,900 --> 00:06:18,600 perspective of the device to more of a gray box test where we can kind of see what binaries are 77 00:06:18,600 --> 00:06:21,820 running on it see what services are open maybe look at config files 78 00:06:23,160 --> 00:06:28,960 basically just make it easier for us to attack one device and then scale that to a lot of devices 79 00:06:30,400 --> 00:06:35,460 from the PC side of things we're we're kind of looking at are these going to be easy targets for 80 00:06:35,460 --> 00:06:42,260 an attacker do they have any sort of special privileges or any special trust between a PC 81 00:06:42,260 --> 00:06:48,640 application and the device itself maybe between the cloud services and then thinking like an 82 00:06:48,640 --> 00:06:51,960 attacker if there's a PC application that everyone's in touch with we're going to be able to 83 00:06:51,980 --> 00:06:58,900 install it you know maybe to control your webcam or something and that application is filled with 84 00:06:58,900 --> 00:07:05,440 vulnerabilities malware authors are already really good at writing malware for PCs so if 85 00:07:05,440 --> 00:07:13,100 there's any way they can leverage that we wanted to find that out for mobile applications when we 86 00:07:13,100 --> 00:07:17,600 looked at them they're really kind of a black box to the user you install a mobile application you 87 00:07:17,600 --> 00:07:21,500 don't have much choice the vendor is going to give you you know your camera control application 88 00:07:21,980 --> 00:07:26,540 or your thermostat control application and it might request permissions and you basically 89 00:07:26,540 --> 00:07:30,840 decide well do I want to use this mobile app so you pretty much every user is going to say yes 90 00:07:30,840 --> 00:07:35,060 but they don't really know what's happening behind the scenes so we wanted to look at that a bit 91 00:07:35,060 --> 00:07:40,240 um and we definitely wanted to focus on how does that mobile application communicate out 92 00:07:40,240 --> 00:07:46,640 is it doing that in a secure manner as well as does that mobile application have any special 93 00:07:46,640 --> 00:07:51,360 privileges or more access to your mobile device than it should 94 00:07:52,480 --> 00:07:58,640 um the last area is cloud communications and for these we wanted to look at 95 00:07:58,640 --> 00:08:05,260 how are they authenticated how does it know that your camera is a legit camera and you're the owner 96 00:08:05,260 --> 00:08:11,580 of it you should have access to it are those communications encrypted if they're authenticated 97 00:08:11,580 --> 00:08:19,580 and then who stores the data where's the data stored basically we wanted to look at who 98 00:08:20,040 --> 00:08:21,580 ultimately controls your device 99 00:08:21,980 --> 00:08:23,900 Is it something that you alone control? 100 00:08:24,160 --> 00:08:26,640 Is it kind of a mix between you and the cloud systems? 101 00:08:27,240 --> 00:08:30,220 Or is everything in the cloud and you're at their mercy? 102 00:08:34,880 --> 00:08:39,980 So the final goal was to do our testing quickly. 103 00:08:40,580 --> 00:08:43,900 We had 14 devices and we didn't have lots of time. 104 00:08:45,340 --> 00:08:47,360 So normally when I'm testing devices, 105 00:08:47,360 --> 00:08:52,600 it really bothers me to kind of just get started on testing a device, 106 00:08:52,940 --> 00:08:56,000 just know that it's full of vulnerabilities and then be out of time. 107 00:08:56,880 --> 00:09:01,600 But at the same time, companies have limited budgets. 108 00:09:01,760 --> 00:09:04,900 I've got lots of other work projects that I need to get done. 109 00:09:05,420 --> 00:09:07,540 So we split it up between me and my co-worker 110 00:09:07,540 --> 00:09:12,540 and we really aim to spend two days maybe testing each device, 111 00:09:13,260 --> 00:09:15,140 have it all kind of wrapped up in a month. 112 00:09:15,760 --> 00:09:17,340 Probably ended up being more like, 113 00:09:17,360 --> 00:09:18,740 like four or five days per device. 114 00:09:20,480 --> 00:09:22,460 But we still wanted the results to be of value. 115 00:09:22,620 --> 00:09:24,460 So really what we decided to do is target, 116 00:09:24,700 --> 00:09:28,920 hey, if your average InfoSec professional grabs this device 117 00:09:28,920 --> 00:09:32,780 and decides to spend a week on it, what are they going to find? 118 00:09:33,000 --> 00:09:35,620 Are they going to find absolutely nothing 119 00:09:35,620 --> 00:09:38,100 or is it just going to be vulnerabilities left, right and center? 120 00:09:38,240 --> 00:09:39,460 And for most of these devices, 121 00:09:40,580 --> 00:09:43,860 a week was more than enough time to have some good results. 122 00:09:45,680 --> 00:09:47,260 And I had to include, 123 00:09:47,360 --> 00:09:48,360 I'm going to do a quote from Cave Johnson. 124 00:09:48,520 --> 00:09:50,040 It's where I get all my business advice. 125 00:09:53,080 --> 00:09:55,880 So a bit on the techniques for each of the areas that we used. 126 00:09:56,220 --> 00:10:01,080 Hardware testing was done exclusively in ISO Class 5 clean room facilities. 127 00:10:02,160 --> 00:10:03,560 As you can see, pictured here. 128 00:10:05,540 --> 00:10:08,820 In actual practice, our testing was quite organized, 129 00:10:09,080 --> 00:10:13,460 but when you've got 14 devices and test equipment, things get a bit scattered. 130 00:10:13,640 --> 00:10:17,200 But I think the main thing from the hardware perspective, 131 00:10:17,200 --> 00:10:21,220 is that very little specialized tools were needed. 132 00:10:21,460 --> 00:10:23,480 Well, maybe that's the wrong way to put it. 133 00:10:24,360 --> 00:10:26,740 Expensive equipment wasn't needed to test these devices. 134 00:10:28,600 --> 00:10:30,740 Your standard hardware testing equipment, 135 00:10:30,840 --> 00:10:32,320 the standard hardware stuff that you would have 136 00:10:32,320 --> 00:10:34,560 if you're just developing embedded devices. 137 00:10:35,200 --> 00:10:38,060 If, for lack of a better example, you play with Arduinos, 138 00:10:38,680 --> 00:10:40,900 you probably got everything you need to test these devices. 139 00:10:42,940 --> 00:10:44,280 Multimeter, serial cable. 140 00:10:46,440 --> 00:10:47,180 That's more like it. 141 00:10:47,200 --> 00:10:48,160 That's less it to get a good start. 142 00:10:49,120 --> 00:10:51,780 So we did have some tools, but we didn't really have to go out 143 00:10:51,780 --> 00:10:54,140 and get anything special to do all the testing that we did. 144 00:10:57,740 --> 00:11:02,460 And while I'm on hardware, a little bit of a spoiler for what you'll see coming up. 145 00:11:03,540 --> 00:11:08,120 But serial cable was really all we needed for 12 of these 14 devices to root them. 146 00:11:08,800 --> 00:11:10,660 There was serial consoles everywhere. 147 00:11:11,340 --> 00:11:15,260 I tested a lot of different hardware devices kind of across the board. 148 00:11:15,560 --> 00:11:17,180 And usually, serial consoles are pretty good. 149 00:11:17,180 --> 00:11:17,400 They're pretty common. 150 00:11:18,080 --> 00:11:19,320 Sometimes they're locked down. 151 00:11:19,420 --> 00:11:20,120 Sometimes they're not. 152 00:11:20,400 --> 00:11:24,840 But usually, it's like maybe half of devices that you look at will have one. 153 00:11:25,180 --> 00:11:28,940 So 12 out of 14 was a little bit more than I expected. 154 00:11:29,200 --> 00:11:30,240 Kind of funny to see. 155 00:11:33,520 --> 00:11:36,460 So for PC applications, I kind of mentioned our goals. 156 00:11:36,700 --> 00:11:39,960 And the way that we're going to cover those is we're going to monitor communications, 157 00:11:40,280 --> 00:11:43,180 basically man-in-the-middle all communications from that application. 158 00:11:44,820 --> 00:11:47,160 We're going to determine if the device trusts us. 159 00:11:47,180 --> 00:11:47,760 The PC application. 160 00:11:48,240 --> 00:11:50,760 And we're going to determine if the cloud trusts the PC application. 161 00:11:51,140 --> 00:11:53,200 And basically, how does it establish that trust? 162 00:11:53,380 --> 00:11:55,640 Is it done based on user-supplied credentials? 163 00:11:56,000 --> 00:11:57,740 Is it done based on magic values? 164 00:11:58,280 --> 00:11:59,680 Kind of how is that set up? 165 00:12:01,080 --> 00:12:05,560 We also wanted to look at how the PC application then stores its configuration. 166 00:12:05,900 --> 00:12:09,560 If it's got your credentials, does it just store them in a text file on your desktop? 167 00:12:09,820 --> 00:12:12,760 Or how does it properly store your data? 168 00:12:13,460 --> 00:12:16,380 How does it do device backups, for example? 169 00:12:16,520 --> 00:12:17,160 Basically, anything. 170 00:12:17,180 --> 00:12:19,000 Any data that it collects, what does it do with it? 171 00:12:19,760 --> 00:12:22,940 And then we just wanted to look for general software bad practices. 172 00:12:23,420 --> 00:12:26,820 Basically, is this an application that you shouldn't install on your computer? 173 00:12:26,960 --> 00:12:28,560 Should be flagged as malware kind of thing. 174 00:12:31,280 --> 00:12:34,280 For mobile applications, a bit of a similar approach. 175 00:12:34,740 --> 00:12:39,400 We wanted to look at communications as one of our primary focuses. 176 00:12:40,560 --> 00:12:44,360 So the way that you do that, I'm sure there's lots of talks on. 177 00:12:44,500 --> 00:12:46,440 But generally speaking, you want a man-in-the-middle of 178 00:12:46,440 --> 00:12:48,480 communications for web communications. 179 00:12:48,760 --> 00:12:50,460 You probably want to send them through a web proxy. 180 00:12:51,320 --> 00:12:57,520 So on iOS, you can set up maybe HTTPS certificates so that you can man-in-the-middle those 181 00:12:57,520 --> 00:13:04,320 communications. You can configure Wi-Fi to point everything to a proxy and a similar setup 182 00:13:04,320 --> 00:13:05,260 on Android as well. 183 00:13:06,360 --> 00:13:11,140 We then wanted to decompile the applications, look for various secrets, whether those were 184 00:13:11,800 --> 00:13:14,040 API keys, magic values, what have you. 185 00:13:15,080 --> 00:13:16,200 We wanted to determine. 186 00:13:16,440 --> 00:13:18,860 How the cloud trusted the mobile application. 187 00:13:20,020 --> 00:13:26,500 And we wanted to look at, once again, how configuration data is stored, how backups are performed, etc. 188 00:13:27,260 --> 00:13:32,100 Phones are generally at less risk of having malware installed on them. 189 00:13:32,160 --> 00:13:36,200 But we still wanted to see some best practices regarding mobile applications. 190 00:13:37,660 --> 00:13:41,940 So kind of the OWASP's top 10 for mobile is the kind of things that we were looking at. 191 00:13:44,440 --> 00:13:46,140 And then finally, for cloud communication. 192 00:13:47,140 --> 00:13:52,440 Really, we wanted to look at authentication, and we wanted to look at general security and encryption. 193 00:13:52,980 --> 00:13:59,600 We wanted to see if there was a special set of communications that the mobile app would use compared to your device. 194 00:14:00,860 --> 00:14:05,400 Just kind of get an idea of what gets communicated out to the Internet and back. 195 00:14:06,060 --> 00:14:10,080 And one of the interesting areas that we wanted to focus on is how is a device initially registered. 196 00:14:10,300 --> 00:14:11,940 So you go to Best Buy, you buy a camera. 197 00:14:12,280 --> 00:14:15,420 How does their cloud system know to trust that camera? 198 00:14:15,520 --> 00:14:16,420 Does it have a unique system? 199 00:14:16,420 --> 00:14:18,320 Is it a static secret? 200 00:14:18,320 --> 00:14:18,960 Is it a static secret? 201 00:14:19,220 --> 00:14:20,340 Is there just no secrets? 202 00:14:20,800 --> 00:14:22,860 Kind of how that was set up. 203 00:14:24,520 --> 00:14:29,560 On the downside, since we just went out to the store and bought a whole bunch of devices, 204 00:14:31,000 --> 00:14:35,640 we didn't have written permission from any of these companies to go ahead and hack all their stuff. 205 00:14:36,000 --> 00:14:40,540 So from a hardware perspective and a software perspective, that's fine. 206 00:14:40,760 --> 00:14:42,240 We don't need to ask them necessarily. 207 00:14:42,760 --> 00:14:44,920 But when it comes to their web servers, 208 00:14:46,420 --> 00:14:49,040 we're looking at criminal charges for pen testing their server without permission. 209 00:14:49,420 --> 00:14:55,220 So we had to be very careful that we were really only looking passively and really only using the applications as intended. 210 00:14:57,380 --> 00:15:01,680 But it was a bit disappointing because in addition to looking at hardware, 211 00:15:01,820 --> 00:15:08,900 I've looked at a lot of web applications and a lot of the stuff I was seeing just red flags everywhere in terms of this is probably not done properly. 212 00:15:09,680 --> 00:15:11,000 But we had to draw the line. 213 00:15:13,180 --> 00:15:13,780 All right. 214 00:15:13,840 --> 00:15:16,400 So that's more than enough. 215 00:15:16,400 --> 00:15:18,620 That's more or less all I have to say on techniques and goals. 216 00:15:19,860 --> 00:15:22,320 I'm going to jump right into the results. 217 00:15:22,780 --> 00:15:27,440 So we had 14 different devices and I kind of split them up into three categories. 218 00:15:28,440 --> 00:15:30,840 Cameras, home automation and thermostats. 219 00:15:31,580 --> 00:15:35,700 The Nest Protect is not really a thermostat, but it's close enough. 220 00:15:37,320 --> 00:15:45,100 And so our goal with the devices that we chose was we wanted to kind of try and pick what some of the industry or market leading devices were. 221 00:15:45,640 --> 00:15:51,440 This is a little bit difficult to do for Internet of Things because every company, you look up their device description and it's the market leader. 222 00:15:52,520 --> 00:15:55,120 But that can only probably be true for one of them. 223 00:15:55,280 --> 00:16:00,640 So we did a mix of what devices have already kind of sold really well and a lot of people have them. 224 00:16:00,820 --> 00:16:06,040 And then we also tried to pick some devices that looked like they'd be the up and coming market leaders potentially. 225 00:16:06,560 --> 00:16:08,440 So I don't know if we got that exactly right. 226 00:16:08,520 --> 00:16:11,200 I'm sure people have their whole business job to figure out that. 227 00:16:11,320 --> 00:16:14,120 But this was this was kind of the group of them that we came up with. 228 00:16:16,680 --> 00:16:22,300 So the first device I have results for is the D-Link DCS-2132L. 229 00:16:22,540 --> 00:16:24,240 So this is a camera. 230 00:16:24,340 --> 00:16:29,200 I don't have a picture of it here because I figured I don't need to have more than 100 slides. 231 00:16:31,180 --> 00:16:37,440 And so this is a camera that I believe is just wired, no wireless. 232 00:16:39,340 --> 00:16:42,600 It has, maybe it's wireless. 233 00:16:44,200 --> 00:16:45,080 The main thing about this device is that it's a wireless device. 234 00:16:45,100 --> 00:16:52,140 The main findings that we had on this was that it has a proprietary UDP protocol that it uses to handle all its communications. 235 00:16:52,920 --> 00:16:59,780 And this is a custom protocol, but it's also a protocol that just transmits all its data and clear text. 236 00:17:00,160 --> 00:17:04,700 It has some hashes set on the messages it sends to do authentication. 237 00:17:05,460 --> 00:17:12,060 But technically, there's nothing stopping someone from out of the middling all those communications and replaying messages and other issues. 238 00:17:12,980 --> 00:17:14,360 For a lot of these devices, 239 00:17:14,360 --> 00:17:20,580 we, instead of just blindly testing them, we went out and looked at what past research has been done. 240 00:17:20,820 --> 00:17:26,900 And so for this device, several other people have already investigated different aspects of it. 241 00:17:27,040 --> 00:17:33,680 And so for that UDP protocol, there's a great write up online of someone who reverse engineered the whole protocol. 242 00:17:34,680 --> 00:17:41,660 They did that by looking at the PC application, looking at all its commands, and then getting an understanding of how it was set up. 243 00:17:42,060 --> 00:17:44,340 And what they basically discovered is that, 244 00:17:44,360 --> 00:17:55,560 the hashing mechanism used to authenticate the messages can be used against the device to actually retrieve the password from the device that it uses for authentication. 245 00:17:56,280 --> 00:18:00,240 You can then send a custom command that says, hey, execute a program for me. 246 00:18:00,700 --> 00:18:09,920 So you have to have the password, which you first retrieved by abusing the hashes, and then it will basically let you execute any command you want. 247 00:18:10,160 --> 00:18:11,160 So that was, 248 00:18:12,500 --> 00:18:14,340 that was a vulnerability that we found. 249 00:18:14,340 --> 00:18:16,440 That was already out there, it had been out for about a year. 250 00:18:17,580 --> 00:18:20,200 The management interface of this device uses plain HTTP. 251 00:18:20,980 --> 00:18:21,880 It was kind of weird. 252 00:18:21,960 --> 00:18:25,500 This device has both HTTP and HTTPS ports open. 253 00:18:27,260 --> 00:18:30,200 But when you hit the HTTP port, it doesn't redirect you. 254 00:18:30,280 --> 00:18:31,640 It just says, all right, we're going to do HTTP. 255 00:18:32,280 --> 00:18:35,780 So conceivably, most users would never even hit the secured interface. 256 00:18:36,480 --> 00:18:41,000 And that management interface can be used to configure the camera as well as to actually view the camera feed. 257 00:18:41,140 --> 00:18:44,060 So it's quite likely that a lot of users would use it in that way. 258 00:18:45,620 --> 00:18:49,080 So this device had a PC application that you could use as well to configure it. 259 00:18:50,540 --> 00:18:55,780 And it had a function where you could backup the configuration and settings from the device. 260 00:18:56,680 --> 00:19:01,620 We found that when we did that, it basically stored it to a text file in the device's directory. 261 00:19:02,120 --> 00:19:06,740 And it was a clear text file of all the configuration, including the passwords and plain text. 262 00:19:07,720 --> 00:19:13,440 So if users I guess weren't aware of this, it's quite possible that they've just got a file sitting around with 263 00:19:13,440 --> 00:19:14,240 whatever they've defined. 264 00:19:14,340 --> 00:19:20,820 as their camera password on it probably more of a risk is that this application checks for updates 265 00:19:21,480 --> 00:19:28,180 to see if there's a new version of the application new software out etc and it does that by hitting 266 00:19:28,180 --> 00:19:33,020 a plain http url checking if it says there's an update and then downloading whatever updates 267 00:19:33,020 --> 00:19:37,940 specified and basically installing it so if someone is running this application on a laptop 268 00:19:37,940 --> 00:19:43,520 and on a secured wi-fi point for example it'd be very easy for an attacker to man in the middle 269 00:19:43,520 --> 00:19:46,640 their connection and say oh yeah i have an update for you go download this binary 270 00:19:47,600 --> 00:19:52,920 so basically having this application with auto update feature puts your computer at a lot of risk 271 00:19:53,860 --> 00:19:57,620 and like i mentioned the kind of side benefit of this application 272 00:19:58,180 --> 00:20:04,580 from the other perspective is that it can be decompiled to figure out the udp protocol info 273 00:20:07,380 --> 00:20:12,920 so there's also a mobile application that works with this device once you log in 274 00:20:13,520 --> 00:20:18,380 to your camera through this application your login will never time out so if you actually 275 00:20:18,380 --> 00:20:21,560 restart your phone or close the application then you're fine but 276 00:20:22,280 --> 00:20:26,300 if you let your friend borrow your phone they can just open this app and it'll be good to go 277 00:20:27,280 --> 00:20:35,420 the application does use https to talk to the mydlink servers and these servers then basically 278 00:20:35,420 --> 00:20:42,700 provide the credentials and connection information for how to get to your camera and by default your 279 00:20:43,520 --> 00:20:47,980 camera will be set up to only go over plain http so conceivably you can configure it to be more 280 00:20:47,980 --> 00:20:54,520 secure but by default um you're going to be using an http connection from this app 281 00:20:55,200 --> 00:20:59,880 there's no certificate pinning for the connection to mydlink 282 00:20:59,880 --> 00:21:04,240 and i've got this noted wherever it's the case on mobile applications 283 00:21:04,960 --> 00:21:11,060 it's not a huge risk but some vendors pin their certificates so that people can't 284 00:21:11,060 --> 00:21:15,940 get infected on their jailbroken devices easily, or non-jailbroken 285 00:21:15,940 --> 00:21:19,900 even, I guess. So it's a small risk, 286 00:21:20,000 --> 00:21:23,960 but it's there. And then one of the My D-Link websites still 287 00:21:23,960 --> 00:21:27,080 uses plain HTTP, so this one was less critical, but 288 00:21:27,080 --> 00:21:31,460 an attacker still might be able to influence certain things. 289 00:21:32,880 --> 00:21:35,940 And so finally, the D-Link cloud can be 290 00:21:35,940 --> 00:21:39,920 used to store camera data, but users can 291 00:21:39,920 --> 00:21:43,820 also connect directly to their camera without using the D-Link cloud. So for this 292 00:21:43,820 --> 00:21:47,980 device, you kind of had both options. You could make some use of the cloud functionality, or you could ignore it 293 00:21:47,980 --> 00:21:48,580 and just go direct. 294 00:21:53,300 --> 00:21:55,880 So, as I suspected, this 295 00:21:55,880 --> 00:21:59,660 picture is way too small for anyone to see, but basically, the 296 00:21:59,660 --> 00:22:03,740 person that reverse-engineered this protocol and found the vulnerability went as far as making a 297 00:22:03,740 --> 00:22:07,820 Metasploit plugin for that. And so basically, the first 298 00:22:07,820 --> 00:22:09,480 option, the Metasploit plugin you can run, 299 00:22:09,920 --> 00:22:13,860 is retrieve me the password hash. So we'll give you a hash password. I think 300 00:22:13,860 --> 00:22:16,880 it's an MD5, though, so chances are pretty good you're going to be able to crack it. 301 00:22:17,980 --> 00:22:22,100 So that's what I have showing here. And then once you have the password, 302 00:22:22,240 --> 00:22:25,920 then you can tell it to execute a command. So in this window, I'm basically telling 303 00:22:25,920 --> 00:22:29,860 it, hey, execute the command, touch temp slash 304 00:22:29,860 --> 00:22:33,780 touched. Basically, create a file in the temp folder so I know if it's run. 305 00:22:35,080 --> 00:22:38,000 And then from my own SSH session to the device, 306 00:22:38,220 --> 00:22:39,520 I logged in and checked. 307 00:22:39,920 --> 00:22:42,640 And sure enough, the file called touch was created as soon as I ran that command. 308 00:22:43,220 --> 00:22:47,500 So what was interesting with all of this is I saw this and I thought, okay, I mean, that's not good. 309 00:22:48,360 --> 00:22:51,920 But our camera is like we got it from the store, 310 00:22:52,020 --> 00:22:55,840 a fairly old version, which is kind of a problem for a lot of Internet of Things 311 00:22:55,840 --> 00:22:58,940 devices. It's up to the user to install updates. 312 00:22:59,740 --> 00:23:03,260 So I'll download the latest update, came out, whatever, six months ago. 313 00:23:03,560 --> 00:23:07,800 We'll be fine. So that's what I did. And then I reran 314 00:23:07,800 --> 00:23:09,900 through all this code, and it actually still works. 315 00:23:09,920 --> 00:23:13,480 Just fine. So as of yet, there's no patch from D-Link for this vulnerability. 316 00:23:14,160 --> 00:23:17,100 If you or anyone you know has this camera, they're vulnerable to this. 317 00:23:21,060 --> 00:23:23,320 So next, I have how to get a serial console. 318 00:23:23,540 --> 00:23:26,140 And I basically got a slide on this for every device I looked at. 319 00:23:27,440 --> 00:23:31,320 My thoughts being, I've only spent a few days testing these devices. 320 00:23:31,560 --> 00:23:33,980 If any of you guys are interested or already have one of these devices, 321 00:23:34,500 --> 00:23:39,200 I'd be more than happy for people to take it further, test these devices further, find some 322 00:23:40,020 --> 00:23:44,680 additional exciting vulnerabilities, and really having access to the file system is kind of the 323 00:23:44,680 --> 00:23:50,060 first step you're going to need for that. So for this device, you can basically wire out a serial 324 00:23:50,060 --> 00:23:55,260 connector here. I'm going to post all the slides later. So you can like zoom in and it'll look nice. 325 00:23:55,520 --> 00:24:00,080 But basically, there's a serial connector right on the board. You just hold down the Enter key 326 00:24:00,080 --> 00:24:05,860 while the device is booting, and you'll drop to a U-boot prompt. From there, you can modify the 327 00:24:05,860 --> 00:24:08,560 boot arguments. It's basically the strategy. 328 00:24:08,560 --> 00:24:15,380 You can then boot directly to a shell, change the root password to something new, reboot the device, 329 00:24:15,620 --> 00:24:18,280 and instead of booting to a shell, just have it boot to the normal init scripts. 330 00:24:19,500 --> 00:24:25,220 From doing that, we were able to extract the root password hash and crack it and determine it to be 331 00:24:25,220 --> 00:24:30,420 this value. Since that time, someone else already did the same thing. So you can also just find this online. 332 00:24:31,980 --> 00:24:37,020 I've listed out the FCC ID for all these devices as well. Some devices are going to have different 333 00:24:37,020 --> 00:24:38,160 hardware revisions over time. 334 00:24:39,060 --> 00:24:42,020 Conceivably, they're required to have a new FCC ID when that's the case. 335 00:24:42,460 --> 00:24:47,360 So if you're looking at my slides in a month, and you're like, this doesn't make sense at all, it's a good thing to check. 336 00:24:50,680 --> 00:24:57,180 And so here's basically the commands that we ran to change the boot arguments to run 337 00:24:58,240 --> 00:25:04,680 basically a shell as the init script instead of the normal init scripts, and then to tell the device to continue booting. 338 00:25:04,720 --> 00:25:07,900 So you can take those two commands, copy and paste them into your U-boot shell, 339 00:25:08,560 --> 00:25:12,380 and you'll drop to an init, you'll drop to a shell prompt, which is what we've got here. 340 00:25:13,120 --> 00:25:18,000 The one thing to note on this device is that it's got a watchdog function that still runs even though we're not running 341 00:25:18,860 --> 00:25:23,920 the normal init scripts, and it kicks off after about a minute. 342 00:25:23,980 --> 00:25:26,560 So you're going to want to look at the password or change it quickly. 343 00:25:27,220 --> 00:25:31,020 Or if you really want, just fire the watchdog properly so it doesn't reboot. 344 00:25:33,960 --> 00:25:38,160 All right, so the next device that we looked at was the DropCam Pro. 345 00:25:38,740 --> 00:25:46,660 This device was something that my coworkers had actually looked at last year and did a presentation on at DEF CON last year. 346 00:25:47,160 --> 00:25:51,540 So we were mostly looking at, is there anything new that we're going to find in a few days? 347 00:25:51,940 --> 00:25:57,400 And we wanted to make sure we continue to focus on the mobile and PC applications as well. 348 00:25:58,260 --> 00:26:01,840 So more or less what we found is not much had changed. 349 00:26:02,420 --> 00:26:08,420 This device is built on top of the Umbrella Dev Kit, which is another device that we look at here. 350 00:26:08,560 --> 00:26:16,540 Also was that Dev Kit has some interesting functions, but overall seems to at least have considered security. 351 00:26:16,820 --> 00:26:19,280 So it's a good enough starting point, I guess. 352 00:26:20,680 --> 00:26:25,600 This device does have an exposed serial port, but generally was found to be quite secure. 353 00:26:26,780 --> 00:26:33,800 For the PC applications, there was older versions of it, which were vulnerable to DLL hijacking. 354 00:26:33,940 --> 00:26:38,540 This was something that my coworkers had found, but we were waiting on DropCam to find. 355 00:26:38,560 --> 00:26:40,420 So we thought that would be a good thing to fix before they could talk about it. 356 00:26:40,460 --> 00:26:42,900 So they didn't have that presented last year at DEF CON, 357 00:26:43,100 --> 00:26:49,620 but basically the application could put a user at some risk of malware getting on there, 358 00:26:50,180 --> 00:26:55,200 injecting a DLL and then running with all the permissions and access that this application would have. 359 00:26:55,860 --> 00:26:57,340 That's since been fixed. 360 00:26:59,320 --> 00:27:07,300 On the OS X binaries, instead of downloading the Mac software from the internet, 361 00:27:07,480 --> 00:27:08,540 the camera itself is actually running on the OS X binaries. 362 00:27:08,540 --> 00:27:13,080 The Mac software itself acts as a USB drive if you plug it into your computer and you can run the binaries to run the setup scripts. 363 00:27:13,860 --> 00:27:16,280 They found that these have rewrite execute permissions. 364 00:27:17,660 --> 00:27:22,140 So malware could conceivably, or if you're buying a used camera or what have you, 365 00:27:22,200 --> 00:27:27,000 someone could easily rewrite that binary to something else and a user would know the difference. 366 00:27:28,140 --> 00:27:30,520 That vulnerability, I don't believe has been fixed yet. 367 00:27:30,620 --> 00:27:34,520 When we were testing these devices a few months ago, it was still a problem. 368 00:27:37,860 --> 00:27:38,520 For the most part, it's a good thing. 369 00:27:38,520 --> 00:27:41,260 For the mobile application, the login credentials are stored in the keychain, 370 00:27:41,400 --> 00:27:43,960 which is generally a good place to store them. 371 00:27:44,220 --> 00:27:48,640 Although if you have a jailbroken device, also a very easy and obvious target for malware. 372 00:27:50,220 --> 00:27:57,800 There's no SSL cert pinning, but that's just a risk that companies can choose to take or not take. 373 00:27:58,540 --> 00:28:01,360 And communications were all done properly over SSL. 374 00:28:01,460 --> 00:28:03,860 So certificates were validated even though they weren't pinned. 375 00:28:06,120 --> 00:28:07,680 Dropchem has an interesting setup, 376 00:28:07,760 --> 00:28:08,500 Dropchem has an interesting setup, 377 00:28:08,520 --> 00:28:11,000 if the video is only stored in the cloud, there's no local recording. 378 00:28:11,600 --> 00:28:13,800 So you need to make use of their cloud services. 379 00:28:16,320 --> 00:28:22,040 If you want storage of the video and the communications to the cloud, 380 00:28:22,220 --> 00:28:26,940 once again, on the device, on the mobile, certificates were checked properly. 381 00:28:27,280 --> 00:28:29,140 So we didn't find a ton of new stuff there. 382 00:28:29,480 --> 00:28:33,820 We weren't too surprised by that because my coworkers had spent like a month on it before. 383 00:28:33,980 --> 00:28:37,000 So spending a few more days, we mostly just had time to look at what was new. 384 00:28:40,140 --> 00:28:43,200 And so here's basically the summary of how to get a serial console 385 00:28:43,200 --> 00:28:45,920 if you want to explore the Dropchem yourself more. 386 00:28:47,200 --> 00:28:52,340 You're going to basically want to drop to an AM boot shell, modify the boot arguments, 387 00:28:52,880 --> 00:28:56,920 boot to that shell, change your root password, and then reboot the device normally. 388 00:28:58,720 --> 00:29:01,660 The serial console for this one didn't have a nice set of pins, 389 00:29:01,820 --> 00:29:03,680 but it's not too hard to wire up an adapter. 390 00:29:07,360 --> 00:29:08,140 But it's not too hard to wire up an adapter. 391 00:29:08,140 --> 00:29:08,500 But it's not too hard to wire up an adapter. 392 00:29:08,500 --> 00:29:12,060 So here's the two commands you're going to want to run once you're in the AM boot shell. 393 00:29:12,840 --> 00:29:16,960 Something to note is that the first command makes changes persistently. 394 00:29:17,080 --> 00:29:20,280 In U-boot, when you change the boot arguments, they don't persist generally. 395 00:29:20,900 --> 00:29:22,040 But for this one, they do. 396 00:29:22,300 --> 00:29:27,180 So you can run the showptb command to see what your original boot string was 397 00:29:27,180 --> 00:29:31,020 instead of just blindly overwriting it so that you can make a copy of it, 398 00:29:31,060 --> 00:29:36,120 change it back so the device can boot normally after you're done accessing the file system. 399 00:29:40,360 --> 00:29:46,560 So the next camera that we looked at was the Fostcam FI-9826W. 400 00:29:47,560 --> 00:29:51,180 We looked at this one not necessarily because it was the industry leader, 401 00:29:51,300 --> 00:29:54,820 but because it's been around a while and people have hacked it like no tomorrow. 402 00:29:56,040 --> 00:30:03,260 So this camera also has the fun feature where it can rotate and pivot to really see a whole room. 403 00:30:04,580 --> 00:30:08,240 So this device has, like I said, had a long history of people hacking it. 404 00:30:08,260 --> 00:30:08,480 So this device has, like I said, had a long history of people hacking it. 405 00:30:09,780 --> 00:30:10,260 So this device has, like I said, had a long history of people hacking it. 406 00:30:10,260 --> 00:30:12,320 By default, it uses plain text communications. 407 00:30:12,720 --> 00:30:16,660 They secured this by going over port 88 instead of port 80. 408 00:30:18,940 --> 00:30:22,980 And people have kind of looked up how they do backups and firmware updates, 409 00:30:23,240 --> 00:30:27,160 both of which get encrypted to a static key. 410 00:30:27,420 --> 00:30:29,940 So you can potentially dump that key out of the firmware, 411 00:30:30,180 --> 00:30:33,640 and then if you get access to someone's backup of this device, 412 00:30:33,960 --> 00:30:37,820 you can decrypt that and get access to all the configuration data, passwords, etc. 413 00:30:38,080 --> 00:30:38,480 you can decrypt that and get access to all the configuration data, passwords, etc. 414 00:30:39,520 --> 00:30:43,140 Since they do have a history of people hacking them, 415 00:30:43,240 --> 00:30:45,920 they've got like six different little inserts in the box 416 00:30:45,920 --> 00:30:48,860 that tell you you should use it securely and change your passwords. 417 00:30:49,360 --> 00:30:52,300 And they do actually even require you to set a password 418 00:30:52,300 --> 00:30:53,560 when you're first setting up the device, 419 00:30:53,760 --> 00:30:56,560 so that you can't just continue to use the defaults. 420 00:30:56,780 --> 00:30:58,120 So that's good to see. 421 00:30:58,680 --> 00:31:02,080 But as our testing showed, there was still a lot of other issues that remained. 422 00:31:04,080 --> 00:31:05,980 For the PC application, 423 00:31:07,360 --> 00:31:08,480 For the PC application, 424 00:31:08,480 --> 00:31:14,000 the version that we had used an ActiveX control to load up the camera view, 425 00:31:15,680 --> 00:31:18,880 or you had the option of downloading a separate application altogether, 426 00:31:19,120 --> 00:31:20,860 and it could tie in instead. 427 00:31:22,040 --> 00:31:24,580 We later on did a firmware update on this device, 428 00:31:24,780 --> 00:31:26,640 and then instead of an ActiveX control, 429 00:31:26,820 --> 00:31:28,860 which I guess they started to have trouble with people running, 430 00:31:29,040 --> 00:31:32,140 like I could not even make it work after I turned off all the security warnings, 431 00:31:33,660 --> 00:31:35,980 they've just got a regular binary that you run, 432 00:31:36,120 --> 00:31:37,980 which I imagine has a lot of the same functionality 433 00:31:38,480 --> 00:31:39,440 that your ActiveX control did. 434 00:31:42,660 --> 00:31:44,300 So for their mobile application, 435 00:31:44,740 --> 00:31:46,520 they stored credentials in the keychain. 436 00:31:46,960 --> 00:31:48,740 They didn't have cert pinning. 437 00:31:50,320 --> 00:31:54,520 And how it communicated would depend on how you configured the camera. 438 00:31:54,740 --> 00:31:57,220 You could tell it to communicate over a secure port, 439 00:31:57,400 --> 00:31:59,520 or you could tell it to communicate over the default, 440 00:31:59,760 --> 00:32:00,580 which is plain text. 441 00:32:01,200 --> 00:32:06,060 We also found various hard-coded API keys in their mobile application. 442 00:32:07,540 --> 00:32:09,820 My notes aren't working great on my presentation, 443 00:32:10,100 --> 00:32:12,880 but I believe it was API keys to their service, 444 00:32:13,020 --> 00:32:15,080 as well as to some other services as well, 445 00:32:15,160 --> 00:32:16,500 like Twitter or what have you. 446 00:32:18,880 --> 00:32:21,380 They don't actually have a cloud solution at all. 447 00:32:21,900 --> 00:32:25,280 So instead, you can put an SD card into the device and record to that. 448 00:32:26,440 --> 00:32:29,100 Otherwise, you can record data on the device, 449 00:32:29,300 --> 00:32:32,060 and I think it gets erased after you reboot the device. 450 00:32:33,140 --> 00:32:34,820 So you've got those two options. 451 00:32:34,820 --> 00:32:38,380 Or you can just tie into their stream and record that however you choose. 452 00:32:41,300 --> 00:32:45,020 So this text is small, but maybe you'll be able to see it. 453 00:32:45,080 --> 00:32:48,100 But basically, I dropped to the serial bootloader here 454 00:32:48,660 --> 00:32:50,200 and watched the device boot up. 455 00:32:50,700 --> 00:32:53,800 And part of the text that scrolled past 456 00:32:54,920 --> 00:32:56,720 was some text that included this. 457 00:32:57,080 --> 00:32:59,680 And I thought, huh, that's interesting. 458 00:32:59,820 --> 00:33:03,040 And basically, it's just the output of them running a bash script, 459 00:33:03,120 --> 00:33:04,160 running a bunch of commands. 460 00:33:04,820 --> 00:33:05,560 And it basically says, 461 00:33:05,740 --> 00:33:08,680 changing password for FTP user 1, new password. 462 00:33:09,000 --> 00:33:11,820 And then it says, bad password, too short, retype password. 463 00:33:12,180 --> 00:33:14,040 And then it says, password changed by root. 464 00:33:14,880 --> 00:33:18,280 So I saw this, and I just really quickly skimmed over it in my mind. 465 00:33:18,340 --> 00:33:21,360 And I thought, huh, I bet this user has a bad password. 466 00:33:21,760 --> 00:33:23,400 That's what Linux is trying to tell me. 467 00:33:23,700 --> 00:33:25,620 So I tried all the defaults, 468 00:33:25,620 --> 00:33:30,780 like FTP user 1 slash root, FTP user 1 slash password. 469 00:33:32,140 --> 00:33:34,440 And I don't really want to admit it, 470 00:33:34,440 --> 00:33:36,200 but I spent like half an hour looking through stuff, 471 00:33:36,400 --> 00:33:38,320 going through their file system, looking at their init scripts. 472 00:33:38,720 --> 00:33:40,520 And everything I looked at said, like, 473 00:33:40,540 --> 00:33:43,620 this script runs, it takes an argument, changes the password. 474 00:33:43,880 --> 00:33:46,200 But everywhere I looked, there was no arguments being passed in. 475 00:33:46,400 --> 00:33:48,560 And so then finally, the light bulb went off in my mind. 476 00:33:48,700 --> 00:33:51,060 Oh, they are just passing in no password. 477 00:33:51,280 --> 00:33:52,520 And I tried with no password, 478 00:33:52,640 --> 00:33:56,540 and then it immediately dropped me to a shell right here. 479 00:33:58,320 --> 00:33:59,860 And it had a message that said, 480 00:33:59,920 --> 00:34:01,720 you are welcomed by Foscam R&D. 481 00:34:01,880 --> 00:34:04,200 So at least they welcomed me. 482 00:34:04,200 --> 00:34:06,360 Once I finally realized that there was no password. 483 00:34:07,640 --> 00:34:09,260 And so this was great to see, 484 00:34:09,340 --> 00:34:10,980 because even in the latest version of their firmware, 485 00:34:12,040 --> 00:34:13,860 this will get you right to a root shell 486 00:34:14,580 --> 00:34:16,720 if you don't want to go through U-boot first. 487 00:34:18,520 --> 00:34:20,740 This is only over the serial line, 488 00:34:20,940 --> 00:34:22,780 but still funny to see. 489 00:34:24,320 --> 00:34:27,320 So once we got access to the serial console, 490 00:34:27,660 --> 00:34:30,560 I dumped out the password hash for the old version of the firmware 491 00:34:30,560 --> 00:34:31,980 and for the new version of the firmware. 492 00:34:32,780 --> 00:34:34,140 It's different in both cases. 493 00:34:34,200 --> 00:34:37,540 I didn't immediately find any reference to these online, 494 00:34:37,740 --> 00:34:39,560 so I'm not sure that anyone else has cracked them yet. 495 00:34:40,220 --> 00:34:43,260 So you guys can, if anyone wants to take these, 496 00:34:43,340 --> 00:34:44,440 crack them, I'd be pleased. 497 00:34:44,960 --> 00:34:45,980 You don't have to, 498 00:34:46,000 --> 00:34:47,780 because these are really only used for the serial console. 499 00:34:48,040 --> 00:34:50,020 You could just change these to something new, 500 00:34:50,120 --> 00:34:52,640 but it might be interesting to see what they use for the password. 501 00:34:52,840 --> 00:34:55,620 It would be great if like the whole Foscam R&D team 502 00:34:55,620 --> 00:34:56,420 uses this for everything. 503 00:34:57,080 --> 00:34:58,240 Companies never do that though, 504 00:34:58,320 --> 00:34:59,780 so it's probably not an issue. 505 00:35:00,560 --> 00:35:00,960 Sure. 506 00:35:02,460 --> 00:35:04,020 Another interesting thing is that, 507 00:35:04,200 --> 00:35:05,060 old versions of their firmware, 508 00:35:05,160 --> 00:35:07,100 people just looked in the firmware, 509 00:35:07,220 --> 00:35:09,160 found the OpenSSL command they use 510 00:35:09,160 --> 00:35:10,960 to encrypt and decrypt the firmware images 511 00:35:10,960 --> 00:35:11,940 when they're doing an update. 512 00:35:12,480 --> 00:35:13,880 And so those you can find online. 513 00:35:14,420 --> 00:35:15,740 For the newest version of firmware, 514 00:35:16,380 --> 00:35:17,740 someone basically just said, 515 00:35:17,880 --> 00:35:19,740 oh, no one knows what the new decryption thing is. 516 00:35:19,880 --> 00:35:20,720 So I thought to myself, 517 00:35:20,960 --> 00:35:22,640 well, what's stopping me from knowing? 518 00:35:22,740 --> 00:35:23,400 I'll go take a look. 519 00:35:23,680 --> 00:35:25,060 And what I found is basically, 520 00:35:25,160 --> 00:35:27,040 instead of just running the OpenSSL command, 521 00:35:27,340 --> 00:35:29,940 they build up a string of hex bytes, 522 00:35:30,100 --> 00:35:30,800 which is right here, 523 00:35:30,900 --> 00:35:33,360 and then they pass them to a library that they wrote, 524 00:35:33,360 --> 00:35:34,360 called reform string. 525 00:35:35,920 --> 00:35:38,280 Since I had no time to test in these devices, 526 00:35:38,540 --> 00:35:40,120 I spent like 20 minutes on it, 527 00:35:40,200 --> 00:35:41,820 was angry that I couldn't figure it out. 528 00:35:41,900 --> 00:35:45,520 It's just some really simple byte swapping within the string 529 00:35:45,520 --> 00:35:49,020 to transform it back to the OpenSSL command 530 00:35:49,020 --> 00:35:50,540 that'll just have the key there. 531 00:35:51,500 --> 00:35:53,820 So if I get some free time later on, 532 00:35:54,000 --> 00:35:54,720 I'll just do it myself. 533 00:35:55,000 --> 00:35:56,160 Otherwise, this is the function 534 00:35:56,160 --> 00:35:58,000 if anyone else wants to take a stab at it. 535 00:36:01,020 --> 00:36:02,720 So to get a serial console on this device, 536 00:36:04,340 --> 00:36:05,140 pretty straightforward, 537 00:36:05,400 --> 00:36:06,660 like a lot of other devices, 538 00:36:06,900 --> 00:36:08,360 you modify the U-boot arguments, 539 00:36:08,640 --> 00:36:09,580 boot to a shell, 540 00:36:10,160 --> 00:36:11,440 or don't even bother, 541 00:36:11,500 --> 00:36:13,920 just log in using FTP user 1 and a blank password. 542 00:36:15,780 --> 00:36:18,240 And I've kind of got a picture of that there. 543 00:36:20,440 --> 00:36:21,940 The next device we looked at was the, 544 00:36:21,960 --> 00:36:23,960 I don't know how you say this closely, 545 00:36:24,520 --> 00:36:24,920 SimplyCam? 546 00:36:25,140 --> 00:36:26,280 I'll just call it the SimplyCam. 547 00:36:27,120 --> 00:36:29,860 This device, like the DropCam, 548 00:36:30,000 --> 00:36:31,460 is built on the Umbrella dev kit. 549 00:36:32,920 --> 00:36:36,760 It uses HTTPS for all its communications, 550 00:36:37,460 --> 00:36:41,020 but there was no verification of the certificates used, 551 00:36:41,200 --> 00:36:43,200 so you could pass it any self-sign cert you want, 552 00:36:43,300 --> 00:36:44,720 and it would happily accept that. 553 00:36:45,080 --> 00:36:48,140 So HTTPS was providing no additional security. 554 00:36:48,980 --> 00:36:51,200 We reported this to them a couple months ago, 555 00:36:51,280 --> 00:36:55,200 and they claimed that it's now fixed. 556 00:36:55,660 --> 00:36:57,180 And I got a little bit more on that later. 557 00:36:57,820 --> 00:36:59,180 So supposedly that's good. 558 00:36:59,480 --> 00:37:01,300 We just heard back from them last week, 559 00:37:01,460 --> 00:37:04,040 so I haven't had a chance to confirm or deny, 560 00:37:04,260 --> 00:37:05,380 but they say it's fixed. 561 00:37:06,380 --> 00:37:07,520 So I'm presenting it here. 562 00:37:09,680 --> 00:37:11,500 Once you get a shell on the device, 563 00:37:12,000 --> 00:37:13,140 if you need the root password, 564 00:37:13,300 --> 00:37:14,240 instead of trying to crack it, 565 00:37:14,320 --> 00:37:15,680 you can just look in their config file, 566 00:37:15,760 --> 00:37:16,760 and they've got it referenced there. 567 00:37:16,860 --> 00:37:17,980 So that was fun to see. 568 00:37:19,160 --> 00:37:20,400 Firmware updates are encrypted, 569 00:37:21,040 --> 00:37:23,340 and I got a little bit more notes on that in a bit. 570 00:37:23,840 --> 00:37:25,620 The only open port on the device 571 00:37:26,580 --> 00:37:28,520 was the PulseStream Dbus port. 572 00:37:29,040 --> 00:37:32,740 It's like port 16883 or something like that. 573 00:37:34,160 --> 00:37:35,780 And I tried to connect to that 574 00:37:35,780 --> 00:37:38,980 using the Pulse Audio setup in Linux, 575 00:37:39,080 --> 00:37:40,180 but I didn't have any success. 576 00:37:41,460 --> 00:37:42,780 Potentially it could be really fun, 577 00:37:42,900 --> 00:37:43,620 if that works, 578 00:37:43,780 --> 00:37:45,440 to connect into this device 579 00:37:45,440 --> 00:37:47,400 and take over its microphone or speaker. 580 00:37:47,740 --> 00:37:49,800 I'm not sure if that is possible or not, though. 581 00:37:51,780 --> 00:37:53,560 It has a PC application 582 00:37:54,040 --> 00:37:55,420 that, similar to the DropCam, 583 00:37:55,520 --> 00:37:56,680 mounts as a USB device. 584 00:37:56,840 --> 00:37:58,120 You can then run the application, 585 00:37:58,120 --> 00:38:00,740 and this sets up the initial camera configuration and pairing. 586 00:38:02,180 --> 00:38:03,220 When you load that, 587 00:38:03,300 --> 00:38:05,020 its very first connection goes over HTTP. 588 00:38:05,480 --> 00:38:08,140 The SimpliCam website then redirects you to HTTPS, 589 00:38:08,240 --> 00:38:09,500 but there's a little bit of a window there 590 00:38:09,500 --> 00:38:11,000 that an attacker might be able to do something. 591 00:38:12,100 --> 00:38:14,480 Otherwise, there was a whole bunch of magic values 592 00:38:14,480 --> 00:38:15,440 passed back and forth 593 00:38:15,440 --> 00:38:17,640 between the camera software and the camera. 594 00:38:18,200 --> 00:38:19,740 It looked super dubious to me, 595 00:38:19,820 --> 00:38:21,540 but I spent a few hours on it, 596 00:38:21,560 --> 00:38:23,300 couldn't figure out exactly what the structure was. 597 00:38:24,200 --> 00:38:26,020 So if someone wants to look at the binary 598 00:38:26,020 --> 00:38:27,140 and do some reversing on it, 599 00:38:27,140 --> 00:38:29,640 potentially there's some really interesting stuff there 600 00:38:29,640 --> 00:38:31,320 where you could convince a camera to repair 601 00:38:31,320 --> 00:38:32,580 or things like that, 602 00:38:32,700 --> 00:38:35,680 but we weren't able to specifically find 603 00:38:35,680 --> 00:38:36,400 how you could do that. 604 00:38:38,020 --> 00:38:39,120 In the client application, 605 00:38:39,500 --> 00:38:41,220 there was hard-coded API keys 606 00:38:41,220 --> 00:38:43,740 for their closely-linked cloud services 607 00:38:43,740 --> 00:38:45,280 as well as their Twitter account. 608 00:38:46,020 --> 00:38:47,540 They claim that those are fixed, 609 00:38:47,640 --> 00:38:48,600 so hopefully they are. 610 00:38:48,820 --> 00:38:51,060 Hopefully they changed them and didn't just remove them, 611 00:38:51,180 --> 00:38:53,080 because it's probably not too hard 612 00:38:53,080 --> 00:38:54,260 to find an old version of this app. 613 00:38:55,360 --> 00:38:57,120 They don't do certificate pinning, 614 00:38:57,920 --> 00:38:59,460 but on their mobile app, 615 00:38:59,540 --> 00:39:00,220 unlike their device, 616 00:39:00,400 --> 00:39:02,120 they did at least check certificates properly, 617 00:39:02,340 --> 00:39:03,780 so you couldn't just pass a self-signed one in. 618 00:39:05,180 --> 00:39:07,240 And instead of storing stuff in the keychain 619 00:39:07,240 --> 00:39:07,800 or anywhere else, 620 00:39:07,880 --> 00:39:09,540 they're just stored in the phone's file system, 621 00:39:09,600 --> 00:39:12,240 all the configuration tokens, snapshots, and so on. 622 00:39:13,540 --> 00:39:15,200 I think you'd still need physical access 623 00:39:15,200 --> 00:39:17,200 to someone's phone to be able to do anything with those, 624 00:39:17,320 --> 00:39:18,960 but they were there. 625 00:39:20,820 --> 00:39:22,120 For their cloud services, 626 00:39:22,340 --> 00:39:25,100 their website claimed that everything is fully encrypted 627 00:39:25,100 --> 00:39:26,180 and you're all good, 628 00:39:26,180 --> 00:39:27,660 but when we looked at it, 629 00:39:28,580 --> 00:39:30,960 video streams were just sent over plain HTTP. 630 00:39:31,920 --> 00:39:33,520 They claim that that's fixed as well, 631 00:39:34,160 --> 00:39:35,620 so that would be good to see. 632 00:39:36,920 --> 00:39:38,720 Otherwise, you've got a Wi-Fi camera 633 00:39:38,720 --> 00:39:40,280 that's sending a video stream over plain HTTP, 634 00:39:40,540 --> 00:39:42,240 that's going to be pretty easy for people to intercept. 635 00:39:43,040 --> 00:39:45,400 And they offer cloud storage and playback of videos. 636 00:39:48,760 --> 00:39:51,000 So when we initially presented our findings, 637 00:39:51,180 --> 00:39:53,200 we presented them as high-level findings. 638 00:39:53,340 --> 00:39:55,600 We had a news release and so on. 639 00:39:55,600 --> 00:39:57,400 This was back in January or February. 640 00:39:58,140 --> 00:40:00,140 We kind of pointed out the high-level issues 641 00:40:00,140 --> 00:40:01,380 with these devices, 642 00:40:01,480 --> 00:40:03,160 but we didn't go into any of the technical specifics. 643 00:40:04,060 --> 00:40:07,100 And we got a really angry response from them. 644 00:40:07,140 --> 00:40:09,000 Well, the reporters got a really angry response from them 645 00:40:09,000 --> 00:40:11,620 about how it's factually incorrect 646 00:40:11,620 --> 00:40:13,420 that they don't do certificate validation 647 00:40:14,380 --> 00:40:17,000 and Synac's a company that has no credibility. 648 00:40:17,200 --> 00:40:19,040 We can't trust anything they say. 649 00:40:20,220 --> 00:40:23,020 And then two months ago, 650 00:40:23,080 --> 00:40:24,360 getting ready for this presentation, 651 00:40:24,360 --> 00:40:26,080 we sent in the technical details 652 00:40:26,080 --> 00:40:27,380 on the vulnerabilities we found, 653 00:40:27,900 --> 00:40:29,040 anything new we found, 654 00:40:30,700 --> 00:40:34,160 and kind of got like a generic response back 655 00:40:34,160 --> 00:40:35,440 about we're going to forward this along 656 00:40:36,000 --> 00:40:37,160 and then heard nothing. 657 00:40:39,000 --> 00:40:40,860 And then a week ago, 658 00:40:41,020 --> 00:40:41,940 a week and a half ago, 659 00:40:42,080 --> 00:40:43,800 we got an email from them that says, 660 00:40:44,020 --> 00:40:45,180 hey, we just want to let you know 661 00:40:45,180 --> 00:40:46,360 we fixed all your findings. 662 00:40:48,220 --> 00:40:50,140 You said you're going to be presenting these sometime. 663 00:40:51,260 --> 00:40:53,240 You know, kind of tell us a bit about that. 664 00:40:53,240 --> 00:40:54,640 So we told them we were going to present it at DEF CON. 665 00:40:55,080 --> 00:40:56,200 And they said, oh, great. 666 00:40:56,360 --> 00:40:59,120 Like, we're really pleased we could work with you. 667 00:40:59,160 --> 00:41:00,080 We're going to put out a press release. 668 00:41:00,940 --> 00:41:02,800 And so, sorry, 669 00:41:03,580 --> 00:41:05,400 there's this like super positive press release 670 00:41:05,400 --> 00:41:05,940 on their website. 671 00:41:06,080 --> 00:41:07,240 You go look it up and they're like, 672 00:41:07,320 --> 00:41:08,200 Synac's awesome. 673 00:41:08,320 --> 00:41:10,200 We love the security community. 674 00:41:10,860 --> 00:41:12,160 We encourage this kind of stuff. 675 00:41:12,780 --> 00:41:15,540 So I don't know if it's like different people in the company 676 00:41:15,540 --> 00:41:16,600 or a change of heart or what, 677 00:41:16,700 --> 00:41:18,260 but they seem like super happy now. 678 00:41:18,340 --> 00:41:19,260 So that's good to see. 679 00:41:22,120 --> 00:41:24,640 So like I said in the previous slide, 680 00:41:24,800 --> 00:41:26,720 they've got the root password just in their config file. 681 00:41:27,540 --> 00:41:29,280 So I noticed that pretty quickly. 682 00:41:32,720 --> 00:41:34,200 Thought I had more notes on that. 683 00:41:34,860 --> 00:41:35,740 I guess not. 684 00:41:35,960 --> 00:41:38,060 The interesting thing with this right here 685 00:41:38,060 --> 00:41:41,220 is they've got something like a 16-digit root password. 686 00:41:42,160 --> 00:41:44,780 But it's hashed using the normal Unix DES. 687 00:41:45,200 --> 00:41:47,200 So only the first eight characters of it 688 00:41:47,200 --> 00:41:47,980 are going to be used. 689 00:41:48,300 --> 00:41:49,240 And the first eight characters 690 00:41:49,260 --> 00:41:51,340 are just all alphanumeric. 691 00:41:51,440 --> 00:41:52,420 All their symbols and stuff 692 00:41:52,420 --> 00:41:53,460 are at the end of the password. 693 00:41:54,780 --> 00:41:55,420 So conceivably, 694 00:41:55,520 --> 00:41:57,180 even if you didn't have this password, 695 00:41:57,280 --> 00:41:58,800 it wouldn't be too hard to crack. 696 00:41:59,080 --> 00:42:00,560 I just thought that was kind of funny. 697 00:42:02,480 --> 00:42:03,360 To get a console, 698 00:42:03,520 --> 00:42:04,360 just like the DropCam, 699 00:42:04,440 --> 00:42:06,860 you want to modify the amboot arguments 700 00:42:09,260 --> 00:42:10,320 and drop to a shell. 701 00:42:11,420 --> 00:42:13,140 Otherwise, you can just use the hard-coded password. 702 00:42:13,600 --> 00:42:14,500 As far as we can tell, 703 00:42:14,520 --> 00:42:15,540 it's the same on every device. 704 00:42:16,940 --> 00:42:18,220 And there's the commands there. 705 00:42:20,600 --> 00:42:21,800 So the next device we looked at 706 00:42:21,800 --> 00:42:22,900 was the Withings Baby Monitor. 707 00:42:23,200 --> 00:42:24,540 I don't know if anyone here, 708 00:42:24,680 --> 00:42:25,080 probably not, 709 00:42:25,140 --> 00:42:25,880 DEF CON gets crazy, 710 00:42:26,040 --> 00:42:27,440 but there was a talk this morning 711 00:42:27,440 --> 00:42:28,600 from someone on hacking 712 00:42:28,600 --> 00:42:29,680 a whole bunch of baby monitors. 713 00:42:30,240 --> 00:42:31,180 So I was talking to, 714 00:42:31,260 --> 00:42:32,360 I think it was Mark, 715 00:42:32,480 --> 00:42:33,900 who gave that talk yesterday. 716 00:42:34,200 --> 00:42:35,900 I was talking to him yesterday 717 00:42:36,620 --> 00:42:38,300 about his talk coming up this morning. 718 00:42:38,920 --> 00:42:40,560 And he looked at this device as well. 719 00:42:40,740 --> 00:42:42,340 So he's going to have a lot more details 720 00:42:42,340 --> 00:42:42,980 in his presentation. 721 00:42:43,700 --> 00:42:45,660 But here are the main points that I covered. 722 00:42:47,120 --> 00:42:49,000 Basically, the huge issue with this device 723 00:42:49,000 --> 00:42:50,420 is it's got an SSH port open, 724 00:42:50,560 --> 00:42:52,520 and it's just got a fixed root password. 725 00:42:52,960 --> 00:42:55,400 So anyone that can get local network access 726 00:42:55,400 --> 00:42:57,520 can try an SSH into this device as root. 727 00:42:58,820 --> 00:43:01,420 The second huge issue is that it uses HTTP 728 00:43:01,420 --> 00:43:02,420 for all its communications, 729 00:43:02,660 --> 00:43:04,080 not HTTPS. 730 00:43:07,140 --> 00:43:08,820 So anyone can man-in-the-middle 731 00:43:08,820 --> 00:43:09,440 all the communications. 732 00:43:10,460 --> 00:43:12,120 I looked for their GPL code, 733 00:43:12,340 --> 00:43:14,840 because they're using a modified version of U-boot, 734 00:43:14,900 --> 00:43:15,920 all kinds of GPL stuff. 735 00:43:16,380 --> 00:43:18,020 And their support department told me 736 00:43:18,020 --> 00:43:19,100 that they don't give that out. 737 00:43:19,540 --> 00:43:21,460 So someone should probably tell the GPL people. 738 00:43:21,660 --> 00:43:22,020 I don't know. 739 00:43:22,080 --> 00:43:22,880 I don't know if anyone cares, 740 00:43:23,000 --> 00:43:24,000 but I thought that was funny. 741 00:43:24,560 --> 00:43:26,440 They don't have a PC application. 742 00:43:27,800 --> 00:43:30,360 Their Android application had this funny thing 743 00:43:30,360 --> 00:43:31,820 where they've got a user account 744 00:43:31,820 --> 00:43:33,600 coded into the application. 745 00:43:34,060 --> 00:43:36,180 And I think it uses it for initial registration. 746 00:43:36,700 --> 00:43:38,080 And it's got this, like, 747 00:43:38,080 --> 00:43:40,340 hilariously poorly obfuscated password. 748 00:43:40,760 --> 00:43:42,140 And it's like a valid account. 749 00:43:42,300 --> 00:43:43,700 You can log into their service with it. 750 00:43:45,460 --> 00:43:47,320 So we tried to tell them about all these vulnerabilities, 751 00:43:47,320 --> 00:43:48,720 and it just went to a black hole. 752 00:43:49,540 --> 00:43:51,120 So I don't know if they've fixed them. 753 00:43:51,180 --> 00:43:51,960 I don't think they have. 754 00:43:53,500 --> 00:43:56,020 They also have their GCM API key, 755 00:43:56,140 --> 00:43:58,740 the Google services exposed in their Android apps. 756 00:43:58,780 --> 00:44:00,400 If anyone wants to copy that to mess with them, 757 00:44:00,520 --> 00:44:01,340 it's there. 758 00:44:02,960 --> 00:44:04,220 For their cloud playback, 759 00:44:04,740 --> 00:44:05,820 they use RMTP. 760 00:44:06,140 --> 00:44:08,500 And how they generate those hashes looked a bit dubious. 761 00:44:08,600 --> 00:44:11,260 We didn't have time to immediately find any flaws 762 00:44:11,260 --> 00:44:12,020 with how they do it. 763 00:44:12,080 --> 00:44:14,580 But it seems conceivable that it's just based 764 00:44:14,580 --> 00:44:16,180 on the serial number or something like that. 765 00:44:16,180 --> 00:44:18,620 So it might be really easy to tap into people's streams. 766 00:44:21,840 --> 00:44:23,920 So I mentioned it has a fixed root password. 767 00:44:24,200 --> 00:44:25,660 But I spent a whole bunch of time, 768 00:44:25,780 --> 00:44:27,580 and I was not able to crack the root password. 769 00:44:28,560 --> 00:44:30,840 I was both pleased and disappointed to hear 770 00:44:30,840 --> 00:44:32,360 that Mark hadn't been able to crack it either. 771 00:44:33,280 --> 00:44:35,860 So if there's, like, one password to crack at DEF CON, 772 00:44:36,000 --> 00:44:36,540 this is the one. 773 00:44:36,680 --> 00:44:37,740 Hack everyone's baby monitor. 774 00:44:41,240 --> 00:44:43,580 If you're wanting to get to a shell on this device 775 00:44:43,580 --> 00:44:45,520 and change that root password, 776 00:44:45,520 --> 00:44:46,740 so you can log in over SSH, 777 00:44:47,940 --> 00:44:49,640 there's a serial header right on the front of it. 778 00:44:49,900 --> 00:44:51,900 This device is a huge pain to open up 779 00:44:51,900 --> 00:44:53,320 because it's got basically tied, 780 00:44:53,420 --> 00:44:54,940 the circuit board's basically tied down 781 00:44:55,360 --> 00:44:57,240 with the Wi-Fi antennas. 782 00:44:57,560 --> 00:44:59,300 I don't know how they, like, put it together first. 783 00:44:59,400 --> 00:45:00,140 I guess maybe with glue. 784 00:45:00,980 --> 00:45:02,740 But it's a huge pain to disassemble everything. 785 00:45:02,960 --> 00:45:03,940 So you don't actually need to. 786 00:45:03,960 --> 00:45:05,220 You can just kind of half open it, 787 00:45:05,280 --> 00:45:06,660 and the connector's right on the front there, 788 00:45:06,800 --> 00:45:08,060 and get a serial console. 789 00:45:12,100 --> 00:45:12,980 All right. 790 00:45:13,260 --> 00:45:14,780 So I'm getting low on time, 791 00:45:14,940 --> 00:45:17,060 but a bunch of these devices have less findings for us, 792 00:45:17,100 --> 00:45:17,680 so it'll work out okay. 793 00:45:18,220 --> 00:45:20,320 The Ecobee we looked at next was a thermostat. 794 00:45:20,960 --> 00:45:23,280 Its communications were quite well locked down. 795 00:45:23,440 --> 00:45:24,380 It did have a serial port, 796 00:45:25,000 --> 00:45:27,760 but overall was quite decently secure. 797 00:45:29,580 --> 00:45:31,420 Its Android app had no cert pinning, 798 00:45:31,440 --> 00:45:32,900 and the creds were stored in the keychain. 799 00:45:33,720 --> 00:45:35,280 And the cloud storage system 800 00:45:35,280 --> 00:45:37,500 had various settings and history, 801 00:45:38,760 --> 00:45:39,160 configured, 802 00:45:40,060 --> 00:45:42,440 but it used HTTPS appropriately. 803 00:45:43,460 --> 00:45:46,820 And really, we didn't find any real issues with this device. 804 00:45:48,060 --> 00:45:50,540 It's got two different serial ports on it. 805 00:45:50,600 --> 00:45:52,680 One gets you backplate serial, is what they call it. 806 00:45:52,880 --> 00:45:54,120 It just gets you some of the 807 00:45:56,580 --> 00:45:59,640 more, like, readings and raw data from the device. 808 00:46:00,060 --> 00:46:02,400 Another one is what you can use to get an actual shell. 809 00:46:03,120 --> 00:46:05,040 It actually just boots right to a root shell, 810 00:46:05,100 --> 00:46:06,140 so you don't really have to do much. 811 00:46:06,780 --> 00:46:07,700 The only thing you need 812 00:46:08,060 --> 00:46:09,960 is a Torx T6 screwdriver to open the device up. 813 00:46:10,260 --> 00:46:12,340 And then this is the pin out. 814 00:46:12,640 --> 00:46:13,700 Since it's a thermostat, 815 00:46:13,860 --> 00:46:16,660 it runs off 24 volts AC when you want to power it. 816 00:46:18,680 --> 00:46:21,060 I somehow mixed up DC and AC 817 00:46:21,060 --> 00:46:22,300 when I was reading the specs on these. 818 00:46:22,520 --> 00:46:23,860 So when we get to the Lyric, 819 00:46:24,000 --> 00:46:25,160 I'll tell you a bit about that. 820 00:46:25,280 --> 00:46:26,640 But make sure you get an AC adapter, 821 00:46:26,840 --> 00:46:27,780 not a DC adapter. 822 00:46:30,320 --> 00:46:30,920 All right. 823 00:46:30,980 --> 00:46:32,520 The next device is the Hive. 824 00:46:33,120 --> 00:46:36,720 The Hive is a thermostat put out by 825 00:46:36,720 --> 00:46:38,280 British something, 826 00:46:38,600 --> 00:46:41,960 British Gas and Electric, British Gash. 827 00:46:43,740 --> 00:46:45,480 And so it's a thermostat 828 00:46:45,480 --> 00:46:46,660 and actually a few different devices 829 00:46:46,660 --> 00:46:48,420 that can connect to your heating system. 830 00:46:49,460 --> 00:46:52,720 And it's built on top of the alertme.com platform. 831 00:46:53,360 --> 00:46:55,320 We found that overall it had pretty good security. 832 00:46:56,620 --> 00:46:58,580 And we didn't actually have a ton of problems 833 00:46:58,580 --> 00:47:00,260 that we noted with it. 834 00:47:00,460 --> 00:47:03,080 It doesn't have a PC application, as far as I know. 835 00:47:04,600 --> 00:47:06,600 The phone doesn't use cert pinning. 836 00:47:07,700 --> 00:47:09,480 And really the only thing that we noted 837 00:47:09,480 --> 00:47:10,460 with the mobile application 838 00:47:10,460 --> 00:47:12,500 is that some of its contents loaded over HTTP. 839 00:47:13,160 --> 00:47:14,100 It's less sensitive, 840 00:47:14,180 --> 00:47:19,760 but still might be an attack vector to the device. 841 00:47:20,800 --> 00:47:22,660 The communications to the cloud services 842 00:47:22,660 --> 00:47:23,700 were properly encrypted. 843 00:47:24,320 --> 00:47:26,020 The only interesting thing there 844 00:47:26,020 --> 00:47:27,580 is that this is kind of a generic service 845 00:47:27,580 --> 00:47:30,160 that several IoT devices are built on top of. 846 00:47:30,520 --> 00:47:31,800 So if you wanted to pick, 847 00:47:31,880 --> 00:47:33,920 if you want to get some good bang for your buck 848 00:47:33,920 --> 00:47:35,080 for hacking one of these systems, 849 00:47:35,140 --> 00:47:36,300 that might be the one to look at. 850 00:47:37,960 --> 00:47:40,020 And when we're looking in the device itself, 851 00:47:40,220 --> 00:47:41,260 the config files and so on, 852 00:47:41,320 --> 00:47:42,900 there's a bunch of references to test instances. 853 00:47:43,860 --> 00:47:46,380 So as an attacker, that's like a great place to start. 854 00:47:46,520 --> 00:47:47,680 Stuff's probably not secured there. 855 00:47:47,800 --> 00:47:49,180 You'd probably pull down the whole file system, 856 00:47:49,300 --> 00:47:50,960 find some bones, and then hack the production stuff. 857 00:47:51,460 --> 00:47:52,400 That's what I would do at least. 858 00:47:54,440 --> 00:47:57,580 And this device just, I believe, 859 00:47:57,660 --> 00:47:58,480 boot straight to shell. 860 00:47:58,640 --> 00:48:02,340 And if not, the root password was blank anyways. 861 00:48:03,520 --> 00:48:06,400 So I think it has a boot console that you can get into 862 00:48:06,400 --> 00:48:07,000 if you need to. 863 00:48:07,100 --> 00:48:09,420 Otherwise, just username, root, no password. 864 00:48:10,560 --> 00:48:11,920 And it doesn't have an FCC ID 865 00:48:11,920 --> 00:48:13,080 because Britain doesn't believe in that. 866 00:48:15,080 --> 00:48:16,780 All right, next one, Honeywell Lyric. 867 00:48:17,000 --> 00:48:18,840 So Lyric is a thermostat as well. 868 00:48:18,960 --> 00:48:20,220 It's kind of a competitor to a Nest. 869 00:48:20,340 --> 00:48:20,940 It looks similar. 870 00:48:21,460 --> 00:48:23,460 I actually was, like, super disappointed in it. 871 00:48:23,500 --> 00:48:24,960 It feels, like, super flimsy and looks ugly. 872 00:48:25,080 --> 00:48:25,880 That's just my opinion. 873 00:48:25,980 --> 00:48:27,400 But I loved, like, the Ecobee way more 874 00:48:27,400 --> 00:48:28,360 and the Nest way more. 875 00:48:28,400 --> 00:48:29,960 This one was, I don't know, whatever. 876 00:48:31,740 --> 00:48:34,320 It runs a web server during its initial pairing, 877 00:48:34,380 --> 00:48:35,560 so it kind of acts 878 00:48:35,560 --> 00:48:36,900 as a Wi-Fi access point. 879 00:48:37,080 --> 00:48:40,240 Your phone connects to it, exchanges some data, 880 00:48:40,360 --> 00:48:41,980 and then it's configured. 881 00:48:42,960 --> 00:48:46,220 It's pairing web server uses HTTP, not HTTPS. 882 00:48:46,480 --> 00:48:48,620 And that was more or less the only real issue 883 00:48:48,620 --> 00:48:49,560 we found with this device. 884 00:48:50,340 --> 00:48:53,040 It doesn't run Linux, unlike all these other devices. 885 00:48:53,500 --> 00:48:56,020 As far as we can tell, it runs ExpressLogic. 886 00:48:56,160 --> 00:49:00,060 It runs ExpressLogic RTOS, most likely ThreadX. 887 00:49:01,020 --> 00:49:02,620 And basically, it was quite secure. 888 00:49:06,420 --> 00:49:06,900 Sorry. 889 00:49:07,900 --> 00:49:11,520 For the mobile device, it stores credentials in the keychain. 890 00:49:12,420 --> 00:49:14,860 But these credentials can also show up in log files 891 00:49:14,860 --> 00:49:15,720 if the app crashes. 892 00:49:16,240 --> 00:49:18,460 They basically configured it to log everything, 893 00:49:18,660 --> 00:49:20,360 and they didn't filter anything out. 894 00:49:22,680 --> 00:49:25,220 The only interesting thing from the cloud perspective 895 00:49:25,220 --> 00:49:27,820 is that it used static IPs to talk to their servers, 896 00:49:27,880 --> 00:49:28,720 as far as I can tell. 897 00:49:29,580 --> 00:49:32,600 So I don't know how you DDoS mitigate static IPs, 898 00:49:32,600 --> 00:49:33,720 but they might have some issues there. 899 00:49:34,340 --> 00:49:36,080 Otherwise, everything was properly encrypted, 900 00:49:36,340 --> 00:49:38,360 only weather was transmitted in plain text. 901 00:49:40,600 --> 00:49:43,120 In this device, we found three different serial consoles. 902 00:49:43,440 --> 00:49:45,460 All of them just seemed to be debug messages. 903 00:49:45,580 --> 00:49:47,320 They didn't actually seem to be interactive consoles. 904 00:49:47,760 --> 00:49:49,680 So we found one, I think, for the radio, 905 00:49:49,880 --> 00:49:51,820 one for backplate information, 906 00:49:52,480 --> 00:49:53,960 and one for... 907 00:49:54,740 --> 00:49:56,440 It just seemed to be a more generic console. 908 00:49:59,100 --> 00:50:01,640 But like I said, I couldn't get any receive working 909 00:50:01,640 --> 00:50:02,220 on the device. 910 00:50:02,680 --> 00:50:04,340 I could transmit data to it, 911 00:50:04,400 --> 00:50:06,040 but I couldn't get any responses back. 912 00:50:06,900 --> 00:50:09,480 This one, you need a Torx T6 to open up as well, 913 00:50:09,580 --> 00:50:11,060 but you don't actually really need to. 914 00:50:11,620 --> 00:50:14,860 The backplate connector on the thermostat itself 915 00:50:14,860 --> 00:50:18,200 has eight extra pins compared to the wall plate. 916 00:50:18,920 --> 00:50:21,340 So as I suspected, those pins are actually wired out 917 00:50:21,340 --> 00:50:22,120 to a serial console, 918 00:50:22,280 --> 00:50:24,100 so you can just tap directly into those. 919 00:50:24,540 --> 00:50:26,620 The problem is figuring out how to power this device, 920 00:50:26,760 --> 00:50:29,500 because the backplate has hardware circuitry in it as well. 921 00:50:29,660 --> 00:50:31,620 So if you just give this 24 volts, 8 volts, 922 00:50:31,640 --> 00:50:31,840 AC, 923 00:50:31,960 --> 00:50:33,460 it still doesn't seem to power up. 924 00:50:33,900 --> 00:50:36,800 So maybe someone can find a better solution than me, 925 00:50:36,900 --> 00:50:38,960 but I basically just rammed wires through, 926 00:50:39,580 --> 00:50:40,480 plugged the pieces together, 927 00:50:40,640 --> 00:50:41,960 and still have my serial console going. 928 00:50:45,820 --> 00:50:47,640 So the next thermostat was the Nest thermostat. 929 00:50:48,520 --> 00:50:50,400 This one is Linux-based 930 00:50:52,760 --> 00:50:55,740 and has already been assessed quite a bit by other people. 931 00:50:57,040 --> 00:50:58,460 You can route it via USB. 932 00:50:59,600 --> 00:51:00,940 This should say some mystery. 933 00:51:01,640 --> 00:51:03,480 UDP ports are open on the device. 934 00:51:03,580 --> 00:51:04,480 I'm not really sure what they're for, 935 00:51:04,600 --> 00:51:07,940 but overall it was quite secure from our few days of testing. 936 00:51:10,440 --> 00:51:13,820 The mobile application, basically everything's fine. 937 00:51:13,920 --> 00:51:16,320 It doesn't pin certificates, but that's not really a big issue. 938 00:51:17,280 --> 00:51:18,540 And for cloud communications, 939 00:51:19,260 --> 00:51:21,720 the only real issue is weather data. 940 00:51:26,880 --> 00:51:28,260 Should have brought some water. 941 00:51:33,540 --> 00:51:36,220 So GTV Hacker put out a thing where you can route the device. 942 00:51:36,420 --> 00:51:37,420 We put our logo on it. 943 00:51:37,660 --> 00:51:38,560 Did a bunch of things. 944 00:51:39,440 --> 00:51:40,340 There's some great tools. 945 00:51:40,480 --> 00:51:42,040 There's really interesting stuff in the file system. 946 00:51:42,460 --> 00:51:45,000 It's kind of a fun device to poke around with if you got one. 947 00:51:48,420 --> 00:51:49,680 We then looked at the Nest Protect. 948 00:51:50,120 --> 00:51:51,520 It's yet to be routed. 949 00:51:52,740 --> 00:51:53,820 So here we go. 950 00:51:55,020 --> 00:51:55,560 Thank you. 951 00:52:05,900 --> 00:52:06,780 I'm almost done. 952 00:52:07,980 --> 00:52:09,100 It's yet to be routed. 953 00:52:09,800 --> 00:52:11,380 It looks like it has a serial port, 954 00:52:11,540 --> 00:52:13,320 but we didn't get time to get that working. 955 00:52:13,880 --> 00:52:16,360 The real interesting thing with this device is it, 956 00:52:16,380 --> 00:52:19,480 during pairing, acts as a Wi-Fi access point 957 00:52:19,480 --> 00:52:22,720 and then uses this proprietary Nest Weave protocol, 958 00:52:23,760 --> 00:52:25,500 which I think has become Google Weave, 959 00:52:26,080 --> 00:52:29,160 to talk to your mobile app and do that pairing. 960 00:52:30,520 --> 00:52:31,620 And so that looks good. 961 00:52:31,640 --> 00:52:33,760 It looked like really the main point that someone's going to want to mess with. 962 00:52:34,660 --> 00:52:38,400 We didn't get enough time to properly reverse engineer how that all took place. 963 00:52:39,460 --> 00:52:41,040 There's a pairing code that you send. 964 00:52:41,240 --> 00:52:42,840 It's only active for a short amount of time. 965 00:52:43,540 --> 00:52:46,740 So generally it seems quite reasonable, 966 00:52:47,940 --> 00:52:49,540 but we didn't route the device, 967 00:52:49,620 --> 00:52:52,040 so we had a hard time really getting access to the specifics. 968 00:52:52,620 --> 00:52:54,320 So here's some pictures of the internals. 969 00:52:54,720 --> 00:52:56,660 There's actually a great teardown on SparkFun. 970 00:53:00,260 --> 00:53:01,620 So really with that device, 971 00:53:01,620 --> 00:53:04,260 four days was not enough to route it, was our finding. 972 00:53:05,400 --> 00:53:06,620 Control 4, HC250. 973 00:53:07,420 --> 00:53:09,660 This is just a generic home theater controller. 974 00:53:09,880 --> 00:53:12,580 It's fairly old, but I guess widely used, 975 00:53:12,620 --> 00:53:13,560 one of the first ones out there. 976 00:53:15,060 --> 00:53:17,880 This device basically has no network level protections. 977 00:53:18,620 --> 00:53:21,140 So if you use the default route password, 978 00:53:21,220 --> 00:53:22,280 you can get access to it. 979 00:53:22,840 --> 00:53:24,600 Control 4's response is basically, 980 00:53:24,700 --> 00:53:27,300 make sure you firewall this device, then you'll be okay. 981 00:53:29,500 --> 00:53:32,140 The PC application and the mobile application 982 00:53:32,140 --> 00:53:34,640 really didn't have big problems. 983 00:53:34,820 --> 00:53:36,720 We didn't have a license to test all the functionality, 984 00:53:37,040 --> 00:53:39,080 but the stuff we looked at seemed all right. 985 00:53:41,820 --> 00:53:44,920 It does have some weird services running. 986 00:53:45,060 --> 00:53:46,940 It's got a web server, it's got this custom port 987 00:53:46,940 --> 00:53:49,640 that lets you tail any file you want as route. 988 00:53:50,520 --> 00:53:53,360 So security-wise, it's terrible from a network perspective, 989 00:53:53,620 --> 00:53:56,520 but its cloud and mobile communications seem fine. 990 00:53:56,520 --> 00:53:58,640 So basically, the finding with this one is, 991 00:53:58,720 --> 00:54:00,740 if you firewall it off, you're probably okay. 992 00:54:01,160 --> 00:54:03,760 But if you don't, it's a huge vulnerable system. 993 00:54:05,400 --> 00:54:07,840 The only other interesting thing is the serial console works, 994 00:54:08,140 --> 00:54:09,320 but you can't get to U-Boot. 995 00:54:09,380 --> 00:54:11,580 They patched U-Boot, so you can't access it. 996 00:54:13,240 --> 00:54:15,820 Next device we looked at was the Iris from Lowe's. 997 00:54:15,920 --> 00:54:17,520 This uses the LurtMe platform as well, 998 00:54:17,520 --> 00:54:19,620 just like the one from British Gas. 999 00:54:20,740 --> 00:54:22,280 It was overall quite secure, 1000 00:54:22,440 --> 00:54:24,920 but you can get a serial shell on this quite easily. 1001 00:54:26,060 --> 00:54:26,500 So that's it. 1002 00:54:26,520 --> 00:54:27,680 So I've got notes on that here. 1003 00:54:28,900 --> 00:54:31,240 This is the last device I really want to talk a bit about, 1004 00:54:31,320 --> 00:54:31,900 the Revolve. 1005 00:54:32,380 --> 00:54:35,760 So Revolve got bought by Nest, I think. 1006 00:54:36,720 --> 00:54:38,580 So I don't think you can buy a Revolve anymore. 1007 00:54:39,460 --> 00:54:42,200 But this device was just all kinds of amazing. 1008 00:54:42,960 --> 00:54:45,200 It's like DEF CON went out and was like, 1009 00:54:45,240 --> 00:54:46,740 we're going to build an Internet of Things device 1010 00:54:46,740 --> 00:54:48,160 for people to CTF test. 1011 00:54:48,460 --> 00:54:49,900 We're going to put some easy vulns in, 1012 00:54:50,000 --> 00:54:51,260 we're going to put some medium vulns in, 1013 00:54:51,340 --> 00:54:52,380 we're going to put some hard vulns in. 1014 00:54:52,560 --> 00:54:53,420 That's this device. 1015 00:54:54,280 --> 00:54:56,500 It's got like a million different radios on it. 1016 00:54:56,500 --> 00:54:58,740 It's got a million different debug ports. 1017 00:54:59,460 --> 00:55:02,140 It's got ports and services running like no tomorrow. 1018 00:55:03,340 --> 00:55:05,740 That device probably spent a month testing it 1019 00:55:05,740 --> 00:55:06,600 and still not be done. 1020 00:55:09,080 --> 00:55:11,000 The Revolve mobile application 1021 00:55:11,740 --> 00:55:13,600 mostly used secure communications, 1022 00:55:14,780 --> 00:55:16,880 but it has some API keys hard coded, 1023 00:55:16,980 --> 00:55:18,780 which I think can give you access to a bunch of things. 1024 00:55:19,360 --> 00:55:22,880 It uses flashlight pulsing on your iOS phone 1025 00:55:22,880 --> 00:55:24,640 or your iPhone, yes, 1026 00:55:26,280 --> 00:55:30,640 to basically Morse code blink a pairing code to the device. 1027 00:55:31,020 --> 00:55:32,060 It's super awesome. 1028 00:55:32,180 --> 00:55:32,640 It looks amazing. 1029 00:55:32,780 --> 00:55:33,600 It looks like it's having a seizure. 1030 00:55:33,920 --> 00:55:34,880 I thought that was awesome. 1031 00:55:37,080 --> 00:55:38,060 Long story short, 1032 00:55:38,180 --> 00:55:39,200 if you can get your hands on one of these, 1033 00:55:39,340 --> 00:55:40,280 it's a ton of fun. 1034 00:55:41,460 --> 00:55:42,980 They've got communications encrypted, 1035 00:55:43,240 --> 00:55:45,400 but they wrote their own crazy custom protocol 1036 00:55:45,400 --> 00:55:48,000 and protocol handler in Java that runs on the device. 1037 00:55:49,200 --> 00:55:51,780 The real interesting thing with this is now though 1038 00:55:51,780 --> 00:55:54,600 that Nest or Google or whoever bought Revolve, 1039 00:55:55,860 --> 00:55:57,260 now owns all their stuff. 1040 00:55:57,520 --> 00:55:59,280 If they support the device, that's great. 1041 00:55:59,480 --> 00:56:00,880 We sent in a bunch of vulnerabilities, 1042 00:56:01,100 --> 00:56:02,100 just went to a black hole. 1043 00:56:03,640 --> 00:56:06,380 But conceivably, all these devices are still calling out to a cloud 1044 00:56:06,380 --> 00:56:07,780 and it's no longer Revolve's cloud. 1045 00:56:07,940 --> 00:56:09,120 It's whoever owns Revolve. 1046 00:56:11,340 --> 00:56:15,100 That got to be interesting for a few different reasons. 1047 00:56:15,400 --> 00:56:17,140 This device has a hard coded root password. 1048 00:56:19,080 --> 00:56:19,980 CTF starts now. 1049 00:56:20,040 --> 00:56:21,960 If anyone wants to, you don't have to buy this device. 1050 00:56:22,120 --> 00:56:22,920 Go to this link. 1051 00:56:24,100 --> 00:56:25,080 Download the firmware. 1052 00:56:25,480 --> 00:56:27,380 Start looking at crazy vulns. 1053 00:56:27,480 --> 00:56:28,140 You'll just be amazed. 1054 00:56:30,640 --> 00:56:31,460 Yeah, sure. 1055 00:56:31,700 --> 00:56:32,840 Take a picture or something. 1056 00:56:33,420 --> 00:56:35,720 I'm going to post all these immediately after this, 1057 00:56:35,840 --> 00:56:38,660 but every minute counts in a CTF. 1058 00:56:43,580 --> 00:56:45,240 I don't have a note on it here, 1059 00:56:45,320 --> 00:56:47,120 but basically the weird thing with this is that 1060 00:56:47,120 --> 00:56:50,160 the device itself has this SSH backdoor. 1061 00:56:50,460 --> 00:56:52,700 So their cloud service can say, 1062 00:56:52,700 --> 00:56:55,220 hey, open up an SSH tunnel to the device 1063 00:56:55,840 --> 00:56:58,660 and basically Revolve or whoever owns their cloud server 1064 00:56:58,660 --> 00:57:00,700 has a direct access to your network from that. 1065 00:57:03,760 --> 00:57:04,420 All right. 1066 00:57:04,640 --> 00:57:06,740 I think this is the last device I have 1067 00:57:06,740 --> 00:57:10,180 because I know I'm 10 minutes over time. 1068 00:57:12,600 --> 00:57:15,320 SmartThings, it didn't have any obvious serial console. 1069 00:57:15,600 --> 00:57:17,940 It had some pins, but they didn't give a serial console. 1070 00:57:18,800 --> 00:57:20,960 But it did have an obvious pig programming interface. 1071 00:57:21,360 --> 00:57:22,680 So I thought, hey, pig programming. 1072 00:57:22,680 --> 00:57:23,460 The programmers aren't too expensive. 1073 00:57:23,560 --> 00:57:25,420 I'll grab one, dump the firmware that way. 1074 00:57:27,120 --> 00:57:29,120 Connect it all up and the software tells me, 1075 00:57:29,220 --> 00:57:31,480 oh, yeah, you've got to pick firmware here or pick chip here. 1076 00:57:31,740 --> 00:57:33,240 But it's locked from reading the firmware. 1077 00:57:33,820 --> 00:57:35,740 So that was pretty upsetting because pretty much 1078 00:57:35,740 --> 00:57:38,020 no one locks the programming interfaces on their devices. 1079 00:57:38,240 --> 00:57:39,680 It's just not something people do. 1080 00:57:40,140 --> 00:57:41,620 There's no good reason they don't do it, 1081 00:57:41,640 --> 00:57:42,880 but I just never see people do it. 1082 00:57:42,940 --> 00:57:45,700 So I was displeased to see that SmartThings is doing things right. 1083 00:57:47,780 --> 00:57:50,120 They had a Telnet server that would just run on this device, 1084 00:57:50,260 --> 00:57:51,320 which seemed super terrible. 1085 00:57:51,860 --> 00:57:53,660 It needed a password to access, 1086 00:57:54,880 --> 00:57:56,840 but it wasn't clear what that password was 1087 00:57:56,840 --> 00:57:57,640 because we didn't have the firmware. 1088 00:57:58,460 --> 00:58:00,180 So we reported this to them as an issue, 1089 00:58:00,340 --> 00:58:03,260 and they were actually really good to work with. 1090 00:58:03,760 --> 00:58:04,980 They said they fixed it. 1091 00:58:05,080 --> 00:58:06,460 They said they want us to test the fix, 1092 00:58:06,560 --> 00:58:07,820 but we haven't had time to yet. 1093 00:58:08,420 --> 00:58:12,200 But they seem really on top of trying to do security right, 1094 00:58:12,300 --> 00:58:13,080 so that's good to see. 1095 00:58:14,320 --> 00:58:17,060 Someone else had found an issue that they don't verify 1096 00:58:17,060 --> 00:58:18,980 their certificates for their communications. 1097 00:58:20,080 --> 00:58:21,300 So they patched that as well. 1098 00:58:23,340 --> 00:58:24,960 In their mobile application, 1099 00:58:25,340 --> 00:58:27,000 they had some API keys exposed, 1100 00:58:27,180 --> 00:58:28,220 both for their own service 1101 00:58:28,220 --> 00:58:32,020 and I forget what other service. 1102 00:58:32,240 --> 00:58:33,060 I don't think it was Twitter, 1103 00:58:33,160 --> 00:58:34,860 but some other cloud service out there. 1104 00:58:35,280 --> 00:58:36,660 They claimed to have fixed that. 1105 00:58:36,820 --> 00:58:37,640 So once again, hopefully, 1106 00:58:37,780 --> 00:58:38,760 they changed those keys, 1107 00:58:38,840 --> 00:58:39,660 didn't just remove them. 1108 00:58:40,900 --> 00:58:43,480 But that was an issue that we reported 1109 00:58:43,480 --> 00:58:45,200 and they have now fixed. 1110 00:58:47,460 --> 00:58:49,840 Otherwise, their mobile application was basically fine. 1111 00:58:50,360 --> 00:58:51,160 And so, 1112 00:58:51,180 --> 00:58:51,280 I don't know. 1113 00:58:51,280 --> 00:58:53,080 So the communications protocol, 1114 00:58:53,320 --> 00:58:54,800 they actually wrote their own custom protocol 1115 00:58:54,800 --> 00:58:56,520 and then just wrapped it in SSL. 1116 00:58:56,940 --> 00:58:59,360 So we didn't have time to finish reverse engineering this, 1117 00:58:59,460 --> 00:59:00,060 but someone should, 1118 00:59:00,180 --> 00:59:01,920 because custom communication protocols 1119 00:59:03,040 --> 00:59:05,320 never are done right the first time or the second time. 1120 00:59:08,240 --> 00:59:10,680 So I soldered a bunch of wires on it. 1121 00:59:10,700 --> 00:59:12,400 I tried to dump the flash chips and stuff, too. 1122 00:59:12,920 --> 00:59:14,260 Basically, I got nowhere on this device. 1123 00:59:15,060 --> 00:59:17,060 It was upsetting, 1124 00:59:17,300 --> 00:59:18,320 but we only had a week. 1125 00:59:20,100 --> 00:59:20,900 So that's, 1126 00:59:20,900 --> 00:59:24,140 14 devices in like 45 minutes. 1127 00:59:24,880 --> 00:59:25,900 Well, probably an hour. 1128 00:59:28,200 --> 00:59:30,280 I have tons more notes on all these devices. 1129 00:59:30,480 --> 00:59:31,720 So if you're interested in any of them, 1130 00:59:31,760 --> 00:59:32,520 get in contact. 1131 00:59:33,120 --> 00:59:34,460 I'm going to post all the slides. 1132 00:59:34,640 --> 00:59:36,240 I think they're actually already at that link, 1133 00:59:36,340 --> 00:59:37,800 but I'll confirm after this. 1134 00:59:39,260 --> 00:59:41,180 And we probably don't have time for questions, 1135 00:59:41,300 --> 00:59:41,840 but I'll be around. 1136 00:59:41,980 --> 00:59:43,320 So just come grab me 1137 00:59:43,320 --> 00:59:45,060 and I'd be happy to talk to any of you guys. 1138 00:59:46,360 --> 00:59:46,860 Thank you. 1139 00:59:51,220 --> 00:59:51,340 Bye-bye.