1 00:00:00,000 --> 00:00:07,380 Okay, we're going to get started. So I'm Brian Knopf. This is Yes, You Can Walk on Water, 2 00:00:07,520 --> 00:00:17,340 AppSec on a product security and startup budget. So a little about me. Right now I run a 3 00:00:17,340 --> 00:00:25,360 consulting company called Break Security. I was previously at Linksys and Belkin, and one of 4 00:00:25,360 --> 00:00:30,740 the researchers is part of the Build It Security group and also I'm the cavalry where we focus on 5 00:00:30,740 --> 00:00:38,980 IOT and how to build more secure products. And my background is IT, QA and development and 6 00:00:38,980 --> 00:00:46,220 security. So this whole project of building application security really came about from my 7 00:00:46,220 --> 00:00:52,680 background in QA where I was running quality assurance for Belkin. And we had a bunch of 8 00:00:52,680 --> 00:00:55,340 products. Not too many, but enough. So we had a bunch of products. Not too many, but enough. 9 00:00:55,360 --> 00:01:01,600 That it kept us busy. And then we got noticed that we were going to get, we were acquiring 10 00:01:01,600 --> 00:01:07,340 another company called Linksys. And I thought, great. They've got to have a security team, 11 00:01:07,400 --> 00:01:15,820 right? Nope. Well, Cisco's got to have a security team, right? Nope. So we have four times 12 00:01:15,820 --> 00:01:25,340 as many products. No security. And no problem, right? So out of necessity we built this 13 00:01:25,360 --> 00:01:31,060 application and product security team basically with no budget, little number of staff. And so 14 00:01:31,060 --> 00:01:37,380 we're going to talk through how you do that when you're on the defensive side. So this is what we 15 00:01:37,380 --> 00:01:43,600 started dealing with. Thanks, Jacob and crew. On a daily basis we'd get notifications like this. 16 00:01:44,040 --> 00:01:51,760 Root level access on routers, taking over our devices, don't use our devices. That was becoming 17 00:01:51,760 --> 00:01:53,740 a daily event for us. 18 00:01:56,660 --> 00:02:05,140 Death trap wemo. Someone turning on and off our devices using local vulnerabilities. Security 19 00:02:05,140 --> 00:02:11,900 flaws in UPMP. So this became more of a regular problem. And my work doing QA was taken away 20 00:02:11,900 --> 00:02:16,100 from the time I was doing security. So at that point I had a little conversation with my boss 21 00:02:16,100 --> 00:02:25,340 about taking over just security. And he agreed and gave me a huge budget. No money. So we 22 00:02:25,360 --> 00:02:30,780 had a bunch of products. No money. And somehow we're supposed to squeeze app sec, product sec and 23 00:02:30,780 --> 00:02:39,240 incident response out of that. No big deal. So why no budget for application security on IOT 24 00:02:39,240 --> 00:02:44,380 devices? Well, it comes down to a bunch of things. One, compliance needs or lack thereof. 25 00:02:44,680 --> 00:02:50,140 There's typically no PII or PCI on these devices. So manufacturers don't want to spend money where 26 00:02:50,140 --> 00:02:54,280 they don't have to. So if there's no regulatory or compliance needs for it, they're not going to 27 00:02:54,280 --> 00:02:55,340 spend. So we're going to have to figure out how we're going to do this. So we're going to have to 28 00:02:55,360 --> 00:03:00,460 do this. Most of these devices, if you look at Kickstarter and starter projects, they're very 29 00:03:00,460 --> 00:03:04,400 low margin. You have a bunch of developers who get a small amount of funding and they try and 30 00:03:04,400 --> 00:03:10,220 build these devices. So it becomes very hard to throw security into that mix as well. And quite 31 00:03:10,220 --> 00:03:14,660 frankly, a lot of the companies don't understand the need. If you look at Linksys, a lot of the 32 00:03:14,660 --> 00:03:20,040 same people had been there for decades. They never needed to do security before, so why should 33 00:03:20,040 --> 00:03:25,340 they start now? And so changing that culture becomes very difficult. We're going to have to do 34 00:03:32,580 --> 00:03:38,640 security by obscurity. So security by obscurity is obviously not something we should ever be 35 00:03:38,640 --> 00:03:45,000 doing. So if you've ever talked about offense versus defense, I love this slide because, you 36 00:03:45,000 --> 00:03:49,460 know, offensive security, it's easy. It's like shooting fish in a barrel, right? You just pick 37 00:03:49,460 --> 00:03:52,900 whichever one you want to go out and it's probably on half the devices you're going to look at, if 38 00:03:52,900 --> 00:03:55,340 not more. Whereas defensive security, it's easy. It's like shooting fish in a barrel, right? You 39 00:03:55,360 --> 00:03:56,320 can kill a fish in a barrel. You can shoot fish in a barrel. But defensive security, you're trying to 40 00:03:56,320 --> 00:04:02,480 protect the device against way more resources that are well more funded, and have a lot more time 41 00:04:02,480 --> 00:04:10,900 on their hands if you're dealing with a bunch of products. So now what? What do we do? Well, the 42 00:04:10,900 --> 00:04:15,000 first thing actually is pretty simple because it's just getting people to know you actually exist. 43 00:04:17,180 --> 00:04:22,300 Just like you do in programming, hello world, right? So there's a lot of organizations out there 44 00:04:22,300 --> 00:04:25,340 that will help you so that people can contact you when they find vulnerabilities. And so I think it's 45 00:04:25,870 --> 00:04:30,340 You've got cert, sans, bug bounty companies, listings. 46 00:04:31,000 --> 00:04:33,920 You create your actual e-mail addresses for security. 47 00:04:34,260 --> 00:04:36,740 Give the researchers a way to actually communicate with you. 48 00:04:37,120 --> 00:04:38,600 How do they get to you? 49 00:04:38,660 --> 00:04:42,540 Through Twitter, Facebook if you need, setting up a website. 50 00:04:43,280 --> 00:04:47,820 Because the first part is researchers are going to go look for a way to contact you 51 00:04:47,820 --> 00:04:48,900 if they have a vulnerability. 52 00:04:49,300 --> 00:04:53,240 If they can't contact you, most likely that vulnerability is going to go public. 53 00:04:53,240 --> 00:04:57,140 So as long as you give them a way to get to you easily and a way to respond, 54 00:04:58,080 --> 00:04:59,820 they're going to come to you and give you the right information. 55 00:05:04,720 --> 00:05:08,440 The second part sounds a lot easier than it is, but it's assess. 56 00:05:09,000 --> 00:05:09,680 Assess what? 57 00:05:09,940 --> 00:05:11,180 Assess what you're looking at. 58 00:05:12,560 --> 00:05:13,740 So what are you protecting? 59 00:05:14,560 --> 00:05:16,840 Home automation devices, right? 60 00:05:16,940 --> 00:05:17,580 Is it a light bulb? 61 00:05:18,260 --> 00:05:19,620 What's the risk of the device? 62 00:05:19,840 --> 00:05:22,060 Who wants to actually attack this device? 63 00:05:23,360 --> 00:05:24,840 What's their motivation for it? 64 00:05:25,420 --> 00:05:28,980 You know, is it just trying to figure out where you're going? 65 00:05:29,360 --> 00:05:33,280 Is it my car and I want to find out how fast this person's going, 66 00:05:33,580 --> 00:05:35,720 where they're going, when they're at certain locations? 67 00:05:36,400 --> 00:05:37,760 Or is it my banking information? 68 00:05:39,680 --> 00:05:45,920 I did another presentation about my wife, but this is my wife, not a light bulb, right? 69 00:05:46,700 --> 00:05:48,840 If someone hacks my light bulb, they turn it on and off. 70 00:05:50,100 --> 00:05:52,300 That's my wife and that's the medical device in her back. 71 00:05:52,500 --> 00:05:53,220 If someone hacks my light bulb, they turn it on and off. 72 00:05:53,220 --> 00:05:55,140 If someone hacks her, she dies, right? 73 00:05:55,200 --> 00:05:57,980 It's an electrical stimulation device to provide pain management. 74 00:05:58,400 --> 00:06:00,200 And that's not trying to be a shocking statement. 75 00:06:00,360 --> 00:06:05,240 It only does two things, on and off, and change the voltage, right? 76 00:06:05,360 --> 00:06:11,060 So the protection potentially on this kind of device is a lot different than another device that you would, you know, 77 00:06:11,080 --> 00:06:14,920 maybe like my kid's Skylanders, which have NFC cards in them. 78 00:06:16,560 --> 00:06:21,360 So understanding what you're looking at, who's trying to attack it, what the potential is, 79 00:06:21,520 --> 00:06:23,200 and how you need to approach it. 80 00:06:26,400 --> 00:06:28,260 This is one of the products I've worked on. 81 00:06:28,380 --> 00:06:30,740 So you look at this and say, what can I exploit here? 82 00:06:31,820 --> 00:06:33,960 Show of hands, how many people are AppSec people here? 83 00:06:35,000 --> 00:06:35,800 Security researchers? 84 00:06:37,940 --> 00:06:38,740 IT security? 85 00:06:39,800 --> 00:06:40,200 No? 86 00:06:40,760 --> 00:06:45,920 Okay, so this is a piece of hardware, and so there's software attacks and there's hardware attacks. 87 00:06:46,840 --> 00:06:49,340 This is the Wink Hub, one of the products I worked on. 88 00:06:49,440 --> 00:06:50,680 It was released last year. 89 00:06:51,900 --> 00:06:53,200 Right after it was released, it was released. 90 00:06:53,220 --> 00:06:53,940 It was hacked within a month. 91 00:06:55,820 --> 00:07:00,220 The Wink team was very willing and interested in doing security, 92 00:07:00,860 --> 00:07:05,420 but no one ever sat down with them and said, here's what you need to do before you release hardware. 93 00:07:05,980 --> 00:07:10,680 So if you look at this device, it's got some fun things on it. 94 00:07:12,160 --> 00:07:13,680 Everyone here familiar with JTAG? 95 00:07:15,160 --> 00:07:17,140 JTAG, UART, GPIOs? 96 00:07:17,720 --> 00:07:21,960 This board is basically a fantasy for a researcher, right? 97 00:07:22,480 --> 00:07:23,200 Everything's laid out. 98 00:07:23,220 --> 00:07:27,380 It's documented really clearly so that it makes it easy to find what you're looking for. 99 00:07:28,020 --> 00:07:32,900 So if you're doing defense, if you're building hardware, the first things you want to look at is, 100 00:07:32,960 --> 00:07:34,300 what do I need on this board? 101 00:07:34,540 --> 00:07:36,500 Do I need the GPIOs exposed? 102 00:07:37,260 --> 00:07:40,800 Is there a reason to have UART so that someone can solder on a serial port? 103 00:07:41,060 --> 00:07:41,820 Because they will. 104 00:07:42,480 --> 00:07:47,860 Now, we came from a software background, and I didn't do a lot of hardware professionally until I got to Belkin. 105 00:07:48,180 --> 00:07:52,080 And the first thing that happened is they soldered on a serial port and got root access. 106 00:07:53,220 --> 00:07:53,620 Nice. 107 00:07:54,380 --> 00:07:56,040 So, lesson learned, right? 108 00:07:57,360 --> 00:08:02,500 But you can grab a bus pirate and connect to eight different parts on this board. 109 00:08:03,220 --> 00:08:05,740 The question is, does it need to be there? 110 00:08:06,400 --> 00:08:10,220 You've got a NAND there that you can pull off and use in our EPROM reader. 111 00:08:10,920 --> 00:08:12,940 Does it need to have its pins exposed? 112 00:08:13,320 --> 00:08:14,580 Can you epoxy over it? 113 00:08:14,680 --> 00:08:16,220 What can you do to protect that device? 114 00:08:16,760 --> 00:08:19,720 So first, understanding what you're looking at, right? 115 00:08:20,300 --> 00:08:22,120 Go look at other devices that are similar. 116 00:08:22,120 --> 00:08:25,820 What kind of attacks have happened on those devices, right? 117 00:08:26,240 --> 00:08:27,800 There's a thousand cameras out there. 118 00:08:28,300 --> 00:08:29,960 There's a thousand camera hacks out there. 119 00:08:30,160 --> 00:08:32,660 If you're trying to build a camera and defend against it, 120 00:08:32,700 --> 00:08:36,460 understand what other people have done on those cameras so that you know what not to do. 121 00:08:43,500 --> 00:08:45,340 Check versions of apps and libraries. 122 00:08:45,740 --> 00:08:47,240 Now, this is really interesting because, 123 00:08:48,200 --> 00:08:49,800 especially when you're dealing with a lot of products, 124 00:08:50,520 --> 00:08:52,020 there's a lot of third-party libraries. 125 00:08:52,020 --> 00:08:53,060 There's a lot of libraries that will be in your code. 126 00:08:54,080 --> 00:08:55,180 Some by the manufacturer, 127 00:08:55,560 --> 00:08:57,760 some that you actually implement, 128 00:08:57,980 --> 00:08:58,720 some by the chipset. 129 00:08:59,560 --> 00:09:01,060 If you just catalog these, 130 00:09:01,620 --> 00:09:05,080 when you have a vulnerability or when you see a vulnerability that comes out, 131 00:09:05,180 --> 00:09:06,740 OpenSSL, OpenSSH, 132 00:09:07,620 --> 00:09:10,060 you can very quickly go down your list and say, 133 00:09:10,220 --> 00:09:12,060 here's what I'm running in each of my products. 134 00:09:12,240 --> 00:09:16,360 Now I know very quickly whether I need to update, patch something, 135 00:09:16,540 --> 00:09:18,240 rather than panic mode sets in. 136 00:09:19,520 --> 00:09:21,360 And what I'll tell you about this is, 137 00:09:22,020 --> 00:09:23,720 from the Belkin standpoint, 138 00:09:24,020 --> 00:09:28,020 when we had an issue with Heartbleed, 139 00:09:28,140 --> 00:09:29,660 or we didn't have an issue with Heartbleed, 140 00:09:29,800 --> 00:09:31,980 we very quickly went down the list and said, 141 00:09:32,060 --> 00:09:34,640 what of our products have OpenSSL in it? 142 00:09:35,400 --> 00:09:36,860 Especially the branch that was vulnerable. 143 00:09:37,320 --> 00:09:38,580 And within five minutes, 144 00:09:38,760 --> 00:09:40,380 and I'll thank Amanda who's sitting back there, 145 00:09:40,440 --> 00:09:41,860 because it was actually Amanda who did it, 146 00:09:42,500 --> 00:09:47,380 she had a list of every library that was in every one of our products. 147 00:09:47,880 --> 00:09:51,060 Within five minutes, we could tell that we had no impact on Heartbleed. 148 00:09:51,260 --> 00:09:52,000 At least for us. 149 00:09:52,000 --> 00:09:52,460 From our standpoint. 150 00:09:52,940 --> 00:09:55,220 It becomes really easy to look at your security 151 00:09:55,220 --> 00:09:56,560 if you know what you have in there. 152 00:09:56,940 --> 00:09:58,900 If you don't have something like Black Duck, 153 00:09:59,020 --> 00:10:01,120 an expensive application for doing GPL code, 154 00:10:01,960 --> 00:10:03,400 talk to your developers. 155 00:10:03,700 --> 00:10:06,160 Look in the code and find out what libraries are there. 156 00:10:06,340 --> 00:10:08,040 They're probably in one simple little folder. 157 00:10:08,400 --> 00:10:10,400 Find out what versions there are, document them. 158 00:10:10,420 --> 00:10:11,680 It doesn't have to be that complex, 159 00:10:11,880 --> 00:10:13,020 but know what you're dealing with. 160 00:10:13,440 --> 00:10:14,880 Makes it really easy to react. 161 00:10:16,820 --> 00:10:18,100 Threat model everything. 162 00:10:18,660 --> 00:10:20,340 Raise your hand if you're familiar with the threat model. 163 00:10:21,000 --> 00:10:21,680 I would hope. 164 00:10:22,000 --> 00:10:22,340 There's a lot. 165 00:10:22,480 --> 00:10:22,660 Okay. 166 00:10:22,920 --> 00:10:24,460 Not as many hands as I would like, 167 00:10:24,500 --> 00:10:25,140 and it's kind of scary. 168 00:10:25,520 --> 00:10:28,220 So if you asked me to come into your house 169 00:10:28,220 --> 00:10:29,480 and tell you how someone could break in, 170 00:10:29,600 --> 00:10:30,780 I'd come over to your house, 171 00:10:30,880 --> 00:10:32,260 I'd look at the doors, the windows, 172 00:10:33,060 --> 00:10:34,240 anything that's an interface. 173 00:10:34,840 --> 00:10:36,500 It's the same thing with application security 174 00:10:36,500 --> 00:10:37,220 and product security. 175 00:10:37,860 --> 00:10:39,740 What are the ways you can get into my application? 176 00:10:41,760 --> 00:10:43,460 Wireless, serial, Ethernet. 177 00:10:44,360 --> 00:10:46,820 So this threat model shows trust boundaries. 178 00:10:48,280 --> 00:10:49,940 I've had to sort of change it 179 00:10:49,940 --> 00:10:51,920 because obviously I have to protect what the real, 180 00:10:51,920 --> 00:10:52,480 you know, model is here. 181 00:10:52,560 --> 00:10:53,960 So these are servers. 182 00:10:54,200 --> 00:10:55,940 In the center, you'll notice there's a rectangle 183 00:10:55,940 --> 00:10:56,960 with two servers in it. 184 00:10:57,300 --> 00:10:59,460 In this particular case, there was a load balancer 185 00:10:59,460 --> 00:11:02,400 that was balancing internal and external resources. 186 00:11:02,980 --> 00:11:05,040 So if someone overloaded the load balancer, 187 00:11:05,180 --> 00:11:06,040 they take out everything. 188 00:11:06,680 --> 00:11:07,120 Right? 189 00:11:07,200 --> 00:11:08,720 So if you're looking at that, 190 00:11:08,760 --> 00:11:11,800 is there a reason why that needs to be the same for both? 191 00:11:13,880 --> 00:11:15,460 Well, what's the trust boundary? 192 00:11:15,740 --> 00:11:17,700 What accounts are used for what servers? 193 00:11:17,880 --> 00:11:18,800 How do you protect that? 194 00:11:18,860 --> 00:11:21,500 How do you mitigate the risk of when someone does attack? 195 00:11:21,500 --> 00:11:23,220 Because they will, and they will be successful. 196 00:11:23,520 --> 00:11:25,200 How do you make that attack smaller? 197 00:11:26,180 --> 00:11:27,680 What are the ports that are used? 198 00:11:27,920 --> 00:11:29,860 If you're not using SSL, why not? 199 00:11:30,160 --> 00:11:31,920 If you have the same service, 200 00:11:32,060 --> 00:11:34,760 or multiple services running on different systems, why? 201 00:11:35,160 --> 00:11:37,040 Can you separate them out and protect it? 202 00:11:37,420 --> 00:11:40,260 If you're writing data to a server, 203 00:11:41,060 --> 00:11:43,800 and then you are taking that data and manipulating it later, 204 00:11:44,000 --> 00:11:45,740 can you separate the accounts that are used? 205 00:11:45,800 --> 00:11:47,280 So you have read accounts and write accounts, 206 00:11:47,380 --> 00:11:48,280 and they're separated out. 207 00:11:48,440 --> 00:11:50,140 So if someone hijacks the application, 208 00:11:50,520 --> 00:11:51,480 they're not able to... 209 00:11:51,500 --> 00:11:53,020 they're not able to read some of the data. 210 00:11:53,080 --> 00:11:54,920 They can write what they used to have before, 211 00:11:55,060 --> 00:11:56,300 or what data they're allowed to, 212 00:11:56,460 --> 00:11:58,340 but they're not picking up data they shouldn't be. 213 00:12:01,480 --> 00:12:03,160 Pen tester versus bug bounty. 214 00:12:03,600 --> 00:12:05,100 Or is it really verse? 215 00:12:08,400 --> 00:12:09,180 Raise your hands. 216 00:12:09,300 --> 00:12:10,640 I think some people said... 217 00:12:10,640 --> 00:12:11,800 Who are the pen testers in here? 218 00:12:12,360 --> 00:12:13,540 AppSec pen testers? 219 00:12:13,660 --> 00:12:13,860 No? 220 00:12:14,420 --> 00:12:14,860 Bueller? 221 00:12:15,240 --> 00:12:15,840 All right. 222 00:12:16,240 --> 00:12:19,840 So pen testing is really critical for any application security. 223 00:12:20,280 --> 00:12:21,120 You have... 224 00:12:21,500 --> 00:12:24,440 You know, code checks that need to be done early in advance. 225 00:12:25,080 --> 00:12:27,280 But you also have to have someone else look at it 226 00:12:27,280 --> 00:12:28,500 from a holistic perspective. 227 00:12:29,540 --> 00:12:31,120 You can hire one pen tester, 228 00:12:31,260 --> 00:12:34,380 and it'll cost you between 10 and 20K per week per pen tester. 229 00:12:34,900 --> 00:12:36,860 Or you can do a bug bounty, 230 00:12:37,020 --> 00:12:38,300 or you can do both. 231 00:12:38,800 --> 00:12:40,720 And so if you look at the cost, 232 00:12:41,340 --> 00:12:43,500 it's about 10 to 20K for one pen tester. 233 00:12:44,680 --> 00:12:48,620 It's about the same amount for 20, 30 people 234 00:12:48,620 --> 00:12:49,940 to do a bug bounty 235 00:12:49,940 --> 00:12:51,480 that all have different pens. 236 00:12:51,480 --> 00:12:52,520 Different backgrounds, different experience, 237 00:12:52,700 --> 00:12:54,120 and different expertise. 238 00:12:54,560 --> 00:12:57,880 So do you want to leverage more people with more expertise? 239 00:12:58,140 --> 00:13:01,240 Or do you want to focus that on just a single entity? 240 00:13:01,800 --> 00:13:04,740 Well, for me, you have to do both, right? 241 00:13:04,780 --> 00:13:06,720 You need internal people or external people 242 00:13:06,720 --> 00:13:09,100 to work together to be looking at the whole application. 243 00:13:09,800 --> 00:13:12,300 But you also need to be able to leverage 244 00:13:12,300 --> 00:13:14,180 the external community, right? 245 00:13:14,280 --> 00:13:17,120 Security researchers who focus on particular vulnerabilities. 246 00:13:22,480 --> 00:13:23,360 Policies and controls. 247 00:13:23,880 --> 00:13:25,580 Who has access to what hardware? 248 00:13:25,880 --> 00:13:26,900 And if you're in a startup, 249 00:13:27,100 --> 00:13:29,000 I bet your developers have access to production. 250 00:13:29,860 --> 00:13:31,520 And the question is, do they really need it? 251 00:13:31,940 --> 00:13:35,040 So how do you look at things like server access, 252 00:13:35,280 --> 00:13:36,180 hardware requirements, 253 00:13:36,400 --> 00:13:38,440 to make sure that you can separate those out? 254 00:13:40,080 --> 00:13:41,660 You know, source code access, 255 00:13:41,940 --> 00:13:42,780 the firmware images. 256 00:13:43,560 --> 00:13:45,000 A lot of times what people are doing 257 00:13:45,000 --> 00:13:47,100 are pulling down the firmware from your site 258 00:13:47,100 --> 00:13:49,140 and actually looking at the code itself, right? 259 00:13:49,340 --> 00:13:50,640 They don't even bother with the device. 260 00:13:51,480 --> 00:13:52,980 If you can reverse engineer the firmware 261 00:13:52,980 --> 00:13:53,640 that's sitting there, 262 00:13:53,720 --> 00:13:54,860 then you can find out everything it's doing. 263 00:13:56,400 --> 00:13:58,300 So then we get into supply chain. 264 00:13:58,960 --> 00:14:01,960 So one of the most interesting things with IoT 265 00:14:01,960 --> 00:14:04,740 that's very different than, say, operating system security 266 00:14:04,740 --> 00:14:07,120 is the way the supply chain is handled 267 00:14:07,120 --> 00:14:08,680 and the way that the stack is owned. 268 00:14:08,920 --> 00:14:11,080 Because it's not just the way it used to be 269 00:14:11,080 --> 00:14:12,520 with application and operating system. 270 00:14:13,260 --> 00:14:15,060 With the IoT stack, 271 00:14:15,300 --> 00:14:17,480 it's a lot more people involved 272 00:14:17,480 --> 00:14:18,620 and it's a lot harder. 273 00:14:20,260 --> 00:14:21,460 So from a research perspective, 274 00:14:21,460 --> 00:14:23,500 if you know where to look, 275 00:14:23,640 --> 00:14:25,080 you know how to get the right bones. 276 00:14:25,400 --> 00:14:26,660 From a defense standpoint, 277 00:14:27,200 --> 00:14:28,360 you have to look at 278 00:14:28,360 --> 00:14:29,640 how do I protect everything 279 00:14:29,640 --> 00:14:30,920 that's in this piece of hardware, 280 00:14:31,100 --> 00:14:33,580 not just protect my stuff. 281 00:14:36,600 --> 00:14:37,640 Securing the SDLC. 282 00:14:39,320 --> 00:14:42,560 So if you're going to do full-blown SDL 283 00:14:42,560 --> 00:14:44,440 from Microsoft, great, right? 284 00:14:44,520 --> 00:14:45,520 But it takes a lot of effort. 285 00:14:45,700 --> 00:14:47,400 But how do you do that on a smaller scale? 286 00:14:48,280 --> 00:14:49,580 What are you really looking for? 287 00:14:49,800 --> 00:14:51,300 Well, the OWASP Top 10 is a great place 288 00:14:51,300 --> 00:14:51,440 to do that. 289 00:14:51,440 --> 00:14:52,960 So if you look at something like 290 00:14:52,960 --> 00:14:55,020 the Web Defender's Handbook, 291 00:14:55,240 --> 00:14:57,200 how do you mitigate particular attacks? 292 00:14:58,040 --> 00:14:59,940 In the case of an IoT device, 293 00:15:00,160 --> 00:15:02,420 you typically have an embedded piece of hardware. 294 00:15:02,660 --> 00:15:04,060 You've got a web server running. 295 00:15:04,300 --> 00:15:05,420 You may have a cloud environment. 296 00:15:05,660 --> 00:15:07,360 You've got the APIs and the mobile app. 297 00:15:07,600 --> 00:15:08,940 It's a lot of attack surface, 298 00:15:09,260 --> 00:15:10,620 which means you should be looking 299 00:15:10,620 --> 00:15:11,980 all the way through that code. 300 00:15:12,420 --> 00:15:13,260 Secure functions. 301 00:15:14,860 --> 00:15:17,780 Early evaluation of that 302 00:15:17,780 --> 00:15:18,680 throughout the process. 303 00:15:19,100 --> 00:15:21,220 And it also means training your QA 304 00:15:21,220 --> 00:15:21,880 and your developers 305 00:15:21,880 --> 00:15:22,740 on how to threat model, 306 00:15:23,020 --> 00:15:24,080 how to test for security, 307 00:15:24,700 --> 00:15:27,060 and how to really evaluate the product. 308 00:15:27,700 --> 00:15:29,280 Especially if you're a small security team, 309 00:15:29,360 --> 00:15:30,260 there's no way you can do it, 310 00:15:30,280 --> 00:15:31,780 so you need to get help from others. 311 00:15:33,420 --> 00:15:35,820 And then static and dynamic analysis of the code. 312 00:15:35,940 --> 00:15:38,000 Looking for actual vulnerabilities 313 00:15:38,000 --> 00:15:39,660 from the code flaws. 314 00:15:41,900 --> 00:15:45,560 So Microsoft has this SD3 plus C, right? 315 00:15:45,640 --> 00:15:47,080 And you would think that this is known 316 00:15:47,080 --> 00:15:48,360 because this has been around for a decade. 317 00:15:48,680 --> 00:15:50,880 But if you look at the vulnerabilities 318 00:15:50,880 --> 00:15:52,020 that come out from researchers, 319 00:15:52,360 --> 00:15:54,040 how many times do you see a camera 320 00:15:54,040 --> 00:15:55,760 with the default username and password? 321 00:15:56,480 --> 00:15:56,960 Right? 322 00:15:57,140 --> 00:15:59,200 Secure by design, right? 323 00:15:59,780 --> 00:16:01,500 Do you separate out the code 324 00:16:01,500 --> 00:16:03,540 so that if someone gets access to one function, 325 00:16:03,680 --> 00:16:05,520 they don't automatically get root access 326 00:16:05,520 --> 00:16:07,000 and have access to everything? 327 00:16:08,920 --> 00:16:09,780 Analyzing the threats. 328 00:16:10,560 --> 00:16:11,920 Vulnerability reduction, right? 329 00:16:12,280 --> 00:16:14,180 If there are ports open that aren't needed, 330 00:16:14,360 --> 00:16:14,900 close them. 331 00:16:15,080 --> 00:16:16,860 If there are services running that aren't needed, 332 00:16:17,000 --> 00:16:17,540 close them. 333 00:16:17,760 --> 00:16:20,500 If it's embedded Linux firmware, 334 00:16:20,500 --> 00:16:21,660 and you're using BusyBox, 335 00:16:22,080 --> 00:16:24,480 and BusyBox has everything that comes with the distribution 336 00:16:24,480 --> 00:16:25,420 and you don't need it, 337 00:16:25,540 --> 00:16:27,180 pull it out, right? 338 00:16:27,280 --> 00:16:29,340 Pull out everything and put it back one at a time 339 00:16:29,340 --> 00:16:30,820 and see what you really need on the device. 340 00:16:31,880 --> 00:16:33,420 Secure by default, right? 341 00:16:33,600 --> 00:16:35,400 We had a feature at Linksys, 342 00:16:36,140 --> 00:16:37,440 which was OpenVPN. 343 00:16:37,960 --> 00:16:40,120 Cool feature, but we probably figured 344 00:16:40,120 --> 00:16:42,700 2% of our users would actually use that feature. 345 00:16:43,020 --> 00:16:44,260 So turn it off by default. 346 00:16:44,540 --> 00:16:45,720 If they want to turn it on, 347 00:16:45,780 --> 00:16:47,460 the users that need it will actually enable it. 348 00:16:47,820 --> 00:16:49,580 Otherwise, you're just opening a port, 349 00:16:49,580 --> 00:16:51,440 you're opening a service that can be attacked. 350 00:16:52,680 --> 00:16:53,840 And then secure and deployment. 351 00:16:54,440 --> 00:16:55,920 And this goes back to a vulnerability 352 00:16:55,920 --> 00:16:58,000 that really got me into security research, 353 00:16:58,580 --> 00:17:01,060 where H.D. Moore was looking at cameras. 354 00:17:01,280 --> 00:17:02,360 And what he found is that 355 00:17:02,360 --> 00:17:04,800 the cameras, by default, didn't auto-answer. 356 00:17:04,940 --> 00:17:07,600 But the IT teams that were deploying them 357 00:17:07,600 --> 00:17:09,280 were turning them on to auto-answer to everything. 358 00:17:10,220 --> 00:17:12,300 So the security was built in by the manufacturer, 359 00:17:12,520 --> 00:17:14,100 but the IT team actually did exactly 360 00:17:14,100 --> 00:17:15,060 what they shouldn't have done. 361 00:17:15,240 --> 00:17:16,520 They disabled the security. 362 00:17:17,080 --> 00:17:19,460 So make sure when these devices are being deployed, 363 00:17:19,580 --> 00:17:21,380 right, do you really want your egg timer 364 00:17:21,380 --> 00:17:22,780 hacking your IT environment? 365 00:17:24,440 --> 00:17:25,440 And then communication. 366 00:17:25,700 --> 00:17:26,620 Make sure everyone knows. 367 00:17:27,420 --> 00:17:29,720 So why protect our supply chain? 368 00:17:30,080 --> 00:17:32,360 So this is something that I've talked to researchers about, 369 00:17:32,520 --> 00:17:33,920 where they send us a vulnerability, 370 00:17:34,240 --> 00:17:35,840 and they say, hey, you haven't fixed it. 371 00:17:35,920 --> 00:17:36,960 It's been 45 days. 372 00:17:38,080 --> 00:17:40,040 And I usually respond, well, that's great, 373 00:17:40,120 --> 00:17:41,540 but I haven't even had a build yet. 374 00:17:43,120 --> 00:17:46,020 So this is how an IoT device works. 375 00:17:46,100 --> 00:17:46,760 It's a little different. 376 00:17:47,340 --> 00:17:48,760 First, you get the chipset SDK. 377 00:17:49,640 --> 00:17:51,840 And that chipset SDK, you know, 378 00:17:51,840 --> 00:17:52,820 whether it comes from Broadcom 379 00:17:52,820 --> 00:17:54,540 or one of the other chip vendors, 380 00:17:55,160 --> 00:17:57,240 has communication libraries in it. 381 00:17:58,840 --> 00:18:00,500 If you think of a vulnerability recently 382 00:18:00,500 --> 00:18:01,480 in the last couple years, 383 00:18:01,680 --> 00:18:04,060 the UPnP vulnerability was a chipset SDK phone. 384 00:18:05,000 --> 00:18:07,600 The mini UPnP was part of the chipset SDK package. 385 00:18:08,080 --> 00:18:09,320 So as a manufacturer, 386 00:18:09,500 --> 00:18:11,420 we didn't have access to modify that. 387 00:18:11,840 --> 00:18:13,320 Right, but it's still in our code. 388 00:18:13,400 --> 00:18:14,600 We're still responsible for it. 389 00:18:15,080 --> 00:18:16,820 Then you've got the board support package. 390 00:18:17,400 --> 00:18:19,480 Right, that's your bootloader, 391 00:18:19,480 --> 00:18:20,600 that the ODM gives you, 392 00:18:20,680 --> 00:18:22,080 your original development manufacturer, 393 00:18:22,640 --> 00:18:24,780 any drivers for the specific hardware, 394 00:18:25,320 --> 00:18:26,700 and support software. 395 00:18:27,600 --> 00:18:29,700 When we say support software, 396 00:18:29,860 --> 00:18:31,280 what we really mean is backdoors. 397 00:18:31,860 --> 00:18:33,560 And so let's be very clear on this. 398 00:18:33,660 --> 00:18:35,520 Most of the time, the backdoors that you hear about 399 00:18:35,520 --> 00:18:37,720 in IoT devices are in the board support package. 400 00:18:38,460 --> 00:18:40,740 The original intention of that code 401 00:18:40,740 --> 00:18:43,440 is to verify off the production line 402 00:18:43,440 --> 00:18:45,120 what that hardware is doing. 403 00:18:45,580 --> 00:18:47,340 Is the MAC address program right? 404 00:18:47,480 --> 00:18:48,660 Is the serial number correct? 405 00:18:49,480 --> 00:18:50,320 Does the serial port work? 406 00:18:50,500 --> 00:18:51,780 Do the lights work properly? 407 00:18:52,780 --> 00:18:55,200 But what ends up happening is a lot of those tools 408 00:18:55,200 --> 00:18:56,560 have other features, 409 00:18:56,700 --> 00:18:58,500 like root access to the command line. 410 00:18:59,460 --> 00:19:01,460 The question is, why is it there? 411 00:19:02,260 --> 00:19:05,000 And if it needed to be there for testing, 412 00:19:05,940 --> 00:19:07,740 does it need to be there once it goes to production? 413 00:19:08,080 --> 00:19:09,320 The clear answer is no. 414 00:19:10,400 --> 00:19:12,160 And then you've got the manufacturer code, 415 00:19:12,280 --> 00:19:13,400 the firmware, and the UI. 416 00:19:14,120 --> 00:19:16,200 So from a researcher perspective, 417 00:19:16,360 --> 00:19:18,240 if you start looking at vulnerabilities 418 00:19:18,240 --> 00:19:19,180 and you find, 419 00:19:19,180 --> 00:19:20,460 hey, Linksys has a vulnerability, 420 00:19:20,960 --> 00:19:21,880 the question is, 421 00:19:21,900 --> 00:19:23,240 is it really a Linksys vulnerability? 422 00:19:23,900 --> 00:19:25,800 Or is it an Edimax, an Arcadian, 423 00:19:26,060 --> 00:19:28,640 Circom, or any one number of ODMs 424 00:19:28,640 --> 00:19:30,540 that are used by tons of vendors? 425 00:19:31,380 --> 00:19:32,680 Asus, NECI, or D-Link? 426 00:19:32,920 --> 00:19:34,720 They're using a lot of the same ODMs. 427 00:19:36,360 --> 00:19:38,580 So if you focus the right place 428 00:19:38,580 --> 00:19:40,680 and it looks like it's drivers, 429 00:19:41,360 --> 00:19:43,540 then maybe you need to look at other devices 430 00:19:43,540 --> 00:19:44,640 that have the same chipset 431 00:19:44,640 --> 00:19:47,060 or other devices that came from the same ODM 432 00:19:47,060 --> 00:19:47,740 and look at that code. 433 00:19:47,860 --> 00:19:49,080 And what you'll find is, 434 00:19:49,180 --> 00:19:50,600 if you put the pressure in the right place, 435 00:19:50,700 --> 00:19:52,100 we can get things fixed a lot easier. 436 00:19:55,800 --> 00:19:56,540 Monitoring and force. 437 00:19:57,540 --> 00:20:00,100 So if you're trying to build an AppSec 438 00:20:00,100 --> 00:20:02,440 and product security team, 439 00:20:02,580 --> 00:20:03,980 there's a lot of tools out there. 440 00:20:04,720 --> 00:20:07,700 But clearly, if you're trying to prove the point, 441 00:20:07,900 --> 00:20:09,400 you don't necessarily have the budget. 442 00:20:09,620 --> 00:20:11,020 Lots of tools don't work together. 443 00:20:11,700 --> 00:20:13,960 You may not even have the staff to run it, right? 444 00:20:14,520 --> 00:20:16,260 Especially when you get into operational security. 445 00:20:16,600 --> 00:20:18,920 If the tool takes five people to run, 446 00:20:19,180 --> 00:20:21,860 you've met the entire Linksys security team 447 00:20:21,860 --> 00:20:22,280 when we started. 448 00:20:22,480 --> 00:20:23,140 There were two of us. 449 00:20:23,640 --> 00:20:24,820 We didn't even have the bandwidth 450 00:20:24,820 --> 00:20:25,840 to run some of these tools. 451 00:20:26,600 --> 00:20:28,900 So we needed to look at what we could do 452 00:20:28,900 --> 00:20:30,020 with what we did have 453 00:20:30,020 --> 00:20:31,020 and who we could leverage. 454 00:20:33,580 --> 00:20:35,200 And even if you spent $20 million, 455 00:20:35,500 --> 00:20:36,440 when I was at Rapid7, 456 00:20:36,580 --> 00:20:37,600 we'd talk to these customers 457 00:20:37,600 --> 00:20:39,340 and they'd get hacked 458 00:20:39,340 --> 00:20:41,320 and they would talk about all the things they bought. 459 00:20:41,560 --> 00:20:43,720 Their IDS, their IPS, their firewalls, 460 00:20:43,720 --> 00:20:45,480 anything that they needed 461 00:20:45,480 --> 00:20:47,080 or anything that they were told to buy. 462 00:20:48,060 --> 00:20:48,880 But if you don't know 463 00:20:48,880 --> 00:20:49,380 how to use it, 464 00:20:49,420 --> 00:20:50,220 it doesn't prevent attacks. 465 00:20:50,680 --> 00:20:51,780 Even if you have it 466 00:20:51,780 --> 00:20:52,500 and know how to use it, 467 00:20:52,520 --> 00:20:53,320 it doesn't prevent attacks. 468 00:20:54,500 --> 00:20:57,300 So other things like appliances, right? 469 00:20:57,440 --> 00:20:58,980 Security vendors love appliances. 470 00:20:59,480 --> 00:21:01,260 But if you're using virtualized hosting, 471 00:21:01,420 --> 00:21:02,240 you can't use them. 472 00:21:02,920 --> 00:21:04,320 You also have to understand 473 00:21:04,320 --> 00:21:05,720 what's the model of, 474 00:21:06,340 --> 00:21:07,780 if you're looking at Amazon, 475 00:21:08,060 --> 00:21:09,260 what does Amazon protect 476 00:21:09,260 --> 00:21:10,300 versus what do you protect? 477 00:21:10,920 --> 00:21:12,860 What's the balance of security 478 00:21:12,860 --> 00:21:13,680 and who owns what? 479 00:21:17,020 --> 00:21:17,880 So measuring. 480 00:21:18,080 --> 00:21:18,860 How do you measure? 481 00:21:18,880 --> 00:21:20,360 You measure your application security 482 00:21:20,360 --> 00:21:21,400 and product security program. 483 00:21:22,460 --> 00:21:22,980 Well, 484 00:21:24,220 --> 00:21:25,900 what can you report on 485 00:21:25,900 --> 00:21:26,940 from what's being deployed? 486 00:21:27,320 --> 00:21:29,400 How many vulnerabilities are happening in your code? 487 00:21:29,680 --> 00:21:30,940 As you build your program 488 00:21:30,940 --> 00:21:32,020 and you're checking the source code, 489 00:21:32,320 --> 00:21:34,640 how many are you finding early in the process 490 00:21:34,640 --> 00:21:35,920 versus how many are you finding late? 491 00:21:36,340 --> 00:21:38,120 What's your scale look like 492 00:21:38,120 --> 00:21:40,640 for your incident response? 493 00:21:41,300 --> 00:21:42,600 Is it spiking up? 494 00:21:42,980 --> 00:21:44,820 Or are you getting a lot of those vulnerabilities 495 00:21:44,820 --> 00:21:46,020 early in the process now? 496 00:21:48,880 --> 00:21:50,300 You know, security analysis 497 00:21:50,800 --> 00:21:52,000 becomes very difficult 498 00:21:52,000 --> 00:21:53,580 if you don't have a lot of resources. 499 00:21:54,600 --> 00:21:56,860 But I'm pretty sure most IoT teams 500 00:21:56,860 --> 00:21:59,140 have some analytics team, right? 501 00:21:59,280 --> 00:22:00,820 So what we did is we looked at, 502 00:22:00,900 --> 00:22:02,120 well, we've got some data analytics. 503 00:22:02,600 --> 00:22:04,620 We know what reports we need to look at. 504 00:22:05,620 --> 00:22:06,720 We'll have them build them. 505 00:22:07,360 --> 00:22:07,840 Right? 506 00:22:07,860 --> 00:22:09,960 So if we see an account 507 00:22:09,960 --> 00:22:11,780 that shouldn't be on server one, 508 00:22:12,560 --> 00:22:14,780 but suddenly gets transferred to server one 509 00:22:14,780 --> 00:22:16,880 after a bunch of failed logon attempts 510 00:22:16,880 --> 00:22:18,080 in server two, 511 00:22:18,880 --> 00:22:19,460 it should be a red flag. 512 00:22:19,980 --> 00:22:20,340 Right? 513 00:22:20,420 --> 00:22:22,840 So if you have a data team 514 00:22:22,840 --> 00:22:24,000 that can grab the logs for you, 515 00:22:24,060 --> 00:22:26,340 use them to help you build your monitoring for security. 516 00:22:26,680 --> 00:22:28,280 You don't need to go out and spend $2 million 517 00:22:28,280 --> 00:22:29,620 if you don't have that budget. 518 00:22:29,920 --> 00:22:30,920 You can, you know, 519 00:22:30,920 --> 00:22:32,660 there's no reason to use it as an excuse. 520 00:22:37,520 --> 00:22:39,400 So one of the companies I worked at 521 00:22:39,400 --> 00:22:40,260 was Linksys and Belkin. 522 00:22:40,460 --> 00:22:41,780 So this is a bit of a case study 523 00:22:41,780 --> 00:22:43,180 on how we built security there. 524 00:22:43,520 --> 00:22:44,740 So we had no budget. 525 00:22:44,920 --> 00:22:47,440 We had limited monitoring and controls in place. 526 00:22:48,120 --> 00:22:48,800 We kept on, 527 00:22:48,880 --> 00:22:50,020 we kept on getting these ODM vulnerabilities. 528 00:22:53,200 --> 00:22:54,580 How many have heard of the moon malware? 529 00:22:55,360 --> 00:22:55,800 Anyone? 530 00:22:56,020 --> 00:22:56,420 No? 531 00:22:57,260 --> 00:22:58,840 So we had the moon malware. 532 00:22:59,100 --> 00:23:00,320 We had an open SSH, 533 00:23:00,320 --> 00:23:01,320 open SSL, 534 00:23:01,520 --> 00:23:03,300 which didn't affect us very much, 535 00:23:03,420 --> 00:23:06,140 but these were becoming a regular occurrence. 536 00:23:06,540 --> 00:23:09,280 So there's two of us, 537 00:23:09,340 --> 00:23:09,760 and we figured, 538 00:23:09,880 --> 00:23:10,120 all right, 539 00:23:10,140 --> 00:23:11,140 we've got to be able to do something. 540 00:23:12,840 --> 00:23:14,860 So we also were doing limited tools, 541 00:23:15,080 --> 00:23:15,620 limited automation. 542 00:23:16,700 --> 00:23:18,320 It was mostly a manual process. 543 00:23:21,380 --> 00:23:22,080 So first, 544 00:23:22,180 --> 00:23:23,700 we created an incident response, right? 545 00:23:23,740 --> 00:23:24,440 Let's just make sure 546 00:23:24,440 --> 00:23:26,100 that people can communicate with us, right? 547 00:23:26,200 --> 00:23:27,560 If a researcher reaches out, 548 00:23:27,620 --> 00:23:29,120 they want to submit a vulnerability to them, 549 00:23:29,520 --> 00:23:30,580 we rewarded them. 550 00:23:30,680 --> 00:23:32,300 We gave them new hardware, right? 551 00:23:32,360 --> 00:23:34,540 You found something on EA 2700, great. 552 00:23:34,820 --> 00:23:35,840 Here's our brand new router. 553 00:23:35,920 --> 00:23:36,580 Go have fun with it. 554 00:23:37,820 --> 00:23:39,520 The response we would get is, 555 00:23:40,000 --> 00:23:40,340 you know, 556 00:23:40,340 --> 00:23:43,060 people were happy that we wanted to talk to them. 557 00:23:43,240 --> 00:23:44,380 We didn't threaten them. 558 00:23:44,480 --> 00:23:46,140 We didn't tell them to go to hell. 559 00:23:46,220 --> 00:23:46,780 I mean, you know, 560 00:23:46,800 --> 00:23:48,420 there was no security by obscurity. 561 00:23:49,340 --> 00:23:52,160 We also started reverse engineering the code 562 00:23:52,160 --> 00:23:53,940 that was getting from the ODMs. 563 00:23:54,440 --> 00:23:56,120 And this is where it got a little interesting 564 00:23:56,120 --> 00:23:57,160 and a little scary for us. 565 00:23:57,960 --> 00:23:59,920 So the contract that we had says 566 00:23:59,920 --> 00:24:01,340 we're not actually allowed to look at their code. 567 00:24:01,780 --> 00:24:03,880 But we know that there were back doors in it 568 00:24:03,880 --> 00:24:05,400 because of security researchers 569 00:24:05,400 --> 00:24:07,080 releasing information elsewhere. 570 00:24:07,720 --> 00:24:09,480 So we started looking at the code. 571 00:24:10,760 --> 00:24:12,580 And we actually got a little lucky 572 00:24:12,580 --> 00:24:13,880 because we had one of our engineers 573 00:24:13,880 --> 00:24:15,520 who was on site at this ODM 574 00:24:16,060 --> 00:24:18,860 and saw this manufacturing tool. 575 00:24:18,880 --> 00:24:20,680 And took a screenshot of it. 576 00:24:21,080 --> 00:24:22,380 And when we started looking at it, 577 00:24:22,400 --> 00:24:23,040 what we realized is 578 00:24:23,040 --> 00:24:24,180 they had a lot more 579 00:24:24,180 --> 00:24:25,340 and a lot scarier things 580 00:24:25,340 --> 00:24:26,440 than what we realized. 581 00:24:28,260 --> 00:24:30,540 The ODM tried to justify this code. 582 00:24:30,980 --> 00:24:32,720 That it was for, you know, 583 00:24:33,360 --> 00:24:34,120 validating the product 584 00:24:34,120 --> 00:24:35,440 and that they needed to keep it. 585 00:24:35,980 --> 00:24:38,220 And they actually did some pretty sketchy things 586 00:24:38,220 --> 00:24:39,520 to try and keep that code there. 587 00:24:39,680 --> 00:24:41,660 But luckily, they were caught. 588 00:24:42,800 --> 00:24:44,380 In fact, what they tried to do 589 00:24:44,380 --> 00:24:45,920 is they took an executable 590 00:24:45,920 --> 00:24:46,840 and they made it a library 591 00:24:46,840 --> 00:24:47,740 so they could call it 592 00:24:47,740 --> 00:24:48,720 and try and hide it 593 00:24:48,720 --> 00:24:49,040 from us. 594 00:24:49,680 --> 00:24:50,120 But, 595 00:24:51,180 --> 00:24:52,880 so we started mandating 596 00:24:52,880 --> 00:24:55,280 that all of our ODM vendors 597 00:24:55,280 --> 00:24:57,220 would basically undergo code audit. 598 00:24:57,360 --> 00:24:58,040 So any libraries, 599 00:24:58,380 --> 00:24:59,500 any SDKs they gave us 600 00:24:59,500 --> 00:25:00,760 had to go through a full security audit. 601 00:25:01,120 --> 00:25:04,160 They could choose the vendor 602 00:25:04,160 --> 00:25:04,820 that they went through 603 00:25:04,820 --> 00:25:05,940 from approved vendor list. 604 00:25:07,660 --> 00:25:08,920 And as expected, 605 00:25:09,080 --> 00:25:09,720 what happened is 606 00:25:09,720 --> 00:25:10,460 they all pushed back. 607 00:25:11,340 --> 00:25:12,740 So we thought about it 608 00:25:12,740 --> 00:25:13,980 and tried to figure out 609 00:25:13,980 --> 00:25:15,020 how do we leverage 610 00:25:15,020 --> 00:25:16,200 the rest of the company 611 00:25:16,200 --> 00:25:17,020 to make sure this happens. 612 00:25:17,600 --> 00:25:18,460 Well, it turns out 613 00:25:18,460 --> 00:25:19,480 the purchasing department 614 00:25:19,480 --> 00:25:20,460 has a lot of pull. 615 00:25:21,500 --> 00:25:22,540 So we went to them 616 00:25:22,540 --> 00:25:23,180 and talked to them 617 00:25:23,180 --> 00:25:23,460 and said, 618 00:25:23,560 --> 00:25:23,760 all right, 619 00:25:23,840 --> 00:25:25,320 we really need to enforce this 620 00:25:25,320 --> 00:25:26,000 with ODMs. 621 00:25:26,080 --> 00:25:27,200 We've got five or six of them 622 00:25:27,200 --> 00:25:27,740 we're dealing with. 623 00:25:28,000 --> 00:25:29,440 Can you help us enforce this? 624 00:25:29,760 --> 00:25:30,860 And what we found is 625 00:25:30,860 --> 00:25:32,320 they would just go to the ODMs 626 00:25:32,320 --> 00:25:32,920 and say, guess what? 627 00:25:33,080 --> 00:25:34,120 We've got five projects 628 00:25:34,120 --> 00:25:34,780 that are coming up. 629 00:25:34,920 --> 00:25:35,740 If you want this project, 630 00:25:35,860 --> 00:25:36,420 you're going to do this. 631 00:25:36,700 --> 00:25:37,040 Otherwise, 632 00:25:37,160 --> 00:25:38,220 there's four other ODMs 633 00:25:38,220 --> 00:25:40,220 that are willing to do this already. 634 00:25:41,320 --> 00:25:42,980 So we may not have had the staff 635 00:25:42,980 --> 00:25:43,600 to do it ourselves, 636 00:25:43,820 --> 00:25:44,840 but we leveraged legal. 637 00:25:45,020 --> 00:25:46,060 We leveraged purchasing 638 00:25:46,060 --> 00:25:47,160 and other departments 639 00:25:47,160 --> 00:25:47,720 to help us. 640 00:25:49,760 --> 00:25:51,660 We deployed password management, 641 00:25:51,860 --> 00:25:52,420 made sure that 642 00:25:52,420 --> 00:25:53,720 source code access was strong, 643 00:25:53,900 --> 00:25:54,680 made sure that 644 00:25:54,680 --> 00:25:55,860 whoever was accessing 645 00:25:55,860 --> 00:25:57,260 any of our documentation, 646 00:25:57,640 --> 00:25:59,740 that laptops were getting encrypted 647 00:25:59,740 --> 00:26:01,160 or getting protected, 648 00:26:01,360 --> 00:26:03,500 and maintained library list versions 649 00:26:03,500 --> 00:26:04,120 so that we could 650 00:26:04,120 --> 00:26:04,980 very easily respond. 651 00:26:05,440 --> 00:26:07,320 So when Heartbleed came out, 652 00:26:07,460 --> 00:26:08,540 the only reason 653 00:26:08,540 --> 00:26:10,080 it was a five-minute response for us 654 00:26:10,080 --> 00:26:11,540 was because we had that list. 655 00:26:12,660 --> 00:26:14,240 The Linksys SKU list 656 00:26:14,240 --> 00:26:16,320 was something around 400 devices 657 00:26:16,320 --> 00:26:17,280 if you figure out 658 00:26:17,280 --> 00:26:18,200 if you figure out 659 00:26:18,800 --> 00:26:20,320 there's 20, 30 devices 660 00:26:20,320 --> 00:26:21,320 and there's versions 661 00:26:21,320 --> 00:26:22,380 for every single country. 662 00:26:23,040 --> 00:26:24,320 So that's a long list 663 00:26:24,320 --> 00:26:25,160 to go through to figure out 664 00:26:25,160 --> 00:26:26,500 if you've got a library phone 665 00:26:26,500 --> 00:26:27,600 every time one comes out. 666 00:26:28,100 --> 00:26:29,460 But it's a really easy 667 00:26:29,460 --> 00:26:30,140 Excel spreadsheet 668 00:26:30,140 --> 00:26:31,040 once you put it together. 669 00:26:34,380 --> 00:26:35,440 So the massive, 670 00:26:36,760 --> 00:26:38,180 massive phone we had. 671 00:26:38,360 --> 00:26:42,540 So we had an ISP in Idaho, 672 00:26:42,660 --> 00:26:43,240 I believe it was, 673 00:26:43,400 --> 00:26:45,000 that contacted us 674 00:26:45,000 --> 00:26:46,200 and said that they were seeing 675 00:26:46,200 --> 00:26:47,600 a huge amount of traffic 676 00:26:47,600 --> 00:26:48,180 on port 80. 677 00:26:48,180 --> 00:26:50,700 And it was only 678 00:26:50,700 --> 00:26:52,180 their Linksys deployed devices 679 00:26:52,180 --> 00:26:53,040 in homes 680 00:26:53,040 --> 00:26:54,120 that they were seeing it on. 681 00:26:54,740 --> 00:26:56,240 And about the same time, 682 00:26:56,320 --> 00:26:57,640 SAN started picking this up. 683 00:26:58,820 --> 00:27:00,080 It very quickly 684 00:27:00,080 --> 00:27:01,140 took on the name 685 00:27:01,140 --> 00:27:01,940 the Moon Malware. 686 00:27:02,420 --> 00:27:03,980 And it was one of the first 687 00:27:03,980 --> 00:27:05,160 self-replicating malware 688 00:27:05,160 --> 00:27:05,940 that we had seen. 689 00:27:06,600 --> 00:27:08,220 So essentially what it was doing is 690 00:27:08,220 --> 00:27:12,100 it was infecting the routers 691 00:27:12,100 --> 00:27:13,580 using URL injection 692 00:27:13,580 --> 00:27:15,560 because it dropped the temp file 693 00:27:15,560 --> 00:27:17,100 and then was picking that temp file up. 694 00:27:18,180 --> 00:27:18,860 And then it was scanning 695 00:27:18,860 --> 00:27:20,320 the entire internet 696 00:27:20,640 --> 00:27:21,900 for other routers 697 00:27:21,900 --> 00:27:22,820 of the same model. 698 00:27:23,480 --> 00:27:25,480 So that once one was infected, 699 00:27:25,660 --> 00:27:27,120 it would continue scanning for others. 700 00:27:27,320 --> 00:27:29,140 And every time it picked up another router, 701 00:27:29,280 --> 00:27:30,480 they would each start scanning. 702 00:27:30,860 --> 00:27:32,860 So this was a memory resident Vaughn. 703 00:27:33,000 --> 00:27:34,400 When you rebooted the router, 704 00:27:34,640 --> 00:27:35,460 the Vaughn was gone. 705 00:27:35,920 --> 00:27:37,580 Except within minutes, 706 00:27:37,720 --> 00:27:39,260 it got scanned again and infected. 707 00:27:39,900 --> 00:27:42,360 So every time you rebooted a device, 708 00:27:42,560 --> 00:27:44,300 it kept on getting repaired and infected. 709 00:27:45,100 --> 00:27:45,620 Now, 710 00:27:46,240 --> 00:27:47,360 the, the, 711 00:27:47,360 --> 00:27:48,660 the malware author in this 712 00:27:48,660 --> 00:27:50,400 was basically just doing Bitcoin mining. 713 00:27:50,600 --> 00:27:51,820 But what could they have done? 714 00:27:52,080 --> 00:27:53,500 Well, they could have done pretty much anything 715 00:27:53,500 --> 00:27:55,500 because they had access to look at all the traffic. 716 00:27:57,880 --> 00:27:59,600 So Amanda very quickly learned 717 00:27:59,600 --> 00:28:00,720 how to reverse engineer code, 718 00:28:01,860 --> 00:28:03,300 which is, you know, 719 00:28:03,300 --> 00:28:04,500 kind of one of the other points. 720 00:28:04,720 --> 00:28:06,140 If you're building the AppSec team, 721 00:28:06,240 --> 00:28:07,580 you want to get the right people, right? 722 00:28:07,620 --> 00:28:08,700 People who are passionate about security, 723 00:28:08,860 --> 00:28:09,640 who are willing to learn, 724 00:28:09,720 --> 00:28:12,040 who are incentivized, right? 725 00:28:12,140 --> 00:28:13,660 Who really enjoy learning. 726 00:28:14,460 --> 00:28:16,100 They were targeting nine SKUs 727 00:28:16,100 --> 00:28:17,320 and a million total devices. 728 00:28:17,360 --> 00:28:19,960 And I bet the guy's kicking himself now 729 00:28:19,960 --> 00:28:21,980 because what he really had once we figured it out 730 00:28:21,980 --> 00:28:24,500 was 31 SKUs and 15 million devices were vulnerable. 731 00:28:24,880 --> 00:28:27,040 Would have been the second largest botnet in history 732 00:28:27,040 --> 00:28:29,180 according to, to the sources we looked at. 733 00:28:29,420 --> 00:28:31,440 So we did some showed in searches really quick. 734 00:28:31,640 --> 00:28:34,260 Started seeing, you know, 735 00:28:35,080 --> 00:28:36,980 started seeing the large number of devices 736 00:28:36,980 --> 00:28:37,900 that were still deployed, 737 00:28:38,100 --> 00:28:39,720 which was a handy tool for us to use. 738 00:28:40,740 --> 00:28:44,580 The problem we encountered is only two of the 31 SKUs 739 00:28:44,860 --> 00:28:45,520 were in support. 740 00:28:45,520 --> 00:28:47,680 We had just bought Linksys 741 00:28:47,680 --> 00:28:49,300 and I had to go to the executive management 742 00:28:49,300 --> 00:28:50,100 and say, guess what? 743 00:28:50,780 --> 00:28:52,540 Every one of our devices is vulnerable 744 00:28:52,540 --> 00:28:53,500 that we just picked up. 745 00:28:54,640 --> 00:28:59,060 I was not exactly the most popular person 746 00:28:59,060 --> 00:29:00,660 in the boardroom that day. 747 00:29:01,840 --> 00:29:03,540 We decided to fix all 31. 748 00:29:04,520 --> 00:29:08,340 And this was a hundred pages at least per device 749 00:29:08,340 --> 00:29:10,280 and it took us roughly seven months. 750 00:29:12,440 --> 00:29:15,420 But when we talk about how do you prove application security, 751 00:29:15,520 --> 00:29:16,820 how do you get leverage for it? 752 00:29:17,240 --> 00:29:18,580 Well, we had been saying all along 753 00:29:19,100 --> 00:29:22,040 that we're spending a lot of money re-architecting 754 00:29:22,040 --> 00:29:23,180 when we have these kind of vulnerabilities. 755 00:29:23,740 --> 00:29:26,540 And that if we had just done proactive approach 756 00:29:26,540 --> 00:29:27,880 to finding security bones, 757 00:29:28,100 --> 00:29:30,620 if we were looking at the code, 758 00:29:30,840 --> 00:29:32,080 if we were looking at pen testing, 759 00:29:32,240 --> 00:29:33,520 if we were looking at bug bounty programs, 760 00:29:34,120 --> 00:29:36,000 we wouldn't have all this re-architecture. 761 00:29:37,000 --> 00:29:39,380 This was the first time that they started listening 762 00:29:39,380 --> 00:29:42,400 and realized that we spent seven months fixing products 763 00:29:42,400 --> 00:29:45,400 that had pretty, were pretty old. 764 00:29:45,520 --> 00:29:47,560 But if we did this on new products, 765 00:29:47,760 --> 00:29:49,200 it would make us a lot more effective. 766 00:29:49,500 --> 00:29:51,280 We wouldn't spend all this time, you know, 767 00:29:51,280 --> 00:29:52,940 re-architecting them, patching them. 768 00:29:53,180 --> 00:29:54,940 What we'd spend our time on is building new features. 769 00:29:59,060 --> 00:30:00,780 So then I moved on to Wink. 770 00:30:01,240 --> 00:30:04,380 And I thought, well, I had a decent site security team 771 00:30:04,380 --> 00:30:07,740 when I left Belkin of four people, roughly, 772 00:30:08,820 --> 00:30:10,360 which was double what we started with. 773 00:30:11,580 --> 00:30:12,840 Now I'm going to try it with a company 774 00:30:12,840 --> 00:30:14,360 that really had even less resources, 775 00:30:14,520 --> 00:30:15,500 but they were a lot more efficient. 776 00:30:15,500 --> 00:30:15,980 They were a lot more willing. 777 00:30:16,980 --> 00:30:18,940 So they had done some pen testing. 778 00:30:19,540 --> 00:30:22,260 And raise your hand if you're familiar with the Wink Hub. 779 00:30:22,420 --> 00:30:22,640 Anyone? 780 00:30:23,580 --> 00:30:26,200 So the Wink Hub is a, it has six radios in it. 781 00:30:26,320 --> 00:30:29,220 It is a IoT hub that you can communicate 782 00:30:29,220 --> 00:30:30,040 with all your devices. 783 00:30:30,180 --> 00:30:30,940 You control them all. 784 00:30:31,980 --> 00:30:34,280 And a month after it was released, 785 00:30:34,340 --> 00:30:37,040 it was rooted at DEF CON last year. 786 00:30:37,400 --> 00:30:38,500 Just fantastic timing. 787 00:30:39,880 --> 00:30:42,460 The developers, though, when I talked to them, 788 00:30:42,500 --> 00:30:44,500 they were all interested in security. 789 00:30:44,500 --> 00:30:46,520 They wanted me to teach them secure coding. 790 00:30:46,760 --> 00:30:48,720 They wanted to learn how to do threat models. 791 00:30:49,060 --> 00:30:50,080 They were passionate about it. 792 00:30:50,120 --> 00:30:51,040 They just didn't know how to do it. 793 00:30:52,380 --> 00:30:53,680 So that was great. 794 00:30:53,860 --> 00:30:54,700 Developers bought in. 795 00:30:54,780 --> 00:30:55,820 What about the company? 796 00:30:56,380 --> 00:30:57,700 So I talked to the executives. 797 00:30:57,900 --> 00:30:59,900 And not only do they want to do security, 798 00:31:00,120 --> 00:31:02,120 they wanted to be able to contribute code back 799 00:31:02,120 --> 00:31:03,020 to open source. 800 00:31:03,340 --> 00:31:04,860 They wanted to be able to help their partners. 801 00:31:05,160 --> 00:31:06,620 So they were fully bought into it. 802 00:31:06,980 --> 00:31:08,680 And for me, that was fantastic. 803 00:31:08,940 --> 00:31:10,900 So I joined up. 804 00:31:12,540 --> 00:31:14,480 Every single developer on the development team, 805 00:31:14,480 --> 00:31:15,460 learned how to do a threat model. 806 00:31:16,360 --> 00:31:18,840 I was the only security person on staff. 807 00:31:19,920 --> 00:31:23,460 So there's no possible way I could have done threat models 808 00:31:23,460 --> 00:31:25,880 and code audits of every feature and product 809 00:31:25,880 --> 00:31:26,780 that they were working on. 810 00:31:27,200 --> 00:31:28,420 So the developers did it. 811 00:31:28,660 --> 00:31:29,580 We leveraged them. 812 00:31:30,000 --> 00:31:31,420 Not only do they want to do it, 813 00:31:31,500 --> 00:31:34,460 we'd have five or six sessions for any threat model. 814 00:31:35,600 --> 00:31:37,940 They'd start recommending things they should change 815 00:31:37,940 --> 00:31:41,380 in the code, things they should change in the infrastructure. 816 00:31:41,740 --> 00:31:43,520 The data team got on board with it. 817 00:31:44,480 --> 00:31:47,320 We built a data model for consumers. 818 00:31:47,460 --> 00:31:49,340 They could actually see, hey, here's 819 00:31:49,340 --> 00:31:50,340 how we're collecting your data. 820 00:31:50,440 --> 00:31:51,340 Here's what we're using it for. 821 00:31:51,440 --> 00:31:52,260 Here's how we share it. 822 00:31:52,660 --> 00:31:54,720 So that it wasn't just security we're looking at, 823 00:31:54,800 --> 00:31:55,600 but privacy as well. 824 00:31:56,380 --> 00:31:57,960 We created a bug bounty program. 825 00:31:58,240 --> 00:32:00,400 We created security at Wink so that people 826 00:32:00,400 --> 00:32:01,780 could communicate with us. 827 00:32:02,160 --> 00:32:04,260 There were security websites for consumers. 828 00:32:04,480 --> 00:32:05,860 There were security websites for researchers. 829 00:32:06,240 --> 00:32:07,880 How do you submit vulnerabilities to us? 830 00:32:08,460 --> 00:32:10,820 For a consumer, what products are vulnerable? 831 00:32:11,040 --> 00:32:11,800 How do you patch them? 832 00:32:12,200 --> 00:32:13,320 What's the updated firmware? 833 00:32:13,780 --> 00:32:14,460 What do you need? 834 00:32:14,480 --> 00:32:14,860 What do you need to know? 835 00:32:17,080 --> 00:32:19,200 And then something interesting started to happen. 836 00:32:19,900 --> 00:32:21,380 We started to find vulnerabilities, 837 00:32:21,600 --> 00:32:23,700 and before I'd even asked the development team to fix them, 838 00:32:23,780 --> 00:32:24,660 they were patched. 839 00:32:25,400 --> 00:32:26,840 Because not only did they care, 840 00:32:27,040 --> 00:32:29,140 they started realizing the implication. 841 00:32:29,840 --> 00:32:31,580 And we had things that were being patched faster 842 00:32:31,580 --> 00:32:33,160 than I ever had expected before. 843 00:32:36,020 --> 00:32:38,080 So we did a bug crowd bug bounty. 844 00:32:38,440 --> 00:32:42,380 And I thought, well, we had some limited pen testing 845 00:32:42,380 --> 00:32:43,400 from external resources. 846 00:32:44,480 --> 00:32:46,080 But what I'd really like to see is, 847 00:32:46,120 --> 00:32:49,220 I want to see people who are really IoT experts 848 00:32:49,220 --> 00:32:50,700 that are going to hammer on this thing. 849 00:32:51,360 --> 00:32:53,360 Now, I continued a program that I had at Belkin 850 00:32:53,360 --> 00:32:55,380 where any time a researcher would submit a vulnerability, 851 00:32:55,660 --> 00:32:56,520 I'd give them free hardware. 852 00:32:57,000 --> 00:32:59,060 Because where I didn't have money, I did have product. 853 00:32:59,720 --> 00:33:01,320 And so the Wink Hub was $50. 854 00:33:02,600 --> 00:33:04,840 Didn't matter to me if I sent out 100 of them, right? 855 00:33:04,920 --> 00:33:05,920 If there was a researcher interested, 856 00:33:06,280 --> 00:33:07,420 I gave it to them for free. 857 00:33:07,740 --> 00:33:09,260 Because if you're looking to do research, 858 00:33:09,400 --> 00:33:11,060 and you've got product in your hand, 859 00:33:11,120 --> 00:33:12,560 as opposed to going to buy product, 860 00:33:13,680 --> 00:33:14,460 you're more likely to lose money. 861 00:33:14,460 --> 00:33:15,460 You're more than likely going to look at it. 862 00:33:15,940 --> 00:33:17,600 So we got 26 researchers. 863 00:33:18,120 --> 00:33:20,200 Now, when we did this, I made sure that not only 864 00:33:20,200 --> 00:33:21,920 had they done bug bounties for IoT before, 865 00:33:22,120 --> 00:33:23,360 but they had actually submitted, 866 00:33:23,540 --> 00:33:24,900 and not just weak vulnerabilities, 867 00:33:25,240 --> 00:33:27,540 that they had submitted high severity vulnerabilities 868 00:33:27,540 --> 00:33:29,260 so they knew what they were talking about. 869 00:33:29,600 --> 00:33:31,460 We got 26 hand-picked researchers 870 00:33:31,460 --> 00:33:33,220 that were some of the top IoT researchers 871 00:33:33,220 --> 00:33:33,920 around the country. 872 00:33:34,520 --> 00:33:38,020 Two weeks, and we got 14 unique submissions. 873 00:33:39,160 --> 00:33:41,620 The total cost was $15,300. 874 00:33:42,400 --> 00:33:43,560 Now, if you think about that, 875 00:33:44,460 --> 00:33:45,320 if I sent out a pen tester, 876 00:33:45,480 --> 00:33:48,960 one pen tester for two weeks is between 10 and 20K. 877 00:33:49,800 --> 00:33:53,160 So I, for a very similar value, 878 00:33:53,340 --> 00:33:54,640 I got a lot more out of it. 879 00:33:55,080 --> 00:33:57,640 Now, that doesn't mean I wouldn't hire pen testers 880 00:33:57,640 --> 00:33:58,780 to do, to work on the product. 881 00:33:58,980 --> 00:34:00,220 What it means is you supplement. 882 00:34:00,720 --> 00:34:02,700 Because you're going to get a lot different exposure 883 00:34:02,700 --> 00:34:05,740 from pen testers than you are from bug bounty, right? 884 00:34:05,800 --> 00:34:06,900 Everyone looks at things differently. 885 00:34:07,980 --> 00:34:11,100 So what we got is a significantly more secure device. 886 00:34:11,500 --> 00:34:13,660 Their reward for that, aside from cash, was, 887 00:34:14,460 --> 00:34:15,140 you know, more free product. 888 00:34:16,180 --> 00:34:18,060 But let's talk about the vulns for a minute. 889 00:34:18,680 --> 00:34:20,100 Because these weren't little vulns. 890 00:34:20,640 --> 00:34:23,400 So one of the researchers, his name is Anshuman, 891 00:34:24,280 --> 00:34:27,720 found a vulnerability, which is an interesting logic flaw 892 00:34:27,720 --> 00:34:28,300 that comes up. 893 00:34:28,660 --> 00:34:31,540 So our developers made sure that the user was valid. 894 00:34:31,760 --> 00:34:33,360 They made sure the hub was valid. 895 00:34:33,600 --> 00:34:36,140 What they didn't make sure is that the hub was valid 896 00:34:36,140 --> 00:34:36,760 for the user. 897 00:34:38,780 --> 00:34:41,500 So this researcher went in and went, 898 00:34:41,620 --> 00:34:44,100 oh, look, I can delete every user's hub. 899 00:34:44,100 --> 00:34:44,820 For all accounts. 900 00:34:46,520 --> 00:34:47,560 Went, perfect. 901 00:34:47,800 --> 00:34:49,520 That's exactly what you look for in a bug bounty. 902 00:34:49,740 --> 00:34:52,120 The things that we didn't validate in QA. 903 00:34:55,180 --> 00:34:58,580 So this is where I really enjoy working for companies 904 00:34:58,580 --> 00:35:00,360 that are passionate about security. 905 00:35:00,700 --> 00:35:03,460 I entered the bug into our defect tracking system. 906 00:35:03,840 --> 00:35:05,580 I then went and called my boss. 907 00:35:06,660 --> 00:35:08,120 After that, I called the developer, 908 00:35:08,800 --> 00:35:11,880 who informed me that they already had the vulnerability, 909 00:35:12,140 --> 00:35:13,800 a patch on staging. 910 00:35:14,100 --> 00:35:16,160 And we're minutes away from deploying it to production. 911 00:35:17,380 --> 00:35:19,760 From the time that we actually read the vulnerability 912 00:35:19,760 --> 00:35:22,040 to the time it was pushed to production was one hour. 913 00:35:24,780 --> 00:35:26,300 That's something you can never ask for. 914 00:35:26,360 --> 00:35:27,340 I mean, I was blown away. 915 00:35:27,640 --> 00:35:29,660 I mean, not only were they excited about this, 916 00:35:29,720 --> 00:35:32,020 but they were actively not waiting for me. 917 00:35:32,200 --> 00:35:34,040 They were going and patching these things themselves. 918 00:35:34,940 --> 00:35:39,660 And then we had DACXSS, who found another account takeover. 919 00:35:40,160 --> 00:35:42,840 And again, this one was patched in an hour as well. 920 00:35:44,100 --> 00:35:46,940 What it showed is not only was the team willing to learn, 921 00:35:47,120 --> 00:35:49,520 they understood the implication of these vulnerabilities now. 922 00:35:49,660 --> 00:35:51,460 They understood that they couldn't wait around. 923 00:35:51,880 --> 00:35:54,680 And they were pulling people in in the middle of the night 924 00:35:54,680 --> 00:35:57,720 doing, you know, regression tests, right? 925 00:35:57,940 --> 00:36:01,120 If you explain to the developers the impact of what this means, 926 00:36:01,320 --> 00:36:03,660 if they see it as a real vulnerability, 927 00:36:04,000 --> 00:36:06,380 they understand how someone could exploit it in the wild, 928 00:36:06,940 --> 00:36:09,340 then what you find is they'll become really passionate 929 00:36:09,340 --> 00:36:11,360 about fixing them because no one wants their code 930 00:36:11,360 --> 00:36:12,840 exploited like that in the wild. 931 00:36:16,360 --> 00:36:17,560 So here's one of the things. 932 00:36:17,800 --> 00:36:20,160 To really build a successful program, 933 00:36:20,380 --> 00:36:21,160 it's about the communication. 934 00:36:21,680 --> 00:36:23,560 It's not just communication with researchers, 935 00:36:23,940 --> 00:36:25,220 it's the communication with the public. 936 00:36:26,340 --> 00:36:28,060 Security isn't something that needs to be hidden. 937 00:36:28,500 --> 00:36:31,460 The old model of security by obscurity, it doesn't work. 938 00:36:31,800 --> 00:36:33,100 The customers don't trust you. 939 00:36:33,200 --> 00:36:34,360 The researchers don't trust you. 940 00:36:34,900 --> 00:36:36,800 It's really simple to go to a researcher and say, 941 00:36:36,860 --> 00:36:38,620 you know what, I know you submitted a vulnerability to me. 942 00:36:38,720 --> 00:36:42,500 I really do want to fix it, but I can't fix it in 45 days 943 00:36:42,500 --> 00:36:44,080 because I can't do it. 944 00:36:44,100 --> 00:36:45,260 I can't even get the build, right? 945 00:36:45,400 --> 00:36:46,620 It has to go to the ODM. 946 00:36:46,740 --> 00:36:47,600 It's not an excuse. 947 00:36:48,000 --> 00:36:49,520 It's getting them to understand the process 948 00:36:49,520 --> 00:36:51,060 because once they understand the process, 949 00:36:51,800 --> 00:36:54,000 then they go, oh, this guy's not playing around. 950 00:36:54,200 --> 00:36:55,080 He knows about security. 951 00:36:55,280 --> 00:36:56,200 He's trying to fix it. 952 00:36:56,540 --> 00:36:58,940 They just can't fix it as fast as I'd like. 953 00:36:59,440 --> 00:37:01,740 And so Jacob, who was here a couple minutes ago, 954 00:37:01,760 --> 00:37:04,380 submitted a bunch of vulnerabilities to us at Linksys. 955 00:37:04,560 --> 00:37:07,820 I said, look, you know, the ODM doesn't even give me 956 00:37:07,820 --> 00:37:10,720 a build for 60 days, so there's nothing I can do, 957 00:37:10,800 --> 00:37:11,960 but we're working on it. 958 00:37:12,020 --> 00:37:12,920 We're taking it seriously. 959 00:37:13,120 --> 00:37:13,940 It's probably going to take us 960 00:37:13,940 --> 00:37:14,900 90 days at a minimum. 961 00:37:15,220 --> 00:37:16,280 We've got to get it to QA. 962 00:37:16,420 --> 00:37:17,640 We've got to get the right things changed. 963 00:37:18,180 --> 00:37:19,440 And it changed the conversation. 964 00:37:19,640 --> 00:37:21,260 It was no longer an adversarial thing. 965 00:37:21,340 --> 00:37:23,900 It was, oh, you're not just trying to get me to go away. 966 00:37:24,320 --> 00:37:26,080 You're trying to help us fix it as well. 967 00:37:27,500 --> 00:37:29,600 If you're open and transparent with researchers 968 00:37:30,100 --> 00:37:31,980 and your customers, they're going to appreciate it. 969 00:37:32,360 --> 00:37:35,900 We created the security at Wink site, one for consumers. 970 00:37:36,160 --> 00:37:38,680 Again, how to patch, what issues there were. 971 00:37:39,140 --> 00:37:43,140 We also created the one for researchers on how to submit. 972 00:37:44,540 --> 00:37:47,860 We created an email address, Twitter account, bug bounty 973 00:37:47,860 --> 00:37:50,800 on bug crowd, any way that a researcher could think that 974 00:37:50,800 --> 00:37:52,560 they wanted to submit to us, we wanted to make sure 975 00:37:52,560 --> 00:37:53,260 we made it easy. 976 00:37:54,080 --> 00:37:56,060 And then we also kept our partners informed. 977 00:37:56,480 --> 00:37:59,580 Now, we had partners like DropCam, Nest. 978 00:38:00,860 --> 00:38:03,080 But not everyone has a security team like they do. 979 00:38:03,620 --> 00:38:07,080 So the smaller vendors that were putting products on our 980 00:38:07,080 --> 00:38:09,280 infrastructure, they didn't have security teams. 981 00:38:09,360 --> 00:38:10,280 They didn't know how to do this. 982 00:38:10,440 --> 00:38:13,640 So we taught them, how do you secure your products? 983 00:38:13,640 --> 00:38:14,800 How do you lock down the hardware? 984 00:38:15,300 --> 00:38:17,640 How do you make sure that you're doing device pinning, 985 00:38:18,040 --> 00:38:20,420 certificate pinning, so that your firmware is secure? 986 00:38:21,320 --> 00:38:24,860 And what we found is they were more willing to work with us. 987 00:38:24,980 --> 00:38:27,120 They wanted to work with us rather than other people 988 00:38:27,120 --> 00:38:28,680 because we were willing to help them grow. 989 00:38:29,180 --> 00:38:31,920 And also we were protecting their brands, not just ours. 990 00:38:32,540 --> 00:38:35,300 If they get compromised and it goes through our system, 991 00:38:35,460 --> 00:38:36,300 then it affects us. 992 00:38:36,760 --> 00:38:38,580 If we're protecting our device 993 00:38:38,580 --> 00:38:40,440 and then we're helping them protect theirs, 994 00:38:40,440 --> 00:38:43,540 well, it's adding to the value of the relationship. 995 00:38:44,660 --> 00:38:46,100 We help them improve security. 996 00:38:46,300 --> 00:38:48,440 We help them by testing their products as well, 997 00:38:48,480 --> 00:38:49,240 and especially the integration. 998 00:38:53,180 --> 00:38:54,000 Proactive identification. 999 00:38:54,560 --> 00:38:56,940 And this is really, you know, if you do this right, 1000 00:38:57,020 --> 00:38:59,680 this is where the majority of your vulnerabilities will be found. 1001 00:39:00,420 --> 00:39:02,140 Looking at the code, right? 1002 00:39:02,380 --> 00:39:03,920 Internal and external pen testing. 1003 00:39:05,640 --> 00:39:08,220 Implementing security development lifecycle, right? 1004 00:39:08,560 --> 00:39:09,460 Secure functions. 1005 00:39:10,620 --> 00:39:13,680 Making sure that, you know, code's being escaped. 1006 00:39:13,980 --> 00:39:18,080 That, you know, throwing invalid data at it. 1007 00:39:18,100 --> 00:39:19,640 Doing fuzz testing, right? 1008 00:39:20,160 --> 00:39:20,660 Wireshark. 1009 00:39:20,920 --> 00:39:24,320 I mean, looking at everything that a researcher's going to look at. 1010 00:39:24,800 --> 00:39:27,020 You know, can you solder on something to the device? 1011 00:39:27,460 --> 00:39:31,100 Can you, you know, get access to the, you know, 1012 00:39:31,450 --> 00:39:33,020 to something that, you know, through a URL? 1013 00:39:34,360 --> 00:39:37,120 Looking at the vendor supply chain, right? 1014 00:39:38,460 --> 00:39:40,260 What is the code that they're giving you? 1015 00:39:40,440 --> 00:39:41,200 What's in it? 1016 00:39:41,460 --> 00:39:42,600 What can you do with it? 1017 00:39:43,540 --> 00:39:45,360 And additionally, ongoing research. 1018 00:39:46,140 --> 00:39:48,520 Now, the reason for the ongoing research is 1019 00:39:48,520 --> 00:39:49,920 you're building on certain protocols. 1020 00:39:50,260 --> 00:39:52,840 And what we found is some of the protocols we were building on, 1021 00:39:53,020 --> 00:39:54,860 there was a lot of assumptions made by the vendor. 1022 00:39:56,140 --> 00:39:58,380 We talked to one of our vendors about ZigBee, 1023 00:39:58,460 --> 00:40:01,300 and they were talking about smart energy. 1024 00:40:01,560 --> 00:40:03,620 But they weren't talking about ZigBee HA, 1025 00:40:03,860 --> 00:40:05,560 which has very different security requirements. 1026 00:40:06,080 --> 00:40:08,140 So make sure you're looking at what you're using, 1027 00:40:08,320 --> 00:40:10,420 what the security research is, 1028 00:40:10,440 --> 00:40:11,200 what the research that's going on in the community, 1029 00:40:11,340 --> 00:40:14,060 so you know what kind of things that are, you know, 1030 00:40:14,080 --> 00:40:16,100 that could potentially affect your device. 1031 00:40:16,320 --> 00:40:17,420 In the case of ZigBee, 1032 00:40:17,500 --> 00:40:20,400 we wanted to make sure that we could update the devices 1033 00:40:20,400 --> 00:40:24,460 because ZigBee HA 13 and 131 had improvements for security. 1034 00:40:24,940 --> 00:40:27,440 And if we put out 12 or 121, 1035 00:40:28,180 --> 00:40:29,800 then essentially we're selling devices 1036 00:40:29,800 --> 00:40:31,320 that someone would have to physically replace 1037 00:40:31,320 --> 00:40:32,960 once those new specs came out. 1038 00:40:36,900 --> 00:40:37,380 Innovation. 1039 00:40:37,620 --> 00:40:40,260 So security really doesn't have to be hard. 1040 00:40:40,440 --> 00:40:42,660 And I talk about this social contract standpoint. 1041 00:40:43,060 --> 00:40:44,780 If you invite someone to your house 1042 00:40:44,780 --> 00:40:46,320 to watch your house where you're gone, 1043 00:40:46,480 --> 00:40:47,900 you physically hand them the key. 1044 00:40:48,280 --> 00:40:49,980 And from an IoT device standpoint, 1045 00:40:50,160 --> 00:40:51,140 it shouldn't be any different. 1046 00:40:51,400 --> 00:40:54,220 If I want my door lock to talk to my light switch 1047 00:40:54,220 --> 00:40:56,200 so that when I open my door, the lights come on, 1048 00:40:56,740 --> 00:40:59,540 I'm essentially, there's a social contract where I'm saying, 1049 00:40:59,660 --> 00:41:01,780 I want this device to talk to this device. 1050 00:41:02,140 --> 00:41:03,820 Now, why don't we have key pairing, 1051 00:41:03,960 --> 00:41:05,400 key exchange that happens there, 1052 00:41:05,520 --> 00:41:07,040 and only those devices communicate? 1053 00:41:07,640 --> 00:41:09,380 And if you look at a lot of the IoT devices, 1054 00:41:09,500 --> 00:41:10,420 once you're on that network, 1055 00:41:10,440 --> 00:41:11,740 you have access to everything. 1056 00:41:12,540 --> 00:41:15,220 So the router is not your security model, 1057 00:41:15,380 --> 00:41:17,000 nor should it ever be your security model. 1058 00:41:17,460 --> 00:41:19,140 Assume the network will be compromised 1059 00:41:19,140 --> 00:41:20,300 because we know it will. 1060 00:41:20,520 --> 00:41:22,500 How do you build security for that device 1061 00:41:22,500 --> 00:41:24,000 knowing that will happen 1062 00:41:24,000 --> 00:41:25,880 and making sure that you protect anyway? 1063 00:41:28,260 --> 00:41:31,280 And really, the thing that's really missing in IoT 1064 00:41:31,280 --> 00:41:33,460 is every one of these devices is a different pairing model. 1065 00:41:33,640 --> 00:41:34,120 They're difficult. 1066 00:41:34,500 --> 00:41:35,760 They're not really secure. 1067 00:41:36,200 --> 00:41:38,680 How do we make it from an industry standpoint 1068 00:41:38,680 --> 00:41:40,420 where you protect the device, 1069 00:41:40,420 --> 00:41:41,900 pair these devices, pair them securely 1070 00:41:41,900 --> 00:41:43,540 so that you make sure that 1071 00:41:43,540 --> 00:41:45,200 someone's not taking over that device? 1072 00:41:47,880 --> 00:41:49,400 So the conclusion to this is really, 1073 00:41:49,540 --> 00:41:51,360 there's no excuse for not running security. 1074 00:41:51,680 --> 00:41:54,020 It doesn't matter if your budget is $5,000 or $5 million. 1075 00:41:54,560 --> 00:41:56,060 Whatever your budget that you work with, 1076 00:41:56,220 --> 00:41:57,840 figure out what you can do to protect. 1077 00:41:58,420 --> 00:41:59,780 Work with external researchers. 1078 00:42:00,100 --> 00:42:01,140 Give them free products. 1079 00:42:01,420 --> 00:42:03,100 When you build an IoT device, 1080 00:42:03,220 --> 00:42:06,240 you typically get 50 dev versions of it, right? 1081 00:42:07,100 --> 00:42:10,200 Well, you typically don't need that many for the QA team, 1082 00:42:10,420 --> 00:42:11,240 and the security team. 1083 00:42:11,520 --> 00:42:13,040 Give them out to researchers. 1084 00:42:13,480 --> 00:42:15,540 Have them sign an NDA so that they'll get, 1085 00:42:15,660 --> 00:42:16,280 you know, tell them, 1086 00:42:16,340 --> 00:42:18,180 look, we'll give you vulnerability disclosure 1087 00:42:18,180 --> 00:42:20,180 once we fix the issue, right? 1088 00:42:20,260 --> 00:42:21,140 But we want you to look at it 1089 00:42:21,140 --> 00:42:22,000 and we're going to give you free hardware. 1090 00:42:23,500 --> 00:42:24,720 Teach everyone threat models. 1091 00:42:24,860 --> 00:42:25,680 Not just the developers. 1092 00:42:26,460 --> 00:42:27,660 Teach the PMs. 1093 00:42:27,760 --> 00:42:30,420 Let them understand how it works, right? 1094 00:42:30,580 --> 00:42:32,000 Because until they start understanding 1095 00:42:32,000 --> 00:42:33,740 what the true threat of this is 1096 00:42:33,740 --> 00:42:34,740 and the probability, 1097 00:42:35,200 --> 00:42:36,740 they're not going to help you, right? 1098 00:42:36,780 --> 00:42:37,740 They're going to push back and say, 1099 00:42:37,800 --> 00:42:38,900 it's hurting usability. 1100 00:42:41,180 --> 00:42:43,760 Researchers are to be thanked, not threatened, right? 1101 00:42:44,220 --> 00:42:47,160 Once you start treating researchers like friends, 1102 00:42:47,840 --> 00:42:49,040 they're going to help you. 1103 00:42:49,220 --> 00:42:50,940 They're going to give you more time to fix things. 1104 00:42:51,200 --> 00:42:52,360 They're going to be more willing 1105 00:42:52,360 --> 00:42:54,200 not to bash you in the press. 1106 00:42:55,400 --> 00:42:56,880 And they're going to make your product stronger. 1107 00:42:58,320 --> 00:43:00,560 And the biggest thing is be honest and transparent. 1108 00:43:00,840 --> 00:43:02,240 When you screw up, you screw up. 1109 00:43:02,820 --> 00:43:05,040 There's a couple times we gave the wrong researcher credit. 1110 00:43:05,360 --> 00:43:06,340 We owned up to it. 1111 00:43:06,400 --> 00:43:07,120 Posted on Twitter, 1112 00:43:07,600 --> 00:43:08,760 hey, we screwed up. 1113 00:43:08,880 --> 00:43:10,280 Or, you know, we had a, 1114 00:43:10,280 --> 00:43:12,200 an incident response process and we did it wrong. 1115 00:43:12,380 --> 00:43:12,940 We're sorry. 1116 00:43:13,060 --> 00:43:14,440 We fixed it, right? 1117 00:43:15,480 --> 00:43:17,560 Try not to let the legal team and the PR team 1118 00:43:17,560 --> 00:43:18,280 cover that for you. 1119 00:43:18,800 --> 00:43:20,800 Because people respect you a lot more for it. 1120 00:43:21,560 --> 00:43:23,820 And then once you start getting the program running, 1121 00:43:23,940 --> 00:43:25,320 show management what you saved. 1122 00:43:25,720 --> 00:43:27,040 Security is not a cost center. 1123 00:43:27,180 --> 00:43:27,980 It's a cost savings. 1124 00:43:28,260 --> 00:43:31,280 And once you start changing the conversation that way, 1125 00:43:31,480 --> 00:43:32,820 what you'll understand is 1126 00:43:32,820 --> 00:43:34,680 how much time did we not spend 1127 00:43:34,680 --> 00:43:36,400 re-architecting the product? 1128 00:43:36,960 --> 00:43:39,320 Because you take an incident like our moon malware. 1129 00:43:39,320 --> 00:43:40,340 We spent seven months. 1130 00:43:41,120 --> 00:43:43,100 Well, we looked at the severity of that vulnerability 1131 00:43:43,100 --> 00:43:43,740 and said, look, 1132 00:43:43,820 --> 00:43:45,740 we caught five of these kinds of things 1133 00:43:46,380 --> 00:43:47,560 in early detection. 1134 00:43:47,860 --> 00:43:49,380 That would have cost us X. 1135 00:43:49,820 --> 00:43:51,220 And that's how much we saved. 1136 00:43:51,800 --> 00:43:54,140 You know, the management's going to ask you, 1137 00:43:54,200 --> 00:43:55,040 if you spend X, 1138 00:43:55,240 --> 00:43:56,380 how many, what's the percentage 1139 00:43:56,380 --> 00:43:57,640 that I'm not going to get hacked? 1140 00:43:58,460 --> 00:44:00,000 Well, unless any of you here are Karnak, 1141 00:44:00,160 --> 00:44:01,660 there's no way you're going to actually understand that. 1142 00:44:01,780 --> 00:44:02,020 Right? 1143 00:44:02,080 --> 00:44:03,220 There's no probability there. 1144 00:44:03,700 --> 00:44:05,400 But what you can tell them is what you saved 1145 00:44:05,400 --> 00:44:07,060 in the actual testing time saved, 1146 00:44:07,160 --> 00:44:08,760 what features you're able to build. 1147 00:44:11,420 --> 00:44:12,220 So, thanks, 1148 00:44:13,040 --> 00:44:14,920 especially to Amanda and the team at Linksys 1149 00:44:14,920 --> 00:44:16,920 and Wemo. 1150 00:44:18,260 --> 00:44:20,280 You know, we had to grow a team really quick. 1151 00:44:20,900 --> 00:44:21,960 Also to the Wink team, 1152 00:44:22,080 --> 00:44:23,460 who was very passionate about security. 1153 00:44:24,340 --> 00:44:25,920 If you need more information, 1154 00:44:26,180 --> 00:44:28,300 you can check out a couple of the research groups 1155 00:44:28,300 --> 00:44:29,760 I'm part of, the I Am The Cavalry group, 1156 00:44:30,020 --> 00:44:30,980 Build It Securely. 1157 00:44:31,540 --> 00:44:33,220 Build It Securely's got a lot of resources 1158 00:44:33,220 --> 00:44:34,640 if you're building IoT devices 1159 00:44:34,640 --> 00:44:36,720 on how to protect them from mobile, 1160 00:44:36,900 --> 00:44:38,420 from cloud, from hardware. 1161 00:44:39,620 --> 00:44:40,500 And that's it for me. 1162 00:44:40,540 --> 00:44:40,800 Thanks. 1163 00:44:42,460 --> 00:44:42,740 applause