1 00:00:01,640 --> 00:00:11,640 all right thank you so much thanks for coming out okay so I'm I'm worried that 2 00:00:11,640 --> 00:00:15,740 I'm really gonna have to book it through this talk because I've got a lot to go 3 00:00:15,740 --> 00:00:23,500 through so hold on tight okay so first off I'm headless eek Ricky 4 00:00:23,500 --> 00:00:30,340 Lachey if you're nasty I'm a principal security researcher at Keysight I mainly 5 00:00:30,340 --> 00:00:37,080 focus on offensive IOT research I've been doing this stuff since oh nine ish 6 00:00:37,080 --> 00:00:41,140 and this is actually my fifth time speaking at DEF CON for some reason they 7 00:00:41,140 --> 00:00:47,860 keep letting me come back we'll see about after this one okay so so first 8 00:00:47,860 --> 00:00:51,240 off a couple of ground rules about this talk 9 00:00:52,600 --> 00:00:53,400 so yeah 10 00:00:53,400 --> 00:00:58,620 we're gonna be diving into the wonderful world of layer two networking you know 11 00:00:58,620 --> 00:01:02,720 everybody always does like layer three and above but all the cool kids hang out 12 00:01:02,720 --> 00:01:10,840 on layer two so yeah this is basically just gonna be like a survey of lots of 13 00:01:10,840 --> 00:01:17,420 different really weird ether types they're not like specifically not common 14 00:01:17,420 --> 00:01:21,980 not ubiquitous and these are local network only no internet facing 15 00:01:21,980 --> 00:01:22,560 protocols 16 00:01:23,500 --> 00:01:29,820 is just layer two Ethernet protocols that may or may not be a good idea to 17 00:01:29,820 --> 00:01:37,840 have a network okay so first off what is an ether type and this is defined in 18 00:01:37,840 --> 00:01:43,420 I triple e 802 dot three basically you've got a picture of an Ethernet 19 00:01:43,420 --> 00:01:47,720 frame that I ripped straight off of Wikipedia right there so you've got your 20 00:01:47,720 --> 00:01:51,800 preamble and then you've got your destination and source MAC addresses and 21 00:01:51,800 --> 00:01:52,920 then the next two bites after. 22 00:01:53,400 --> 00:02:00,260 are going to be your ether type and this is basically a way for switches to know what kind 23 00:02:00,260 --> 00:02:12,500 of payload is coming next some common examples are like you know 0800 for ipv4 etc these these 24 00:02:12,500 --> 00:02:21,160 ones are going to not be those these are the uncommon types so a fun fact about the the 25 00:02:21,160 --> 00:02:29,000 ether type field if the value of that field is less than 15 it's a length and if it's more than 26 00:02:30,240 --> 00:02:35,720 1563 it's an ether type and between those two is undefined i can imagine that there was a very 27 00:02:35,720 --> 00:02:48,100 heated discussion at ieee about this does anyone know the the significance of that 1500 mtu mtu 28 00:02:49,620 --> 00:02:50,380 that's right 29 00:02:52,880 --> 00:03:00,660 okay so in order to get an ether type registered you have to go through ieee it basically it costs 30 00:03:00,660 --> 00:03:06,040 three thousand eight hundred and ten dollars which is not cheap so these aren't just like you know 31 00:03:06,040 --> 00:03:12,240 throw away things that you do just for fun it's a one-time fee i don't think the the registration 32 00:03:12,240 --> 00:03:18,980 ever expires although i have seen on their list of public ether types some of them are no longer 33 00:03:18,980 --> 00:03:21,140 in use so maybe they do exist 34 00:03:21,140 --> 00:03:26,780 um there are several different listings where you can find all of the publicly registered ether types 35 00:03:26,780 --> 00:03:36,140 there and there are a couple of special ether types these ones are reserved for particular uses 36 00:03:37,920 --> 00:03:44,340 that's 88 b5 and b6 are for the playpen ether types these are 37 00:03:44,340 --> 00:03:50,800 what you can use when you're like prototyping your own ethernet protocol these cannot be used 38 00:03:51,140 --> 00:03:57,860 in actual um production these are just for prototyping so that you can figure things 39 00:03:57,860 --> 00:04:05,800 out before you actually register your ether type and then 88b7 is the oui extended ether type 40 00:04:05,800 --> 00:04:12,460 this is to handle the case of um you know it's just two bytes so there are only so many 41 00:04:12,460 --> 00:04:20,520 ether types that can be registered um so this one exists to allow you to create a lot of ether types 42 00:04:21,140 --> 00:04:25,680 without having to register a specific ether type so you use this one and then you've got your 43 00:04:25,680 --> 00:04:32,140 organizationally unique identifier and then your protocol identifier so that you can subtype 44 00:04:32,560 --> 00:04:37,900 multiple protocols within one organization um so yeah that's that 45 00:04:39,800 --> 00:04:47,100 okay everybody ready okay we're gonna start off easy and kind of ease our way into it 46 00:04:47,100 --> 00:04:51,120 um i've kind of broken this talk up into into different verticals 47 00:04:51,140 --> 00:04:57,840 this one is network management so we're going to start off with everybody's old dear old friend 48 00:04:57,840 --> 00:05:04,980 snmp snmp actually exists on ethernet as well ether type 814c 49 00:05:05,890 --> 00:05:13,440 basically the way this works is they just take snmp packets burn code them burn code them and 50 00:05:13,440 --> 00:05:20,080 then wrap them in an ethernet frame it supports all versions of snmp mostly 51 00:05:21,320 --> 00:05:24,480 the uses and abuses i do this on every one of the protocols 52 00:05:26,020 --> 00:05:32,460 so this one is mainly used in these two port mac relay bridges they're kind of like ethernet 53 00:05:32,460 --> 00:05:38,540 extender kind of things but in the spec for this protocol it actually talks about using them 54 00:05:38,540 --> 00:05:49,180 anywhere where you need to manage a device but you don't have ip access um but yeah so abuses um 55 00:05:49,180 --> 00:05:56,220 basically everything that you can abuse snmp for before you can do that over ethernet and you 56 00:05:56,220 --> 00:06:01,000 might actually get the added benefit of bypassing some firewall restrictions 57 00:06:03,420 --> 00:06:08,280 okay this one is really cool this is this is one of my favorites 58 00:06:10,080 --> 00:06:18,700 all right so 8899 is the real tech remote control protocol this one is basically with certain realtec 59 00:06:19,180 --> 00:06:25,680 switches, Realtek chipsets, it allows you to take an unmanaged switch and turn it into 60 00:06:25,680 --> 00:06:26,520 a managed switch. 61 00:06:26,900 --> 00:06:36,920 And the way this works is basically you give it an address, like I2C style, like an EPROM 62 00:06:36,920 --> 00:06:45,800 address, and then what you want to read or write data to that, and you can actually modify 63 00:06:46,500 --> 00:06:50,180 physical memory over the network, which is kind of cool. 64 00:06:51,100 --> 00:06:56,660 There's actually an OpenRCP project that has tons of information on the protocol, and 65 00:06:56,660 --> 00:06:59,260 they've got a list of all the supported hardware. 66 00:07:00,200 --> 00:07:02,120 Harder to find than you would think. 67 00:07:02,960 --> 00:07:09,700 I actually coincidentally ran across this protocol on a device that I'm not allowed 68 00:07:09,700 --> 00:07:12,580 to talk about because it was pre-released at the time. 69 00:07:13,140 --> 00:07:13,740 Thank you. 70 00:07:14,920 --> 00:07:15,780 It was pre-released. 71 00:07:15,800 --> 00:07:20,520 It was pre-released at the time, and I'm not sure if it's, you know, public knowledge 72 00:07:20,520 --> 00:07:21,560 yet, but anyways. 73 00:07:22,900 --> 00:07:25,140 So this is kind of what the protocol looks like. 74 00:07:26,360 --> 00:07:37,780 You've got, so speaking of subtyping, this actually works for RCP and Realtek Echo protocol. 75 00:07:37,920 --> 00:07:43,820 You might actually see that particular packet on your network. 76 00:07:44,580 --> 00:07:45,660 Or actually, sorry. 77 00:07:45,800 --> 00:07:50,540 No, the network loop detection is the one that you might actually see on your network. 78 00:07:52,540 --> 00:07:56,980 But that is not actually remote control, the Realtek remote control protocol. 79 00:07:57,120 --> 00:07:59,000 That's a different subtype. 80 00:08:00,320 --> 00:08:07,320 Anyways, they have an authentication key, but it's two bytes long, so you could easily 81 00:08:07,320 --> 00:08:08,100 brute force that. 82 00:08:08,640 --> 00:08:14,340 And also, it defaults as 2379, and nobody even knows that this protocol exists. 83 00:08:14,680 --> 00:08:15,680 So nobody knows. 84 00:08:15,800 --> 00:08:18,060 They're supposed to change the authentication key. 85 00:08:18,860 --> 00:08:20,780 So yeah, it's just that. 86 00:08:21,020 --> 00:08:25,640 So yeah, basically, at the end of the packet, you've got your register address and your 87 00:08:25,640 --> 00:08:29,920 data, so you just have straight-up access to registers. 88 00:08:32,020 --> 00:08:33,740 Uses, I kind of already talked about that. 89 00:08:33,820 --> 00:08:36,220 There's a limited amount of chipsets. 90 00:08:38,300 --> 00:08:42,100 Realtek's data sheets on this protocol are really, really awesome, like some of the best 91 00:08:42,100 --> 00:08:43,480 data sheets I've ever seen. 92 00:08:43,560 --> 00:08:45,600 They give you, like, full register maps. 93 00:08:45,800 --> 00:08:46,100 And everything. 94 00:08:47,400 --> 00:08:50,880 But it's only certain chipsets that do this. 95 00:08:51,680 --> 00:08:56,800 Some cool abuses that you can do with this, you can actually change your own VLAN tags. 96 00:08:57,920 --> 00:09:02,600 So if you don't like the VLAN you're on, you feel lonely, you can change your VLAN 97 00:09:02,600 --> 00:09:04,580 tag and be on somebody else's VLAN. 98 00:09:05,440 --> 00:09:10,160 Or you can actually set yourself up as a trunk for it and just get all of the traffic going 99 00:09:10,160 --> 00:09:10,660 through you. 100 00:09:12,600 --> 00:09:13,080 Okay. 101 00:09:13,960 --> 00:09:15,100 This one is funny. 102 00:09:15,800 --> 00:09:21,660 So 6,001 and 6,002, does anybody in the room remember DECnet? 103 00:09:23,580 --> 00:09:26,620 You should probably schedule a colonoscopy. 104 00:09:30,700 --> 00:09:37,020 So yeah, DECnet, they had a whole protocol stack in, like, the 1970s, 80s. 105 00:09:38,540 --> 00:09:39,920 You know, long dead. 106 00:09:41,220 --> 00:09:44,460 This DECnet Maintenance Operation Protocol, or MOP. 107 00:09:45,060 --> 00:09:45,780 Basically, it's a protocol that's been around for a long time. 108 00:09:45,780 --> 00:09:46,540 It basically had two functions. 109 00:09:47,040 --> 00:09:53,940 One was to dump and load system memory, and the other was to have a remote control console 110 00:09:53,940 --> 00:09:57,100 on, like, VAX systems and stuff like that. 111 00:09:57,540 --> 00:10:02,760 So basically, whenever a system was malfunctioning to the point where you couldn't actually, 112 00:10:02,820 --> 00:10:07,740 like, create a session on it, you could use this protocol to still, like, remotely recover 113 00:10:07,740 --> 00:10:08,220 from it. 114 00:10:08,760 --> 00:10:15,700 So yeah, DECnet is gone, except that it's not, because Cisco still includes the MOP, 115 00:10:15,780 --> 00:10:21,060 MOP protocol on all of its routers, enabled by default to this very day. 116 00:10:23,440 --> 00:10:31,840 So yeah, they actually still, like, this was from the hardened Cisco iOS devices PDF from 117 00:10:31,840 --> 00:10:37,520 September of 2020, where they actually talk about how you're supposed to go into the interface 118 00:10:37,520 --> 00:10:41,720 configuration mode and disable the maintenance operation service. 119 00:10:44,260 --> 00:10:45,080 But yeah. 120 00:10:45,780 --> 00:10:55,120 The dumping memory side, you basically, you give it an address, an account of bytes, and 121 00:10:55,120 --> 00:10:59,360 it will read that, you know, that many bytes from that address. 122 00:11:00,140 --> 00:11:04,420 I haven't actually gotten that side working yet, but, you know, in theory, that's how 123 00:11:04,420 --> 00:11:04,800 it works. 124 00:11:05,340 --> 00:11:12,220 And then the remote console side, the data field is, it depends on what command you're 125 00:11:12,220 --> 00:11:13,240 doing. 126 00:11:13,760 --> 00:11:15,720 But there is a full protocol. 127 00:11:15,780 --> 00:11:19,380 There's a full protocol spec out there, and I've included a link to that in the slides. 128 00:11:20,260 --> 00:11:25,980 Oh, and there's also already a Linux tool called MOPRC that you can just use. 129 00:11:29,040 --> 00:11:29,560 Okay. 130 00:11:29,640 --> 00:11:30,060 So yeah. 131 00:11:30,420 --> 00:11:31,280 Uses and abuses. 132 00:11:32,100 --> 00:11:34,780 You can maintain old DEC systems, hooray. 133 00:11:35,540 --> 00:11:39,100 Or you can maintain every Cisco router, apparently. 134 00:11:40,340 --> 00:11:41,040 But yeah. 135 00:11:41,140 --> 00:11:45,760 So, like, the dumping memory combined with the remote. 136 00:11:45,780 --> 00:11:51,120 The remote console could be pretty killer, especially when you consider that Cisco devices 137 00:11:51,960 --> 00:11:55,620 store their hashes in config files and in VRAM. 138 00:11:56,080 --> 00:12:02,660 So if I could actually get that memory dumping side of things working, then I could dump 139 00:12:02,660 --> 00:12:05,420 the hashes and use those to log into the console. 140 00:12:07,100 --> 00:12:07,620 Okay. 141 00:12:07,660 --> 00:12:08,540 So that was network management. 142 00:12:08,840 --> 00:12:11,760 I'm really going to have to pick up the pace here. 143 00:12:12,800 --> 00:12:14,760 So let's talk industrial electrical. 144 00:12:14,760 --> 00:12:18,980 So ADAB8 is the GOOSE protocol. 145 00:12:19,580 --> 00:12:22,600 Some of you will probably be familiar with GOOSE. 146 00:12:22,680 --> 00:12:23,700 It's pretty popular. 147 00:12:25,160 --> 00:12:31,700 GOOSE stands for Generic Object Oriented Substation Events, and it is described in 148 00:12:31,700 --> 00:12:35,780 the IEC 61850 standard. 149 00:12:36,960 --> 00:12:42,420 Basically this is a protocol that's used in substations. 150 00:12:42,600 --> 00:12:44,540 So that smart devices within. 151 00:12:44,540 --> 00:12:50,440 Then a power station can communicate with each other, and they can also send out events 152 00:12:51,360 --> 00:12:55,420 for like, you know, voltage measurement, fault detection, et cetera. 153 00:12:56,780 --> 00:13:03,720 It's a PubSub model, and you can actually, they apparently do like IO through this protocol 154 00:13:03,720 --> 00:13:04,180 also. 155 00:13:06,100 --> 00:13:06,820 But yeah. 156 00:13:06,880 --> 00:13:14,520 So they actually tried to add some security to this protocol with the IEC 62351 standard. 157 00:13:14,540 --> 00:13:23,440 But the problem was that the latency requirements in these environments were so low that nobody 158 00:13:24,420 --> 00:13:26,940 uses the security because they can't. 159 00:13:28,200 --> 00:13:29,080 So yeah. 160 00:13:29,120 --> 00:13:31,360 Still pretty widely unsecured. 161 00:13:32,540 --> 00:13:36,140 This is kind of what that protocol looks like on the wire. 162 00:13:37,360 --> 00:13:43,340 App ID, byte length, or two byte length, a couple of reserved fields. 163 00:13:43,340 --> 00:13:45,760 And then ASM1 encoded payload. 164 00:13:46,520 --> 00:13:47,540 Easy peasy. 165 00:13:49,880 --> 00:13:58,660 Used in smart grid and intelligent electronic devices and general IO devices within a power 166 00:13:58,660 --> 00:13:59,280 substation. 167 00:14:00,900 --> 00:14:08,160 Yeah, basically I could see you being able to abuse this by like, you know, those events 168 00:14:08,160 --> 00:14:11,320 are sent to multicast or broadcast on the ethernet. 169 00:14:11,620 --> 00:14:13,320 So you can just push out. 170 00:14:13,340 --> 00:14:18,240 Your own events and cause, you know, all kinds of havoc in a power substation. 171 00:14:18,840 --> 00:14:26,300 Also theoretically possible to control those IO devices to, you know, do whatever you want 172 00:14:26,300 --> 00:14:26,560 to do. 173 00:14:29,120 --> 00:14:29,880 KEPCO. 174 00:14:33,740 --> 00:14:40,000 So 89 3D is the KEPCO PLC interoperability protocol. 175 00:14:40,460 --> 00:14:41,220 KEPCO. 176 00:14:41,320 --> 00:14:41,580 Is. 177 00:14:41,580 --> 00:14:48,960 Is a Korea electric power corporation and this protocol is basically so Korea started 178 00:14:49,740 --> 00:14:56,120 installing a bunch of smart meters on everybody's houses but didn't have a way to talk to all 179 00:14:56,120 --> 00:15:01,700 of those smart meters in like, you know, specifically like rural areas and stuff like 180 00:15:01,700 --> 00:15:01,920 that. 181 00:15:02,420 --> 00:15:08,720 So they came up with this protocol in order to be able to communicate with the smart meters 182 00:15:08,720 --> 00:15:10,080 over the power lines. 183 00:15:10,120 --> 00:15:11,560 Like the electrical power lines. 184 00:15:12,960 --> 00:15:19,440 So I couldn't find any protocol specifics on this one, but I found a few papers that 185 00:15:19,440 --> 00:15:23,580 kind of, you know, danced around the topic a little bit. 186 00:15:24,020 --> 00:15:29,320 So like this one was about AMI protocols for two way communication and KAMI. 187 00:15:29,920 --> 00:15:35,780 I don't think this is actually the protocol because like that end of field stuff makes 188 00:15:35,780 --> 00:15:38,140 me think it's actually a serial protocol. 189 00:15:38,420 --> 00:15:38,940 Okay. 190 00:15:41,000 --> 00:15:41,560 Okay. 191 00:15:41,580 --> 00:15:52,860 And then a couple other papers, again, like none of these, like they all gave little clues 192 00:15:52,860 --> 00:16:02,920 about what AMI and PLC interoperability would look like, but none of them actually talked 193 00:16:02,920 --> 00:16:04,780 about the specific protocol itself. 194 00:16:05,260 --> 00:16:07,880 So I'm kind of still in the dark a little bit on that one. 195 00:16:09,540 --> 00:16:10,100 But yeah. 196 00:16:10,180 --> 00:16:10,400 So. 197 00:16:10,400 --> 00:16:20,060 So like I said, it's used for allowing AMI smart meters to talk back home over PLC infrastructure. 198 00:16:21,200 --> 00:16:27,900 But you could theoretically use this to cut off somebody's power or possibly use it to 199 00:16:27,900 --> 00:16:32,600 get free electricity, depending on, you know, what kind of things they're monitoring across 200 00:16:32,600 --> 00:16:34,000 the across the wire. 201 00:16:36,920 --> 00:16:38,620 And speaking of PLC. 202 00:16:40,120 --> 00:16:42,840 88E1 is the HomePlug AV protocol. 203 00:16:44,240 --> 00:16:53,760 So HomePlug is kind of a catch-all protocol spec for power line communications. 204 00:16:54,700 --> 00:16:58,700 It's actually, there are three different interoperable standards. 205 00:16:58,940 --> 00:17:06,540 There's HomePlug AV, which is mainly used for in-home power line communications, speeds 206 00:17:06,540 --> 00:17:08,140 up to 500 megabits. 207 00:17:08,620 --> 00:17:12,840 HomePlug AV2 is the same, but just with higher bandwidth. 208 00:17:13,220 --> 00:17:16,360 And then HomePlug GreenFi is actually kind of cool. 209 00:17:17,740 --> 00:17:23,000 That's used mainly at like electric vehicle charging stations. 210 00:17:23,520 --> 00:17:30,080 So you plug it in and it does like a little like authentication handshake thing over this 211 00:17:30,080 --> 00:17:31,080 HomePlug GreenFi. 212 00:17:31,260 --> 00:17:35,320 And then it unlocks it and allows you to charge your vehicle. 213 00:17:40,160 --> 00:17:45,580 Okay, so this is actually one of the best secured protocols that I'm going to be talking 214 00:17:45,580 --> 00:17:45,920 about. 215 00:17:46,400 --> 00:17:52,360 They do 128-bit AES encryption on the wire between devices. 216 00:17:53,880 --> 00:17:59,700 They have a rotating network encryption key that rotates every hour or so. 217 00:18:01,280 --> 00:18:06,380 And then new stations can join a network as long as they have a network membership key. 218 00:18:06,880 --> 00:18:08,300 And then you can also... 219 00:18:08,800 --> 00:18:13,960 Pull in new devices into your network as long as you have that devices. 220 00:18:15,240 --> 00:18:19,160 It's called either a device access key or a device encryption key. 221 00:18:20,720 --> 00:18:25,400 So all of this is done so that, you know, some random person can't just plug one of 222 00:18:25,400 --> 00:18:28,900 these adapters into an outlet on the outside of your house and get onto your network. 223 00:18:31,980 --> 00:18:34,600 And that's what the protocol looks like. 224 00:18:34,660 --> 00:18:35,820 This protocol is super annoying. 225 00:18:36,860 --> 00:18:38,600 But I put a bunch of specs in there. 226 00:18:38,620 --> 00:18:47,940 So, again, so basically, yeah, you just, you read them, I don't want them. 227 00:18:49,960 --> 00:18:58,180 Okay, so, yeah, this is basically like with HomePlug AV, you've got these two devices 228 00:18:58,180 --> 00:18:59,480 that plug into wall outlets. 229 00:19:00,460 --> 00:19:05,240 And then you can connect them to your network on either end, and it'll send the network 230 00:19:05,240 --> 00:19:07,560 traffic over the power lines in your house. 231 00:19:08,260 --> 00:19:11,440 So it's basically used for whole home Ethernet. 232 00:19:12,120 --> 00:19:18,860 I actually, back in the day, used one of these as a Wi-Fi extender in my house, because my 233 00:19:18,860 --> 00:19:23,960 house is basically a Faraday cage, and I could not get Wi-Fi upstairs, no matter what 234 00:19:23,960 --> 00:19:24,280 I tried. 235 00:19:24,360 --> 00:19:25,220 So I used one of these. 236 00:19:27,400 --> 00:19:33,420 But, yeah, if you can figure out those network management keys or the device encryption keys, 237 00:19:34,060 --> 00:19:36,680 you can build your own. 238 00:19:36,880 --> 00:19:37,340 Okay. 239 00:19:37,560 --> 00:19:46,260 It's a kind of malicious network, but, you know, getting the keys is the hard part, because 240 00:19:46,260 --> 00:19:50,120 you have to already be on the network in order to get the keys. 241 00:19:51,620 --> 00:19:56,720 But, yeah, there's also cases where these things are used in, like, apartment complexes 242 00:19:56,720 --> 00:19:57,940 and stuff like that. 243 00:19:58,500 --> 00:20:05,440 So you could actually be on a power line network with your neighbors and not even realize that 244 00:20:05,440 --> 00:20:06,980 you're on the same network as your neighbors. 245 00:20:09,020 --> 00:20:09,740 Okay. 246 00:20:09,820 --> 00:20:13,100 So transportation, this is where stuff starts getting really interesting. 247 00:20:17,760 --> 00:20:18,480 Okay. 248 00:20:18,540 --> 00:20:27,800 So 99FE is TechCMP, or TechMP, the Technically Enhanced Capture Module Protocol. 249 00:20:28,780 --> 00:20:35,420 So this Ether type was registered by ASAM, but the actual protocol itself was developed 250 00:20:35,420 --> 00:20:36,760 by Technica Engineering. 251 00:20:36,820 --> 00:20:37,540 Okay. 252 00:20:38,300 --> 00:20:46,900 So this is designed to work with a capture module inside of a vehicle in order to pull 253 00:20:46,900 --> 00:20:50,300 out all of the CAN and FlexRay data. 254 00:20:50,440 --> 00:20:55,680 And you can actually, like, replay that back onto the bus, which is kind of cool. 255 00:20:56,340 --> 00:21:03,740 The protocol itself is, like, a lot of overhead for what the protocol is doing. 256 00:21:03,940 --> 00:21:06,780 So basically, like, the really light blue. 257 00:21:07,480 --> 00:21:10,600 It's all just, like, regular Ethernet standard stuff. 258 00:21:11,120 --> 00:21:16,840 The medium blue is all of the overhead on this protocol. 259 00:21:17,180 --> 00:21:22,200 It's basically just, like, a bunch of, like, identification things and, like, timestamps 260 00:21:22,200 --> 00:21:22,600 and stuff. 261 00:21:22,820 --> 00:21:28,920 And then the dark blue is the actual, like, CAN or FlexRay payload. 262 00:21:30,800 --> 00:21:35,040 So as far as the TechMP protocol itself. 263 00:21:35,040 --> 00:21:38,100 It doesn't really do much. 264 00:21:39,080 --> 00:21:41,700 But still, you know, the replay stuff is cool. 265 00:21:43,460 --> 00:21:47,780 So yeah, you know, allow remote diagnostics of in-vehicle networks. 266 00:21:49,240 --> 00:21:54,520 You need to have a capture module inside the vehicle in order to access it. 267 00:21:56,180 --> 00:21:58,180 Possibly useful in replay attacks. 268 00:21:59,220 --> 00:21:59,780 Okay. 269 00:21:59,820 --> 00:22:00,440 So WAVE. 270 00:22:00,740 --> 00:22:01,580 This one. 271 00:22:01,680 --> 00:22:05,020 If you're, you know, following along with current events. 272 00:22:05,040 --> 00:22:06,200 You've probably heard of WAVE. 273 00:22:07,480 --> 00:22:10,360 88DC is the WAVE short message protocol. 274 00:22:11,760 --> 00:22:15,100 WAVE is wireless access in vehicular environments. 275 00:22:16,400 --> 00:22:20,440 Basically so, like, imagine autonomous vehicles. 276 00:22:20,740 --> 00:22:22,720 They can communicate with each other. 277 00:22:23,080 --> 00:22:28,780 They can communicate with, like, stoplights and stuff. 278 00:22:28,880 --> 00:22:33,080 Like emergency vehicles can switch stoplights using this kind of protocol. 279 00:22:33,080 --> 00:22:40,820 And they can also communicate with, like, infrastructure, like, signs and stuff for doing location-based 280 00:22:40,820 --> 00:22:44,320 advertisements because, of course, that's what they want to do. 281 00:22:47,200 --> 00:22:50,480 So the short message protocol. 282 00:22:51,200 --> 00:22:53,060 Again, ASM1 encoded. 283 00:22:53,660 --> 00:22:56,860 You've got a version PSID. 284 00:22:58,280 --> 00:23:00,780 Then you've got several possible. 285 00:23:01,460 --> 00:23:02,500 I don't know. 286 00:23:02,500 --> 00:23:03,060 I don't know. 287 00:23:05,960 --> 00:23:07,000 I don't know. 288 00:23:07,000 --> 00:23:07,080 You're going to see it. 289 00:23:07,260 --> 00:23:07,780 So, yeah. 290 00:23:11,320 --> 00:23:12,120 I don't know. 291 00:23:12,240 --> 00:23:12,600 It's cool. 292 00:23:15,020 --> 00:23:18,260 So as far as uses go, I already talked about that again. 293 00:23:19,240 --> 00:23:22,120 Autonomous vehicles talking to each other, talking to the environment. 294 00:23:24,440 --> 00:23:32,200 So it's designed to keep riders and pedestrians and emergency vehicles safe because they can 295 00:23:32,200 --> 00:23:33,040 all talk to each other. 296 00:23:33,040 --> 00:23:42,280 other and you know work things out without having to rely on human intervention but it also allows 297 00:23:42,280 --> 00:23:48,700 for remote control of cars you can modify traffic lights i don't know if you guys remember the old 298 00:23:48,700 --> 00:23:55,280 days of like having a strobe light on the dash of your car because that's the way emergency vehicles 299 00:23:55,280 --> 00:23:59,180 used to switch the lights to green as they were driving up it would be like a strobe light thing 300 00:23:59,180 --> 00:24:04,180 so you don't have to do that anymore you can use the this ethernet protocol 301 00:24:06,000 --> 00:24:12,380 but yeah i could also envision some abuses on the location-based 302 00:24:12,940 --> 00:24:21,220 ads like seeing where somebody you're stalking is driving is kind of bad okay so if cars 303 00:24:21,700 --> 00:24:24,420 aren't doing it for you how about trains 304 00:24:26,760 --> 00:24:29,020 so that either type 89 305 00:24:29,180 --> 00:24:35,560 is for the train communication network protocol this is basically two separate protocols 306 00:24:36,660 --> 00:24:47,900 ethernet train backbone etb is a replacement for the older wire train bus standard and then ether 307 00:24:47,900 --> 00:24:52,760 ethernet consist network consist is like another name for like a train car 308 00:24:53,820 --> 00:24:58,700 ethernet consist network replaces the multi-function vehicle bus 309 00:24:59,180 --> 00:25:08,280 standard basically so the ethernet train backbone is basically the entire train 310 00:25:08,280 --> 00:25:15,540 communicating it'll tell tell you how the cars are oriented how long the train is and all that 311 00:25:15,540 --> 00:25:22,900 and then the ethernet consist network is within one train car all of the systems there 312 00:25:24,680 --> 00:25:29,160 working together the these standards the 313 00:25:29,180 --> 00:25:37,220 so the the iec standards there um they're available but they they cost like 400 bucks 314 00:25:37,220 --> 00:25:44,020 each to get access to them and i mean i like you guys but i i'm not spending like a grand on a 315 00:25:44,020 --> 00:25:51,720 single defcon slide so if you if you want if you want access to those standards they're out there 316 00:25:52,380 --> 00:25:58,860 um but yeah so so um if you've ridden on the monorail out there um you know like whenever it 317 00:25:59,180 --> 00:26:03,540 comes up to a stop and the you know it lines up with the doors and then the doors automatically 318 00:26:03,540 --> 00:26:12,520 open that's all handled by this this kind of ethernet protocol um but because of that you 319 00:26:12,520 --> 00:26:18,120 know if you get access to that protocol maybe you could open the doors while the train is in 320 00:26:18,120 --> 00:26:25,300 motion or maybe you could tell the train that it's shorter or longer than it actually is kind of things 321 00:26:29,180 --> 00:26:39,300 medical this um was a failure on my part um this was the only only section where i i came up pretty 322 00:26:39,300 --> 00:26:44,260 dry for the entire thing um but i'm still going to talk about the ethernet protocols because 323 00:26:44,260 --> 00:26:49,580 you know they exist i just couldn't find any specifics on like any of them i'm not 324 00:26:49,580 --> 00:26:57,860 going to be writing any kind of like hospital ransomware anytime soon um okay so so 885b and 325 00:26:59,180 --> 00:27:05,700 for the phillips clinical network um i i am pretty sure this is related to intelliview 326 00:27:06,520 --> 00:27:11,740 everything that i've i've read indicates that this is related to intelliview so i went out and 327 00:27:11,740 --> 00:27:19,380 bought an mp50 heart monitor like one of those big like by your hospital bed heart monitor things 328 00:27:19,980 --> 00:27:26,740 but i could only ever get it talking udp i can't get it to talk ethernet no matter what i do 329 00:27:27,440 --> 00:27:29,080 so i'm thinking now that maybe 330 00:27:29,180 --> 00:27:35,660 there's some other piece to this puzzle like um phil this phillips agilent carenet network switch 331 00:27:35,660 --> 00:27:42,540 is like a specifically designed network switch for these clinical network environments um so 332 00:27:42,540 --> 00:27:48,660 maybe i need to pick up one of those there's also this phillips information center or pick 333 00:27:48,660 --> 00:27:56,520 pick ix which is kind of like a database um like a server side of things 334 00:27:57,480 --> 00:27:59,160 so maybe i need to 335 00:27:59,180 --> 00:28:03,720 get access to that but i couldn't find it available anywhere without talking to a sales guy 336 00:28:05,140 --> 00:28:10,260 it could be that i'm just wrong about all of this that's entirely possible 337 00:28:11,120 --> 00:28:15,300 but you know hopefully someday i'll find out more about the phillips clinical network protocol 338 00:28:18,420 --> 00:28:22,980 so these uses and abuses i'm just making guesses based on the udp 339 00:28:23,530 --> 00:28:29,080 traffic that i was able to get out of that heart monitor so you can admit and discharge patients 340 00:28:29,580 --> 00:28:36,000 um it's constantly sending out vitals and and patient condition type things 341 00:28:36,000 --> 00:28:43,500 and of course alarms and and exporting data um so you know the abuses are pretty obvious 342 00:28:43,500 --> 00:28:51,000 like you can um you know spoof uh um cardiac arrest or something like that and cause cause 343 00:28:51,000 --> 00:28:58,700 interventions to happen or you know you could spoof normal activity when bad things are happening 344 00:28:59,180 --> 00:29:04,800 um and then you know personal identifying information disclosure of course 345 00:29:06,520 --> 00:29:14,900 and then ether types 815f through 8163 are all registered to the massachusetts general hospital 346 00:29:16,280 --> 00:29:20,100 they've got they've got five ether types and i can't find anything 347 00:29:20,600 --> 00:29:28,060 on any of them it's so frustrating um so so massachusetts general hospital is actually fed in 348 00:29:29,180 --> 00:29:32,560 harvard medical and they've got their own computer science department 349 00:29:34,340 --> 00:29:41,280 they've got lots of patents around transferring patient scans and imaging 350 00:29:41,280 --> 00:29:48,220 and stuff over a network so maybe these protocols have to do with that um oh yeah it's such a nice 351 00:29:48,220 --> 00:29:56,740 guy um so i don't know if any of you have heard of impact cyber trust um but it's like a website 352 00:29:56,740 --> 00:29:59,160 where uh researchers and professionals from the university of california or other universities of 353 00:29:59,160 --> 00:30:04,740 can come together and share like pcaps and protocol data specs and stuff like that really 354 00:30:04,740 --> 00:30:10,600 great site so i came across them when i was looking into massachusetts general hospital 355 00:30:11,280 --> 00:30:17,100 because they had uploaded a bunch of pcaps to this site and i was like oh my god that's amazing 356 00:30:17,780 --> 00:30:23,720 and then i i looked at the descriptions of the pcaps and they were all taken from within phillips 357 00:30:23,720 --> 00:30:32,240 clinical network environments and i was like that still works i still need that um but unfortunately 358 00:30:32,840 --> 00:30:38,520 um they've got like restrictions on sharing the information on on some of these they've got like 359 00:30:38,520 --> 00:30:42,920 different levels of sharing like some some of them are restricted some are quasi restricted 360 00:30:42,920 --> 00:30:47,920 some are unrestricted and the restriction placed on this would mean that i couldn't 361 00:30:48,300 --> 00:30:53,520 talk about it at defcon at all so i didn't end up looking at those pcaps 362 00:30:53,720 --> 00:30:57,120 anyways because you know i wouldn't have been able to use the information 363 00:30:58,020 --> 00:31:01,040 uh but you know if you're if you're curious 364 00:31:01,840 --> 00:31:05,760 go look at impact cyber trust create an account and get access to those things 365 00:31:08,160 --> 00:31:12,000 um so yeah i don't know they do things 366 00:31:15,100 --> 00:31:23,600 okay and now uh this is um one that didn't fit anywhere else 367 00:31:23,720 --> 00:31:31,720 but it was pretty cool so i wanted to i wanted to include it um so ethertype 88.9e 368 00:31:32,540 --> 00:31:39,420 is a remote tech hazardous duty robot protocol these are basically northrop grumman 369 00:31:40,360 --> 00:31:49,100 unmanned ground vehicles so these are basically like the bomb defusal robot type things 370 00:31:49,100 --> 00:31:53,700 and so i think you know obviously i couldn't 371 00:31:53,720 --> 00:31:59,660 I couldn't find details on the protocol itself but I think this one is related 372 00:31:59,660 --> 00:32:05,440 to their Andros Titus line specifically because they've got a 373 00:32:05,440 --> 00:32:11,480 press release where they're touting all of the the new Ethernet features of 374 00:32:11,480 --> 00:32:20,800 their Titus robots so just because I couldn't get access to the 375 00:32:20,800 --> 00:32:26,500 network protocol doesn't mean we can't like make some guesses about how it 376 00:32:26,500 --> 00:32:35,160 would work because back in 2002 there was this guy that his master thesis at 377 00:32:35,160 --> 00:32:40,480 the University of Tennessee was actually all about the serial control protocol 378 00:32:40,480 --> 00:32:46,880 for the Andros Mark IV hazardous duty robot it was basically like he 379 00:32:46,880 --> 00:32:50,420 wanted to be able to control this robot from his computer 380 00:32:50,420 --> 00:32:50,780 and 381 00:32:50,800 --> 00:32:56,420 so he pulled apart the serial protocol and the way that works is basically it's 382 00:32:56,420 --> 00:33:04,520 a 22 byte packet of commands data and then one byte checksum and basically 383 00:33:04,520 --> 00:33:11,200 each one of those bytes is dedicated to a particular part of the robot so so like 384 00:33:11,200 --> 00:33:15,400 you know one byte will be like moving the treads and one one byte will be like 385 00:33:15,400 --> 00:33:18,380 raising the arm kind of thing you know 386 00:33:18,380 --> 00:33:20,520 and then 387 00:33:20,800 --> 00:33:28,260 there was this byte 8 that was the weapons byte basically you know you got 388 00:33:28,260 --> 00:33:38,040 weapon one weapon two weapon vehicle and weapon shotgun okay so so yeah 389 00:33:38,860 --> 00:33:42,700 obviously that was the serial protocol the Ethernet protocol is probably 390 00:33:42,700 --> 00:33:47,280 different they're gonna have you know function functionality for like 391 00:33:47,280 --> 00:33:49,660 upgrading firmware and and stuff like that 392 00:33:49,660 --> 00:33:55,360 but it does kind of give you an idea of what what like kind of things that you 393 00:33:55,360 --> 00:34:02,760 could do with this kind of protocol yeah and also I don't I 394 00:34:02,760 --> 00:34:09,400 don't know how much they would change the the protocol from version to version 395 00:34:09,400 --> 00:34:12,120 you know because you have to like retrain on these things and they're 396 00:34:12,120 --> 00:34:16,600 really like you know their delicate machinery doing 397 00:34:16,600 --> 00:34:19,440 delicate operations and stuff you don't want to have to train somebody from 398 00:34:19,440 --> 00:34:26,200 scratch every single time but anyways yeah they're used for bomb disposal and to handle 399 00:34:26,200 --> 00:34:35,400 dangerous situations without putting actual people in danger but of course you know if you get access 400 00:34:35,400 --> 00:34:40,240 to this protocol you can do things like you know wait until they're about to do something 401 00:34:40,840 --> 00:34:48,940 and then just like change the position of the arm on them or you know actually like legit 402 00:34:48,940 --> 00:34:55,420 it controlled the weapons on the on the robot okay all right so that's all the protocols that 403 00:34:55,420 --> 00:35:00,220 i was going to talk about today so we i've got a couple of demos that i've got worked out 404 00:35:00,780 --> 00:35:10,400 the first one is using the mop protocol to get a to get access to the management console on a 405 00:35:10,400 --> 00:35:18,140 cisco 1800 series router basically i you know i wish i had gotten the mop dump 406 00:35:21,280 --> 00:35:32,920 into my shell not my cisco 1800 series router to be able to get a map of the room into my cisco 1800 407 00:35:32,920 --> 00:35:41,800 and you know you have to get a map of the room into your cisco 1800 on your cisco 1800 408 00:35:41,800 --> 00:35:42,780 and then you also have to get a map of your cisco 1800 on your cisco 1800 in your monitor 409 00:35:42,780 --> 00:35:43,580 and i've got some vedere for both of those so i'm going to go ahead and give you a little bit 410 00:35:43,580 --> 00:35:44,000 okay so there you go 411 00:35:44,000 --> 00:35:46,400 okay so that's 412 00:35:48,940 --> 00:36:12,980 what did I do okay okay so yeah basically like this couldn't be simpler 413 00:36:12,980 --> 00:36:18,840 I'm just using the mop RC Linux utility I give it the MAC address of the the 414 00:36:18,840 --> 00:36:25,880 router I want to connect to and it basically like drops me straight into a 415 00:36:25,880 --> 00:36:31,700 Cisco iOS shell it's like a fully interactive shell too it's got like tab 416 00:36:31,700 --> 00:36:38,660 completion and everything so yeah basically you don't have to be on the 417 00:36:38,660 --> 00:36:42,500 management interface in order to access the management console you can just be 418 00:36:42,500 --> 00:36:47,200 on any interface and as long as it as long as they haven't disabled mop 419 00:36:48,840 --> 00:36:54,160 then you can get access to the management console and that's that one 420 00:37:07,580 --> 00:37:15,860 okay so that was that demo second demo is using the home plug AV protocol to 421 00:37:15,860 --> 00:37:18,780 actually pull device encryption key and 422 00:37:18,840 --> 00:37:25,940 a network management key from an adapter this script uses some Qualcomm 423 00:37:25,940 --> 00:37:31,300 atheros specific functionality but it should work on all Qualcomm atheros 424 00:37:31,300 --> 00:37:41,100 based home plug adapters it uses it sends the get software request and that 425 00:37:41,100 --> 00:37:48,740 basically it I send that to broadcast and all of the responses I get back I make a 426 00:37:48,740 --> 00:37:53,060 note of their firmware version and then I make a note of their MAC address to use 427 00:37:53,060 --> 00:37:59,820 for the next command I send which is vs module operation which gives me a lot of 428 00:37:59,820 --> 00:38:08,200 detail back from that MAC address including those keys so I ran this 429 00:38:08,200 --> 00:38:15,680 against the TP link TL WPA 8 6 3 0 which is actually the device that I used 430 00:38:15,680 --> 00:38:18,320 to use in my house I do not use it anymore 431 00:38:18,320 --> 00:38:25,800 more so but yeah so so the the thing about this is you have to actually be on 432 00:38:25,800 --> 00:38:36,720 the network in order to get access to these these keys you know but you know 433 00:38:36,720 --> 00:38:41,420 you could use this to like dump those keys so that you could bring back an 434 00:38:41,420 --> 00:38:46,840 adapter later on some some time or whatever this this is my really ugly 435 00:38:46,840 --> 00:38:52,760 scapey scripts that I wrote again I included this in the media server stuff 436 00:38:52,760 --> 00:38:55,800 so you don't have to worry about the fact that you can't read anything that's 437 00:38:55,800 --> 00:39:02,120 up on the screen right now but yeah so so basically it just loops since since 438 00:39:02,120 --> 00:39:09,120 the first packet to broadcast listens for any responses and then since the 439 00:39:09,120 --> 00:39:15,980 second one to that specific MAC address and parses out the key information all 440 00:39:15,980 --> 00:39:16,740 right so now 441 00:39:16,840 --> 00:39:17,480 we'll look at that 442 00:39:44,460 --> 00:39:46,820 so yeah you just run the script and 443 00:39:46,840 --> 00:39:54,100 then you'll see it comes back with a version that's the version of the home 444 00:39:54,100 --> 00:39:59,960 plug adapter that it found oh man and then it spits out the network keys the 445 00:39:59,960 --> 00:40:04,620 network management key and the device encryption key so then from there you 446 00:40:04,620 --> 00:40:09,100 could either use that to join your own adapter to the network using the network 447 00:40:09,100 --> 00:40:16,360 management key or you could force adapters on their network to join your own network using the device encryption key 448 00:40:17,740 --> 00:40:19,480 So, that is that. 449 00:40:30,140 --> 00:40:34,560 Okay. So, hopefully at the end of this talk, 450 00:40:34,680 --> 00:40:38,160 you've seen how many crazy things there 451 00:40:38,160 --> 00:40:40,980 are out there on Layer 2 of the network. 452 00:40:43,040 --> 00:40:46,400 They're local only, but it's still so much fun to be had, 453 00:40:46,400 --> 00:40:48,320 especially when you're in weird environments. 454 00:40:50,140 --> 00:40:53,900 This isn't even close to what all is out there. 455 00:40:54,020 --> 00:40:59,360 There are well over 3,500 registered Ether types 456 00:40:59,360 --> 00:41:01,680 on IEEE's public listings, 457 00:41:01,860 --> 00:41:03,060 and I talked about 12. 458 00:41:04,760 --> 00:41:07,500 So, there's still lots of stuff out there. 459 00:41:08,680 --> 00:41:11,760 So, these are some of the places I found the most 460 00:41:11,760 --> 00:41:13,880 helpful in my research efforts. 461 00:41:14,060 --> 00:41:15,480 RFCs, of course, are the best. 462 00:41:15,780 --> 00:41:16,380 IEEE, 463 00:41:16,380 --> 00:41:18,540 police standards are also good. 464 00:41:18,700 --> 00:41:20,180 And if there's a Wireshark detector, 465 00:41:22,300 --> 00:41:24,900 then you're absolutely golden because 466 00:41:24,900 --> 00:41:26,640 somebody else already did the work for you. 467 00:41:28,440 --> 00:41:35,340 IEC standards are a little less reliable and often cost a lot of money. 468 00:41:35,880 --> 00:41:39,200 But if you can get access to them, then that's great. 469 00:41:39,680 --> 00:41:41,620 Research papers and patents, again, 470 00:41:42,300 --> 00:41:45,880 not as good, but sometimes contain, 471 00:41:45,880 --> 00:41:47,240 contain useful information. 472 00:41:48,180 --> 00:41:50,420 And then, of course, lots of Googling and patience. 473 00:41:53,140 --> 00:41:57,540 And that was just kind of a fun thing that I found while I was doing all of this work, 474 00:41:57,660 --> 00:42:01,560 excuse me, is this guy who makes the ultimate PCAP, 475 00:42:02,320 --> 00:42:08,700 which is basically a single PCAP with every single protocol he could possibly cram into it, 476 00:42:08,720 --> 00:42:10,380 all in one PCAP. 477 00:42:10,460 --> 00:42:11,200 It's really awesome. 478 00:42:12,420 --> 00:42:15,860 But yeah, and then eBay is awesome for grabbing, you know, 479 00:42:15,860 --> 00:42:18,400 getting random devices that you can't find anywhere else. 480 00:42:18,940 --> 00:42:21,160 And, you know, sometimes you can find them for pretty cheap. 481 00:42:23,260 --> 00:42:25,480 But yeah, so that's, that's my talk. 482 00:42:26,100 --> 00:42:28,660 These are ways that you can reach out to me. 483 00:42:29,600 --> 00:42:32,860 I'm on Infosec Exchange and DEF CON Social. 484 00:42:33,600 --> 00:42:35,860 I'm also on Twitter, but not really anymore. 485 00:42:37,120 --> 00:42:39,940 There's my GitHub where I'll put some of this code that I wrote. 486 00:42:40,680 --> 00:42:45,460 I'll probably also throw an RRCP script up on my GitHub. 487 00:42:45,460 --> 00:42:52,420 You should all come to the IoT Village because Keysight has a booth over there 488 00:42:52,420 --> 00:42:54,320 where we're doing some Bluetooth fuzzing and it's awesome. 489 00:42:54,620 --> 00:42:58,480 So come and see me over there and you can ask me questions or whatever. 490 00:42:59,120 --> 00:43:00,920 So yeah, that's it. 491 00:43:01,960 --> 00:43:02,940 Any questions?