1 00:00:00,000 --> 00:00:04,720 First of all, I want to start off by inviting Spencer McIntyre up here. Can you come up 2 00:00:04,720 --> 00:00:10,700 real quick? Stand in front of the stage, sir. Here he is right here. Spencer works for Secure 3 00:00:10,700 --> 00:00:17,160 State, correct? And he's been doing meter research for them. He's also doing AMI assessments 4 00:00:17,160 --> 00:00:22,420 as well. And what they've done is they've released an optical tool, at least a framework 5 00:00:22,420 --> 00:00:25,960 that you can start with. We're actually going to be talking about how I did that in just 6 00:00:25,960 --> 00:00:29,420 a second, but what I want ‑‑ but we're not releasing our tool publicly. We're releasing 7 00:00:29,420 --> 00:00:34,800 it to vendors. We're releasing it to utilities and to security researchers that we can confirm 8 00:00:34,800 --> 00:00:41,940 are working in this industry. And the reason for that is ours has a little bit more stuff ‑‑ no, 9 00:00:42,020 --> 00:00:48,340 don't sit down. Get back up here so people can see your face. And ‑‑ hang on just a 10 00:00:48,340 --> 00:00:54,040 second. Because we have a little bit more functionality in our tool, just built in, 11 00:00:54,100 --> 00:00:59,000 Spencer's broken it out a little bit. So it's his tool, termineater, is on Google Code. 12 00:00:59,420 --> 00:01:03,700 If you go and look it up, you can download it. You can have his code. It will be the 13 00:01:03,700 --> 00:01:07,480 initial framework that you need to communicate with the meters. I'm sure he has modules 14 00:01:07,480 --> 00:01:12,740 that he has that are proprietary, but you can write your own. So also, with that being 15 00:01:12,740 --> 00:01:17,320 said, if you're a security researcher in the utility field, please contact me. Come 16 00:01:17,320 --> 00:01:23,740 to the Q&A afterwards. I'll get your card. We'll research it, and we'll get you our code 17 00:01:23,740 --> 00:01:28,340 as well. So Spencer McIntyre, everybody, he's done a great job. If you haven't seen eekpeak, 18 00:01:28,340 --> 00:01:33,460 you should check that out as well. I use it in all of my wireless assessments. Thank 19 00:01:33,460 --> 00:01:45,760 you. . Okay. Looking into the eye of the meter. When I first started working 20 00:01:45,760 --> 00:01:50,660 on meters, I went over to the carpenter ranch, Matt Carpenter. He couldn't make it here today, 21 00:01:50,780 --> 00:01:56,400 so ‑‑ but I really appreciate all his help because he really got me into the security 22 00:01:56,400 --> 00:01:58,320 field as far as ‑‑ and he's a great guy. He's a great guy. He's a great guy. He's a 23 00:01:58,340 --> 00:01:59,340 great guy, and he's a great guy. He's a great guy. He's a great guy. He's a great guy. And 24 00:01:59,340 --> 00:02:04,780 I had never done hardware before. So when I came over to the carpenter ranch, he said, pick up 25 00:02:04,780 --> 00:02:09,120 that smart meter and take it apart. As soon as I picked it up, the first thing I noticed were 26 00:02:09,120 --> 00:02:16,180 were two IR LEDs on the front of it, on the face of it. I'm like, what are these? He said, 27 00:02:16,280 --> 00:02:21,840 well, when the field technicians have to make a modification to the meter, what they do is 28 00:02:21,840 --> 00:02:25,760 first they try to contact it with the radio because they all have radios in them. But if 29 00:02:25,760 --> 00:02:31,060 they can't contact it and it's some type of condition that they don't want to pull the 30 00:02:31,060 --> 00:02:36,360 meter off, lots of rain, really hot and they're really sweaty, blizzard conditions, what 31 00:02:36,360 --> 00:02:41,600 they'll do is they'll use the optical port to either pull data off or reconfigure it. I was 32 00:02:41,600 --> 00:02:48,040 like, oh, that's cool. Can we talk to it? He said, well, you can get the vendor software to 33 00:02:48,040 --> 00:02:54,040 speak with it, but all that lets you do is to program it and to read the configuration of it. 34 00:02:54,660 --> 00:03:00,300 Each meter that you have has specific software that you have to register with the 35 00:03:00,300 --> 00:03:06,080 manufacturer to get. I was like, well, that sucks. I just want to run stuff on it. He's 36 00:03:06,080 --> 00:03:06,320 like, yeah. 37 00:03:06,360 --> 00:03:12,340 That's what we want to do. Who's done this before? Nobody's done this before. Ever since I 38 00:03:12,340 --> 00:03:16,640 started working on the meters, that's been winking at me. That's why I called it looking into 39 00:03:16,640 --> 00:03:25,640 the eye of the meter. I'm cut away. Some of you know me as Don Weber, but I'm cut away. I came 40 00:03:25,640 --> 00:03:30,080 on with InGuardians because I learned things very fast and we needed somebody to spin up on 41 00:03:30,080 --> 00:03:36,000 hardware so that the utility industries knew what they're publicly facing devices, what kind 42 00:03:36,000 --> 00:03:40,960 of threat they pose to their whole infrastructure. So that's what we decided to help them with, and 43 00:03:40,960 --> 00:03:49,260 we've been really successful. This is the talk that I was going to give at ShmooCon. I was going to 44 00:03:49,260 --> 00:03:55,120 give it probably to about 100 people at ShmooCon. Looking around here and counting the people at 45 00:03:55,120 --> 00:04:01,580 Black Hat, I've now reached out to probably over 1,000 people. So thank you very much for 46 00:04:01,580 --> 00:04:05,980 coming. It's awesome. It's way better than that. I would have loved to give it. But somebody contact me, 47 00:04:05,980 --> 00:04:12,040 I gave this out, I gave the presentation out two weeks before I did the presentation. I gave the 48 00:04:12,040 --> 00:04:18,980 code out about a month before. I actually got vendors responding with code updates and with 49 00:04:19,440 --> 00:04:26,680 requests for modifications to the slide deck so that I was more accurate. But one company didn't 50 00:04:26,680 --> 00:04:30,320 feel comfortable with moving forward, wanted to speak with us more, so that's what we did. We 51 00:04:30,320 --> 00:04:34,820 pulled the talk so we can talk with them and then obviously we've made them feel better because here 52 00:04:34,820 --> 00:04:35,140 we are today. 53 00:04:35,980 --> 00:04:39,760 Okay. So there's a lot of stuff that we're going to talk about here. This slide is in the 54 00:04:39,760 --> 00:04:45,060 first one. I've updated one bullet in this because of something that somebody asked me and it was 55 00:04:45,060 --> 00:04:49,960 actually something that needed to be in there. But I'm not going to talk about specific meters or 56 00:04:49,960 --> 00:04:55,440 specific vulnerabilities in specific meters. We're not going to mention vendors because we don't 57 00:04:55,440 --> 00:04:59,480 really need to. Smart meters are smart meters. There's about six or seven different types out 58 00:04:59,480 --> 00:05:04,300 there if you just count the main ones. You're going to find stuff, we're going to talk about stuff that 59 00:05:04,300 --> 00:05:10,080 is a concern with all of them, but they don't apply to each one. And therefore you have to 60 00:05:10,080 --> 00:05:14,380 look at each one slightly differently. It's just like any other embedded device. So we're not 61 00:05:14,380 --> 00:05:18,500 going to talk about those vendors, we're not going to point out anything specific, but we're 62 00:05:18,500 --> 00:05:24,380 still going to get some good education. What's AMI? AMI, excuse me. Advanced Metering 63 00:05:24,800 --> 00:05:30,200 Infrastructure. It's the whole solution, we'll talk about it in just a second, from smart 64 00:05:30,200 --> 00:05:36,040 meters to the back end servers. Now, meters are designed to be on the side of your house. 65 00:05:36,260 --> 00:05:41,360 They're high voltage electricity devices. If you take one off and you get an adapter, you'll see 66 00:05:41,360 --> 00:05:45,060 in a second, and plug it into your wall and touch something wrong, you will fucking die. 67 00:05:47,620 --> 00:05:55,180 All right. Who knows Travis Goodspeed here? Who's ever heard Travis Goodspeed yell? Travis 68 00:05:55,180 --> 00:06:00,180 has yelled at me. I started reaching for a meter, actually that was taken out, and I 69 00:06:01,320 --> 00:06:07,160 was reaching for the meter, he said, what the fuck are you doing? I'm a marine. Okay, 70 00:06:07,240 --> 00:06:13,420 I jumped. Dude, Travis just yelled at me. Okay. But it made a point. If you don't treat 71 00:06:13,420 --> 00:06:17,980 it with respect, you're going to kill yourself. I've seen Atlas get shocked. I've seen Q 72 00:06:17,980 --> 00:06:23,720 get shocked. I've seen Matt Carpenter get shocked. Q's arm was numb for about three 73 00:06:23,720 --> 00:06:29,280 hours. Okay. And it wasn't even plugged in. That was just the energy coming off the cap 74 00:06:29,280 --> 00:06:30,160 that you'll see in just a second. 75 00:06:31,760 --> 00:06:38,000 Okay. Don't do research on your own. Get permission. Yeah. All right. What we're going to talk 76 00:06:38,000 --> 00:06:43,160 about, we're going to talk about what the smart meters are so that people who don't 77 00:06:43,160 --> 00:06:48,260 understand it will understand it. Okay. Then we're going to talk about what security 78 00:06:48,260 --> 00:06:52,480 researchers are looking for. But I say criminals because that's exactly what we're looking 79 00:06:52,480 --> 00:06:56,260 for. We want to figure out what the criminals are doing. Okay. And they're going to look 80 00:06:56,260 --> 00:07:00,140 at it just the same way we're doing. So we're going to outline those steps and we're going 81 00:07:01,700 --> 00:07:08,980 to look at how that information can lead us, gather us information so that we can start 82 00:07:08,980 --> 00:07:13,680 building tools. We're going to build assessment tools. Some people are going to build attack 83 00:07:13,680 --> 00:07:18,320 tools. And then we're going to talk about the optical tool and if we get to it, some of the 84 00:07:18,320 --> 00:07:23,160 mitigations. And if I don't get to it, let me say it now. The mitigations that I have in these 85 00:07:23,160 --> 00:07:27,560 slides are already implemented out there. That's why I feel comfortable talking about this. 86 00:07:27,760 --> 00:07:30,140 They're not all implemented by every solution. They're not all implemented by every solution. 87 00:07:30,160 --> 00:07:34,860 But just like everything else, people are trying to build a good solution. They're doing their 88 00:07:34,860 --> 00:07:39,100 best. And it's stuff like this that's helping them understand it and get other mitigations built 89 00:07:39,100 --> 00:07:46,980 in. Now, the purpose for this presentation is to get the word out. I want to educate people. I 90 00:07:46,980 --> 00:07:53,560 wanted to educate 100 people at ShmooCon. But now I've got to educate a thousand. So I'm happy. 91 00:07:53,700 --> 00:07:59,920 But I've also educated the vendors. They've started talking completely differently about their 92 00:07:59,920 --> 00:08:07,160 solutions now just from that one talk getting canceled. I wasn't scared about talking about 93 00:08:07,160 --> 00:08:14,260 this because we had released the AMI ATT&CK methodology back in 2009, okay? Everything 94 00:08:14,260 --> 00:08:21,140 we're going to talk about here is what, basically, I use this as a guide to help teach me hardware, 95 00:08:21,380 --> 00:08:26,880 teach me meter assessments, teach me embedded device assessments, okay? And we're going to 96 00:08:26,880 --> 00:08:32,120 walk through that. And we're doing it to do things like generate anomalous data so that they 97 00:08:32,120 --> 00:08:41,060 understand what it looks like on the back end, on those servers. So this is the basic breakdown 98 00:08:41,060 --> 00:08:46,440 of an AMI methodology. The stuff that's outlined in red, those are the publicly facing devices. 99 00:08:46,940 --> 00:08:52,160 The one on the far right is the smart meter. Now, smart meters can be meshed together. They 100 00:08:52,160 --> 00:08:56,860 either communicate over 900 megahertz. Yes, 900 megahertz. And they can be meshed together 101 00:08:56,880 --> 00:09:02,460 communicating with other meters and with the aggregators that are, excuse me, that are on the 102 00:09:02,460 --> 00:09:08,340 pole top. Or they've got network interface cards that have, they have network interface cards that 103 00:09:08,340 --> 00:09:15,880 have cellular modems in there. So 2.4 gigahertz. And those won't need an aggregator except for in 104 00:09:15,880 --> 00:09:20,700 remote locations. And those are just talked back directly to the cell tower. But we're concerned 105 00:09:20,700 --> 00:09:25,800 with all of those things in the red. The rest of this stuff, the cellular network, the edge 106 00:09:26,900 --> 00:09:31,340 routers and the firewalls back into the internal, that's just like a network. Okay? That's just a 107 00:09:31,340 --> 00:09:36,680 business network. We do the same types of assessment, helping them do web assessments, database 108 00:09:36,680 --> 00:09:41,160 assessment, looking at configurations of the different stuff on the internal side. But we're 109 00:09:41,160 --> 00:09:48,480 talking about the external, publicly facing devices. So what are the criminals going to want to 110 00:09:48,480 --> 00:09:54,100 do? Well, let me tell you this. We've got five bullet points up here. Utility industry has been 111 00:09:54,100 --> 00:09:56,860 doing this for 100 years. They've got a list of devices that are going to be used for 112 00:09:56,880 --> 00:10:03,060 about four times this long of the things that they're concerned with. Okay? All right. So free 113 00:10:03,060 --> 00:10:07,920 energy. Every time I talk to somebody, I'm like, yeah, man, I do research on smart meters. They're 114 00:10:07,920 --> 00:10:14,400 like, oh, man, can you get me free energy, dude? What's up? I tell them, no, I don't do that type 115 00:10:14,400 --> 00:10:20,100 of research. I mean, I know a lot about a smart meter. But because each meter's different, doing 116 00:10:20,100 --> 00:10:25,680 this is different for every meter. But it has been done. Criminals are doing this. Back in, I believe 117 00:10:26,880 --> 00:10:33,380 it had been a little later, you can check Brian Krebs' blog, and you'll see that he talked about 118 00:10:33,380 --> 00:10:40,380 this happening in Puerto Rico. What happened is that there was an FBI report, investigation into 119 00:10:40,380 --> 00:10:48,080 utility stealing energy down in Puerto Rico. And they estimated that if it had continued, it had 120 00:10:48,080 --> 00:10:55,160 been about $400 million worth of theft of energy. They actually got 10% penetration. What I mean is 121 00:10:56,880 --> 00:11:02,900 steal the software that was supposed to be programming the meters. They knew the password, because it 122 00:11:02,900 --> 00:11:09,720 never got changed. And they were able to modify 10% of the meters in Puerto Rico so that businesses 123 00:11:09,720 --> 00:11:18,600 and residents got cheaper electricity. So it has occurred. This is a problem. But it was completely 124 00:11:18,600 --> 00:11:24,400 ignored because it was suppressed by the FBI. Okay? So that's why we're trying to, that's one of the 125 00:11:24,400 --> 00:11:26,160 things we're trying to help people understand. 126 00:11:27,160 --> 00:11:34,060 Corporate espionage. It is a concern. If you can understand the consumption of a business at a certain point, a 127 00:11:34,060 --> 00:11:39,120 critical point, you know, are they going to make their deadlines? If you need to understand that. Are they working on 128 00:11:39,120 --> 00:11:45,260 something new and something good? Okay? They probably don't want you to be able to read that data off of there. But if 129 00:11:45,260 --> 00:11:50,940 you can't tell from the tools that are provided to you by the manufacturer whether or not that information is 130 00:11:51,480 --> 00:11:56,840 accessible without a password, you need something to help you understand that. Therefore, another reason for our 131 00:11:56,880 --> 00:12:04,920 tools. Access to the back end resources. That's a given. Okay? Can somebody take a meter, take an 132 00:12:04,920 --> 00:12:12,720 aggregation point, and can they get to the servers on the back end and insert shell code? Okay? But 133 00:12:12,720 --> 00:12:18,320 also, you know, they're just like any other business. They try to consolidate resources. So their SCADA 134 00:12:18,320 --> 00:12:25,380 devices, the stuff in their substations, those potentially could be communicating through the 135 00:12:25,380 --> 00:12:26,860 aggregators. All right? So that's one of the things that we're trying to help people understand. 136 00:12:26,880 --> 00:12:32,680 All right? So can I hop from a meter, can I do something in a meter, and hop over to their SCADA network? So they're 137 00:12:32,680 --> 00:12:41,500 concerned about that. Kinetic attack. I have to explain this one a lot. And a lot of people don't have their heads 138 00:12:41,500 --> 00:12:46,940 wrapped around this very well. I say, yes, I can disconnect your meter. And the first thing they say is like, well, I can hit it 139 00:12:46,940 --> 00:12:55,300 with a baseball bat. They actually call it the baseball bat attack. Or they say, well, I can drive a truck into it. A truck 140 00:12:55,300 --> 00:12:56,640 into the substation. Okay. 141 00:12:56,880 --> 00:13:03,980 Yeah, you can do that. But when you walk up to the meter, if I change it via the optical port, the configuration, if I turn it off via the 142 00:13:03,980 --> 00:13:11,920 optical port, which one can you tell happened? The one that has been beaten up with a baseball bat? Or the one that has been 143 00:13:11,920 --> 00:13:17,800 changed via the optical port? You're going to know instantly. And here's why it's a big deal. They hate these pictures. These two 144 00:13:17,800 --> 00:13:24,420 pictures up right up here, they hate them. Because I'm pointing out that there's a residential meter. Commercial meters don't have a 145 00:13:24,420 --> 00:13:25,500 disconnect. Okay? 146 00:13:25,620 --> 00:13:26,860 But residential meters don't have a disconnect. 147 00:13:26,880 --> 00:13:35,460 But residential meters do. So I can disconnect and that means you turn off the power. Now I can, if I am able to do this, if I have the security 148 00:13:35,460 --> 00:13:44,280 code and you do need that, and I know which function to run, I can turn Sprint off on this cell phone tower. I can't turn the other two off 149 00:13:44,280 --> 00:13:50,760 because they're on commercial meters. So they need to understand where they're deploying these types of devices. And then they turn to me and 150 00:13:50,760 --> 00:13:56,840 they say, oh, well, you know, we just turn off that functionality. Well, you just use a function to turn that functionality off. So I 151 00:13:56,880 --> 00:14:05,300 turn the functionality on and then I turn the meter off. Thank you. Okay. So and then obviously we all know, we know about 152 00:14:05,300 --> 00:14:11,540 hacktivism. We talk to people a little bit. People are getting more educated about that. But at the same time, they're going to use any 153 00:14:11,540 --> 00:14:26,160 resource they have to meet their agenda. Okay. We are talking about smart meters, but this is what kind of a good example of the 154 00:14:26,920 --> 00:14:33,560 power line. So that's part of it. And then if we have an aggregator on a pole top, the concern about these things is that, you know, they're high up on the pole. 155 00:14:33,720 --> 00:14:44,400 They're connected to the power lines usually. Okay. And is anybody here want to steal a transformer? Because you'll probably fucking die. I saw the hand go up. 156 00:14:44,580 --> 00:14:55,580 I saw you. So, you know, I mean, what do you need? You might be able to pull copper out of there or something like that. So somebody may do it if it's not 157 00:14:55,580 --> 00:14:56,860 energized. Okay. So if you have a power line and you're not sure what you're doing, you might want to steal a transformer. You might want to steal a transformer. 158 00:14:56,880 --> 00:15:00,160 But when they figure out that there's network capabilities on the pole top, 159 00:15:00,260 --> 00:15:02,040 you don't think that they're not going to go for it? 160 00:15:02,140 --> 00:15:04,080 I can sweep those lines really easy. 161 00:15:04,820 --> 00:15:08,160 I actually, the neighborhood that this is in, it's on a side street. 162 00:15:08,220 --> 00:15:09,500 No houses face it. 163 00:15:09,620 --> 00:15:12,580 And there's a ditch on the other side of it. 164 00:15:12,980 --> 00:15:14,800 It's not too hard to steal these things. 165 00:15:14,920 --> 00:15:17,100 And if I can figure out a way to modify these things 166 00:15:17,100 --> 00:15:19,060 and put some type of device in there, 167 00:15:19,160 --> 00:15:20,460 the next one I'm not going to steal. 168 00:15:20,620 --> 00:15:23,740 I'm just going to hop up on it, pull it apart. 169 00:15:23,840 --> 00:15:26,540 If they have no tamper detection and alerting, 170 00:15:26,880 --> 00:15:28,320 then I'm going to put my device in there 171 00:15:28,320 --> 00:15:32,180 and I'm connected until they finally figure out that I'm in there 172 00:15:32,180 --> 00:15:34,520 and I'm using this as my entry point. 173 00:15:34,720 --> 00:15:37,960 I put the OMG on there because at first I was like, 174 00:15:37,980 --> 00:15:41,180 oh my fucking God, you know, because it's a network port. 175 00:15:41,320 --> 00:15:43,840 You can just tap, you know, throw my laptop right on there. 176 00:15:43,900 --> 00:15:46,320 I did talk to somebody who did an assessment on this one. 177 00:15:46,400 --> 00:15:48,960 He said they actually have that locked down really well. 178 00:15:49,240 --> 00:15:52,820 But there was other concerns, bigger concerns, 179 00:15:52,920 --> 00:15:54,960 bigger priorities that they needed to address on that. 180 00:15:55,020 --> 00:15:56,540 And they did work on it. 181 00:16:05,280 --> 00:16:06,820 But only one of them winks at you. 182 00:16:06,880 --> 00:16:08,460 Only one, at least one winks at me. 183 00:16:08,640 --> 00:16:10,180 You know, every time I pick it up, it's still, 184 00:16:10,220 --> 00:16:12,100 hey, I need you to talk to me. 185 00:16:13,120 --> 00:16:14,500 So how am I going to get a meter? 186 00:16:16,080 --> 00:16:19,380 Well, I just, I call, I call the meter vendors 187 00:16:19,380 --> 00:16:20,380 and ask them to give me ones. 188 00:16:20,480 --> 00:16:21,380 That's how I do my research. 189 00:16:22,000 --> 00:16:23,580 Sometimes they're nice, sometimes they're not. 190 00:16:23,960 --> 00:16:25,460 But how are criminals going to get it? 191 00:16:25,560 --> 00:16:26,860 Well, they're going to pay some crackheads. 192 00:16:26,880 --> 00:16:29,560 They're going to get paid $5 to go out there 193 00:16:29,560 --> 00:16:31,220 and pull this meter off, okay, 194 00:16:31,280 --> 00:16:32,240 and toss it in the back of the truck 195 00:16:32,240 --> 00:16:32,960 and they're going to drive off. 196 00:16:33,300 --> 00:16:35,000 But they can do it themselves if they want to. 197 00:16:35,060 --> 00:16:37,500 If they don't, then they have somebody else do it. 198 00:16:37,860 --> 00:16:41,560 The, you know, I mean, this is freaking dangerous right here. 199 00:16:41,840 --> 00:16:44,340 But it's just, I mean, even if it's locked, 200 00:16:44,900 --> 00:16:46,220 if they don't have a tamper alarm, 201 00:16:46,380 --> 00:16:48,280 or who cares if they have a tamper alarm 202 00:16:48,280 --> 00:16:49,820 because they're not going to come pulling up to me 203 00:16:49,820 --> 00:16:51,300 within two minutes. 204 00:16:51,720 --> 00:16:54,380 They're not, their meters are, there's too many out there. 205 00:16:54,720 --> 00:16:56,380 And then you take them home, you know, 206 00:16:56,880 --> 00:16:59,220 to plug them into your house to work on them. 207 00:16:59,380 --> 00:17:01,620 That's the actual example of an adapter 208 00:17:01,620 --> 00:17:02,480 that I was talking about. 209 00:17:02,700 --> 00:17:04,060 You don't want to take a smart meter 210 00:17:04,060 --> 00:17:05,040 and just plug it into this 211 00:17:05,660 --> 00:17:10,040 because it's still, it's still not protecting you. 212 00:17:10,160 --> 00:17:11,360 So please still be careful. 213 00:17:16,980 --> 00:17:19,220 And these pads right here with the danger on them, 214 00:17:19,300 --> 00:17:21,140 that's, those are the ones I was reaching for 215 00:17:21,140 --> 00:17:22,680 that Travis yelled at me about. 216 00:17:24,520 --> 00:17:26,460 When I'm thinking about the, you know, 217 00:17:26,880 --> 00:17:27,740 how I'm going to approach an assessment 218 00:17:28,580 --> 00:17:29,780 on the smart meters, 219 00:17:29,820 --> 00:17:31,360 how I'm going to figure out what other people are going to do, 220 00:17:31,420 --> 00:17:32,160 I break it down. 221 00:17:32,260 --> 00:17:33,460 Data at rest and data in motion. 222 00:17:33,720 --> 00:17:34,900 You have your microcontrollers, 223 00:17:34,940 --> 00:17:35,680 you have your memory devices, 224 00:17:35,940 --> 00:17:36,700 you have your radios, 225 00:17:36,780 --> 00:17:38,040 and that's data at rest. 226 00:17:38,520 --> 00:17:40,780 Okay, if they haven't protected those components, 227 00:17:41,100 --> 00:17:43,460 then I can just pull all that stuff down. 228 00:17:44,180 --> 00:17:45,960 Okay, the firmware, I can grab the firmware 229 00:17:45,960 --> 00:17:47,560 from the microcontrollers, 230 00:17:47,560 --> 00:17:49,720 obviously data and potentially firmware 231 00:17:49,720 --> 00:17:50,900 from the memory components. 232 00:17:51,180 --> 00:17:53,760 And the radios might have firmware in them 233 00:17:53,760 --> 00:17:55,960 or they might be driven by a microcontroller. 234 00:17:56,880 --> 00:17:58,200 And then obviously data in motion, 235 00:17:58,340 --> 00:18:00,360 they have to communicate between the two. 236 00:18:00,620 --> 00:18:02,640 All right, and so if I can tap that 237 00:18:03,180 --> 00:18:05,700 with a, and I'll explain that in a second, 238 00:18:05,740 --> 00:18:07,400 if I can tap that, 239 00:18:07,420 --> 00:18:09,220 then I can see the information that they're passing, 240 00:18:09,360 --> 00:18:10,940 which is actually more important 241 00:18:10,940 --> 00:18:12,420 because it's necessary. 242 00:18:14,920 --> 00:18:15,960 So data at rest, 243 00:18:15,960 --> 00:18:17,820 we just need to figure out what components are on there. 244 00:18:17,920 --> 00:18:19,360 It just takes a little bit of research. 245 00:18:19,780 --> 00:18:20,720 You know, I mean, this, 246 00:18:20,800 --> 00:18:22,780 the data sheets are all published for these things. 247 00:18:22,880 --> 00:18:25,640 The easiest ones to tap have their pins exposed. 248 00:18:26,000 --> 00:18:26,740 You know, whether, 249 00:18:26,880 --> 00:18:28,960 whether they're fully exposed or partially exposed. 250 00:18:29,680 --> 00:18:32,820 We can, there are devices out there 251 00:18:32,820 --> 00:18:33,540 that you'll see in a second 252 00:18:33,540 --> 00:18:35,740 that can actually communicate with those. 253 00:18:35,820 --> 00:18:37,740 You don't need to even power the full meter 254 00:18:37,740 --> 00:18:39,520 to pull the memory off there. 255 00:18:40,420 --> 00:18:42,580 The ones on the, the images on the right 256 00:18:42,580 --> 00:18:44,240 are ball grid array components. 257 00:18:44,540 --> 00:18:45,540 They're a little bit more complex. 258 00:18:45,840 --> 00:18:47,980 It makes it harder to potentially tap these 259 00:18:47,980 --> 00:18:51,300 because these are really nicely designed embedded devices. 260 00:18:51,560 --> 00:18:52,600 They're multi-layered. 261 00:18:52,660 --> 00:18:54,320 So you might not all see all the lines 262 00:18:54,320 --> 00:18:56,400 that are coming out of these, okay? 263 00:18:56,880 --> 00:18:59,260 And, but we can still pull those off. 264 00:18:59,360 --> 00:19:00,860 We can still heat up those boards 265 00:19:00,860 --> 00:19:03,380 and pull those memory components off. 266 00:19:03,520 --> 00:19:06,680 And I did that for a, actually, Q did it. 267 00:19:07,140 --> 00:19:08,680 And we did it for a client. 268 00:19:08,920 --> 00:19:10,820 And we, we were talking to the client. 269 00:19:11,100 --> 00:19:13,120 And we said, yeah, when we pulled the memory off, 270 00:19:13,180 --> 00:19:14,240 we got this other information. 271 00:19:14,360 --> 00:19:15,260 We didn't get very far. 272 00:19:15,800 --> 00:19:17,320 And they're like, what do you mean you got information? 273 00:19:18,320 --> 00:19:20,000 Because the vendor told them it's all encrypted 274 00:19:20,460 --> 00:19:22,040 because they thought it was protected. 275 00:19:22,600 --> 00:19:24,120 So at least we showed them that 276 00:19:24,120 --> 00:19:25,820 and they can start asking more questions. 277 00:19:26,880 --> 00:19:30,200 So, you know, once, once you have those devices, 278 00:19:30,700 --> 00:19:32,240 I'm sorry, yes, sir. 279 00:19:32,440 --> 00:19:33,680 Do they have JTAG interfaces? 280 00:19:35,060 --> 00:19:37,060 Depending on the, and for the mic, 281 00:19:37,140 --> 00:19:39,020 the question was, do they have JTAG interfaces? 282 00:19:39,420 --> 00:19:40,740 Depending on the microcontroller, 283 00:19:40,900 --> 00:19:41,480 they'll have those. 284 00:19:41,680 --> 00:19:43,520 Radios will have different data debugs, 285 00:19:43,520 --> 00:19:44,580 depending on what they're using. 286 00:19:44,980 --> 00:19:45,780 Does that answer your question? 287 00:19:46,320 --> 00:19:48,300 And are they subject to the 288 00:19:48,300 --> 00:19:51,240 power analysis attacks? 289 00:19:52,260 --> 00:19:54,200 The question was, are they subject 290 00:19:54,200 --> 00:19:56,100 to differential power analysis attacks? 291 00:19:57,600 --> 00:19:58,400 Some are. 292 00:19:58,660 --> 00:20:00,440 I mean, you know, if you can name a vulnerability, 293 00:20:00,780 --> 00:20:02,420 you know, generally you can attest for it. 294 00:20:02,440 --> 00:20:04,220 Usually what I do is I prioritize. 295 00:20:04,580 --> 00:20:06,940 I might have a particular thing that I'm going after. 296 00:20:07,100 --> 00:20:10,780 For this, I'm specifically concerned with the optical port. 297 00:20:10,920 --> 00:20:12,060 So I was going off that. 298 00:20:12,160 --> 00:20:15,040 I wasn't doing firmware analysis at this portion of, 299 00:20:15,240 --> 00:20:17,860 or it depends on what type of assessment we're doing. 300 00:20:17,920 --> 00:20:18,580 So we prioritize. 301 00:20:19,360 --> 00:20:20,240 Does that answer your question? 302 00:20:20,780 --> 00:20:21,180 Okay. 303 00:20:22,080 --> 00:20:22,600 All right. 304 00:20:22,620 --> 00:20:23,420 Back to memory components. 305 00:20:23,700 --> 00:20:25,200 So we understand the memory components. 306 00:20:25,360 --> 00:20:26,860 We understand how they, you know, 307 00:20:28,120 --> 00:20:29,420 how they communicate. 308 00:20:29,640 --> 00:20:31,500 So we just get devices that communicate with them. 309 00:20:31,740 --> 00:20:35,200 The Aardvark device communicates with some very easily. 310 00:20:35,560 --> 00:20:36,780 You know, it's very simple. 311 00:20:36,840 --> 00:20:41,080 It'll power the memory component and pull the data off, 312 00:20:41,200 --> 00:20:42,260 and then you have a data file. 313 00:20:42,500 --> 00:20:43,920 For the ball grid array components, 314 00:20:44,260 --> 00:20:45,300 it's a little more complicated. 315 00:20:45,520 --> 00:20:47,280 It's actually, you know, more expensive. 316 00:20:47,540 --> 00:20:50,760 And that's the ZELTEC on the right-hand image. 317 00:20:51,220 --> 00:20:54,820 But I, you know, and one of the things I want to point it out 318 00:20:54,820 --> 00:20:56,660 is the ZELTEC alone is expensive. 319 00:20:56,860 --> 00:20:59,120 But if they haven't made an adapter for it, 320 00:20:59,180 --> 00:21:00,460 they're about $500 a piece. 321 00:21:00,940 --> 00:21:01,340 Okay. 322 00:21:01,540 --> 00:21:04,280 But the fact that I can actually call them and say, 323 00:21:04,380 --> 00:21:05,460 you don't have this. 324 00:21:05,620 --> 00:21:06,480 Can you make it? 325 00:21:06,560 --> 00:21:08,420 And they send it to me within two weeks. 326 00:21:08,700 --> 00:21:10,040 That means it's not that hard. 327 00:21:10,300 --> 00:21:12,500 And I can pull, you know, it just makes it really easy 328 00:21:12,500 --> 00:21:15,180 to pull stuff off of those components that are ball grid array. 329 00:21:15,860 --> 00:21:18,540 Then, of course, Travis Goodspeed has been kind enough 330 00:21:18,540 --> 00:21:20,960 to do a lot of research into embedded devices. 331 00:21:21,440 --> 00:21:25,100 And so he's got the, his custom good fed out there 332 00:21:25,100 --> 00:21:26,280 that everybody can get. 333 00:21:26,280 --> 00:21:28,800 If you find him, I was actually hoping that I could find him 334 00:21:28,800 --> 00:21:31,460 and get some boards up here to pass out or at the Q&A. 335 00:21:31,520 --> 00:21:33,680 So if he shows up, we might have some there. 336 00:21:34,020 --> 00:21:35,760 But all you have to do is contact him. 337 00:21:35,860 --> 00:21:37,760 You know, look up the good fed. 338 00:21:38,360 --> 00:21:41,940 And you can write your own custom extractors 339 00:21:41,940 --> 00:21:44,380 and get memory off of things that are strange 340 00:21:44,380 --> 00:21:48,660 and don't have a commercial tool for them. 341 00:21:50,940 --> 00:21:53,400 But once we get the data, what is it? 342 00:21:53,640 --> 00:21:55,500 You know, it's just like any other file system. 343 00:21:56,700 --> 00:21:59,180 And, but there's no pointer saying that, 344 00:21:59,240 --> 00:22:02,820 okay, this is the actual file or the data that you're interested in. 345 00:22:02,840 --> 00:22:04,040 You can run strings on it, yeah. 346 00:22:04,260 --> 00:22:06,460 You're going to get some interesting information out of there. 347 00:22:06,560 --> 00:22:09,980 You might even locate something, you know, just by perusing it. 348 00:22:10,340 --> 00:22:13,700 So what I turn to is I turn to the communication standards, 349 00:22:13,760 --> 00:22:16,520 the ANSI C12 stuff that we'll be talking about in just a second. 350 00:22:16,800 --> 00:22:20,300 But the reason why I do that is because these embedded devices 351 00:22:20,300 --> 00:22:21,580 want to be efficient. 352 00:22:21,820 --> 00:22:23,300 You know, things are going off the radio, 353 00:22:23,400 --> 00:22:24,500 so they've got timing issues. 354 00:22:24,840 --> 00:22:25,900 They don't got a lot of, 355 00:22:25,900 --> 00:22:27,060 they don't have a lot of CPU power. 356 00:22:27,220 --> 00:22:30,080 So sometimes they just write straight to memory. 357 00:22:30,360 --> 00:22:33,040 So you can use these to help you understand how they are 358 00:22:33,040 --> 00:22:35,760 and maybe try to locate certain things within that, 359 00:22:36,980 --> 00:22:39,440 within that memory or that file that you pulled out. 360 00:22:43,480 --> 00:22:44,900 So if we can't find anything, 361 00:22:45,000 --> 00:22:47,900 nothing pops out at us from our memory. 362 00:22:48,800 --> 00:22:50,340 And the reason why I do that first, 363 00:22:50,620 --> 00:22:51,640 you know, even though it's hard, 364 00:22:51,720 --> 00:22:52,760 I might not get as far, 365 00:22:52,880 --> 00:22:54,200 it's the easiest thing to do. 366 00:22:54,200 --> 00:22:55,300 So I grab that data, 367 00:22:55,320 --> 00:22:56,260 something might pop out, 368 00:22:56,700 --> 00:22:59,340 but then now I can start turning to data in motion. 369 00:22:59,760 --> 00:23:01,120 Because as I mentioned, 370 00:23:01,980 --> 00:23:02,860 you know, the most, 371 00:23:02,920 --> 00:23:05,260 they're only going to pass the most important data generally. 372 00:23:05,640 --> 00:23:07,620 Okay, so you can focus things on, 373 00:23:07,660 --> 00:23:11,340 focus in on that data very quickly by monitoring data in motion. 374 00:23:11,500 --> 00:23:15,080 But you don't have just component to component communication. 375 00:23:15,600 --> 00:23:18,320 Meters are made up of metrology boards which count. 376 00:23:18,960 --> 00:23:21,420 And then they're also made up of network interface cards. 377 00:23:21,560 --> 00:23:22,800 And those have to communicate. 378 00:23:22,980 --> 00:23:23,980 And what's great about it, 379 00:23:23,980 --> 00:23:25,060 what we figured out, 380 00:23:25,100 --> 00:23:29,800 is that the NIC generally has to authenticate to the metrology board 381 00:23:29,800 --> 00:23:30,920 in order to get that information. 382 00:23:31,440 --> 00:23:34,600 So now it has to pass the security codes across those lines. 383 00:23:34,760 --> 00:23:36,640 And that's what we're going to focus on. 384 00:23:39,420 --> 00:23:43,640 This is an example of tapping the pins on memory components. 385 00:23:44,120 --> 00:23:45,780 Hopefully you guys have seen this before, 386 00:23:45,880 --> 00:23:47,040 but if you haven't, I'll describe it. 387 00:23:47,540 --> 00:23:50,340 Basically in the left-hand image there, 388 00:23:50,460 --> 00:23:51,840 that's a logical analyzer. 389 00:23:51,840 --> 00:23:54,600 I prefer this lay logical analyzer. 390 00:23:54,640 --> 00:23:55,880 It's small, it's easy to carry, 391 00:23:55,980 --> 00:23:57,500 and it works really well. 392 00:23:57,520 --> 00:23:59,620 It's got some really good analyzers you'll see in a second. 393 00:24:00,040 --> 00:24:01,680 But basically it's just a, 394 00:24:01,800 --> 00:24:03,260 you know, we tap into the pins. 395 00:24:03,340 --> 00:24:07,580 We use the micro grippers to monitor each one of the pins 396 00:24:07,580 --> 00:24:11,020 so that we know what's going across those pins at any one point in time. 397 00:24:11,340 --> 00:24:13,460 And actually what the image that you see right here 398 00:24:13,460 --> 00:24:15,940 is the micro controller driving the radio, 399 00:24:16,040 --> 00:24:17,440 which is this really small chip. 400 00:24:17,660 --> 00:24:19,440 Because the radio doesn't have enough memory 401 00:24:19,440 --> 00:24:19,760 to, 402 00:24:19,760 --> 00:24:21,900 to keep that. 403 00:24:22,440 --> 00:24:24,160 So the micro controller has to manage it. 404 00:24:24,200 --> 00:24:26,460 It has to send it the next hop, 405 00:24:26,560 --> 00:24:27,580 the next hop. 406 00:24:27,760 --> 00:24:29,260 Who understands frequency hopping? 407 00:24:30,340 --> 00:24:31,820 Okay, if you monitor it, 408 00:24:31,840 --> 00:24:33,260 if you monitor these lines, 409 00:24:34,200 --> 00:24:35,640 and you save them off to a file, 410 00:24:35,720 --> 00:24:38,640 now you have the hopping pattern for that particular radio. 411 00:24:39,360 --> 00:24:43,160 Now you can start using that for your analysis into other things like, 412 00:24:43,220 --> 00:24:44,660 you know, finding patents, 413 00:24:44,920 --> 00:24:46,200 understanding how they're 414 00:24:47,800 --> 00:24:49,360 generating that hopping pattern, 415 00:24:49,760 --> 00:24:50,560 and if you can do that, 416 00:24:50,680 --> 00:24:53,500 now you're getting into the next phase that I really want to get into, 417 00:24:53,660 --> 00:24:54,980 and we're already working on that. 418 00:24:55,580 --> 00:24:56,760 The right hand side, 419 00:24:56,880 --> 00:24:58,300 if I can't get the micro grippers on there, 420 00:24:58,380 --> 00:25:00,580 if it's just line, like the biogrid array components, 421 00:25:01,040 --> 00:25:02,280 or they're really small, 422 00:25:02,360 --> 00:25:03,920 I can't get the grippers to grip onto there, 423 00:25:04,820 --> 00:25:07,940 then I'll tap with the hypodermic needles. 424 00:25:08,560 --> 00:25:08,960 Okay? 425 00:25:09,760 --> 00:25:10,160 It's, 426 00:25:10,160 --> 00:25:12,880 it's really good because it's got that point and it'll grip on there. 427 00:25:13,740 --> 00:25:14,140 Okay? 428 00:25:14,740 --> 00:25:16,820 But the problem with both of these, 429 00:25:16,840 --> 00:25:18,420 both of these things is, 430 00:25:18,420 --> 00:25:20,300 is that if I tap this with my elbow, 431 00:25:20,520 --> 00:25:22,800 or my knee when I'm standing up to go do something, 432 00:25:23,040 --> 00:25:24,580 all of that stuff pops off. 433 00:25:25,440 --> 00:25:27,620 And you don't know how aggravating it is. 434 00:25:28,800 --> 00:25:29,780 Doing this for, 435 00:25:29,800 --> 00:25:32,280 trying to get those hypodermic needles on there for 30 minutes, 436 00:25:32,400 --> 00:25:33,560 just to look up, 437 00:25:33,660 --> 00:25:34,180 bump it, 438 00:25:34,220 --> 00:25:35,000 and have to do it all again. 439 00:25:35,160 --> 00:25:35,840 So it's really tough. 440 00:25:35,960 --> 00:25:37,940 So what we do is we look for debugging pads. 441 00:25:38,360 --> 00:25:41,320 Most of the debugging pads are for JTAG interfaces, 442 00:25:41,740 --> 00:25:44,860 you know, to reprogram microcontrollers to, 443 00:25:45,660 --> 00:25:48,400 so that the developers have an easy way to push them 444 00:25:48,400 --> 00:25:49,780 or push firmware up into the memory components. 445 00:25:50,240 --> 00:25:51,780 But when we're going board to board, 446 00:25:52,240 --> 00:25:53,940 sometime we have those as well. 447 00:25:54,180 --> 00:25:57,580 And the board to board is going to show the communications that's passing 448 00:25:57,580 --> 00:25:59,880 between the NIC and the metrology board. 449 00:26:02,640 --> 00:26:03,240 And that, 450 00:26:03,280 --> 00:26:04,220 so we solder on that. 451 00:26:04,700 --> 00:26:06,120 And we pull those lines out, 452 00:26:06,120 --> 00:26:07,340 out onto our breadboard. 453 00:26:07,820 --> 00:26:09,800 And now we've got a more persistent connection. 454 00:26:10,400 --> 00:26:12,980 And we can put our logical analyzer on there. 455 00:26:13,080 --> 00:26:14,680 And if we understand how it's communicating, 456 00:26:14,900 --> 00:26:15,840 we can get devices, 457 00:26:16,640 --> 00:26:17,040 and, 458 00:26:17,040 --> 00:26:18,760 and connect to those lines as well. 459 00:26:19,140 --> 00:26:19,700 So in the, 460 00:26:19,700 --> 00:26:21,660 in the right hand image you see my logical analyzer. 461 00:26:21,740 --> 00:26:23,200 So I'm still analyzing the lines. 462 00:26:23,340 --> 00:26:25,920 But I'm also putting an FTDI chip in there 463 00:26:25,920 --> 00:26:28,180 because I know it does serial communications. 464 00:26:28,960 --> 00:26:30,580 And now I can use this. 465 00:26:30,700 --> 00:26:31,180 It's important, 466 00:26:31,320 --> 00:26:32,040 that's why I'm bringing it up. 467 00:26:32,140 --> 00:26:33,800 I can use this for serial communications. 468 00:26:34,240 --> 00:26:35,780 Because once I get to this point, 469 00:26:35,900 --> 00:26:37,240 now I can do man in the middle. 470 00:26:37,360 --> 00:26:38,880 I've got the lines that are coming out. 471 00:26:39,760 --> 00:26:41,380 I don't have to reconnect those lines. 472 00:26:41,820 --> 00:26:42,640 I can put those, 473 00:26:42,720 --> 00:26:43,940 make those lines go anywhere. 474 00:26:43,940 --> 00:26:46,540 So I can pass either of those components, 475 00:26:47,460 --> 00:26:48,620 any data that I want. 476 00:26:48,720 --> 00:26:51,280 I can let them communicate to each other if I want. 477 00:26:54,300 --> 00:26:56,500 But in order to do that, 478 00:26:56,640 --> 00:26:58,580 I need to understand the communication standards. 479 00:26:58,960 --> 00:27:01,500 And I did have to buy these. 480 00:27:03,000 --> 00:27:04,620 I don't think a vendor ever gave me one. 481 00:27:04,800 --> 00:27:05,080 But, 482 00:27:05,140 --> 00:27:06,280 so I did have to buy them. 483 00:27:06,320 --> 00:27:07,680 But they're only $200 apiece. 484 00:27:07,740 --> 00:27:08,860 So it's really not that big deal. 485 00:27:10,140 --> 00:27:10,760 Or you can, 486 00:27:11,560 --> 00:27:12,140 we try, 487 00:27:12,180 --> 00:27:13,900 I tried to search for them for this talk. 488 00:27:13,900 --> 00:27:14,180 Online, 489 00:27:14,540 --> 00:27:16,080 I couldn't locate them specifically. 490 00:27:17,160 --> 00:27:18,340 So C-1218. 491 00:27:19,020 --> 00:27:20,720 That was their first stab at it. 492 00:27:20,920 --> 00:27:22,120 And this is so that, 493 00:27:22,700 --> 00:27:25,560 they developed this so that they can have interoperability. 494 00:27:25,780 --> 00:27:27,180 So they have multiple manufacturers 495 00:27:27,880 --> 00:27:28,840 developing things 496 00:27:28,840 --> 00:27:30,260 and they all communicate the same way. 497 00:27:30,380 --> 00:27:31,900 Even though we all know how that works. 498 00:27:31,960 --> 00:27:33,860 They do it slightly differently at every organization. 499 00:27:34,260 --> 00:27:35,360 So C-1218, 500 00:27:36,300 --> 00:27:37,240 it's not secure. 501 00:27:37,480 --> 00:27:39,060 It passes the security code, 502 00:27:39,240 --> 00:27:39,940 the password, 503 00:27:40,120 --> 00:27:40,800 in the clear. 504 00:27:40,920 --> 00:27:43,140 All the other communications is in the clear. 505 00:27:43,140 --> 00:27:44,100 But it was their first start. 506 00:27:44,260 --> 00:27:45,740 It's actually a really good protocol. 507 00:27:46,380 --> 00:27:50,340 C-1221 was their attempt at securing it. 508 00:27:50,380 --> 00:27:50,860 More securely. 509 00:27:51,100 --> 00:27:52,360 And what they did is they 510 00:27:53,280 --> 00:27:54,280 used DES encryption 511 00:27:54,960 --> 00:27:57,120 to pass a token between each other 512 00:27:57,120 --> 00:27:58,940 so that they had mutual authentication. 513 00:28:00,040 --> 00:28:00,840 But they did, 514 00:28:00,920 --> 00:28:02,500 they had two problems with the standard. 515 00:28:02,960 --> 00:28:04,240 Besides the DES part. 516 00:28:05,780 --> 00:28:08,100 Is that everything passed after 517 00:28:08,100 --> 00:28:09,700 that mutual authentication 518 00:28:09,700 --> 00:28:10,780 is in the clear. 519 00:28:11,660 --> 00:28:13,380 So I still see the security code. 520 00:28:14,240 --> 00:28:14,720 But, 521 00:28:14,740 --> 00:28:16,520 as a part of the standard, 522 00:28:16,700 --> 00:28:17,720 the mutual authentication 523 00:28:17,720 --> 00:28:18,980 is optional. 524 00:28:20,540 --> 00:28:22,120 So to say that you're doing 525 00:28:22,660 --> 00:28:23,620 C-1221, 526 00:28:23,800 --> 00:28:24,640 all you have to do is 527 00:28:24,640 --> 00:28:25,840 say that you're doing it. 528 00:28:25,920 --> 00:28:27,540 You don't have to do anything else. 529 00:28:27,920 --> 00:28:28,940 It's a fucking lie. 530 00:28:29,200 --> 00:28:29,820 Excuse me. 531 00:28:30,500 --> 00:28:30,980 So, 532 00:28:30,980 --> 00:28:33,840 so the answer to that was C-1222. 533 00:28:33,980 --> 00:28:35,180 They worked really hard 534 00:28:35,180 --> 00:28:37,040 at creating a standard 535 00:28:37,040 --> 00:28:37,820 so that for, 536 00:28:37,940 --> 00:28:39,540 that supported networking, 537 00:28:40,040 --> 00:28:40,520 TCPIP, 538 00:28:40,780 --> 00:28:42,460 you can do C-1222. 539 00:28:42,960 --> 00:28:43,920 The problem is, 540 00:28:43,940 --> 00:28:44,860 is that they selected 541 00:28:44,860 --> 00:28:46,360 a encryption protocol 542 00:28:46,360 --> 00:28:47,960 that had not been approved by NIST. 543 00:28:48,560 --> 00:28:49,820 NIST didn't prove it, 544 00:28:49,840 --> 00:28:50,840 or approve it because 545 00:28:50,840 --> 00:28:53,260 it's vulnerable to attacks of, 546 00:28:53,920 --> 00:28:54,880 if you send a ba, 547 00:28:54,960 --> 00:28:56,660 I might have this wrong, 548 00:28:56,820 --> 00:28:57,920 but I'm gonna try to do the best I can. 549 00:28:58,160 --> 00:28:59,880 If you send small packets, 550 00:29:00,080 --> 00:29:00,780 one, two bytes, 551 00:29:00,980 --> 00:29:05,300 it's vulnerable to brute forcing the key. 552 00:29:05,960 --> 00:29:06,960 But in our, 553 00:29:06,980 --> 00:29:07,760 in this protocol, 554 00:29:07,860 --> 00:29:08,900 you're never gonna send anything, 555 00:29:08,940 --> 00:29:10,260 I think, less than eight bytes. 556 00:29:10,260 --> 00:29:12,800 So it's not vulnerable to this attack. 557 00:29:13,120 --> 00:29:15,200 But because it's vulnerable, 558 00:29:15,480 --> 00:29:16,300 NIST won't approve it, 559 00:29:16,360 --> 00:29:18,840 therefore none of the vendors will implement this 560 00:29:18,840 --> 00:29:20,920 until NIST says they're okay 561 00:29:20,920 --> 00:29:23,160 because they're working on interoperability standards. 562 00:29:23,720 --> 00:29:24,180 So now, 563 00:29:24,340 --> 00:29:25,480 ANSI has to go back, 564 00:29:25,580 --> 00:29:26,380 fix this, 565 00:29:27,180 --> 00:29:29,200 it'll probably be about 2015, 566 00:29:29,420 --> 00:29:31,560 then the vendors can start doing the development 567 00:29:31,560 --> 00:29:35,420 so those meters will get C-1222 in about 20 years. 568 00:29:38,740 --> 00:29:39,520 I'm just kidding. 569 00:29:40,260 --> 00:29:41,440 I'm sure somebody's working on it. 570 00:29:45,800 --> 00:29:50,740 Did that wake you up? 571 00:29:50,820 --> 00:29:51,640 I didn't plan that. 572 00:29:55,820 --> 00:29:56,780 Is that, are you volunteering? 573 00:30:00,400 --> 00:30:01,300 I'll give you $10. 574 00:30:04,960 --> 00:30:07,540 Okay, so looking back to our logical analyzer, 575 00:30:07,640 --> 00:30:09,040 you know, talking about the communications, 576 00:30:09,040 --> 00:30:11,200 this is actually the output from 577 00:30:11,200 --> 00:30:12,180 a Silea, 578 00:30:12,240 --> 00:30:14,380 yeah, Silea logical analyzer. 579 00:30:14,820 --> 00:30:16,080 And you're seeing, actually, 580 00:30:16,140 --> 00:30:18,440 the identification service response packet here. 581 00:30:18,640 --> 00:30:19,080 Okay? 582 00:30:19,160 --> 00:30:20,080 And this is where, 583 00:30:20,120 --> 00:30:20,380 you know, 584 00:30:20,380 --> 00:30:22,540 this is where they say they're gonna do C-1221. 585 00:30:22,880 --> 00:30:24,260 They just changed that one byte. 586 00:30:24,460 --> 00:30:24,900 Okay? 587 00:30:25,420 --> 00:30:27,080 But what's important here is that the, 588 00:30:27,080 --> 00:30:30,120 the logical analyzer tells me what's going across these lines. 589 00:30:30,200 --> 00:30:31,480 As long as I configure it correctly, 590 00:30:31,700 --> 00:30:32,340 then, 591 00:30:32,420 --> 00:30:33,240 you know, 592 00:30:33,260 --> 00:30:33,800 it's smart. 593 00:30:34,020 --> 00:30:34,660 And it's, 594 00:30:34,660 --> 00:30:35,300 for this, 595 00:30:35,320 --> 00:30:35,920 right here, 596 00:30:35,960 --> 00:30:36,860 it's just async serial. 597 00:30:36,860 --> 00:30:38,380 The NIC and the metrology board 598 00:30:38,380 --> 00:30:40,140 are just communicating via async serial. 599 00:30:40,660 --> 00:30:41,980 And what I can do is, 600 00:30:42,100 --> 00:30:43,960 I can not only use the analyzers 601 00:30:43,960 --> 00:30:45,800 to show me what the data it's parsing, 602 00:30:45,920 --> 00:30:47,420 but I can export it 603 00:30:47,960 --> 00:30:49,060 to a CSV file. 604 00:30:51,380 --> 00:30:51,940 And then, 605 00:30:52,000 --> 00:30:52,840 you know where I'm going there. 606 00:30:53,000 --> 00:30:53,760 How does it look? 607 00:30:53,860 --> 00:30:54,780 Because I've got low res. 608 00:30:54,920 --> 00:30:55,300 Okay, good. 609 00:30:55,360 --> 00:30:55,880 It came up good. 610 00:30:56,040 --> 00:30:57,860 So now I can start labeling the packets. 611 00:30:58,660 --> 00:30:59,020 Okay. 612 00:30:59,420 --> 00:30:59,920 You know, 613 00:30:59,920 --> 00:31:01,000 when I first got those standards 614 00:31:01,000 --> 00:31:01,720 that I was talking about, 615 00:31:01,800 --> 00:31:03,580 I read those for about two weeks, 616 00:31:03,780 --> 00:31:04,900 because I'm really good at, 617 00:31:05,940 --> 00:31:06,420 you know, 618 00:31:06,420 --> 00:31:07,220 analyzing documentation 619 00:31:07,220 --> 00:31:08,440 and writing protocols 620 00:31:08,440 --> 00:31:09,500 and communications, 621 00:31:09,700 --> 00:31:10,260 stuff like that. 622 00:31:10,400 --> 00:31:12,000 And it completely baffled me. 623 00:31:12,260 --> 00:31:13,360 I was new to it. 624 00:31:13,560 --> 00:31:15,300 But as soon as I got this output, 625 00:31:15,520 --> 00:31:18,620 and as soon as I can start labeling these bytes, 626 00:31:18,780 --> 00:31:19,120 I'm like, 627 00:31:19,200 --> 00:31:19,660 oh man, 628 00:31:19,760 --> 00:31:20,700 now it makes sense. 629 00:31:20,940 --> 00:31:21,960 This is freaking awesome. 630 00:31:22,380 --> 00:31:23,920 I know exactly what they're doing. 631 00:31:24,100 --> 00:31:25,580 I knew every part of that packet. 632 00:31:27,920 --> 00:31:28,840 What's great is, 633 00:31:28,900 --> 00:31:30,340 then I merge the files, 634 00:31:30,440 --> 00:31:33,880 because you export the receive pin, 635 00:31:34,080 --> 00:31:35,760 then you export the transmit pin, 636 00:31:35,840 --> 00:31:36,400 and you can merge it 637 00:31:36,420 --> 00:31:36,960 and merge these files. 638 00:31:37,180 --> 00:31:38,740 Now you can see the full conversation. 639 00:31:39,100 --> 00:31:40,260 The request and response. 640 00:31:40,720 --> 00:31:42,180 The NIC card logging in. 641 00:31:44,680 --> 00:31:46,440 The metrology board saying okay. 642 00:31:46,780 --> 00:31:47,600 So identification, 643 00:31:47,940 --> 00:31:48,280 negotiation, 644 00:31:48,460 --> 00:31:48,980 log on, 645 00:31:49,040 --> 00:31:49,440 security. 646 00:31:49,840 --> 00:31:50,300 Woohoo! 647 00:31:50,460 --> 00:31:51,440 That's a security code. 648 00:31:52,560 --> 00:31:53,720 Now I know how to log in. 649 00:31:53,920 --> 00:31:55,260 And if they're using that code 650 00:31:55,260 --> 00:31:56,120 for the optical port, 651 00:31:57,540 --> 00:31:58,480 that's what I'm hoping. 652 00:31:58,860 --> 00:31:59,220 Okay. 653 00:31:59,800 --> 00:32:01,340 Probably the next most important thing 654 00:32:01,340 --> 00:32:02,040 is the actions. 655 00:32:02,240 --> 00:32:03,180 So the read, 656 00:32:03,220 --> 00:32:03,500 write, 657 00:32:03,620 --> 00:32:04,800 run procedures, 658 00:32:04,800 --> 00:32:06,860 because those are still kind of hard to understand, 659 00:32:06,980 --> 00:32:09,280 but also every manufacturer does it differently. 660 00:32:09,580 --> 00:32:11,000 So if I can see them, 661 00:32:11,020 --> 00:32:12,720 how they're doing their actions, 662 00:32:12,980 --> 00:32:15,080 now I can start programming that myself. 663 00:32:15,500 --> 00:32:17,460 And as I'm sitting there looking at these things, 664 00:32:18,560 --> 00:32:18,900 oh okay, 665 00:32:19,000 --> 00:32:19,440 I'm sorry. 666 00:32:19,560 --> 00:32:20,700 Let me talk about this real quick. 667 00:32:20,900 --> 00:32:22,940 The first tool in my toolkit 668 00:32:22,940 --> 00:32:24,780 is a basic parser 669 00:32:24,780 --> 00:32:26,560 that will take both of those files, 670 00:32:26,660 --> 00:32:27,360 merge them together, 671 00:32:27,540 --> 00:32:28,540 mark all that stuff, 672 00:32:28,640 --> 00:32:30,340 because it takes a long time 673 00:32:30,340 --> 00:32:31,360 to do all of that by hand. 674 00:32:31,540 --> 00:32:33,180 So that was the first part of my toolkit. 675 00:32:33,180 --> 00:32:35,400 To speed things up. 676 00:32:35,500 --> 00:32:36,580 And as I'm writing that, 677 00:32:37,240 --> 00:32:38,140 and I'm looking at it, 678 00:32:38,160 --> 00:32:38,380 I'm like, 679 00:32:38,900 --> 00:32:39,500 wait a minute. 680 00:32:40,520 --> 00:32:41,000 You know, 681 00:32:41,000 --> 00:32:42,140 when I was working with Atlas, 682 00:32:42,200 --> 00:32:45,580 working on the MSP430 disassembler and emulator, 683 00:32:45,800 --> 00:32:46,140 you know, 684 00:32:46,140 --> 00:32:46,560 he told me, 685 00:32:46,600 --> 00:32:46,880 you know, 686 00:32:46,880 --> 00:32:47,720 when you're working with Python, 687 00:32:48,360 --> 00:32:49,420 tables are the best way. 688 00:32:49,480 --> 00:32:51,060 Tables are the fastest things to reference. 689 00:32:51,600 --> 00:32:52,060 I'm like, 690 00:32:52,120 --> 00:32:52,740 holy shit. 691 00:32:52,920 --> 00:32:53,720 I've got tables. 692 00:32:54,840 --> 00:32:57,280 Because every response and request 693 00:32:57,280 --> 00:32:58,880 is exactly the same. 694 00:32:59,800 --> 00:33:00,280 I mean, 695 00:33:00,300 --> 00:33:00,940 there's a slight difference. 696 00:33:00,980 --> 00:33:01,820 There's a control byte, 697 00:33:01,820 --> 00:33:02,900 but I can account for that. 698 00:33:03,200 --> 00:33:04,240 It's exactly the same. 699 00:33:04,320 --> 00:33:05,900 So I can just write tables to tables. 700 00:33:06,200 --> 00:33:08,260 And if I can write the tables of the communications, 701 00:33:08,380 --> 00:33:09,340 I know what's coming back. 702 00:33:09,480 --> 00:33:11,240 Now I can start generating my tools. 703 00:33:14,420 --> 00:33:17,600 Now that I have a persistent connection, 704 00:33:18,560 --> 00:33:21,020 now that I can start writing tools for that, 705 00:33:21,100 --> 00:33:23,120 I have an advanced persistent tether. 706 00:33:23,440 --> 00:33:23,920 Okay? 707 00:33:24,020 --> 00:33:26,020 I can communicate with the device. 708 00:33:26,100 --> 00:33:27,700 I can send things to it 709 00:33:27,700 --> 00:33:30,160 and see what kind of response it gives. 710 00:33:30,300 --> 00:33:31,360 And if I do this correctly, 711 00:33:31,540 --> 00:33:31,800 it's going to be, 712 00:33:31,820 --> 00:33:34,440 if I just think about what normal replay attacks do, 713 00:33:34,680 --> 00:33:35,920 you just send a packet. 714 00:33:36,820 --> 00:33:37,720 And in this case, 715 00:33:37,780 --> 00:33:38,900 I didn't care what it returned. 716 00:33:39,100 --> 00:33:39,260 Well, 717 00:33:39,300 --> 00:33:40,800 I cared about what it returned, 718 00:33:40,960 --> 00:33:44,300 but I monitored to see what that response was. 719 00:33:44,520 --> 00:33:46,860 I didn't modify my behavior according to that response. 720 00:33:47,200 --> 00:33:48,520 And so I would send a packet. 721 00:33:48,620 --> 00:33:50,460 I would send that logon packet, 722 00:33:50,620 --> 00:33:51,400 the negotiate packet, 723 00:33:51,620 --> 00:33:53,260 all the way up to the security packet. 724 00:33:53,360 --> 00:33:54,420 If it came back, 725 00:33:54,460 --> 00:33:59,000 and when I analyzed what it was sending in return, 726 00:34:00,220 --> 00:34:01,440 I logged in correctly. 727 00:34:01,440 --> 00:34:04,000 So now I've got a man-in-the-middle attack. 728 00:34:04,280 --> 00:34:06,100 I can, or a replay attack, excuse me. 729 00:34:06,520 --> 00:34:09,760 So now I can receive responses via the logical analyzer, 730 00:34:09,800 --> 00:34:10,920 understand what's going on, 731 00:34:10,960 --> 00:34:11,920 know that I'm doing it right. 732 00:34:12,680 --> 00:34:13,920 And now I've got a hardware, 733 00:34:14,040 --> 00:34:15,420 this was the second one in my toolkit. 734 00:34:15,760 --> 00:34:17,580 You know, a hardware client to communicate 735 00:34:18,420 --> 00:34:19,300 with the meter, 736 00:34:19,440 --> 00:34:22,080 log in, see what those configurations are, 737 00:34:24,020 --> 00:34:26,600 and do it over and over again 738 00:34:26,600 --> 00:34:28,200 in a repeatable process. 739 00:34:29,480 --> 00:34:30,040 You know, 740 00:34:30,040 --> 00:34:32,280 but I still have wires coming out of it. 741 00:34:32,340 --> 00:34:35,040 This is just in my lab, 742 00:34:35,700 --> 00:34:36,780 you know, on my desktop. 743 00:34:37,180 --> 00:34:41,300 You know, I'm still not getting that full communication. 744 00:34:41,560 --> 00:34:43,120 What's great is that those meters, 745 00:34:43,200 --> 00:34:43,900 once they're powered, 746 00:34:44,400 --> 00:34:46,480 they will connect back to the radio tower. 747 00:34:46,580 --> 00:34:47,100 So potentially, 748 00:34:47,220 --> 00:34:49,100 they're still communicating with that meter 749 00:34:49,100 --> 00:34:50,280 if they haven't turned it off. 750 00:34:51,100 --> 00:34:51,500 Okay? 751 00:34:51,580 --> 00:34:53,720 So things could be still passed on there. 752 00:34:55,620 --> 00:34:57,720 But, you know, it's not the side of my house. 753 00:34:57,920 --> 00:34:58,920 You know, I walk outside, 754 00:34:58,920 --> 00:34:59,960 I walk by my smart meter, 755 00:35:00,020 --> 00:35:01,700 and it's winking at me madly 756 00:35:01,700 --> 00:35:03,240 because I want to talk with that optical port. 757 00:35:05,820 --> 00:35:08,420 Can I borrow your microphone for just 30 seconds? 758 00:35:09,480 --> 00:35:10,740 How many of you are in here, 759 00:35:10,800 --> 00:35:12,680 how many of you in here are going to stay 760 00:35:12,680 --> 00:35:15,380 for the next talk in this track, Tenacious Diggity? 761 00:35:15,780 --> 00:35:17,420 Raise your hand if you're staying for that talk. 762 00:35:18,460 --> 00:35:20,620 How many of you are planning to go to FX's talk? 763 00:35:23,320 --> 00:35:24,340 Shit, would you help me count? 764 00:35:24,600 --> 00:35:25,080 All right. 765 00:35:26,140 --> 00:35:26,920 All right, we're done. 766 00:35:27,000 --> 00:35:27,380 Thank you. 767 00:35:28,460 --> 00:35:29,560 Everybody give him a big hand. 768 00:35:29,700 --> 00:35:29,960 Thank you, sir. 769 00:35:35,140 --> 00:35:36,020 Everybody lied, right? 770 00:35:38,900 --> 00:35:39,220 Okay. 771 00:35:39,380 --> 00:35:41,200 So, but in order to communicate with it, 772 00:35:41,240 --> 00:35:42,460 I have to understand what it's made of. 773 00:35:42,640 --> 00:35:43,440 You know, basically, 774 00:35:43,580 --> 00:35:45,280 it's just developed according to a standard. 775 00:35:45,360 --> 00:35:47,580 They all have to do it the same way, maybe. 776 00:35:48,420 --> 00:35:50,860 But it's just IR, you know, IR LEDs. 777 00:35:51,720 --> 00:35:53,080 Well, so what's the first thing I do? 778 00:35:53,160 --> 00:35:53,960 I'm like, IR LEDs. 779 00:35:54,100 --> 00:35:56,100 Yeah, there's plenty of projects out there that do that. 780 00:35:56,100 --> 00:35:57,300 Plenty of projects online. 781 00:35:57,660 --> 00:35:58,820 But they don't do it the same way. 782 00:35:59,740 --> 00:36:00,140 Okay? 783 00:36:00,200 --> 00:36:03,200 And they don't do it that's easy to do for async serial. 784 00:36:03,900 --> 00:36:06,320 I was in a time crunch, so I bit the bullet 785 00:36:06,320 --> 00:36:08,520 and spent $350 on the optical probe 786 00:36:08,520 --> 00:36:09,440 because you can buy them online. 787 00:36:12,340 --> 00:36:14,660 A little expensive, but no big deal. 788 00:36:15,000 --> 00:36:16,860 And I get it, and I'm like, woohoo! 789 00:36:17,040 --> 00:36:18,620 And then I plug it in, and I look, 790 00:36:18,720 --> 00:36:20,420 and I've got TTYUSB0. 791 00:36:21,140 --> 00:36:21,980 USB to serial. 792 00:36:22,100 --> 00:36:22,460 Woohoo! 793 00:36:24,000 --> 00:36:25,300 Because my FTDI chip, 794 00:36:25,300 --> 00:36:27,560 the one that I'd been sending for my hardware client, 795 00:36:28,780 --> 00:36:29,940 was the same thing. 796 00:36:31,680 --> 00:36:34,020 So I'm halfway, you know, I'm even closer. 797 00:36:34,140 --> 00:36:36,960 I'm one step closer because I don't really have to modify that much more. 798 00:36:38,680 --> 00:36:40,160 $350 is kind of expensive. 799 00:36:40,680 --> 00:36:41,740 I did try it. 800 00:36:41,780 --> 00:36:43,380 There is an open source project out there 801 00:36:44,180 --> 00:36:45,540 that somebody set up. 802 00:36:45,620 --> 00:36:50,880 They didn't outline the pins to normal serial that I'm used to. 803 00:36:51,540 --> 00:36:54,780 I'm not really good at developing, you know, modifying boards just yet. 804 00:36:55,300 --> 00:36:59,040 So I contacted the people that make one of the IR dongles at GuanaWorks. 805 00:36:59,660 --> 00:37:02,580 Actually, we helped fund some of this research, 806 00:37:02,620 --> 00:37:04,840 and they were able to get an initial production. 807 00:37:05,120 --> 00:37:06,760 It doesn't quite work just yet, 808 00:37:06,880 --> 00:37:08,980 but what's great is not only do they have USB, 809 00:37:09,500 --> 00:37:12,660 but we also made a module that has a serial out. 810 00:37:12,820 --> 00:37:17,580 So now I can plug in things like an XB module that you see right here, 811 00:37:19,300 --> 00:37:20,740 a cellular modem. 812 00:37:21,080 --> 00:37:23,520 Now I can start making wireless optical probes. 813 00:37:23,540 --> 00:37:24,420 People are already doing this. 814 00:37:24,420 --> 00:37:26,660 You know, $350 is expensive. 815 00:37:26,880 --> 00:37:30,280 This will probably run between $50 and $75 if they told me correctly. 816 00:37:33,140 --> 00:37:34,780 If you're interested in this project, 817 00:37:34,880 --> 00:37:37,480 please contact GuanaWorks so that they know there's interest 818 00:37:37,480 --> 00:37:39,380 and they can continue development of it. 819 00:37:41,920 --> 00:37:43,360 But what do I need to do? 820 00:37:43,600 --> 00:37:47,820 I mean, I've got a client that will send data, 821 00:37:48,780 --> 00:37:50,260 but I need to respond. 822 00:37:50,320 --> 00:37:53,580 In order to speak with OpticalPort, I need to respond intelligently. 823 00:37:53,720 --> 00:37:54,160 Okay? 824 00:37:54,420 --> 00:37:57,540 So really, I've done pretty much all of those things, 825 00:37:58,200 --> 00:37:59,500 except for the response part. 826 00:38:02,080 --> 00:38:03,300 And so that's what I did. 827 00:38:03,520 --> 00:38:07,960 I wrote a client, which was the primary tool within our toolkit 828 00:38:07,960 --> 00:38:09,520 that we're calling OptiGuard. 829 00:38:09,620 --> 00:38:10,700 Nobody likes SMAC. 830 00:38:11,780 --> 00:38:14,560 SMAC stood for Smart Meter Optical Communications Kit. 831 00:38:15,240 --> 00:38:18,540 I thought it was okay, but we decided to change the name to OptiGuard 832 00:38:18,540 --> 00:38:22,720 so that the utilities would not think it's mean. 833 00:38:22,720 --> 00:38:29,200 We were actually going to name it the Smart Meter Optical Assessment Toolkit. 834 00:38:29,940 --> 00:38:30,380 SMOTE. 835 00:38:30,800 --> 00:38:31,920 They didn't like that either. 836 00:38:32,220 --> 00:38:33,520 So we went with OptiGuard. 837 00:38:35,620 --> 00:38:36,500 Thank you, John Sawyer. 838 00:38:36,620 --> 00:38:39,680 Okay, if you weren't in here before, get permission. 839 00:38:42,480 --> 00:38:44,040 Okay, so the optical client. 840 00:38:44,800 --> 00:38:46,800 Basically, it's just a whole bunch of functions 841 00:38:46,800 --> 00:38:50,380 that will do what the meter manufacturer's tools do. 842 00:38:50,920 --> 00:38:51,360 But... 843 00:38:52,080 --> 00:38:54,800 Actually, this first bullet point, I need to point this out 844 00:38:54,800 --> 00:38:55,720 because I was asked to do it. 845 00:38:55,780 --> 00:38:58,060 This is the bullet point I was asked to add. 846 00:38:58,420 --> 00:38:58,820 Okay? 847 00:38:58,920 --> 00:39:02,920 In order to walk up to a meter at the side of your house 848 00:39:02,920 --> 00:39:06,060 and use our tool, you have to have the security code. 849 00:39:06,560 --> 00:39:08,800 It doesn't mean that you can't do things without it. 850 00:39:09,060 --> 00:39:12,520 And that's exactly what our tool is designed to do. 851 00:39:12,840 --> 00:39:13,240 Okay? 852 00:39:13,380 --> 00:39:15,120 We don't need a security code to run it. 853 00:39:15,160 --> 00:39:16,800 But if you want to make modifications to it, 854 00:39:16,900 --> 00:39:20,560 you have to do stuff like the research that I just talked about 855 00:39:20,560 --> 00:39:21,740 in order to get it. 856 00:39:21,800 --> 00:39:23,980 Or you need to pay somebody to give it to you. 857 00:39:24,320 --> 00:39:26,500 So if you don't have it, but you have the tool, 858 00:39:26,680 --> 00:39:30,120 you just can't run around rampantly changing and modifying things. 859 00:39:30,440 --> 00:39:33,620 But what this allows you to do is it allows you to test functionality 860 00:39:34,060 --> 00:39:36,480 that the meter manufacturer's software don't give you. 861 00:39:36,800 --> 00:39:37,200 Okay? 862 00:39:37,280 --> 00:39:39,180 So you can run stuff without a password 863 00:39:39,180 --> 00:39:41,820 to see if, are there any tables, 864 00:39:41,960 --> 00:39:44,580 which is where the stuff that contains the data, 865 00:39:44,620 --> 00:39:47,140 the configuration data, the settings and so forth, 866 00:39:47,180 --> 00:39:47,980 they call them tables. 867 00:39:48,200 --> 00:39:50,220 So you can pull that table information out. 868 00:39:50,220 --> 00:39:52,580 Now, you can attempt to pull it out without a password. 869 00:39:52,780 --> 00:39:54,780 Some manufacturers protect everything. 870 00:39:55,640 --> 00:39:58,320 Some manufacturers only can protect the ones 871 00:39:58,320 --> 00:40:00,660 that they think are important for security. 872 00:40:02,020 --> 00:40:04,740 But they've made that decision instead of the utilities. 873 00:40:05,200 --> 00:40:08,080 Now we have something that the utilities can test, 874 00:40:08,380 --> 00:40:10,600 use to test, pull that information out and say, 875 00:40:10,680 --> 00:40:14,140 you know what, we don't mind about tables 1, 2 and 3, 876 00:40:14,220 --> 00:40:17,440 but you really need to, table number 15, 877 00:40:17,720 --> 00:40:19,280 I can read that without a password 878 00:40:19,280 --> 00:40:20,400 and you need to protect that. 879 00:40:20,960 --> 00:40:21,140 Okay? 880 00:40:22,060 --> 00:40:23,120 Same with procedures. 881 00:40:23,340 --> 00:40:25,580 Did somebody mess up in development 882 00:40:25,580 --> 00:40:29,500 and leave a procedure in there that allows you to do something 883 00:40:29,500 --> 00:40:31,660 such as disconnect the meter without a password? 884 00:40:32,880 --> 00:40:35,600 Without the, with the regular manufacturer tools, 885 00:40:35,700 --> 00:40:36,640 you can't test for that. 886 00:40:36,780 --> 00:40:38,640 But now we can test for it as well. 887 00:40:39,080 --> 00:40:40,680 Actually, what we were able to do, 888 00:40:40,700 --> 00:40:42,300 once we had the security code, 889 00:40:42,480 --> 00:40:46,180 now I was able to run every procedure at the same time. 890 00:40:47,140 --> 00:40:48,440 So I ran every procedure, 891 00:40:48,440 --> 00:40:52,420 and then with, okay, first I just sent no data. 892 00:40:52,720 --> 00:40:54,600 I didn't get any, no joy. 893 00:40:55,180 --> 00:40:56,280 But then I sent a zero. 894 00:40:57,240 --> 00:40:58,440 And I'm sitting there and I'm waiting, 895 00:40:59,340 --> 00:41:01,440 and then all of a sudden, the meter goes clunk clunk. 896 00:41:03,440 --> 00:41:04,940 And that's the sound of the meter turning off. 897 00:41:05,020 --> 00:41:05,360 I'm like, oh? 898 00:41:07,700 --> 00:41:08,020 What? 899 00:41:09,400 --> 00:41:12,480 So I quickly look because I have some good logging in there. 900 00:41:12,520 --> 00:41:14,260 I'm like, okay, this number right there. 901 00:41:14,420 --> 00:41:16,860 And so then I just ran that one procedure with a zero 902 00:41:16,860 --> 00:41:17,580 and nothing happened. 903 00:41:17,580 --> 00:41:18,340 I was like, crap. 904 00:41:19,020 --> 00:41:19,580 Oh, wait. 905 00:41:19,740 --> 00:41:20,760 Now I send a one. 906 00:41:21,340 --> 00:41:21,940 Clunk clunk. 907 00:41:22,560 --> 00:41:23,660 The meter turns back on. 908 00:41:23,720 --> 00:41:24,180 I'm like, woohoo! 909 00:41:25,340 --> 00:41:27,140 Now I can turn this meter on and off. 910 00:41:27,360 --> 00:41:28,100 It's awesome. 911 00:41:28,560 --> 00:41:31,440 And then, of course, you know, I just didn't go on from there. 912 00:41:31,520 --> 00:41:35,660 I called everybody in InGuardians and made them listen to clunk clunk. 913 00:41:36,420 --> 00:41:37,720 I called my friends. 914 00:41:38,180 --> 00:41:39,140 I'm like, what is that? 915 00:41:39,280 --> 00:41:40,180 I'm like, clunk clunk. 916 00:41:42,060 --> 00:41:43,360 Some knew, some didn't. 917 00:41:43,540 --> 00:41:43,940 Okay. 918 00:41:44,020 --> 00:41:46,820 But now we're showing that we can do this. 919 00:41:46,820 --> 00:41:51,820 I don't need meaning of manufacturer software to run this. 920 00:41:51,920 --> 00:41:53,260 So I can develop it. 921 00:41:53,600 --> 00:41:55,220 Criminals can develop it as well. 922 00:41:55,660 --> 00:41:59,340 But what's great is now we have an assessment tool to generate that data, 923 00:41:59,400 --> 00:42:02,060 to do those types of things so that they can start looking for it. 924 00:42:02,840 --> 00:42:03,020 Okay. 925 00:42:03,040 --> 00:42:03,760 We're running kind of short. 926 00:42:05,040 --> 00:42:09,160 Unfortunately, one meter manufacturer found out that if I ran all the procedures 927 00:42:09,160 --> 00:42:13,000 at the same time, so I did it. 928 00:42:13,880 --> 00:42:16,800 And then it started acting a little funny, but not too funny. 929 00:42:16,800 --> 00:42:19,200 So I'm trying to figure out how to reconfigure it. 930 00:42:19,260 --> 00:42:21,660 And then I look over at the screen and it says uncalibrated on it. 931 00:42:22,900 --> 00:42:23,220 Uncalibrated. 932 00:42:24,160 --> 00:42:25,080 I don't know what that is. 933 00:42:25,140 --> 00:42:25,680 I don't see it. 934 00:42:25,800 --> 00:42:28,100 So I call my contact up and he's like, oh, yeah. 935 00:42:30,280 --> 00:42:31,820 Yeah, utilities can't fix that. 936 00:42:32,300 --> 00:42:33,780 You have to send it back to the vendor. 937 00:42:34,140 --> 00:42:38,020 I was like, oh, so if I have the security code and I can run every procedure, 938 00:42:38,600 --> 00:42:39,840 I just bricked your meter? 939 00:42:40,240 --> 00:42:41,080 He's like, yeah. 940 00:42:43,780 --> 00:42:44,620 He's like, woohoo. 941 00:42:46,200 --> 00:42:46,780 But I didn't see it. 942 00:42:46,800 --> 00:42:47,200 I didn't say that on the phone. 943 00:42:48,220 --> 00:42:53,060 But now we can tell the utilities that and we can pass this information back to the vendors 944 00:42:53,060 --> 00:42:57,460 and they can start looking into it because we're generating anomalous activity 945 00:42:58,080 --> 00:42:59,240 that they weren't expecting. 946 00:43:03,580 --> 00:43:05,500 I'm kind of moving on because we're getting short, 947 00:43:05,600 --> 00:43:07,200 so I want to make sure I get to some of the mitigations. 948 00:43:07,620 --> 00:43:09,880 I chart is basically just brute force method. 949 00:43:10,300 --> 00:43:10,700 Okay. 950 00:43:10,720 --> 00:43:13,360 I don't need the password to attempt to log in. 951 00:43:13,600 --> 00:43:15,980 I can brute force it just like any other service. 952 00:43:16,200 --> 00:43:16,560 Okay. 953 00:43:16,800 --> 00:43:18,660 But what's great is I have a tool now. 954 00:43:18,880 --> 00:43:21,020 I just go through all that memory that I dumped before 955 00:43:21,020 --> 00:43:24,420 and I generate every single password that's in there and unique it. 956 00:43:24,780 --> 00:43:28,700 The problem is that I have to do that association each time I do the log in. 957 00:43:28,920 --> 00:43:32,240 So even though I unique it and got 12,277 passwords, 958 00:43:32,520 --> 00:43:35,060 it's still going to take me seven hours to run it. 959 00:43:35,900 --> 00:43:40,200 And I've never actually gotten my tool to run for more than about 20 minutes consistently. 960 00:43:40,620 --> 00:43:44,520 I can build some smartness into it and just restart it. 961 00:43:44,720 --> 00:43:46,680 But that's kind of important for utilities. 962 00:43:46,680 --> 00:43:47,520 Okay. 963 00:43:48,100 --> 00:43:50,900 Now, can they detect those brute force log ins? 964 00:43:52,560 --> 00:43:55,380 Also, I can generate my own dictionaries. 965 00:43:55,400 --> 00:43:57,660 I don't have to get one out of memory. 966 00:43:57,940 --> 00:44:02,360 So are they using stuff like the utility name as the password, 967 00:44:02,600 --> 00:44:04,140 the vendor name as the password? 968 00:44:04,460 --> 00:44:04,800 Okay. 969 00:44:04,860 --> 00:44:09,800 So you can develop your own dictionary files and generate that kind of data. 970 00:44:11,840 --> 00:44:14,660 I was going to give a demo when we thought about it. 971 00:44:15,080 --> 00:44:16,660 But then something came up. 972 00:44:16,660 --> 00:44:20,900 Something kind of dawned on me when I was thinking about my demo for Smookon and Black Hat. 973 00:44:21,060 --> 00:44:23,300 And I realized that even if I show you the demo, 974 00:44:23,380 --> 00:44:27,180 even if I have a meter up here and I let you hear the clunk because it's cool, 975 00:44:28,840 --> 00:44:31,360 it doesn't mean that I'm really showing you anything. 976 00:44:31,980 --> 00:44:36,640 I'm showing you something that I can do with the security code on one meter. 977 00:44:37,600 --> 00:44:38,020 Okay. 978 00:44:38,240 --> 00:44:42,600 And there's at least seven different types of meter manufacturers out there. 979 00:44:42,680 --> 00:44:44,840 And they all develop multiple types of meters. 980 00:44:45,420 --> 00:44:46,880 So I'm not really showing you anything. 981 00:44:47,040 --> 00:44:50,300 What I would really like to show you is that I can make the meter to clunk 982 00:44:50,300 --> 00:44:53,100 and then I can point over to the rest of the solution and say, 983 00:44:53,160 --> 00:44:54,260 here's how we detect it. 984 00:44:55,180 --> 00:44:56,400 Because that's what I did. 985 00:44:57,000 --> 00:44:58,720 I got on the phone with one of my clients. 986 00:44:59,000 --> 00:45:00,100 I turned the meter off. 987 00:45:01,060 --> 00:45:03,320 And he's looking at his logs and goes, I can see it. 988 00:45:03,360 --> 00:45:04,280 I'm like, screenshot that. 989 00:45:05,060 --> 00:45:05,840 I'm like, woohoo. 990 00:45:06,140 --> 00:45:09,800 I mean, it was my biggest woohoo because now I've actually shown that they can make those. 991 00:45:09,920 --> 00:45:13,940 Once I make a configuration change out in the field, something that's unauthorized, 992 00:45:13,940 --> 00:45:16,860 now the operators can identify it on the back end. 993 00:45:17,080 --> 00:45:19,800 Now they can create incident response procedures. 994 00:45:20,300 --> 00:45:23,320 And that's really what I'm shooting for in my security research. 995 00:45:28,560 --> 00:45:29,020 Mitigations. 996 00:45:29,080 --> 00:45:34,520 As I mentioned, most people do a lot of mitigations that are going to be outlined right here. 997 00:45:35,100 --> 00:45:36,080 You know, residential. 998 00:45:36,340 --> 00:45:40,720 We talked about the residential meters, you know, making sure you put those in the proper area. 999 00:45:42,780 --> 00:45:43,920 Actually, deploying a meter. 1000 00:45:43,940 --> 00:45:48,400 A million meters and having a million different passwords is probably another security vulnerability. 1001 00:45:48,880 --> 00:45:51,360 So, you know, but you can still do it intelligently. 1002 00:45:51,700 --> 00:45:53,120 So we talked to them about that. 1003 00:45:54,020 --> 00:45:56,060 Obviously, we just talked about incident response plans. 1004 00:45:56,720 --> 00:45:57,440 Tamper alerts. 1005 00:45:57,620 --> 00:46:00,880 You know, on the smart meters, maybe not so much because there's so many out there. 1006 00:46:00,920 --> 00:46:05,140 But definitely on the aggregation points, you know, for the pole tops, you'll want to do that. 1007 00:46:07,320 --> 00:46:08,800 Encryption has to be done properly. 1008 00:46:08,980 --> 00:46:09,840 We all understand that. 1009 00:46:10,580 --> 00:46:11,640 Configuration integrity checks. 1010 00:46:11,740 --> 00:46:12,620 We just talked about that. 1011 00:46:14,580 --> 00:46:17,240 Some people break the standard a little bit just on their meters. 1012 00:46:17,360 --> 00:46:18,620 They send an authentication code. 1013 00:46:18,740 --> 00:46:21,220 But what's great about that is I can still assess it. 1014 00:46:21,300 --> 00:46:26,920 I can still build into my tool kit, you know, the method to pass the token. 1015 00:46:27,160 --> 00:46:33,740 But what they do is if you pass the wrong token, they immediately shut off the optical port for a period of 20 minutes. 1016 00:46:34,160 --> 00:46:37,060 So it makes it really difficult to work on those. 1017 00:46:38,960 --> 00:46:42,760 So, you know, start thinking about different things if you're going to be researching this. 1018 00:46:42,760 --> 00:46:47,420 I already thought about, you know, the wireless optical port readers. 1019 00:46:47,660 --> 00:46:49,600 You know, we talked about that with the Zigbee. 1020 00:46:49,860 --> 00:46:50,600 Optical spraying. 1021 00:46:50,840 --> 00:46:51,240 Okay. 1022 00:46:51,500 --> 00:46:57,620 If I'm standing 10 feet away from a meter and shooting IR at it because I know the timing now. 1023 00:46:58,220 --> 00:46:58,620 Okay. 1024 00:46:58,660 --> 00:47:02,260 If I do that and I never touch the meter, did I do anything to the meter? 1025 00:47:03,500 --> 00:47:04,920 So, you know, thinking about that. 1026 00:47:05,880 --> 00:47:07,260 Making people understand that. 1027 00:47:08,780 --> 00:47:11,800 The wireless sniffers that we talked about putting in the aggregation points. 1028 00:47:11,800 --> 00:47:16,520 They could probably detect the ones that are in the meters. 1029 00:47:16,620 --> 00:47:22,520 But the aggregation points are really my concern for the sniffers that you just put in and leave them in place to send data back to you. 1030 00:47:22,860 --> 00:47:24,500 And then obviously the frequency hopping. 1031 00:47:24,900 --> 00:47:26,740 You know, that's probably the next big concern. 1032 00:47:27,060 --> 00:47:35,300 Being able to do this type of stuff and get that radio information to understand so that you can do all of this stuff wirelessly via the radio. 1033 00:47:35,580 --> 00:47:38,560 That's something that I'm really interested in and we're working towards. 1034 00:47:40,140 --> 00:47:42,600 I mentioned that the vendors helped us. 1035 00:47:42,660 --> 00:47:43,840 Ed Barroset from Elster. 1036 00:47:44,760 --> 00:47:50,820 You know, he actually contributed code to make sure that, you know, I'm working with more meters than I had actually worked with. 1037 00:47:50,980 --> 00:47:55,500 Robert Forma from iTron is a constant, constantly encouraging me. 1038 00:47:55,620 --> 00:48:01,660 And he actually worked very hard to make sure that our toolkit is being used by their research team. 1039 00:48:01,760 --> 00:48:05,520 That their developers understand it and they know to talk about this stuff as well. 1040 00:48:05,700 --> 00:48:08,540 And then we're getting great positive feedback. 1041 00:48:08,560 --> 00:48:11,740 Feedback from a lot of the vendors except for one or two. 1042 00:48:14,360 --> 00:48:17,680 I couldn't have done this without support from a lot of a lot of people. 1043 00:48:17,940 --> 00:48:19,580 I listed some people on here. 1044 00:48:20,240 --> 00:48:21,580 I obviously miss people. 1045 00:48:22,240 --> 00:48:23,520 Once again, my name is Cutaway. 1046 00:48:23,920 --> 00:48:25,400 Thank you everybody for coming. 1047 00:48:25,540 --> 00:48:27,000 There is going to be a Q&A afterwards. 1048 00:48:27,280 --> 00:48:28,400 I really appreciate it. 1049 00:48:28,440 --> 00:48:29,180 Thank you very much.