1 00:00:00,000 --> 00:00:02,080 All right. So I'm going to try to talk as loud as I can. 2 00:00:02,400 --> 00:00:05,980 Hopefully you can hear me or not. But thanks for coming. Real 3 00:00:05,980 --> 00:00:08,660 quick introduction. This is Rob Simon, also known as Kicking 4 00:00:08,660 --> 00:00:11,960 Chicken. He's got a really weird Twitter photo. So you can follow 5 00:00:11,960 --> 00:00:14,680 him on Twitter there. He's a penetration tester. He works for 6 00:00:14,680 --> 00:00:18,360 me at a Fortune 1000 company. He works in the application 7 00:00:18,360 --> 00:00:21,600 security group. And basically what we wanted to get out of 8 00:00:21,600 --> 00:00:24,720 this presentation was a lot of cool stuff around the home 9 00:00:24,720 --> 00:00:28,920 automation side as well as the broadband overpower. So we'll be 10 00:00:28,920 --> 00:00:32,100 talking a little bit about that. About me, I'm the creator of the 11 00:00:32,100 --> 00:00:34,980 social engineer toolkit, fast track. I'm on the back track 12 00:00:34,980 --> 00:00:39,480 development team. I'm a CISO for a Fortune 1000 company and I give 13 00:00:39,480 --> 00:00:42,220 hugs. So if anybody wants to give a hug after my 14 00:00:42,220 --> 00:00:44,900 presentation, thought I did a good job, that's how I show it. 15 00:00:45,240 --> 00:00:51,160 Yay, DerbyCon! Also one of the founders of 16 00:00:51,160 --> 00:00:54,600 DerbyCon. So before we start, I do want to get an introduction. 17 00:00:54,860 --> 00:00:57,840 There's a person in the audience that works with me that 18 00:00:57,840 --> 00:00:58,900 has an extreme fear of 19 00:00:58,920 --> 00:01:02,260 people, people that brush their teeth. And I'm no joke. 20 00:01:02,300 --> 00:01:05,480 Just the talk of it makes them start to dry heave and 21 00:01:05,480 --> 00:01:12,200 throw up. So I've slipped in some, some pictures of, I've slipped in some 22 00:01:12,200 --> 00:01:15,020 pictures of people brushing their teeth. So that person gets up and walks 23 00:01:15,020 --> 00:01:16,780 out, you know exactly who it is, and we'll point at him 24 00:01:16,780 --> 00:01:22,980 and laugh at him. So he told, he told his wife he's 25 00:01:22,980 --> 00:01:25,400 gonna try to get over it in a year. So we're 26 00:01:25,400 --> 00:01:27,140 gonna try to expedite that a little bit today, okay? 27 00:01:29,600 --> 00:01:32,140 So a quick slight diversion, since we're talking a lot about 28 00:01:32,140 --> 00:01:34,640 hardware hacking, we're gonna get into it. One of the devices 29 00:01:34,640 --> 00:01:37,700 that we used was called the Tenzi device, which you can get from 30 00:01:37,700 --> 00:01:41,120 PRJC.com. And what the Tenzi device is, if you're not 31 00:01:41,120 --> 00:01:44,640 familiar, Adrian Crenshaw, our Iron Geek, found these little 32 00:01:44,640 --> 00:01:49,000 guys about a year ago, and a guy named Josh Kelly and myself 33 00:01:49,000 --> 00:01:53,040 presented at Black Hat and DEF CON last year on it. And so we've 34 00:01:53,040 --> 00:01:55,580 kind of expanded our research a bit, and I wanted to just do a 35 00:01:55,580 --> 00:01:58,900 quick hit on this before we dive down into the, the power line's 36 00:01:58,920 --> 00:02:01,620 stuff. And really what the Tenzi device is, is this little 37 00:02:01,620 --> 00:02:04,480 microcontroller here, it's about this big, and we use it in some 38 00:02:04,480 --> 00:02:06,940 of the stuff that we're gonna be showing you today, in the 39 00:02:06,940 --> 00:02:11,040 broadband stuff. But essentially what this does is it's, you can 40 00:02:11,040 --> 00:02:13,460 program it via the adrenal programming language, and it can 41 00:02:13,460 --> 00:02:16,420 be anything you want to. In these cases, we basically 42 00:02:16,420 --> 00:02:19,320 programmed it to be a keyboard. And so when you insert it into 43 00:02:19,320 --> 00:02:22,100 a computer, it's got on-board memory, and starts executing 44 00:02:22,100 --> 00:02:25,160 commands very fast and rapidly on the, on the machine, and 45 00:02:25,160 --> 00:02:28,820 you're able to basically attack the system via a, a fake key 46 00:02:28,920 --> 00:02:31,640 board. And why that's important is most companies disable auto 47 00:02:31,640 --> 00:02:33,920 run, assuming you insert it, it's not gonna automatically run. 48 00:02:34,200 --> 00:02:37,820 This circumvents and bypasses it, because it's emulating an 49 00:02:37,820 --> 00:02:41,440 actual keyboard itself. Now, last year we morphed it into a 50 00:02:41,440 --> 00:02:43,980 weapon, it was kind of a kludge. What we did was, you 51 00:02:43,980 --> 00:02:47,240 inserted it into the, into the computer itself, and it wrote out 52 00:02:47,240 --> 00:02:50,680 a VB script, and then, or a PowerShell downloader, went and 53 00:02:50,680 --> 00:02:54,120 downloaded something, and then executed it on the system. Well, 54 00:02:54,240 --> 00:02:56,620 we did, we were really happy with that. And so you can see, 55 00:02:56,680 --> 00:02:58,580 that's the, that's the device right there, and how small it is. 56 00:02:58,920 --> 00:03:02,920 And you can buy them for about 16 bucks. And here's some 57 00:03:02,920 --> 00:03:05,480 customized ones. You can see the one in the middle, the one on 58 00:03:05,480 --> 00:03:08,080 the left is the Tinsy 2.0, the one in the middle is the Tinsy 59 00:03:08,080 --> 00:03:10,640 Plus Plus, which has more on-board memory storage. And 60 00:03:10,640 --> 00:03:13,220 then the one on the right is one of the ones weaponized by 61 00:03:13,220 --> 00:03:16,020 IronGeek, that has different dip switches, which you can 62 00:03:16,020 --> 00:03:18,020 program them to do different things. So you can program dip 63 00:03:18,020 --> 00:03:21,320 switch one to target a Windows machine, dip switch two. So if 64 00:03:21,320 --> 00:03:23,700 you're on a penetration test, you pop it in, does some cool 65 00:03:23,700 --> 00:03:26,440 stuff, right? And this is one of the ones that Garland did, 66 00:03:26,500 --> 00:03:28,580 which I know he's in the audience as well, did the motion 67 00:03:28,580 --> 00:03:30,760 sensor one, which is also really cool. So you can actually detect 68 00:03:31,220 --> 00:03:34,640 if that person's there or not. So let's walk through some basics 69 00:03:34,640 --> 00:03:37,580 real quick of this. In order, what we wanted to do with the 70 00:03:37,580 --> 00:03:41,220 Tinsy device, Josh and myself, was basically take this device 71 00:03:41,220 --> 00:03:44,180 and figure out a way to drop a binary onto it. And we're, and 72 00:03:44,180 --> 00:03:46,180 do it all through keyboard emulation. Now there's one major 73 00:03:46,180 --> 00:03:50,280 problem and hurdle. The Tinsy device only stores about 34k of 74 00:03:50,280 --> 00:03:53,620 storage space, and on the Tinsy Plus Plus about 128k. So your 75 00:03:53,620 --> 00:03:55,480 binaries would have to be awfully small, or you'd have to 76 00:03:55,480 --> 00:03:58,340 use some sort of downloader or something like that. And so our 77 00:03:58,340 --> 00:04:01,180 choice to, um, get a binary on there, what we wanted to start 78 00:04:01,180 --> 00:04:04,520 off with first was taking a binary, uh, converting it to 79 00:04:04,520 --> 00:04:08,000 hexadecimal base 64, and then writing it out via a keyboard, 80 00:04:08,280 --> 00:04:11,660 um, and then converting it back to a binary via PowerShell. So 81 00:04:11,660 --> 00:04:14,740 here's just some simple Python code, uh, that imports bin 82 00:04:14,740 --> 00:04:16,960 ASCII, which is one of the Python modules for, for, uh, 83 00:04:17,040 --> 00:04:20,080 binary conversions to ASCII. And then, uh, we basically read in a 84 00:04:20,080 --> 00:04:24,060 binary, which is a Metasploit base payload. And, uh, we convert 85 00:04:24,060 --> 00:04:26,680 it to a, um, hexadecimal representation of that binary. 86 00:04:28,340 --> 00:04:31,200 Okay, so we got some hex now, which is great. Now we need a way 87 00:04:31,200 --> 00:04:34,480 to actually convert it back to a binary on the system itself. So 88 00:04:34,480 --> 00:04:38,600 once you insert it, it's gonna write out this blob of hex, and 89 00:04:38,600 --> 00:04:41,420 then you pop, you, you pop it back into the system. PowerShell 90 00:04:41,420 --> 00:04:44,240 basically then is gonna take it, reverse it back to a, uh, 91 00:04:44,240 --> 00:04:47,200 binary, and then you trigger it on the system itself. So here's 92 00:04:47,200 --> 00:04:49,380 some more Python code. And all this I'll talk about as it's 93 00:04:49,380 --> 00:04:51,360 available in the new version released today in the, in the 94 00:04:51,360 --> 00:04:54,840 social engineer toolkit. Um, but here's some of the code there. 95 00:04:55,000 --> 00:04:58,220 And so here's kinda what it looks like on the Tinsy device itself. Uh, we have 96 00:04:58,340 --> 00:05:01,700 different byte arrays that we've broken down the, the, um, the, uh, 97 00:05:01,720 --> 00:05:04,500 hex into in order to get it to work. And so that's some more. 98 00:05:05,200 --> 00:05:08,900 Unfortunately, we didn't have enough size. Right? Uh, a, a 99 00:05:08,900 --> 00:05:11,440 meterpreter-based module is probably gonna be around 74k, 100 00:05:11,520 --> 00:05:15,860 even if it's packed. And so we started looking around, and we're 101 00:05:15,860 --> 00:05:17,680 like, well, hey, we could do some really cool stuff with 102 00:05:17,680 --> 00:05:19,860 shellcode exec. And if you're not familiar with shellcode 103 00:05:19,860 --> 00:05:24,680 exec, um, it's a, it's a small 5k, uh, executable that reads in 104 00:05:24,680 --> 00:05:27,300 alphanumeric shellcode, injects it straight into memory, and, and 105 00:05:27,300 --> 00:05:28,320 actually, and, and, and, and, and, and, and, and, and, and, and, 106 00:05:28,340 --> 00:05:30,640 executes on the system. So we're like, okay, this is pretty 107 00:05:30,640 --> 00:05:33,580 cool. Maybe we can get shellcode exec as a binary, and then drop 108 00:05:34,060 --> 00:05:36,900 an alphanumeric shellcode base of meterpreter onto that, injects 109 00:05:36,900 --> 00:05:39,020 straight into memory, never touching disk, so circumventing 110 00:05:39,020 --> 00:05:41,360 antivirus and everything else out there, and get that to work 111 00:05:41,360 --> 00:05:44,020 directly into memory with whatever we want to. So testing 112 00:05:44,020 --> 00:05:47,320 it out, um, we custom-compiled, uh, uh, shellcode exec to make 113 00:05:47,320 --> 00:05:49,900 it as small as possible, uh, humanly possible, uh, and 114 00:05:49,900 --> 00:05:52,500 convert it to hex. Uh, we created a, a meterpreter reverse 115 00:05:52,500 --> 00:05:56,440 TCP stager that was alphanumeric shellcode, um, and then we 116 00:05:56,440 --> 00:05:58,320 converted that to hexadecimal and popped it into the system, and 117 00:05:58,320 --> 00:06:04,260 just real quick, sorry. He hates the froth, that's what gets 118 00:06:04,260 --> 00:06:10,900 him, so that's the best one I could find. Doing alright, 119 00:06:10,940 --> 00:06:15,260 buddy? Alright, so here I wanna show you a, a, a example, and 120 00:06:15,260 --> 00:06:17,340 this is in the, uh, the new version of the, uh, social 121 00:06:17,340 --> 00:06:20,140 engineer toolkit, and so we're gonna go ahead and run set, and 122 00:06:20,140 --> 00:06:22,220 if you're not familiar with, uh, the social engineer toolkit, 123 00:06:22,400 --> 00:06:25,560 it's a, it's a Python-driven, open source, uh, toolset aimed 124 00:06:25,560 --> 00:06:27,960 at social engineering and penetration testing. Um, it's 125 00:06:27,960 --> 00:06:28,300 been offered by, uh, uh, uh, uh, uh, uh, uh, uh, uh, uh, uh, uh, 126 00:06:28,320 --> 00:06:30,380 a few years now, and has a wide variety of different attack 127 00:06:30,380 --> 00:06:33,100 vectors in it. It's free, community driven, uh, um, 128 00:06:33,100 --> 00:06:35,300 hopefully Joey Ferr's in here somewhere, Joe Ferr is one of the 129 00:06:35,300 --> 00:06:37,600 development teams, Prime is on the development team, and then 130 00:06:37,600 --> 00:06:39,820 Thomas Worth, so thanks to, to all those guys for making all 131 00:06:39,820 --> 00:06:42,960 this happen. But essentially, we're gonna go on the Adreno 132 00:06:42,960 --> 00:06:46,860 based attack vectors, which is number six. And we're gonna do 133 00:06:46,860 --> 00:06:50,360 the binary to, to Tinsy attack, which is number seven. We're 134 00:06:50,360 --> 00:06:52,160 gonna enter our interface IP address, which is gonna be the 135 00:06:52,160 --> 00:06:54,700 reverse connect back. And then we're gonna do a Meteorperter 136 00:06:54,700 --> 00:06:57,700 shell. We're gonna have it connect back to us in 443, and 137 00:06:58,320 --> 00:07:02,040 will automatically do is take that binary, convert it to hex, pop it in, redo all the 138 00:07:02,040 --> 00:07:06,080 power shell encoded commands, convert that to unit code, then base 64, pop it in free 139 00:07:06,080 --> 00:07:16,840 and create a listener. It took a while to code. And then what I'm going to do is I'm 140 00:07:16,840 --> 00:07:22,100 going to copy this onto my Mac drive here. And then I'm going to upload it to my new 141 00:07:22,100 --> 00:07:31,000 Tenzi device. Okay. So now here's the Adreno stuff right here. And this is all going to be a 142 00:07:31,000 --> 00:07:35,040 good precursor to what we're talking about again on the power line stuff. We're going to go 143 00:07:35,040 --> 00:07:39,180 ahead and compile it. I'm going to take a device right here, which is a Tenzi device that's 144 00:07:39,180 --> 00:07:52,080 modified a bit. It's a Tenzi 2.0. Pop it in. Upload it. It's all right. And then I'm going 145 00:07:58,460 --> 00:08:01,460 to paste it. All right. So now we've got our new code running on. And then I've got a fully 146 00:08:01,460 --> 00:08:08,760 patched, you know, Windows XP or Windows 7 system here. We're going to insert it and see 147 00:08:08,760 --> 00:08:14,780 hopefully it works. So again, this is all through keyboard emulation. You guys are going to 148 00:08:14,780 --> 00:08:18,900 see some cooler stuff than this. Right now, obviously, this is typing on the screen for 149 00:08:18,900 --> 00:08:19,560 everybody to see. 150 00:08:23,380 --> 00:08:29,800 I can't type that fast. I'm a pretty fast typer. But actually, there was a 10 millisecond 151 00:08:29,800 --> 00:08:32,300 delay in there, so it can't go faster. But we'll talk about something here in a second 152 00:08:32,300 --> 00:08:37,380 that's just going to blow your guys' mind. This is basically the trivial stuff compared 153 00:08:37,380 --> 00:08:39,600 to what Josh was able to do here in a few minutes. 154 00:08:43,480 --> 00:08:46,160 Yeah, we need something. I'll dance. 155 00:08:51,080 --> 00:08:51,720 Doing all right, buddy? 156 00:09:08,140 --> 00:09:16,600 So it's doing its conversion and back to binary for us. And then we should have our shell. 157 00:09:16,740 --> 00:09:17,340 Let's find out. 158 00:09:23,140 --> 00:09:24,200 Alas, we got him a turper shell. 159 00:09:32,100 --> 00:09:32,880 Nice job, Josh. 160 00:09:35,960 --> 00:09:38,220 Would you just pull out of your background? 161 00:09:38,560 --> 00:09:39,380 Nothing. Nothing yet. 162 00:09:40,180 --> 00:09:44,080 So that's not all, guys. So that was doing it through shellcode example. We weren't happy there. 163 00:09:44,360 --> 00:09:47,100 We're like, okay, well, we can get shellcode example. We can get alphanumeric shellcode. 164 00:09:47,280 --> 00:09:51,560 But what about a binary that we want as large as we possibly want? So Josh started in. 165 00:09:52,100 --> 00:09:52,200 Yeah. 166 00:09:52,200 --> 00:09:52,400 Jeff's right. 167 00:09:52,440 --> 00:09:52,460 So when you insert into a computer. 168 00:09:52,460 --> 00:09:55,120 An SD card mount onto the latency device. 169 00:09:55,520 --> 00:09:58,440 And basically you can natively read in the SD card. 170 00:09:58,540 --> 00:10:01,780 So when you insert into a computer, it doesn't recognize as a flash storage device. 171 00:10:01,880 --> 00:10:03,180 It still recognizes as a computer. 172 00:10:03,480 --> 00:10:12,560 The Adreno device then reads off of the SD card natively and starts writing that binary, that representation of hacks on to that system as long as you want it to be. 173 00:10:12,560 --> 00:10:16,220 So now we can basically put a 16-gig file onto that system 174 00:10:16,220 --> 00:10:18,380 all through a 10C device and all through keyboard emulation. 175 00:10:18,880 --> 00:10:19,940 So that's not really not all. 176 00:10:20,320 --> 00:10:25,700 So try typing out, you know, a 128K file or a 2-meg file 177 00:10:25,700 --> 00:10:27,320 all through the keyboard emulation. 178 00:10:27,440 --> 00:10:28,480 It's going to take a long time, right? 179 00:10:29,040 --> 00:10:33,360 So Josh figured out there's a way to open up a serial com adapter 180 00:10:33,360 --> 00:10:36,720 and copy it over serial leaf all through the native USB driver itself. 181 00:10:37,060 --> 00:10:41,720 So you plug it in, it rewrites itself as a com drive, a serial port, 182 00:10:41,720 --> 00:10:44,660 and then basically copies it over, and you have about a two-second writeout 183 00:10:44,660 --> 00:10:48,980 of a binary file versus about a five-minute size of a binary file. 184 00:10:49,100 --> 00:10:53,380 So essentially you can copy any binary over you want in any way, shape, or form. 185 00:10:53,960 --> 00:10:56,660 And so you might be saying to yourself, this is kind of, you know, 186 00:10:56,720 --> 00:11:01,280 because, I mean, you can see the stuff writing out on this machine itself, right? 187 00:11:01,340 --> 00:11:02,240 So someone's going to notice that. 188 00:11:02,820 --> 00:11:05,520 So what we're doing right now, and unfortunately we weren't able to bring it here, 189 00:11:05,580 --> 00:11:08,180 it's like all literally wrapped around our table in an office, 190 00:11:08,220 --> 00:11:09,280 all soldered with different parts. 191 00:11:09,780 --> 00:11:11,700 But what we did was we did an inline. 192 00:11:12,380 --> 00:11:13,580 repeater for the keyboard. 193 00:11:13,780 --> 00:11:15,300 So essentially what we were able to do is take a keyboard, 194 00:11:15,560 --> 00:11:17,220 remove all the connections from it, 195 00:11:17,340 --> 00:11:21,320 have the Adreno device be the inline input for the keyboard, 196 00:11:21,440 --> 00:11:23,760 so when you type a key, it goes to the Adreno device 197 00:11:23,760 --> 00:11:26,040 and then replays back onto the machine itself. 198 00:11:26,440 --> 00:11:30,320 But why is that important is we can now detect when someone's not there. 199 00:11:30,540 --> 00:11:34,260 So if someone hasn't, you know, touched the computer in 20, 30 minutes or six hours, 200 00:11:34,520 --> 00:11:36,700 we can still move the mouse, because we can emulate a mouse, 201 00:11:36,880 --> 00:11:39,020 move it up and over so the screensaver doesn't kick in, 202 00:11:39,060 --> 00:11:41,440 and then when they're not there off hours, you just inject all your stuff 203 00:11:41,720 --> 00:11:44,360 and no one knows that it happened, and then it disables itself and you never know. 204 00:11:44,640 --> 00:11:48,320 And so that's all easily conceivable inside of the Tensy itself. 205 00:11:48,700 --> 00:11:51,220 And so that's us starting off with the basics. 206 00:11:51,320 --> 00:11:52,940 That's when we're trying to get the SD mounts into place. 207 00:11:54,000 --> 00:11:56,120 And you can see we just started soldering a whole bunch of them. 208 00:11:57,500 --> 00:12:02,380 And that didn't go very far, but that's a free one for somebody. 209 00:12:04,000 --> 00:12:05,100 And that was the finished product. 210 00:12:05,500 --> 00:12:06,440 That's what it looks like right there. 211 00:12:07,560 --> 00:12:10,920 All right, so back to what we were talking about before. 212 00:12:11,080 --> 00:12:11,700 That was a good introduction. 213 00:12:11,700 --> 00:12:12,740 That was a good introduction to what we're talking about. 214 00:12:14,600 --> 00:12:18,360 When we decided to do this talk, we wanted to talk about a couple of different technologies that are using it. 215 00:12:18,380 --> 00:12:20,580 But we focused heavily on home automation aspects. 216 00:12:21,340 --> 00:12:25,220 So what we're going to be talking about a little bit is broadband over power. 217 00:12:25,600 --> 00:12:30,000 We're going to be talking a little bit about the different types that are out there right now, 218 00:12:30,080 --> 00:12:32,820 like the home plug, which is one of the more common ones. 219 00:12:33,120 --> 00:12:35,980 We'll talk a little bit about X10, Crestron, Lutron, Z-Wave, 220 00:12:36,140 --> 00:12:38,260 a few of the different home automation systems out there. 221 00:12:38,760 --> 00:12:41,360 And we'll be releasing some new tools and some new code. 222 00:12:41,700 --> 00:12:43,500 I'm out there for breaking them up a bit. 223 00:12:44,560 --> 00:12:46,080 And so a little bit about BPL. 224 00:12:46,540 --> 00:12:51,820 Broadband over power lines was really a standard that came out to transmit Ethernet-based signals over power lines, right? 225 00:12:51,960 --> 00:12:53,860 And you can get them at Best Buy. 226 00:12:53,940 --> 00:12:56,560 You can go to Best Buy and spend $100, and you have these two devices. 227 00:12:58,020 --> 00:13:02,820 One plugs into your power jack, upstairs or downstairs, 228 00:13:03,140 --> 00:13:04,760 and you plug another one up somewhere else, 229 00:13:04,840 --> 00:13:07,960 and it bridges the connection of Ethernet through those power lines. 230 00:13:08,240 --> 00:13:09,600 And so you can get pretty high speeds. 231 00:13:09,760 --> 00:13:11,680 I mean, I've seen anywhere from 35 to 40 Mbps. 232 00:13:11,700 --> 00:13:16,740 To what they tout anywhere up to 365 Mbps all over power lines. 233 00:13:16,940 --> 00:13:20,480 It really depends on how much noise you have going through your power lines themselves. 234 00:13:21,220 --> 00:13:24,040 And so one of the more popular ones right now is the home plug, 235 00:13:24,200 --> 00:13:29,020 which is the standard that's essentially used for these new devices that are out right now. 236 00:13:32,720 --> 00:13:37,140 So normal wiring systems can transmit this in other standard powers. 237 00:13:37,260 --> 00:13:40,640 Now, the drawback is it's really hard to carry higher frequency ranges 238 00:13:40,640 --> 00:13:42,360 during these type of things. 239 00:13:42,640 --> 00:13:47,580 Most of the newer devices support 56-bit DAS, 240 00:13:48,900 --> 00:13:50,960 and they also support AES as well. 241 00:13:51,100 --> 00:13:54,460 So the newer ones that you can find in Best Buy do support AES. 242 00:13:57,080 --> 00:13:57,740 Oh, gotcha. 243 00:13:59,780 --> 00:14:01,220 No problem. We're bouncing a bit. 244 00:14:03,660 --> 00:14:06,160 And it's also used a lot by the smart grid systems. 245 00:14:06,360 --> 00:14:09,020 There's a lot of foreign countries as well as third parties 246 00:14:09,020 --> 00:14:10,620 that like to use this. 247 00:14:10,620 --> 00:14:13,520 Because they don't have to invest in any type of existing infrastructure. 248 00:14:14,180 --> 00:14:19,060 So really they can communicate via Ethernet pay systems all through power lines. 249 00:14:19,960 --> 00:14:22,480 And so the more of the home ones, which we did a lot of research on, 250 00:14:22,580 --> 00:14:25,920 but they're also being used a lot in corporate environments for bridging networks, 251 00:14:26,080 --> 00:14:29,300 which we're not even seeing a lot of, or we're not even pen testing as attackers. 252 00:14:29,940 --> 00:14:31,880 They generally support DAS, like I said, or AES. 253 00:14:32,700 --> 00:14:36,040 Keys for those AES keys are generally Linksys, 254 00:14:36,060 --> 00:14:38,560 or whatever the manufacturer of them was. 255 00:14:38,620 --> 00:14:40,480 So the default password key for the AES encryption. 256 00:14:40,620 --> 00:14:41,340 They're generally guessable. 257 00:14:41,720 --> 00:14:44,220 One cool one is the Netgear 500, 258 00:14:44,760 --> 00:14:51,020 which actually you can press a button that randomizes the AES security key between the two. 259 00:14:51,520 --> 00:14:54,360 Fortunately they're not generally using FIPS compliant base encryption key exchange, 260 00:14:54,580 --> 00:14:56,080 so you can actually intercept those if you want to. 261 00:14:56,700 --> 00:14:59,080 But for the most part they're pretty heavily decent. 262 00:14:59,340 --> 00:15:00,740 And they're awesome for penetration testing. 263 00:15:01,180 --> 00:15:04,740 And so what we wanted to do was use it for a real world scenario. 264 00:15:05,320 --> 00:15:06,720 And so we did it for our own company. 265 00:15:06,740 --> 00:15:07,720 We did a penetration test. 266 00:15:07,720 --> 00:15:12,960 And we used one of those badge cloners to clone someone's badge, 267 00:15:13,060 --> 00:15:14,600 go into our organization. 268 00:15:15,100 --> 00:15:19,880 And then we basically modified a power supply for a computer 269 00:15:19,880 --> 00:15:25,260 and used that as our method to transfer the Ethernet connection over the power lines 270 00:15:25,260 --> 00:15:27,400 and then back to a different room that we were hiding in. 271 00:15:27,580 --> 00:15:30,720 And so we were able to actually attack the network through the power lines itself, 272 00:15:30,840 --> 00:15:31,400 which was pretty neat. 273 00:15:32,360 --> 00:15:34,480 So, you know, small example here. 274 00:15:34,640 --> 00:15:36,040 Now this is when we start getting into the cool stuff. 275 00:15:40,740 --> 00:15:42,580 Okay, so the next thing we're going to be talking about 276 00:15:42,580 --> 00:15:44,760 is some of the home automation stuff that we're looking at. 277 00:15:46,420 --> 00:15:47,140 All right. 278 00:15:47,880 --> 00:15:50,700 We're going to be talking about some of the home automation stuff that we were looking at. 279 00:15:55,240 --> 00:15:57,580 So we looked at two of the main ones, 280 00:15:58,600 --> 00:16:01,600 which is X10 and then Z-Wave. 281 00:16:02,280 --> 00:16:03,020 How you doing, Adam? 282 00:16:04,540 --> 00:16:05,100 Doing all right? 283 00:16:06,660 --> 00:16:07,340 Can we go on? 284 00:16:07,420 --> 00:16:07,700 All right. 285 00:16:08,320 --> 00:16:11,480 So there's a number of other ones, including proprietary and commercial ones. 286 00:16:11,580 --> 00:16:14,780 There's Creston, Lutron, Zigbee, and Insteon. 287 00:16:14,840 --> 00:16:15,700 You might have heard of some of those. 288 00:16:18,440 --> 00:16:19,100 Sorry, guys. 289 00:16:20,920 --> 00:16:22,440 So home automation basics. 290 00:16:22,600 --> 00:16:25,980 Basically, the X10 devices, you plug those into the power line, 291 00:16:26,100 --> 00:16:28,380 and you don't have to run additional wires throughout your house. 292 00:16:28,480 --> 00:16:30,180 You can use these for security devices. 293 00:16:30,460 --> 00:16:33,700 So they have motion sensors, door sensors, window sensors. 294 00:16:34,060 --> 00:16:36,000 You hook these up to your doors, your windows, 295 00:16:36,000 --> 00:16:40,260 and then when they sense the signal, whenever the doors and windows are open, 296 00:16:40,380 --> 00:16:45,520 it sends a burst through the power lines whenever the AC wave is hitting the zero crossing, 297 00:16:45,700 --> 00:16:49,380 and it sends data through to a transceiver, and this is going to pick it up, 298 00:16:49,400 --> 00:16:52,060 and it's going to notice whenever somebody's breaking into your house. 299 00:16:52,180 --> 00:16:54,460 It's going to send the signals to the security alarm, 300 00:16:54,540 --> 00:16:57,960 and then the security alarm is going to send the signals to the rest of your lights 301 00:16:57,960 --> 00:16:59,540 throughout the house, flash your lights on and off, 302 00:16:59,640 --> 00:17:03,340 and it's going to have an alarm signal that's going to go off, too, 303 00:17:03,440 --> 00:17:05,740 an audible alarm that's going to alert your neighbors. 304 00:17:05,740 --> 00:17:10,740 And then it also calls out, and it's going to alert the authorities or a number that you set up. 305 00:17:11,400 --> 00:17:17,000 So some of the stuff that we were looking at is being able to maybe sniff that communication 306 00:17:17,660 --> 00:17:21,560 or jam the communications, and we'll be talking about that here in a second. 307 00:17:22,080 --> 00:17:26,460 So the basics of X10, equipment that you can also hook up on that, 308 00:17:26,520 --> 00:17:31,660 you can hook up your HVAC devices so you can have time signals whenever you want your air conditioning 309 00:17:31,660 --> 00:17:34,880 to kick on and off and set that up through the power lines 310 00:17:34,880 --> 00:17:36,240 so you don't have to run anything through it. 311 00:17:36,580 --> 00:17:41,280 And then, again, we covered the motion sensors, lights, this camera, security systems, and your doors. 312 00:17:42,560 --> 00:17:46,460 And some of the drawbacks of X10 that we found is they don't have any encryption on them, 313 00:17:46,520 --> 00:17:50,400 so the data that goes through there, it's all documented online and on their website. 314 00:17:50,480 --> 00:17:52,200 It goes through in clear text. There's no encryption. 315 00:17:53,060 --> 00:17:57,940 Another drawback is that there's only 256 devices that you can have on a system with X10, 316 00:17:58,060 --> 00:18:01,360 and there is also heavy interference on that sometimes. 317 00:18:01,460 --> 00:18:04,820 So if you've got heavy appliances like your TVs, microwaves, 318 00:18:04,880 --> 00:18:07,780 large appliances like that, they're going to cause some interference 319 00:18:07,780 --> 00:18:09,740 and drop the signal that's going over the power lines. 320 00:18:11,940 --> 00:18:14,960 Some of the devices for X10 also communicate over RF. 321 00:18:15,320 --> 00:18:18,800 They communicate over, in the U.S., over the 310 megahertz frequency. 322 00:18:19,720 --> 00:18:24,440 The devices that use the RF would be your motion sensors and your windows and door sensors. 323 00:18:24,920 --> 00:18:29,600 And then there's also some of the other devices that you can get where you plug into the wall 324 00:18:29,600 --> 00:18:34,580 and use wireless remotes to turn your lights and stuff on, and that also transmits over RF. 325 00:18:34,880 --> 00:18:37,120 The RF transceiver is going to pick up that signal, 326 00:18:37,240 --> 00:18:41,140 and then it's going to replay the signal back through the power lines to communicate with the devices. 327 00:18:43,100 --> 00:18:45,120 So here's some of the X10 codes that we have. 328 00:18:45,440 --> 00:18:48,320 You can see the different binary strings that get sent across, 329 00:18:48,620 --> 00:18:52,400 some of the commands for turning units on and off, turning lights off, 330 00:18:52,960 --> 00:18:55,160 some of the extended codes that they have out there, too. 331 00:18:55,260 --> 00:19:00,060 Not all of the devices use the extended codes, but some of the security devices use the extended codes. 332 00:19:01,240 --> 00:19:03,080 So this is the X10 kit that we got. 333 00:19:03,620 --> 00:19:07,960 On the left, we've got the transceiver that we use to send the devices to the power lines, 334 00:19:08,080 --> 00:19:10,180 and then on the right is going to be one of our appliance modules, 335 00:19:10,400 --> 00:19:13,600 and this is going to be what you're going to control your lights with, your HVAC systems. 336 00:19:13,900 --> 00:19:15,560 So you're going to plug a device into here. 337 00:19:15,680 --> 00:19:18,340 You've got a dial on the top for a unit number, 115, 338 00:19:19,000 --> 00:19:21,140 and then you've got a dial on the bottom for a house code. 339 00:19:21,220 --> 00:19:25,700 So you can set different rooms on different house codes, control the devices on house code A, 340 00:19:25,760 --> 00:19:28,060 turn them all off, and that could be like one room or whatever. 341 00:19:29,060 --> 00:19:31,220 So that's how you can kind of communicate with the different devices. 342 00:19:33,080 --> 00:19:35,080 The window and door sensors are the same way. 343 00:19:35,120 --> 00:19:37,320 They've got different codes that they'll send in, 344 00:19:37,360 --> 00:19:40,400 so when a door is open or when a window is open, 345 00:19:40,560 --> 00:19:43,820 it's going to send that device code over to the security console, 346 00:19:43,920 --> 00:19:45,580 and it's going to let you know which device was opened. 347 00:19:47,360 --> 00:19:50,880 So we decided to try to make a jammer and a sniffer for X10. 348 00:19:51,060 --> 00:19:53,160 We thought it'd be kind of cool if you could walk up to someone's house 349 00:19:53,160 --> 00:19:54,820 and pop a plug in on the outside of their house 350 00:19:54,820 --> 00:19:56,760 and kind of sniff the commands that go back and forth. 351 00:19:57,300 --> 00:20:00,260 So what we've got right here is we started doing an Arduino-based sensor. 352 00:20:01,060 --> 00:20:03,260 It's going to plug into your outlet, 353 00:20:03,480 --> 00:20:05,800 and we can walk up to the outside of someone's house, which is the cool part. 354 00:20:05,880 --> 00:20:06,680 You don't even have to be inside. 355 00:20:07,040 --> 00:20:09,760 You plug it in, and it's going to receive all the signals that are going through the house. 356 00:20:10,040 --> 00:20:12,100 So when people are turning their lights on, turning their lights off, 357 00:20:12,200 --> 00:20:15,080 any kind of sensors that are tripped or set off, we'll get a code for that. 358 00:20:15,160 --> 00:20:18,020 We're actually working on a sniffer that's going to be working over GSM, 359 00:20:18,340 --> 00:20:21,720 so we can plug a SIM card into that, plug it into someone's house and walk away, 360 00:20:21,800 --> 00:20:24,440 and it's going to send us a text notification every time someone comes in and out of the house, 361 00:20:24,540 --> 00:20:26,160 every time somebody turns on their devices. 362 00:20:26,460 --> 00:20:29,840 So we can kind of case the place out, find out when are they home, when are they not home, 363 00:20:30,680 --> 00:20:33,220 you know, get an idea of when might be a good time to break into the house. 364 00:20:34,020 --> 00:20:35,780 Even better with that, you can send it commands, too. 365 00:20:35,900 --> 00:20:37,260 So you send a command to it. 366 00:20:39,000 --> 00:20:41,300 We'll show you real quick what the sniffer looks like, though. 367 00:20:41,380 --> 00:20:43,240 So we've got a demo set up that you can see on our screen 368 00:20:43,240 --> 00:20:45,180 to give you an idea of what kind of codes you'll be able to see. 369 00:20:50,280 --> 00:20:53,740 So what we have here is this is one of the standard remotes that you can find for it. 370 00:20:53,780 --> 00:20:56,980 It plugs into the power line, and then you push one of the buttons on the remote here, 371 00:20:57,060 --> 00:20:58,940 and it's going to send the signal to turn the lights on and off. 372 00:20:59,800 --> 00:21:00,240 Do we need to turn it off? 373 00:21:00,260 --> 00:21:00,880 We need Christmas lights. 374 00:21:00,940 --> 00:21:03,560 Unfortunately, it's not Christmas in July, so we missed it by a little bit, 375 00:21:03,660 --> 00:21:05,180 but the spirit's there. 376 00:21:05,420 --> 00:21:08,180 So you can imagine, you know, if somebody's tripping alarms or whatever, 377 00:21:08,380 --> 00:21:09,860 it's going to be sending these signals as well. 378 00:21:10,040 --> 00:21:11,780 So a good visible demonstration. 379 00:21:12,060 --> 00:21:13,480 We've got some Christmas lights for you guys to see. 380 00:21:13,660 --> 00:21:14,660 So someone comes home. 381 00:21:15,420 --> 00:21:20,360 They send a signal to turn their lights on, and nothing happens. 382 00:21:20,560 --> 00:21:22,100 But the lights turn on, so that's good. 383 00:21:22,800 --> 00:21:25,080 So let's go double-check this and make sure it's still running. 384 00:21:34,560 --> 00:21:35,220 Two seconds. 385 00:21:39,600 --> 00:21:42,460 The TSA was not kind to me when my devices went through, 386 00:21:42,900 --> 00:21:44,740 and they knocked a couple of the wires out, 387 00:21:44,840 --> 00:21:46,840 so I just want to make sure everything's connected up right here. 388 00:21:50,220 --> 00:21:50,760 There we go. 389 00:21:50,840 --> 00:21:50,960 There we go. 390 00:21:53,200 --> 00:21:56,440 So hit the off button, and then you can see that the lights went off. 391 00:21:57,200 --> 00:21:58,280 The lights go back on. 392 00:21:58,280 --> 00:22:00,120 So we can sniff these commands, 393 00:22:00,280 --> 00:22:04,520 and we can actually have these commands that are being sent to us through text messages 394 00:22:04,520 --> 00:22:06,480 so we know when people are turning their lights on or off, 395 00:22:06,540 --> 00:22:07,880 kind of get an idea of when they're going to bed. 396 00:22:10,940 --> 00:22:14,380 And then so these aren't actually hooked up to any other devices, 397 00:22:14,460 --> 00:22:17,580 but there's other commands on here so we can sniff these as well. 398 00:22:17,720 --> 00:22:19,920 So any of the other devices that are being controlled will be able to see them. 399 00:22:20,360 --> 00:22:22,320 So think about it, you know, in a large scenario, 400 00:22:22,460 --> 00:22:25,260 when a lot of corporations are leveraging home automation aspects, 401 00:22:25,400 --> 00:22:27,420 you can essentially sniff their devices. 402 00:22:28,280 --> 00:22:28,800 And then you can see the entire infrastructure 403 00:22:28,800 --> 00:22:30,660 and find out everything that's going on there. 404 00:22:31,160 --> 00:22:32,660 And we'll talk about the jam in a second, 405 00:22:32,800 --> 00:22:36,420 but, you know, the ability to actually send messages over like a Verizon network 406 00:22:36,420 --> 00:22:38,660 or something like that to that device and start jamming it, 407 00:22:38,700 --> 00:22:41,980 i.e. security systems or those walking into the infrastructure being undetected 408 00:22:41,980 --> 00:22:43,520 is definitely a plausible situation. 409 00:22:43,740 --> 00:22:44,100 Get that back up. 410 00:22:44,380 --> 00:22:44,560 Okay. 411 00:22:52,220 --> 00:22:55,420 Okay, so just another screenshot of a device that we have set up here. 412 00:22:55,580 --> 00:22:56,400 So moving on, 413 00:22:56,400 --> 00:22:59,620 we're going to talk about the TW5523. 414 00:22:59,800 --> 00:23:02,040 That's going to be the device that we had plugged in there with the phone jack, 415 00:23:02,160 --> 00:23:03,560 and that's hooked up to our Arduino. 416 00:23:03,780 --> 00:23:05,560 So that's what's going to be doing our sniffing and sending. 417 00:23:06,220 --> 00:23:07,640 This is one of the products you can buy. 418 00:23:07,740 --> 00:23:09,280 You can get it from smarthome.com, 419 00:23:09,400 --> 00:23:12,580 and this is going to allow you to do the communications over the power line. 420 00:23:12,820 --> 00:23:15,820 So what we thought would be really cool is instead of having all this mess over here, 421 00:23:15,840 --> 00:23:17,200 you know, on the breadboard and all the wires, 422 00:23:18,200 --> 00:23:19,520 you know, that's going to be kind of noticeable. 423 00:23:19,540 --> 00:23:21,800 Plug that into an outlet outside of somebody's house. 424 00:23:22,340 --> 00:23:23,900 So we thought we could take one apart. 425 00:23:24,180 --> 00:23:25,740 We can put a tinsy inside of it, 426 00:23:25,740 --> 00:23:27,720 and then we're going to put that all back together, 427 00:23:27,880 --> 00:23:29,100 kind of make it a little bit stealthier, 428 00:23:29,200 --> 00:23:31,640 and then we can walk up outside someone's house and plug that in, 429 00:23:31,740 --> 00:23:34,180 and then we could start jamming signals. 430 00:23:34,300 --> 00:23:35,480 So we could turn off all the devices, 431 00:23:35,820 --> 00:23:37,680 and then whenever you're tripping these motion sensors, 432 00:23:37,800 --> 00:23:39,060 the window sensors, the door sensors, 433 00:23:39,880 --> 00:23:40,940 it's going to jam the signal. 434 00:23:41,000 --> 00:23:41,960 It's not going to be able to get through. 435 00:23:42,120 --> 00:23:43,940 It's not going to be able to alert the security console, 436 00:23:44,280 --> 00:23:45,920 and then the lights won't flash on and off, 437 00:23:45,980 --> 00:23:46,960 and the alarm's not going to go on. 438 00:23:47,060 --> 00:23:48,300 So basically, you just walk in the house, 439 00:23:48,320 --> 00:23:49,080 you trip all the sensors. 440 00:23:49,320 --> 00:23:50,460 They're not going to be able to do anything. 441 00:23:51,260 --> 00:23:52,580 So this is where we hooked it up, 442 00:23:52,900 --> 00:23:54,000 and we're testing it out. 443 00:23:55,320 --> 00:23:55,720 The first thing we're going to do, 444 00:23:55,740 --> 00:23:56,500 the first time we tried it, 445 00:23:56,560 --> 00:24:00,020 we actually sent a little bit too much voltage and current to our TINCY, 446 00:24:00,060 --> 00:24:01,480 so we got one here that we fried. 447 00:24:02,860 --> 00:24:05,620 So AC is kind of difficult to work with sometimes. 448 00:24:06,580 --> 00:24:07,740 So we tried it again. 449 00:24:07,960 --> 00:24:09,040 We got a working jammer. 450 00:24:09,300 --> 00:24:11,440 What we had to do was use a buck converter 451 00:24:11,440 --> 00:24:13,340 to step down that high voltage and current 452 00:24:13,340 --> 00:24:15,700 to get a stable five volts for that TINCY to work off of. 453 00:24:15,820 --> 00:24:17,940 So that was the most difficult part for us, 454 00:24:18,000 --> 00:24:20,260 but then once we got that all set up, 455 00:24:20,280 --> 00:24:21,220 it actually worked pretty cool. 456 00:24:22,640 --> 00:24:24,580 So we'll be showing you this device here real quick. 457 00:24:25,740 --> 00:24:26,600 So this is the jammer. 458 00:24:27,020 --> 00:24:33,360 So all you have to do is you walk up to someone's house, 459 00:24:33,400 --> 00:24:34,560 you go into one of the outside outlets, 460 00:24:34,880 --> 00:24:36,020 you plug this device in, 461 00:24:37,420 --> 00:24:38,660 and it's going to kill all the lights, 462 00:24:38,720 --> 00:24:39,520 it's going to kill the sensors, 463 00:24:39,600 --> 00:24:40,580 and it's going to jam the signal. 464 00:24:40,840 --> 00:24:42,600 So now if I try to turn the lights back on, 465 00:24:43,000 --> 00:24:44,700 you can see that the light's blinking up here. 466 00:24:44,940 --> 00:24:46,620 Well, you probably can't see it from back there, 467 00:24:46,680 --> 00:24:47,840 but trust me, it's blinking, 468 00:24:47,960 --> 00:24:49,440 and nothing is going through here. 469 00:24:49,940 --> 00:24:51,840 So as soon as we unplug this device again, 470 00:24:54,000 --> 00:24:55,100 now everything is working. 471 00:24:56,680 --> 00:24:58,380 So essentially what that means is 472 00:24:58,380 --> 00:25:00,080 all we have to do is walk up to your house, 473 00:25:00,160 --> 00:25:01,560 if you're using this security system, 474 00:25:01,640 --> 00:25:03,120 we're going to plug a device into your house, 475 00:25:03,180 --> 00:25:05,100 and now all of your lights go out, 476 00:25:05,560 --> 00:25:06,700 none of your sensors work, 477 00:25:06,800 --> 00:25:07,820 your alarm's not going to trip, 478 00:25:08,000 --> 00:25:09,080 it's not going to call the cops, 479 00:25:09,180 --> 00:25:09,980 we're going to walk right in, 480 00:25:10,060 --> 00:25:11,880 you know, take whatever we want and be able to walk out. 481 00:25:13,800 --> 00:25:15,420 So we got a new tool release. 482 00:25:15,540 --> 00:25:17,520 We're going to be releasing the code for the X10 sniffer 483 00:25:17,520 --> 00:25:19,120 in the Social Engineer Toolkit, 484 00:25:20,260 --> 00:25:21,360 which sniffs all the traffic, 485 00:25:21,380 --> 00:25:21,820 what you just saw, 486 00:25:21,840 --> 00:25:22,160 what you just seen, 487 00:25:22,620 --> 00:25:25,360 and then we've got what we call the X10 blackout device, 488 00:25:25,600 --> 00:25:27,400 where you plug it in and it kills all the lights 489 00:25:27,400 --> 00:25:28,780 and then it's going to jam all the signals. 490 00:25:31,220 --> 00:25:33,420 Some of the other technology that we've been looking into 491 00:25:33,420 --> 00:25:34,380 is Z-Wave. 492 00:25:34,440 --> 00:25:35,960 It's a little bit more improved than the X10. 493 00:25:36,760 --> 00:25:38,080 It leverages mesh networking, 494 00:25:38,320 --> 00:25:40,860 so it doesn't actually transfer any of the data 495 00:25:40,860 --> 00:25:41,560 over the power lines, 496 00:25:41,660 --> 00:25:42,440 but the way that it works 497 00:25:42,440 --> 00:25:44,660 is it sends signals over the 900... 498 00:25:44,660 --> 00:25:45,660 I think we got a mic. 499 00:25:46,800 --> 00:25:47,660 Oh, no, sorry. 500 00:25:48,440 --> 00:25:50,300 Okay, so it sends the signals 501 00:25:50,300 --> 00:25:52,160 over a 900 megahertz frequency range, 502 00:25:52,340 --> 00:25:53,860 and it uses the mesh networking. 503 00:25:54,140 --> 00:25:55,980 So it's got different devices in the network, 504 00:25:56,120 --> 00:25:57,440 and you can kind of get a little bit 505 00:25:57,440 --> 00:25:58,840 of a better extended range on that. 506 00:25:59,140 --> 00:26:01,880 So what that means is you got one device hooked up 507 00:26:01,880 --> 00:26:02,500 on the mesh network, 508 00:26:02,680 --> 00:26:04,160 and you're trying to reach another one, 509 00:26:04,200 --> 00:26:05,200 but the distance is too far. 510 00:26:05,360 --> 00:26:07,420 It can leverage some of the existing nodes of the network 511 00:26:07,420 --> 00:26:09,860 and kind of hop the communication through to pass along. 512 00:26:10,100 --> 00:26:11,540 So you're going to get a little bit of a better range 513 00:26:11,540 --> 00:26:12,180 with these devices. 514 00:26:13,200 --> 00:26:15,120 And they also have support for AES. 515 00:26:15,220 --> 00:26:18,080 However, we haven't seen many devices that use it, unfortunately. 516 00:26:19,720 --> 00:26:21,380 So, you know, that's unfortunate. 517 00:26:23,440 --> 00:26:26,180 The jamming, you can do some jamming on the Z-Wave. 518 00:26:26,300 --> 00:26:28,520 Since it's running on the 900 megahertz frequency range, 519 00:26:28,640 --> 00:26:30,960 if you just try to build a device 520 00:26:30,960 --> 00:26:32,320 that's going to send some interference 521 00:26:32,800 --> 00:26:35,120 through that 900 megahertz frequency range, 522 00:26:35,920 --> 00:26:37,560 it's going to be able to block the communication, 523 00:26:37,800 --> 00:26:38,900 so it's not going to be able to get through. 524 00:26:41,280 --> 00:26:43,140 Which is somewhat illegal, by the way. 525 00:26:43,160 --> 00:26:45,140 Yeah, so the whole RF thing is illegal, 526 00:26:45,240 --> 00:26:46,740 so we didn't bring any of those devices. 527 00:26:46,960 --> 00:26:47,160 Yeah. 528 00:26:48,080 --> 00:26:49,500 I don't think we'd be able to get that through the TSA. 529 00:26:50,560 --> 00:26:53,820 So we were looking at the SDK for Z-Wave, 530 00:26:53,920 --> 00:26:56,100 and it actually comes with a sniffer with it, 531 00:26:56,140 --> 00:26:57,260 so you can kind of sniff the protocol, 532 00:26:57,800 --> 00:26:59,180 but they're a little bit pricey. 533 00:26:59,820 --> 00:27:02,640 They run around $2,000, $3,000, 534 00:27:02,860 --> 00:27:05,040 so it's not going to be something that your average person 535 00:27:05,040 --> 00:27:06,260 is going to be able to afford to pick up, 536 00:27:06,380 --> 00:27:08,200 but they do have that with it. 537 00:27:11,180 --> 00:27:13,780 So the AES encryption, when we were looking into this, 538 00:27:14,640 --> 00:27:17,740 when you do AES, when you initialize the keys, 539 00:27:18,440 --> 00:27:20,600 we found out that it doesn't appear to be using 540 00:27:20,600 --> 00:27:23,200 a FIPS compliant method for initializing those keys, 541 00:27:23,420 --> 00:27:25,880 so it's actually possible to sniff those keys 542 00:27:25,880 --> 00:27:28,120 as they're initializing the devices. 543 00:27:28,340 --> 00:27:30,800 So we can pick up those keys when a new device 544 00:27:30,800 --> 00:27:31,840 is being added to the network, 545 00:27:31,960 --> 00:27:33,420 and now we'll be able to sniff the communication 546 00:27:33,420 --> 00:27:35,140 that's going through the mesh network, 547 00:27:35,340 --> 00:27:37,200 and then also be able to maybe inject packets 548 00:27:37,200 --> 00:27:38,980 or whatever else you want to do at that point. 549 00:27:39,440 --> 00:27:41,560 But again, we haven't seen any devices traditionally. 550 00:27:41,640 --> 00:27:44,720 We saw one that was a door handle, basically, 551 00:27:44,720 --> 00:27:46,220 that supported AES, but aside from that, 552 00:27:46,280 --> 00:27:47,940 for the most part, the majority of them do not. 553 00:27:53,980 --> 00:27:57,520 So again, all of the stuff that you just saw here, 554 00:27:57,700 --> 00:28:01,940 the stuff from the Tenzi device with the conversion to... 555 00:28:02,480 --> 00:28:03,300 I think I'm talking loud enough. 556 00:28:05,940 --> 00:28:07,000 What's that? Oh, gotcha. 557 00:28:08,460 --> 00:28:10,640 So all the stuff that you saw from the Tenzi device 558 00:28:10,640 --> 00:28:13,260 as far as the ability to take a binary, 559 00:28:13,320 --> 00:28:14,720 convert it back to Hex, 560 00:28:14,740 --> 00:28:15,840 and then write it off into the system 561 00:28:15,840 --> 00:28:17,920 is on the new version of the social network. 562 00:28:17,940 --> 00:28:18,380 So that's the new version of the tool kit. 563 00:28:18,520 --> 00:28:21,180 And you can get that from secmaniac.com. 564 00:28:21,200 --> 00:28:23,860 So that's S-E-C-M-A-N-I-A-C.com. 565 00:28:24,380 --> 00:28:27,740 And it's got all the code for all of the X10-based attacks 566 00:28:27,740 --> 00:28:30,720 that you saw here, as well as the different types of attacks 567 00:28:30,720 --> 00:28:31,920 that we got on there. 568 00:28:32,540 --> 00:28:35,840 Coming soon, we have a sniffer based on Z-Wave 569 00:28:35,840 --> 00:28:37,840 initialization keys, encryption keys. 570 00:28:38,280 --> 00:28:39,840 So basically, you'll be able to run that 571 00:28:39,840 --> 00:28:42,720 off of the network itself and actually start to identify 572 00:28:42,720 --> 00:28:45,800 and spoof a Z-Wave-based controller. 573 00:28:46,580 --> 00:28:47,820 And then, basically, 574 00:28:47,940 --> 00:28:49,120 it'll send it to the system for you. 575 00:28:49,380 --> 00:28:51,640 And then also, if you're interested in how we actually 576 00:28:51,640 --> 00:28:54,080 built these devices, we'll have a blog post that has 577 00:28:54,560 --> 00:28:57,040 exactly what we did in order to solder devices on, 578 00:28:57,180 --> 00:28:59,520 the parts used to do it, everything like that. 579 00:28:59,580 --> 00:29:00,200 And it's very easy. 580 00:29:00,320 --> 00:29:05,660 I mean, it's not significantly challenging to do. 581 00:29:06,860 --> 00:29:09,020 Well, we ran a little fast in this one, 582 00:29:09,100 --> 00:29:11,780 but I just want to say to anybody, free hugs after this. 583 00:29:11,880 --> 00:29:12,740 I'm all for that. 584 00:29:13,000 --> 00:29:14,440 And check out DerbyCon. 585 00:29:15,220 --> 00:29:16,060 It's in Louisville, Kentucky. 586 00:29:17,940 --> 00:29:18,260 Thank you very much. 587 00:29:18,320 --> 00:29:18,820 Does anybody have any questions? 588 00:29:20,720 --> 00:29:21,540 Yes, sir, in the back. 589 00:29:28,860 --> 00:29:37,680 Now, the only issue that we've seen with the homeplugs 590 00:29:37,680 --> 00:29:39,720 are the default keys that are being used 591 00:29:40,580 --> 00:29:44,240 by the actual vendors themselves. 592 00:29:44,540 --> 00:29:46,420 The actual encryption standard for it 593 00:29:46,420 --> 00:29:47,380 is actually working really well. 594 00:29:47,520 --> 00:29:49,780 So we haven't seen any exposure, as far as that goes, 595 00:29:49,840 --> 00:29:50,760 minus the default keys. 596 00:29:51,020 --> 00:29:53,640 And like the Netgear 500 AVs, 597 00:29:55,040 --> 00:29:57,520 they randomize the shared keys per initialization, 598 00:29:57,760 --> 00:29:58,340 which is really good. 599 00:29:59,620 --> 00:30:01,540 Folks, if you guys can try to keep it down, 600 00:30:01,640 --> 00:30:03,660 since we don't have mics, it would be greatly appreciated. 601 00:30:06,720 --> 00:30:11,620 It was just interesting. 602 00:30:12,300 --> 00:30:12,920 Just interesting. 603 00:30:13,000 --> 00:30:13,300 That was it. 604 00:30:16,420 --> 00:30:16,940 Thank you.