1 00:00:04,880 --> 00:00:14,680 First, we're going to talk about SMP Protocol Breakdown. I had some protocol dumps I wanted to show you guys, but oh well. We'll learn a little bit. 2 00:00:17,880 --> 00:00:27,040 SMP has been around since the 80s. There was a talk earlier today on replacing SMP version 3 with Tripwire, which is pretty cool. 3 00:00:28,300 --> 00:00:34,640 The guy talked a lot about the same stuff I'm going to talk about, so I apologize for the overlap, but what can you do? 4 00:00:37,280 --> 00:00:41,200 Proceeded SGMP, the Simple Gateway Management Protocol, was a lot of bullshit. 5 00:00:42,620 --> 00:00:53,340 It was defining RFCs, and they said, hey, we need a way to manage agents. We need a way to manage network electronics in our infrastructure. 6 00:00:54,020 --> 00:00:57,020 What they did was they implemented simple protocols. 7 00:00:57,040 --> 00:01:08,420 Simple protocol, which defined basically four different types of operations, consisting of get, set, walk, blah, blah, blah. 8 00:01:09,080 --> 00:01:24,240 What we have now is a sort of management glue that kind of bonds every enterprise infrastructure out there. 9 00:01:24,400 --> 00:01:27,000 The only viable solution... 10 00:01:27,040 --> 00:01:32,260 The only solution to talking to any network electronics in bulk is SMP. 11 00:01:33,280 --> 00:01:36,540 This is what Cisco pushes, this is what IBM pushes. 12 00:01:36,680 --> 00:01:42,160 Everyone pushes this protocol as the way to manage your infrastructure. 13 00:01:42,580 --> 00:01:47,500 It's kind of a shitty thing because SMP sucks from a security perspective. 14 00:01:48,260 --> 00:01:48,800 We... 15 00:01:50,720 --> 00:01:53,920 SMP version 1 had... 16 00:01:53,920 --> 00:01:54,760 Oh. 17 00:01:55,840 --> 00:01:56,820 Hell yeah. 18 00:01:57,040 --> 00:01:58,240 Just open that shit up. 19 00:01:59,780 --> 00:02:00,620 All right. 20 00:02:01,400 --> 00:02:02,580 Yeah, let's talk. 21 00:02:02,720 --> 00:02:03,260 Okay, good. 22 00:02:03,800 --> 00:02:07,280 Now we can be on the same wavelength, some visualness. 23 00:02:07,520 --> 00:02:09,980 I hope everyone here has been drinking, because I have. 24 00:02:10,360 --> 00:02:10,820 Woo! 25 00:02:12,540 --> 00:02:14,280 Let's get drunk afterwards, too. 26 00:02:14,880 --> 00:02:19,240 I fell off a fence last night, and I chipped my tooth and busted my nose. 27 00:02:19,540 --> 00:02:21,560 It's been a bad weekend, man. 28 00:02:21,620 --> 00:02:24,060 First night we were out here, we got arrested. 29 00:02:24,800 --> 00:02:32,820 If anyone here is a lawyer, dude, I seriously need some advice, because I have to be back in Nevada on September 4th to serve a court date for littering. 30 00:02:32,880 --> 00:02:35,720 What the fuck are the police thinking out here? Seriously. 31 00:02:36,040 --> 00:02:39,420 There's mobsters, there's prostitutes, but fuck, I was littering. 32 00:02:39,420 --> 00:02:40,440 Hey, who cares, right? 33 00:02:41,320 --> 00:02:42,780 So, anyway, I need advice. 34 00:02:45,260 --> 00:02:47,420 Anyway, let's talk about SMP some more. 35 00:02:47,480 --> 00:02:49,140 Is this going all right? 36 00:02:50,000 --> 00:02:50,800 Holy shit. 37 00:02:50,800 --> 00:02:50,940 Shit. 38 00:02:52,180 --> 00:02:58,360 So, I mean, how many people here come from an enterprise perspective? 39 00:02:58,860 --> 00:02:58,980 Woo! 40 00:02:59,440 --> 00:03:00,640 That's what I'm talking about. 41 00:03:03,400 --> 00:03:04,200 What is that? 42 00:03:05,560 --> 00:03:06,600 What does that say? 43 00:03:09,580 --> 00:03:10,460 Oh, shit. 44 00:03:12,260 --> 00:03:13,440 Hey, no, no, no, no. 45 00:03:13,520 --> 00:03:15,780 All we got to do is hit Alt D. 46 00:03:17,280 --> 00:03:18,260 Just cancel that shit. 47 00:03:19,380 --> 00:03:19,900 Yeah, yeah. 48 00:03:21,340 --> 00:03:22,180 Or not. 49 00:03:23,980 --> 00:03:26,060 All right, yeah, yeah, just view, view. 50 00:03:26,340 --> 00:03:27,220 Let me see. 51 00:03:33,020 --> 00:03:34,460 That says view slides, right? 52 00:03:38,380 --> 00:03:39,260 Fuck, man. 53 00:03:39,420 --> 00:03:40,400 What is going on? 54 00:03:41,220 --> 00:03:41,740 Woo! 55 00:03:42,360 --> 00:03:43,220 All right. 56 00:03:43,700 --> 00:03:45,340 So, SMP protocol breakdown. 57 00:03:45,480 --> 00:03:46,420 Let's talk about SMP. 58 00:03:46,620 --> 00:03:48,100 Hell yeah. 59 00:03:49,620 --> 00:03:50,640 I'll drink to that. 60 00:03:53,080 --> 00:03:55,120 Anyway, we're going to talk some about SMP. 61 00:03:55,560 --> 00:03:57,440 I'm sure everyone's heard a little bit about it. 62 00:03:57,500 --> 00:03:58,780 A lot of hype in the past year. 63 00:03:59,740 --> 00:04:01,380 We're going to talk about enterprise infrastructure. 64 00:04:03,420 --> 00:04:09,480 So, okay, like I said, procedure to SGMP, you know, was designed in order to manage 65 00:04:09,480 --> 00:04:17,080 network electronics, routers, printers, even UNIX servers, a la, if any of you guys are 66 00:04:17,080 --> 00:04:17,100 here. 67 00:04:17,100 --> 00:04:25,500 So, SMP and other EHAP guys, www.toplesslowliters.com is a nice free BSD box with fucking SMP agents 68 00:04:25,500 --> 00:04:26,160 running on it. 69 00:04:26,220 --> 00:04:28,280 I don't understand these system admins' mentality. 70 00:04:28,700 --> 00:04:33,880 They pull the devices using SMP and server farms and big, big managed infrastructures. 71 00:04:34,140 --> 00:04:39,080 And so, anyway, every SMP conversation requires a communication team. 72 00:04:39,240 --> 00:04:45,520 What we have through SMP is something called a manager and an agent. 73 00:04:45,900 --> 00:04:47,060 Our SMP is a new communication team. 74 00:04:47,060 --> 00:04:52,400 Our agent exists on the device we're attempting to manage, be it a printer, router, anything. 75 00:04:53,340 --> 00:05:00,820 Our agents, which communicates to the network electronics, it's kind of our middle man. 76 00:05:01,240 --> 00:05:08,140 We talk to the agent in order to find out status of the device, temperature, processor 77 00:05:08,140 --> 00:05:10,580 utilization, blah, blah, blah. 78 00:05:11,120 --> 00:05:15,900 But we kind of get a little more involved when we start considering. 79 00:05:15,900 --> 00:05:25,540 Our agent also has the capability of modifying configuration and adding on to the network 80 00:05:25,540 --> 00:05:33,160 electronics via, you could change IP addresses, possibly you could change passwords, security 81 00:05:34,040 --> 00:05:34,600 stuff. 82 00:05:36,340 --> 00:05:45,600 But what we can really do some damage with is when we know exactly 83 00:05:45,600 --> 00:05:45,880 what we're doing. 84 00:05:45,880 --> 00:05:52,020 What we're looking at, we have to know the hardware and we have to know what the hardware 85 00:05:52,020 --> 00:05:53,880 supports a la SNMP. 86 00:05:54,380 --> 00:06:02,080 So SNMP transfer mechanism is default over UDP. 87 00:06:02,380 --> 00:06:03,620 How many people here like UDP? 88 00:06:04,140 --> 00:06:05,500 UDP sucks, right? 89 00:06:05,660 --> 00:06:06,240 Come on. 90 00:06:06,540 --> 00:06:12,440 UDP is connectionless oriented transfer protocol that does not require authentication, does 91 00:06:12,440 --> 00:06:14,440 not require handshake, does not require shit. 92 00:06:14,440 --> 00:06:16,340 It's a blind protocol. 93 00:06:16,560 --> 00:06:18,720 We send it, fuck, who cares if it gets there or not. 94 00:06:21,540 --> 00:06:23,120 So here's some more boring stuff. 95 00:06:23,860 --> 00:06:29,040 SMI is the RC that define the structure of management information. 96 00:06:29,780 --> 00:06:33,780 And really what it did was said, hey, this is how this sets the precedent. 97 00:06:33,880 --> 00:06:39,940 This is how we're going to talk about the language that manages network electronics. 98 00:06:41,740 --> 00:06:43,060 It's boring stuff. 99 00:06:43,200 --> 00:06:44,420 And it's called abstraction. 100 00:06:44,420 --> 00:06:48,920 It's called abstract syntactical notation, version one. 101 00:06:49,260 --> 00:06:55,640 You guys may have encountered this in your directory structure such as LDAP or I heard 102 00:06:57,640 --> 00:07:00,760 some mail transfer protocol was using the same thing. 103 00:07:02,920 --> 00:07:09,500 MIBs are the definition of, they're what SMI defines basically. 104 00:07:09,880 --> 00:07:13,060 When you look at a MIB, you're not looking at anything fancy, you're looking at a text 105 00:07:13,060 --> 00:07:13,360 file. 106 00:07:13,360 --> 00:07:17,620 That says, hey, this is what our agent does for us. 107 00:07:17,780 --> 00:07:21,420 And so, so our MIBs are life. 108 00:07:21,640 --> 00:07:26,000 When we're talking about network electronics, we want to attack or we want to do something 109 00:07:26,000 --> 00:07:32,280 with, the MIBs are the first thing we go to and we say, hey, this, whatever the support 110 00:07:32,280 --> 00:07:37,520 by, we download the MIBs and we say, we have to look through all of them and figure out 111 00:07:37,520 --> 00:07:39,960 what exactly these MIBs can do for us. 112 00:07:40,020 --> 00:07:42,420 Because the MIBs are, are, are basically. 113 00:07:42,860 --> 00:07:43,340 Okay. 114 00:07:43,360 --> 00:07:47,520 They define what we can do with SNMP and what we can't do. 115 00:07:48,820 --> 00:07:55,480 You know, and, and the protocol itself was defined in RFC 1157, blah, blah, blah. 116 00:07:56,100 --> 00:08:01,160 What we have to understand is when we're talking, when we're talking in the context 117 00:08:01,160 --> 00:08:08,660 of SNMP, we, we're talking about some dumb ass definitions that get really, I mean IETF 118 00:08:08,660 --> 00:08:13,020 and all that stuff, you know, they, they, they're very formal and, and, and, you know, 119 00:08:13,020 --> 00:08:16,680 you have to respect them for that because they're the, they're the, they are what gives 120 00:08:16,680 --> 00:08:20,560 us the capability to have the internet and stuff like that. 121 00:08:20,820 --> 00:08:25,440 So but their, their process is formalize this protocol that's really simple and giving 122 00:08:25,440 --> 00:08:29,120 it a lot addendums and stuff like that and it's, it's, it kind of gets complex. 123 00:08:29,380 --> 00:08:32,400 Even when we're talking about four operations in version one. 124 00:08:32,600 --> 00:08:40,300 So, so we have to get our terminology down and the thing is the terminology changes a 125 00:08:40,300 --> 00:08:42,120 little from vendor to vendor. 126 00:08:42,200 --> 00:08:42,440 But. 127 00:08:43,020 --> 00:08:43,880 We're all used to that, right? 128 00:08:44,240 --> 00:08:46,300 So in, in SNMP. 129 00:08:46,640 --> 00:08:47,340 Because you need one. 130 00:08:47,480 --> 00:08:47,960 Yeah, please. 131 00:08:51,640 --> 00:08:52,420 How'd you get into that? 132 00:08:54,480 --> 00:09:02,200 In SNMP, the way we have structured our information is, is through the, the object identifiers 133 00:09:02,200 --> 00:09:05,460 using abstract, abstract syntactical notation. 134 00:09:06,060 --> 00:09:08,520 And it's a tree like structure just like anything else. 135 00:09:08,580 --> 00:09:11,160 You guys want to know value, you guys want active directory, same thing, tree. 136 00:09:11,420 --> 00:09:11,960 You know? 137 00:09:11,960 --> 00:09:13,840 We start at our root, we go down. 138 00:09:14,080 --> 00:09:17,660 All these organizations have registered, you know, and, and blah, blah, blah, and goes, 139 00:09:17,720 --> 00:09:18,200 gets down. 140 00:09:18,420 --> 00:09:21,140 The most important thing we have to deal with is MIB2. 141 00:09:22,760 --> 00:09:27,580 Every single SNMP enabled device in the world supports MIB2 as of now. 142 00:09:27,740 --> 00:09:30,900 I mean, it's a pretty bold claim, but I swear to God it's true. 143 00:09:31,080 --> 00:09:37,460 You know, MIB2 is, is, is what we use to talk to interfaces on, we can talk to interfaces 144 00:09:37,460 --> 00:09:38,420 on a server. 145 00:09:39,000 --> 00:09:41,360 MIB2 is supported by Windows boxes. 146 00:09:41,360 --> 00:09:41,940 It's supported by Linux. 147 00:09:41,940 --> 00:09:42,840 It's supported by Unix boxes, whatever. 148 00:09:43,660 --> 00:09:46,140 We, we love MIB2. 149 00:09:46,240 --> 00:09:48,220 MIB2 is how we get the most information. 150 00:09:48,640 --> 00:09:52,240 Especially from a management perspective when we're doing protocol baselines and stuff 151 00:09:52,240 --> 00:09:52,800 like that. 152 00:09:53,600 --> 00:10:00,540 MIB2 is how we get our, our, our, the utilization of our interface and stuff like that. 153 00:10:00,660 --> 00:10:02,020 But it also defines interfaces. 154 00:10:02,280 --> 00:10:04,640 Interfaces come, become really important later. 155 00:10:05,000 --> 00:10:09,780 So whenever you want to talk to an SNP enabled device, you just work your way down the tree. 156 00:10:10,320 --> 00:10:11,360 Most of it's. 157 00:10:11,940 --> 00:10:16,460 You know, independent of the, of the vendor that the, the device is made by. 158 00:10:16,600 --> 00:10:21,040 But you get into what's called the private, the, the, the private leaf. 159 00:10:21,340 --> 00:10:27,180 And the private's where your, your 3Com, your, your proprietary Cisco 3Com, Linksys, all that 160 00:10:27,180 --> 00:10:27,940 stuff is. 161 00:10:28,480 --> 00:10:31,080 And, and they let you do some pretty funky stuff. 162 00:10:31,420 --> 00:10:33,300 So just research that. 163 00:10:33,660 --> 00:10:35,420 Um, our security fund. 164 00:10:35,980 --> 00:10:38,620 Security issues are not discussed in this memo. 165 00:10:38,820 --> 00:10:40,300 RFC 1157. 166 00:10:40,680 --> 00:10:41,700 That sets the precedent. 167 00:10:41,740 --> 00:10:41,920 That sets the precedent. 168 00:10:41,940 --> 00:10:43,220 For, for SNP security, basically. 169 00:10:43,520 --> 00:10:49,620 Our passwords are, we don't even have a user password based mechanism for authenticating 170 00:10:49,620 --> 00:10:49,860 devices. 171 00:10:50,400 --> 00:10:53,920 What we have is community strings. 172 00:10:54,740 --> 00:11:03,100 That until SNP version three, all we had was a single word that let us, gave us any 173 00:11:03,100 --> 00:11:05,160 kind of access we want to on a network electronic. 174 00:11:05,500 --> 00:11:11,920 So, so basically all we have to do is, is, is, is, is, is, is, is, is, is, is, is, is, 175 00:11:11,920 --> 00:11:15,220 is are, is, is, get access to VLAN o. 176 00:11:16,000 --> 00:11:21,380 On an enterprise and, and, look at one single packet that, that, that, that, that, that their 177 00:11:21,380 --> 00:11:24,080 management station is, is purging devices with. 178 00:11:24,260 --> 00:11:26,180 And we have access to their infrastructure. 179 00:11:27,000 --> 00:11:28,940 It's, it's really easy. 180 00:11:29,140 --> 00:11:34,600 I mean, like, there's a lot of, there's a lot of, you know., documentation out there 181 00:11:34,600 --> 00:11:36,300 on securing the wandermen at our infrastructure. 182 00:11:36,720 --> 00:11:38,140 But in reality. 183 00:11:38,360 --> 00:11:40,000 This isn't a viable solution. 184 00:11:40,420 --> 00:11:41,900 For a, from a strate-.... 185 00:11:41,900 --> 00:11:47,520 like a beer crack perspective because our managers have more pull more pull than our security 186 00:11:47,520 --> 00:11:54,800 personnel everyone knows that right our the people who give us money for you know supporting our our 187 00:11:54,800 --> 00:12:01,640 our network say hey we like pretty graphs we like things we can see if a security guy does his job 188 00:12:01,640 --> 00:12:07,420 right you don't see shit you just see your network working if a management guy does his job right he 189 00:12:07,420 --> 00:12:13,220 says here you go man here's here's all these green graphs and you know this is what our network this 190 00:12:13,220 --> 00:12:19,060 is where a network looks like at this time of day this is you know they define how our quality 191 00:12:19,060 --> 00:12:23,960 service agreements are working with our ISPs and shit like that so managers have a lot more pull 192 00:12:23,960 --> 00:12:30,040 and security people especially in like a segregated environment was our bureaucracy going on so our 193 00:12:30,040 --> 00:12:37,360 managed policies take precedence over our security policies and this this gets really crazy this this 194 00:12:37,360 --> 00:12:40,200 This lets us attack networks that are huge. 195 00:12:40,720 --> 00:12:43,540 So, four simple operations. 196 00:12:43,820 --> 00:12:44,920 This is the S&P version 1. 197 00:12:45,000 --> 00:12:50,580 This is the first protocol, you know, transfer mechanism that we're going to talk about. 198 00:12:50,880 --> 00:12:53,880 And basically what we have is a get. 199 00:12:54,220 --> 00:13:00,080 We ask our agent for a specific, you know, thing about the device. 200 00:13:00,220 --> 00:13:02,320 We say, hey, how are you doing today? 201 00:13:02,600 --> 00:13:04,560 Are you sad? Are you happy? 202 00:13:04,720 --> 00:13:05,440 How's your temperature? 203 00:13:05,440 --> 00:13:07,320 We say, how's your process of utilization? 204 00:13:07,940 --> 00:13:09,440 We just send a get packet. 205 00:13:09,620 --> 00:13:10,780 We don't care if it gets there or not. 206 00:13:10,880 --> 00:13:11,500 We'll send it again. 207 00:13:11,600 --> 00:13:11,980 It's UDP. 208 00:13:13,000 --> 00:13:14,600 Then we have our set. 209 00:13:15,240 --> 00:13:17,380 Sets, what we use to attack. 210 00:13:17,620 --> 00:13:22,040 Our sets are the mechanism in which we compromise networks with. 211 00:13:23,320 --> 00:13:25,080 And we're going to talk a little bit more about that. 212 00:13:25,220 --> 00:13:25,680 And traps. 213 00:13:26,060 --> 00:13:27,900 Traps are what our agents do for us. 214 00:13:27,980 --> 00:13:32,500 This is how management infrastructure lives, is through traps and something else called inform, 215 00:13:32,800 --> 00:13:34,200 which is a more formal trap. 216 00:13:35,440 --> 00:13:47,900 Our traps will tell us our network is behaving a certain way based on thresholds and stuff we've defined on the agent. 217 00:13:48,780 --> 00:13:54,020 And our get next just says, hey, get this value after this specific OID, 218 00:13:54,660 --> 00:13:59,120 which is the OID is the part in the tree, is the numbers in the tree. 219 00:13:59,240 --> 00:14:00,160 Here's our protocol dump. 220 00:14:01,160 --> 00:14:05,000 As you can see, what I did here, I plugged into. 221 00:14:05,440 --> 00:14:11,160 A campus network, sat down with my fun little Toshiba laptop that doesn't work for shit and said, hey, 222 00:14:12,600 --> 00:14:13,900 I'm just going to watch. 223 00:14:14,020 --> 00:14:18,540 I was on a student VLAN and they were passing SMP traffic back and forth. 224 00:14:19,260 --> 00:14:21,440 You know, hey, this is what community stream we're using. 225 00:14:21,660 --> 00:14:22,700 And it was a set request. 226 00:14:22,960 --> 00:14:23,700 It was so cool. 227 00:14:23,820 --> 00:14:24,840 I was just like, thank you. 228 00:14:24,980 --> 00:14:30,620 You know, we can, we can, we have, this is probably one of the biggest universities in Southern California. 229 00:14:30,920 --> 00:14:34,960 And we have access to anything we want to on their network. 230 00:14:35,440 --> 00:14:40,300 And basically this is our, you know, kind of a formalized packet. 231 00:14:40,600 --> 00:14:43,580 We have two parts, the message header and the protocol diagram here. 232 00:14:43,740 --> 00:14:49,800 Or, you know, and we just, in our packet, we have our version numbers, our community string as a header. 233 00:14:49,980 --> 00:14:51,980 And our PDU is really the meat. 234 00:14:52,960 --> 00:14:59,920 We're going to talk a little bit about PDUs more because when we're, when we're attacking in the blind, 235 00:15:00,120 --> 00:15:05,300 which is basically every time you're going to attack using SMP, you're going, you're not going to, 236 00:15:05,440 --> 00:15:10,180 you're not going to know how the agent responds from, from a managed perspective. 237 00:15:10,520 --> 00:15:15,940 So we're talking about man-in-the-middle attacks, sending SMP packets, and, and seeing what happens. 238 00:15:16,220 --> 00:15:17,880 Our error codes are very important. 239 00:15:18,420 --> 00:15:22,220 So, so our error status is, is where we learn to attack. 240 00:15:22,460 --> 00:15:30,040 Where we learn how our attack has, has, has, has, you know, been, been implemented in the agent. 241 00:15:30,300 --> 00:15:33,220 And there's other stuff, request ID, PDU type. 242 00:15:33,380 --> 00:15:34,980 But just, you know, package structure. 243 00:15:35,440 --> 00:15:38,160 So, and then we move on to SMP version two. 244 00:15:38,700 --> 00:15:45,260 And really the only, the only, there's three versions of SMP version two, defined in RFCs. 245 00:15:45,900 --> 00:15:49,640 And, and the thing was, nobody liked the way it was performing. 246 00:15:49,820 --> 00:15:51,140 They, they defined management. 247 00:15:51,380 --> 00:15:53,320 They, they defined, like, security. 248 00:15:54,540 --> 00:16:00,320 But it didn't work out, you know, just because there's proprietary, a lot of proprietary stuff was, 249 00:16:00,380 --> 00:16:02,600 was sort of pushing over all these other people. 250 00:16:02,820 --> 00:16:05,420 And, and we have... 251 00:16:05,440 --> 00:16:10,460 We have what's called SMP version two C, which is the same exact thing as SMP version one. 252 00:16:11,900 --> 00:16:14,860 Same security mechanisms, community strengths. 253 00:16:15,180 --> 00:16:15,600 That's it. 254 00:16:15,760 --> 00:16:21,360 The only thing that's different is, is our, our error codes and sort of the protocol operation. 255 00:16:22,340 --> 00:16:30,660 It's, but, you know, we, when we attack an SMP version one enabled agent or an SMP version two enabled agent, 256 00:16:31,420 --> 00:16:33,180 same thing, you know, no difference. 257 00:16:33,580 --> 00:16:35,220 SMP version three is what we have to, 258 00:16:35,220 --> 00:16:36,600 to worry about. 259 00:16:38,240 --> 00:16:41,340 Our error codes are here, you know. 260 00:16:41,740 --> 00:16:49,280 Probably the most important error for you guys is, to look for is called bad value. 261 00:16:49,740 --> 00:16:58,500 When you get a bad value back from an agent, he's going to tell you, he's telling you that, 262 00:16:59,060 --> 00:17:05,140 that that specific operation you, you, you, you tried to tell him to do, 263 00:17:05,220 --> 00:17:08,920 is not working, and this applies totally in the context of sets. 264 00:17:09,220 --> 00:17:16,340 When you try and set something, and, and, and that type of set, set, set value doesn't, 265 00:17:16,340 --> 00:17:20,420 is not, he's not capable of doing, he's going to tell you bad value, man. 266 00:17:20,500 --> 00:17:21,780 Sorry I'm not accepting this. 267 00:17:22,040 --> 00:17:28,280 And, and see sets are a shitty thing because a lot of times, like in our MIBs, we have to, 268 00:17:28,300 --> 00:17:34,440 we have to set other things, we have to send sets to other parts of the MIB before we can set certain, 269 00:17:35,220 --> 00:17:41,500 certain other things. For instance, our favorite MIB from a management perspective is called 270 00:17:41,500 --> 00:17:47,560 Armon, or Remote Monitoring MIB. That lets us do alarms and stuff like that. We aren't 271 00:17:47,560 --> 00:17:54,660 allowed to modify our Armon table until we've set the operational status of the Armon MIB, 272 00:17:54,660 --> 00:18:06,400 such as Trap. It's, by default, on most devices, user defined. But, in order to edit it, we 273 00:18:06,400 --> 00:18:19,660 have to set that to Code 3, which is Mib in progress. It's a lot of BS. But, SNMP version 274 00:18:19,660 --> 00:18:24,580 2, more error codes. And this gives us, error codes that would give us a fingerprinting 275 00:18:24,580 --> 00:18:24,640 test. 276 00:18:24,660 --> 00:18:30,280 We have to listen to error codes when we're attacking a managed network. Because they 277 00:18:30,280 --> 00:18:37,480 tell us, especially when we don't have the ability to know what we're, we don't have 278 00:18:37,480 --> 00:18:42,260 the ability to know how our stuff's performing ahead of time. Shit. 279 00:18:44,980 --> 00:18:45,720 How's true? 280 00:18:46,760 --> 00:18:47,300 Exactly. 281 00:18:48,940 --> 00:18:49,840 Take a drink. 282 00:18:51,240 --> 00:18:52,260 I'll drink to that. 283 00:18:55,780 --> 00:19:08,400 Neither, huh? I didn't pray to Allah today. He's upset. Seriously. But, okay. So, let's 284 00:19:08,400 --> 00:19:17,840 move on without the fancy pictures. So, what were we talking about? Error codes? Drinking. 285 00:19:18,180 --> 00:19:19,740 Drinking. Oh, yeah. 286 00:19:23,540 --> 00:19:29,040 Okay. Let's get to something interesting. Because this is killing me. And I'm talking. 287 00:19:32,480 --> 00:19:39,060 Okay. SNP version 3. It's all the talk these days, right? You know, oh shit, an authenticated 288 00:19:39,060 --> 00:19:47,280 management protocol. Ooh. You know, by default, 56-bit DS keyspace. Wow. No. You know, SNP 289 00:19:47,280 --> 00:19:52,240 version 3, the way it's implemented in enterprise, you know, you have to know what you're doing. 290 00:19:52,240 --> 00:19:56,000 Like, very well. You have to come from a security background. Or else, it's just not 291 00:19:56,000 --> 00:20:03,540 viable. It's a lot of work. And managers don't do this. Seriously. I swear. I come from a 292 00:20:04,080 --> 00:20:09,500 managed consulting background. I do, you know, big stuff for big companies and see how their 293 00:20:09,500 --> 00:20:15,760 infrastructure is working. And they just don't like to. It's so much work. And the reason 294 00:20:15,760 --> 00:20:21,240 why is, SNP version 3 took a whole new thing. They said, hey, we need security. We need 295 00:20:22,240 --> 00:20:27,960 a way to authenticate messages and conversations. We also need to encrypt our data. So what they 296 00:20:27,960 --> 00:20:34,080 did was they defined something called the user management model, which is an RFC 2574. 297 00:20:36,500 --> 00:20:41,820 And all SNP diagrams consist of two parts. It's called message global data, which is 298 00:20:41,820 --> 00:20:47,380 our header. Our message security parameters, which is our life. And message data, which 299 00:20:47,380 --> 00:20:51,200 is our, the part of, like, our variable bindings and stuff like that. 300 00:20:52,240 --> 00:20:58,540 Our message security parameters are how we define how we're gonna authenticate. By default, 301 00:20:59,460 --> 00:21:06,200 SNP version 3, still, even if we, even if we enable it on our device, we still have 302 00:21:06,200 --> 00:21:12,740 to define a way we can talk using it. And we have to define users. We have to define 303 00:21:12,740 --> 00:21:17,760 the context that users are allowed to talk to our devices. And we have to bind it to 304 00:21:17,760 --> 00:21:19,140 a specific SNP engine. 305 00:21:19,480 --> 00:21:21,720 That, the engine is what, what, what 306 00:21:22,240 --> 00:21:24,480 when computed with the hash 307 00:21:24,480 --> 00:21:26,920 and our passphrase 308 00:21:26,920 --> 00:21:28,720 gives us our encrypted key. 309 00:21:29,080 --> 00:21:32,760 So we need to do a lot of stuff 310 00:21:32,760 --> 00:21:34,700 in order to get this infrastructure 311 00:21:34,700 --> 00:21:36,020 up and running. 312 00:21:36,920 --> 00:21:40,500 And so let's say 313 00:21:40,500 --> 00:21:42,200 we're looking at a network 314 00:21:42,200 --> 00:21:46,360 with tight security. 315 00:21:47,940 --> 00:21:49,780 We got managed devices 316 00:21:49,780 --> 00:21:52,020 talking only SMP version 3 317 00:21:52,020 --> 00:21:53,780 with encrypted authentication 318 00:21:54,880 --> 00:21:56,600 and encrypted data. 319 00:21:57,520 --> 00:21:57,920 You know, 320 00:21:58,620 --> 00:21:59,340 the handshake, 321 00:21:59,400 --> 00:22:00,140 everything's going on 322 00:22:00,140 --> 00:22:00,600 and we're like, 323 00:22:00,800 --> 00:22:02,520 we can't sniff it. 324 00:22:02,560 --> 00:22:03,140 We can't do anything. 325 00:22:03,480 --> 00:22:05,220 How are we going to compromise this network? 326 00:22:07,460 --> 00:22:09,860 The main point of our attack 327 00:22:09,860 --> 00:22:12,320 needs to be at the user 328 00:22:14,780 --> 00:22:16,900 systems table or USM. 329 00:22:17,080 --> 00:22:17,120 You know, 330 00:22:17,180 --> 00:22:22,000 it resides in 331 00:22:22,020 --> 00:22:23,140 on the agent. 332 00:22:23,620 --> 00:22:25,480 It gets kind of fuzzy here 333 00:22:25,480 --> 00:22:27,600 because it's weird. 334 00:22:29,180 --> 00:22:32,120 It's not an SNMP-enabled entity 335 00:22:32,120 --> 00:22:34,140 or terminology. 336 00:22:34,540 --> 00:22:36,300 It exists outside of SNMP. 337 00:22:36,400 --> 00:22:38,460 We can't talk to our USM table 338 00:22:38,460 --> 00:22:40,100 with SNMP. 339 00:22:40,540 --> 00:22:42,440 It's defined in the RFC. 340 00:22:42,720 --> 00:22:43,780 So what we have to do 341 00:22:43,780 --> 00:22:46,100 is we have to circumvent this, 342 00:22:46,900 --> 00:22:48,560 meaning we have to attack our router 343 00:22:48,560 --> 00:22:50,680 using different methodologies 344 00:22:50,680 --> 00:22:52,940 i.e., 345 00:22:52,940 --> 00:22:53,660 you know, 346 00:22:54,300 --> 00:22:57,980 breaking the protocol structure 347 00:22:57,980 --> 00:22:59,320 such as attack us plus, 348 00:22:59,600 --> 00:23:00,220 you know, 349 00:23:00,300 --> 00:23:01,300 faking handshakes, 350 00:23:01,300 --> 00:23:01,940 stuff like that. 351 00:23:02,120 --> 00:23:03,620 So that's when we start 352 00:23:04,740 --> 00:23:06,820 attacking the entire infrastructure. 353 00:23:07,220 --> 00:23:09,160 And with SNP version 3, 354 00:23:09,860 --> 00:23:13,320 we don't have too many options 355 00:23:13,320 --> 00:23:14,260 as of now 356 00:23:14,260 --> 00:23:17,720 except from an exploitable perspective. 357 00:23:19,600 --> 00:23:19,940 Recently, 358 00:23:19,940 --> 00:23:20,720 there was 359 00:23:21,880 --> 00:23:23,240 these guys from 360 00:23:23,240 --> 00:23:24,540 the OU University 361 00:23:24,540 --> 00:23:26,020 published what's called 362 00:23:26,020 --> 00:23:27,060 the PROTUS test suite, right? 363 00:23:27,340 --> 00:23:28,520 And the test suite 364 00:23:28,520 --> 00:23:29,860 was attacking 365 00:23:29,860 --> 00:23:32,480 it was doing SNP injection 366 00:23:33,380 --> 00:23:34,360 of, you know, 367 00:23:34,360 --> 00:23:35,700 specific PDUs 368 00:23:36,940 --> 00:23:38,740 on version 1 of the protocol 369 00:23:38,740 --> 00:23:40,320 and they were doing agent overflowing 370 00:23:40,320 --> 00:23:41,780 and stuff like that, you know, 371 00:23:41,840 --> 00:23:44,280 exploiting viable buffer overflows. 372 00:23:44,460 --> 00:23:45,860 Isn't that on ASM 1? 373 00:23:46,060 --> 00:23:48,260 I thought that was an actual attack on ASM 1. 374 00:23:48,380 --> 00:23:48,760 Which? 375 00:23:50,240 --> 00:23:52,800 Where does SNP reside? 376 00:23:53,340 --> 00:23:54,580 Right, well... 377 00:23:55,320 --> 00:23:58,860 I thought ASM 1 was kind of the weak link 378 00:23:58,860 --> 00:24:00,860 and that all these other protocols 379 00:24:00,860 --> 00:24:01,760 are on top of it. 380 00:24:01,800 --> 00:24:02,340 No. 381 00:24:02,820 --> 00:24:04,200 See, ASM 1 382 00:24:04,200 --> 00:24:06,800 is the way we define a hierarchy 383 00:24:06,800 --> 00:24:10,040 of the way we define our MIBs. 384 00:24:10,060 --> 00:24:12,620 It's only a way of... 385 00:24:13,260 --> 00:24:15,860 Like, our agents exist in... 386 00:24:15,860 --> 00:24:17,160 They don't know about ASM 1. 387 00:24:17,280 --> 00:24:18,520 They exist independently. 388 00:24:18,900 --> 00:24:19,920 The protocol... 389 00:24:19,940 --> 00:24:20,280 The PROTUS test suite 390 00:24:20,280 --> 00:24:21,120 was attacking the way 391 00:24:21,120 --> 00:24:22,220 agents interpreted data 392 00:24:22,220 --> 00:24:23,500 regardless of the way 393 00:24:23,500 --> 00:24:24,040 the data was sent. 394 00:24:24,200 --> 00:24:25,440 They were sending, you know, 395 00:24:26,140 --> 00:24:27,620 with most of our... 396 00:24:27,620 --> 00:24:28,600 With most of our... 397 00:24:30,180 --> 00:24:31,140 Our definitions, 398 00:24:31,260 --> 00:24:32,400 which I kind of want to show you, 399 00:24:32,980 --> 00:24:34,200 there was, like... 400 00:24:34,200 --> 00:24:35,940 We define in ASM 401 00:24:37,560 --> 00:24:39,320 this specific OID 402 00:24:39,320 --> 00:24:40,900 has read-write access, 403 00:24:41,480 --> 00:24:42,580 has, you know, 404 00:24:42,660 --> 00:24:43,560 it's a string type 405 00:24:43,560 --> 00:24:44,560 or it's an integer, 406 00:24:44,720 --> 00:24:45,760 it's a gauge, blah, blah, blah. 407 00:24:46,000 --> 00:24:47,880 So what we can do is say, 408 00:24:48,580 --> 00:24:49,920 hey, we could try... 409 00:24:49,920 --> 00:24:50,760 We could try and overflow the string. 410 00:24:50,940 --> 00:24:52,360 It only takes so many, you know, 411 00:24:52,420 --> 00:24:54,640 so many characters before it breaks. 412 00:24:54,880 --> 00:24:55,960 And with the agents 413 00:24:55,960 --> 00:24:58,660 that existed on that device, 414 00:24:59,240 --> 00:25:01,080 certain ones didn't know how to handle the overflow 415 00:25:01,080 --> 00:25:01,840 and stuff like that. 416 00:25:01,980 --> 00:25:02,800 So that's the way 417 00:25:02,800 --> 00:25:05,280 from, like, a strictly codable 418 00:25:05,280 --> 00:25:06,360 and, like, you know, 419 00:25:06,740 --> 00:25:07,220 you know, 420 00:25:07,220 --> 00:25:09,080 you know, 421 00:25:09,680 --> 00:25:11,220 perspective of attacking 422 00:25:11,780 --> 00:25:13,520 using, like, exploits 423 00:25:13,520 --> 00:25:16,380 where we have to use 424 00:25:16,380 --> 00:25:17,120 the PROTUS test suite. 425 00:25:17,380 --> 00:25:19,240 And the idea is 426 00:25:19,240 --> 00:25:19,940 they've given us 427 00:25:19,940 --> 00:25:23,200 because they did a lot of work 428 00:25:23,200 --> 00:25:24,340 and they did a really good job. 429 00:25:27,180 --> 00:25:28,460 As far as... 430 00:25:28,460 --> 00:25:29,680 See, the big misconception 431 00:25:29,680 --> 00:25:30,880 is that 432 00:25:32,800 --> 00:25:33,760 that somehow 433 00:25:34,260 --> 00:25:37,000 MIBs and abstract syntactical notation, 434 00:25:37,620 --> 00:25:38,120 all that stuff 435 00:25:38,120 --> 00:25:39,740 is all tied together. 436 00:25:41,800 --> 00:25:44,040 But it's not true. 437 00:25:44,280 --> 00:25:46,380 Like, we can talk... 438 00:25:46,380 --> 00:25:47,960 As long as we can send a packet 439 00:25:47,960 --> 00:25:48,600 to these people, 440 00:25:49,240 --> 00:25:51,620 they don't care what it is. 441 00:25:52,120 --> 00:25:53,700 The way they interpret it 442 00:25:53,700 --> 00:25:55,580 is going to be the thing 443 00:25:55,580 --> 00:25:56,820 that makes us break 444 00:25:56,820 --> 00:25:59,460 or, you know, not the system. 445 00:26:00,060 --> 00:26:00,540 But... 446 00:26:01,720 --> 00:26:03,800 And let me talk a little bit more about MIBs. 447 00:26:03,900 --> 00:26:05,700 MIBs are just a database of managed objects 448 00:26:05,700 --> 00:26:07,760 that the agent monitors and manipulates. 449 00:26:07,980 --> 00:26:09,800 It's a way of us thinking about 450 00:26:09,800 --> 00:26:10,820 a database of managed objects. 451 00:26:11,160 --> 00:26:13,160 The SMI provides a way to define 452 00:26:13,160 --> 00:26:14,680 using ASN. 453 00:26:15,060 --> 00:26:16,800 And what we need to do 454 00:26:16,800 --> 00:26:18,380 when we're looking at the MIBs, 455 00:26:18,380 --> 00:26:19,220 we want to explain... 456 00:26:20,960 --> 00:26:22,360 When you get a MIB compiler, 457 00:26:22,740 --> 00:26:23,920 because they do the work for us. 458 00:26:24,620 --> 00:26:25,480 So, you know, 459 00:26:26,320 --> 00:26:27,340 probably your best bet 460 00:26:27,340 --> 00:26:29,700 as far as tools goes 461 00:26:29,700 --> 00:26:32,360 is NetSNMP. 462 00:26:34,300 --> 00:26:35,200 Awesome, awesome. 463 00:26:35,420 --> 00:26:36,840 It's just a programming library. 464 00:26:37,200 --> 00:26:38,520 There's all kinds of extensions. 465 00:26:38,780 --> 00:26:40,540 And everyone's writing for it. 466 00:26:40,620 --> 00:26:42,100 Like, they're doing a great job 467 00:26:42,100 --> 00:26:42,800 keeping it up to date 468 00:26:42,800 --> 00:26:43,460 and patching it 469 00:26:43,460 --> 00:26:44,240 and anything like that. 470 00:26:44,380 --> 00:26:45,820 And it supports SNP version 3. 471 00:26:45,940 --> 00:26:47,500 So we could do a lot with it. 472 00:26:47,900 --> 00:26:49,040 It's a little less... 473 00:26:49,040 --> 00:26:49,220 It's a little less... 474 00:26:49,220 --> 00:26:51,700 Less, you know, user-friendly 475 00:26:51,700 --> 00:26:54,820 than your standard management-like interfaces. 476 00:26:55,060 --> 00:26:56,540 But we don't care about that. 477 00:26:56,600 --> 00:26:57,780 We're trying to break into systems. 478 00:26:57,980 --> 00:26:58,880 We're not trying to look pretty. 479 00:27:01,200 --> 00:27:03,440 So, here's kind of what I want to show you 480 00:27:03,440 --> 00:27:04,840 about MIBs examples. 481 00:27:05,120 --> 00:27:07,100 But, oh well. 482 00:27:08,500 --> 00:27:10,080 So, what we want to do 483 00:27:10,080 --> 00:27:11,940 when we're trying to attack something 484 00:27:12,740 --> 00:27:14,000 is we want to... 485 00:27:14,000 --> 00:27:14,620 Chuck! 486 00:27:15,320 --> 00:27:15,760 Exactly. 487 00:27:16,120 --> 00:27:16,380 Come on. 488 00:27:17,880 --> 00:27:18,640 Chuck it! 489 00:27:21,800 --> 00:27:24,920 We want to talk about Ocean's Eleven a little bit. 490 00:27:25,280 --> 00:27:27,200 Have you guys ever seen the movie Ocean's Eleven? 491 00:27:27,700 --> 00:27:29,280 The original or the shitty remake? 492 00:27:29,580 --> 00:27:30,940 The shitty remake with Brad Pitt 493 00:27:30,940 --> 00:27:32,840 and George Clooney. 494 00:27:33,220 --> 00:27:34,740 What did they do in Ocean's Eleven? 495 00:27:35,720 --> 00:27:37,320 They robbed three casinos 496 00:27:37,320 --> 00:27:38,700 and the way they did it was 497 00:27:40,220 --> 00:27:44,020 they built the same vault as the casino did, right? 498 00:27:44,140 --> 00:27:45,280 They, from the ground up, 499 00:27:45,300 --> 00:27:46,800 they did everything ahead of time. 500 00:27:47,620 --> 00:27:49,200 When we're breaking into a network, 501 00:27:49,220 --> 00:27:52,340 and we want to use managed protocols 502 00:27:52,340 --> 00:27:54,200 as our attack vector, 503 00:27:54,360 --> 00:27:57,340 we want to know exactly 504 00:27:57,340 --> 00:27:59,420 how these attacks 505 00:27:59,420 --> 00:28:01,980 are correlated in the environment 506 00:28:01,980 --> 00:28:03,440 and responded to. 507 00:28:03,680 --> 00:28:06,340 So, the more you can get... 508 00:28:06,340 --> 00:28:07,960 If you could write your own agent 509 00:28:07,960 --> 00:28:08,980 that responds just like that, 510 00:28:09,660 --> 00:28:12,180 the more stuff you can get 511 00:28:13,460 --> 00:28:16,000 that is an analog to the network, 512 00:28:16,120 --> 00:28:17,420 the better off you are. 513 00:28:17,520 --> 00:28:18,420 Just like in Ocean's Eleven. 514 00:28:19,780 --> 00:28:20,800 Because if not, 515 00:28:20,900 --> 00:28:22,120 we're going to be attacking in the blind. 516 00:28:22,360 --> 00:28:24,640 It's just going to be like hijacking a TCP session. 517 00:28:24,820 --> 00:28:25,500 We're not going to know 518 00:28:25,500 --> 00:28:26,460 what the fuck's going on. 519 00:28:26,520 --> 00:28:27,380 We're just going to have to say, 520 00:28:27,440 --> 00:28:28,980 hey, let's try it, you know, 521 00:28:29,000 --> 00:28:30,060 sequence numbers and everything. 522 00:28:30,320 --> 00:28:33,380 But, like, so... 523 00:28:33,380 --> 00:28:34,500 And the thing is, 524 00:28:34,580 --> 00:28:35,940 there's so much information out there 525 00:28:35,940 --> 00:28:38,120 because vendors want their devices 526 00:28:38,120 --> 00:28:39,800 to be easy to manage. 527 00:28:40,860 --> 00:28:43,480 So, we use that, 528 00:28:43,600 --> 00:28:44,780 we use our MIBs, 529 00:28:44,820 --> 00:28:45,540 we use our compilers, 530 00:28:45,560 --> 00:28:46,200 we use our tools. 531 00:28:46,400 --> 00:28:47,520 We set up an environment 532 00:28:47,520 --> 00:28:48,580 that emulates, 533 00:28:49,220 --> 00:28:49,860 this type of network, 534 00:28:50,000 --> 00:28:50,560 and we say, hey, 535 00:28:51,060 --> 00:28:52,180 let's go out. 536 00:28:53,820 --> 00:28:55,220 When we're inside a network, 537 00:28:56,840 --> 00:28:58,460 we want to look for two things, 538 00:28:58,560 --> 00:28:59,340 traps and informs. 539 00:29:00,500 --> 00:29:02,480 Traps are one-way, you know, 540 00:29:03,640 --> 00:29:05,040 dumps of what's going on 541 00:29:05,040 --> 00:29:05,880 on the network. 542 00:29:06,020 --> 00:29:07,500 And those are what tells us 543 00:29:07,500 --> 00:29:08,460 the most about the information. 544 00:29:09,000 --> 00:29:11,040 Those tells us two key things. 545 00:29:11,820 --> 00:29:13,120 The trust relationship 546 00:29:13,120 --> 00:29:14,500 on the management network 547 00:29:14,500 --> 00:29:18,280 and where we need to look 548 00:29:18,280 --> 00:29:19,200 to break through. 549 00:29:19,220 --> 00:29:20,240 So, we take the management sector. 550 00:29:20,760 --> 00:29:22,220 Traps will always be sent 551 00:29:22,220 --> 00:29:23,320 to a management station 552 00:29:24,220 --> 00:29:25,680 that basically manages 553 00:29:25,680 --> 00:29:26,880 the entire network, 554 00:29:27,020 --> 00:29:28,940 or, you know, a segment of it. 555 00:29:29,220 --> 00:29:32,480 So, when we look at a trap, 556 00:29:32,680 --> 00:29:34,140 we're going to try and identify 557 00:29:34,140 --> 00:29:35,240 where it's going 558 00:29:35,240 --> 00:29:37,020 and what it contains. 559 00:29:37,520 --> 00:29:39,020 Traps usually, by default, 560 00:29:39,260 --> 00:29:41,180 contain same community strings 561 00:29:41,180 --> 00:29:45,120 that other networks, 562 00:29:46,580 --> 00:29:48,520 the managed devices communicate. 563 00:29:49,220 --> 00:29:50,220 It's not a two-way thing, 564 00:29:50,280 --> 00:29:51,140 but people implement it 565 00:29:51,140 --> 00:29:53,160 like a symmetric conversation. 566 00:29:54,660 --> 00:29:55,200 It's not. 567 00:29:55,240 --> 00:29:55,920 You don't need the same 568 00:29:55,920 --> 00:29:57,000 community strings 569 00:29:57,000 --> 00:29:58,200 to talk back to your 570 00:29:58,200 --> 00:29:59,020 network management station 571 00:29:59,020 --> 00:30:01,000 that you do to ask it questions. 572 00:30:02,980 --> 00:30:04,260 So, that's what we're looking for. 573 00:30:04,360 --> 00:30:05,780 The informs are a little more formal. 574 00:30:05,880 --> 00:30:06,860 It's a way of 575 00:30:07,260 --> 00:30:07,660 being, 576 00:30:10,700 --> 00:30:12,680 making sure your trap has gotten there. 577 00:30:12,780 --> 00:30:13,480 It's just a handshake, 578 00:30:13,560 --> 00:30:14,960 saying, hey, I got this message. 579 00:30:15,060 --> 00:30:16,700 The only time informs are not going to work 580 00:30:16,700 --> 00:30:19,200 is when your network goes off. 581 00:30:19,220 --> 00:30:19,540 It goes down. 582 00:30:19,640 --> 00:30:22,100 And when you can't get your datagram 583 00:30:22,100 --> 00:30:23,000 to the device. 584 00:30:24,460 --> 00:30:26,260 So, yeah, Cisco. 585 00:30:29,200 --> 00:30:30,720 Or, system disk error. 586 00:30:31,000 --> 00:30:32,380 Our favorite SNMP tools. 587 00:30:33,240 --> 00:30:33,720 Scripts. 588 00:30:34,500 --> 00:30:35,600 Two different scripts. 589 00:30:36,800 --> 00:30:38,840 Scripting stuff is SNMP, 590 00:30:39,000 --> 00:30:39,720 which I already talked about, 591 00:30:39,900 --> 00:30:40,520 which is the best. 592 00:30:40,720 --> 00:30:41,240 Good stuff. 593 00:30:41,380 --> 00:30:42,360 Go get it if you like SNMP. 594 00:30:42,760 --> 00:30:44,220 Also, we have the Tcl, 595 00:30:44,420 --> 00:30:45,740 T-L-K, and Scotty, 596 00:30:45,820 --> 00:30:47,260 which is the interpretive language. 597 00:30:47,420 --> 00:30:48,280 It's super simple. 598 00:30:48,280 --> 00:30:49,900 It's really cool language, dude. 599 00:30:50,160 --> 00:30:51,180 And we want it, 600 00:30:51,260 --> 00:30:51,880 we, we, 601 00:30:51,960 --> 00:30:53,960 it has a lot of potential as, 602 00:30:54,060 --> 00:30:55,420 as just being simple, 603 00:30:55,580 --> 00:30:55,960 robust. 604 00:30:56,120 --> 00:30:57,400 We can do what we want with it. 605 00:30:57,460 --> 00:30:59,320 With, you know, complex polling 606 00:30:59,320 --> 00:31:01,000 and search methods. 607 00:31:02,060 --> 00:31:03,340 The next best thing, 608 00:31:03,500 --> 00:31:05,620 the thing that's our life, 609 00:31:05,740 --> 00:31:08,280 if we're going after a network with, 610 00:31:08,280 --> 00:31:11,180 with SNMP as our tag vector, 611 00:31:11,300 --> 00:31:12,060 is Sniffers. 612 00:31:12,260 --> 00:31:13,660 We have to use Sniffers. 613 00:31:14,100 --> 00:31:15,420 Even if the data is encrypted, 614 00:31:15,820 --> 00:31:17,560 the Sniffers are going to tell us everything 615 00:31:17,560 --> 00:31:18,260 we need to know 616 00:31:18,280 --> 00:31:19,160 of, of the hierarchy 617 00:31:20,100 --> 00:31:21,140 and the topology, 618 00:31:21,320 --> 00:31:21,940 stuff like that. 619 00:31:22,080 --> 00:31:22,820 So, and, 620 00:31:22,960 --> 00:31:23,980 and that's the thing. 621 00:31:24,040 --> 00:31:24,320 That's, 622 00:31:24,320 --> 00:31:25,360 that's kind of what's appealing 623 00:31:25,360 --> 00:31:28,160 about using this to attack networks is, 624 00:31:29,020 --> 00:31:30,400 is it's un-intrusive. 625 00:31:30,800 --> 00:31:31,960 We don't have to do anything. 626 00:31:32,100 --> 00:31:33,280 We don't have to install back doors. 627 00:31:33,620 --> 00:31:35,160 We don't have to, you know, 628 00:31:36,420 --> 00:31:38,220 compromise, like, file servers, 629 00:31:38,300 --> 00:31:38,820 anything like that. 630 00:31:38,980 --> 00:31:40,400 We use what, 631 00:31:40,460 --> 00:31:43,000 what the networks have implemented already. 632 00:31:43,500 --> 00:31:44,520 They don't know we're there 633 00:31:44,520 --> 00:31:45,180 if we do this right. 634 00:31:45,380 --> 00:31:46,260 They can't. 635 00:31:46,420 --> 00:31:47,120 Intrusion detection, 636 00:31:47,120 --> 00:31:47,920 if, 637 00:31:48,180 --> 00:31:48,520 if we, 638 00:31:48,700 --> 00:31:51,300 if we're using the trust relationship 639 00:31:51,300 --> 00:31:53,060 on a managed VLAN, 640 00:31:53,240 --> 00:31:54,820 intrusion detection doesn't mean shit. 641 00:31:55,060 --> 00:31:55,580 You know, 642 00:31:55,600 --> 00:31:57,080 we exploit the way these, 643 00:31:57,160 --> 00:31:57,800 these, 644 00:31:57,860 --> 00:31:58,200 these, 645 00:31:58,200 --> 00:32:00,620 these devices exist in the hierarchy. 646 00:32:01,160 --> 00:32:02,820 The next best thing is 647 00:32:02,820 --> 00:32:04,080 if we're attacking blindly, 648 00:32:04,180 --> 00:32:05,780 we have to brute force our community strings. 649 00:32:06,460 --> 00:32:08,560 The problem with that is 650 00:32:08,560 --> 00:32:09,440 if they're, 651 00:32:09,440 --> 00:32:11,020 they're doing trap handling right, 652 00:32:11,240 --> 00:32:12,100 they're going to, 653 00:32:12,100 --> 00:32:13,500 they're going to set traps back 654 00:32:13,500 --> 00:32:14,680 to network management station 655 00:32:14,680 --> 00:32:15,480 saying 656 00:32:15,480 --> 00:32:17,520 the authentication failed. 657 00:32:17,560 --> 00:32:18,580 This person's trying to brute force. 658 00:32:18,900 --> 00:32:19,340 So, 659 00:32:19,360 --> 00:32:20,920 we have to think of creative ways 660 00:32:20,920 --> 00:32:21,340 to, 661 00:32:21,360 --> 00:32:22,480 to attempt using, 662 00:32:22,600 --> 00:32:22,840 you know, 663 00:32:23,420 --> 00:32:24,220 really long, 664 00:32:24,260 --> 00:32:24,540 um, 665 00:32:25,360 --> 00:32:25,780 um, 666 00:32:26,440 --> 00:32:26,880 um, 667 00:32:26,880 --> 00:32:27,780 changes in, 668 00:32:27,820 --> 00:32:28,120 in, 669 00:32:28,120 --> 00:32:28,680 in, 670 00:32:28,680 --> 00:32:30,020 in timing and stuff like that. 671 00:32:30,120 --> 00:32:30,260 So, 672 00:32:30,280 --> 00:32:30,600 it's, 673 00:32:30,700 --> 00:32:32,800 brute forces are sloppy. 674 00:32:36,940 --> 00:32:37,380 Um, 675 00:32:37,580 --> 00:32:38,360 and like, 676 00:32:38,440 --> 00:32:38,800 like, 677 00:32:38,800 --> 00:32:39,700 like I was talking about earlier, 678 00:32:39,760 --> 00:32:40,860 the provost test suite is, 679 00:32:40,940 --> 00:32:41,840 it's kind of, 680 00:32:41,900 --> 00:32:42,500 it's, 681 00:32:42,500 --> 00:32:42,740 it's, 682 00:32:42,740 --> 00:32:42,800 it's, 683 00:32:42,800 --> 00:32:45,320 it's in Java in compiled files 684 00:32:45,320 --> 00:32:45,760 and, 685 00:32:45,780 --> 00:32:46,800 and we have to do like, 686 00:32:47,380 --> 00:32:47,860 we, 687 00:32:47,980 --> 00:32:48,500 we have to, 688 00:32:50,100 --> 00:32:51,120 what's going on? 689 00:32:54,160 --> 00:32:54,640 But, 690 00:32:54,760 --> 00:32:55,740 provost test suite, 691 00:32:55,780 --> 00:32:55,960 whatever. 692 00:32:57,160 --> 00:32:57,640 Rmon, 693 00:32:57,780 --> 00:32:59,620 let's talk a little bit more about Rmon 694 00:32:59,620 --> 00:33:01,440 as an unobtrusive packet sniffer. 695 00:33:01,720 --> 00:33:03,320 We're going to have network electronics 696 00:33:03,320 --> 00:33:04,700 that support the Rmon MIB 697 00:33:05,200 --> 00:33:07,180 let us sniff packets on their network 698 00:33:07,180 --> 00:33:08,560 without them knowing about it 699 00:33:08,560 --> 00:33:09,300 if we do it right. 700 00:33:09,980 --> 00:33:11,480 So, what we have to do is, 701 00:33:12,500 --> 00:33:12,760 is, 702 00:33:13,260 --> 00:33:13,920 we have to, 703 00:33:13,920 --> 00:33:14,920 we have to send, 704 00:33:15,580 --> 00:33:17,340 on Cisco devices that require 705 00:33:17,340 --> 00:33:19,560 exact access to the command line 706 00:33:19,560 --> 00:33:20,780 to enable Rmon, 707 00:33:21,340 --> 00:33:21,600 like, 708 00:33:21,680 --> 00:33:22,420 sniffing. 709 00:33:22,780 --> 00:33:23,300 So, 710 00:33:24,000 --> 00:33:24,780 that's one, 711 00:33:24,840 --> 00:33:26,080 one of the key things 712 00:33:26,080 --> 00:33:26,320 in, 713 00:33:26,340 --> 00:33:27,780 in getting an Rmon, 714 00:33:27,860 --> 00:33:28,320 you know, 715 00:33:28,320 --> 00:33:28,800 MIB to, 716 00:33:28,860 --> 00:33:29,900 to tell you stuff is 717 00:33:29,900 --> 00:33:31,760 compromising a Cisco router 718 00:33:31,760 --> 00:33:32,500 and by then you're like, 719 00:33:32,560 --> 00:33:32,740 hey. 720 00:33:32,920 --> 00:33:33,360 But, 721 00:33:33,440 --> 00:33:34,660 other network electronics 722 00:33:35,260 --> 00:33:35,780 are, 723 00:33:35,980 --> 00:33:37,160 are more, 724 00:33:37,260 --> 00:33:39,500 more susceptible to Rmon attacks 725 00:33:40,220 --> 00:33:40,740 and, 726 00:33:40,740 --> 00:33:40,840 and, 727 00:33:40,980 --> 00:33:42,120 we have to look for two, 728 00:33:42,140 --> 00:33:43,320 two key things in the, 729 00:33:43,400 --> 00:33:43,700 in the, 730 00:33:43,700 --> 00:33:44,200 in the tree. 731 00:33:44,840 --> 00:33:45,320 Our, 732 00:33:45,320 --> 00:33:47,420 our filter and our capture tables. 733 00:33:47,980 --> 00:33:50,080 We implement our filter and capture table 734 00:33:51,200 --> 00:33:52,120 using our, 735 00:33:52,140 --> 00:33:52,980 our PDUs 736 00:33:52,980 --> 00:33:54,320 and we'll set up an interface 737 00:33:54,320 --> 00:33:54,980 that's, 738 00:33:54,980 --> 00:33:57,160 that resides in promiscuous mode 739 00:33:57,740 --> 00:33:59,080 and will iterate all the data. 740 00:34:00,100 --> 00:34:02,200 The PDUs that pass the filter test 741 00:34:02,200 --> 00:34:04,120 are then forwarded to the capture buffer table. 742 00:34:04,560 --> 00:34:06,040 To set up the data channel, 743 00:34:06,200 --> 00:34:07,660 a vacant index must be, 744 00:34:07,660 --> 00:34:08,320 be determined, 745 00:34:08,640 --> 00:34:09,740 which is our, 746 00:34:09,740 --> 00:34:10,840 which is our interfaces. 747 00:34:12,380 --> 00:34:13,420 The channel status, 748 00:34:13,560 --> 00:34:14,660 it should be to create requests. 749 00:34:16,360 --> 00:34:17,140 Oh shit. 750 00:34:19,920 --> 00:34:20,440 Yeah, 751 00:34:20,440 --> 00:34:20,860 but anyway, 752 00:34:21,040 --> 00:34:22,040 basically we have to do, 753 00:34:22,120 --> 00:34:23,520 look for two things in RmonMib. 754 00:34:23,900 --> 00:34:25,500 The filter and capture groups 755 00:34:25,500 --> 00:34:26,020 and, 756 00:34:26,040 --> 00:34:26,620 and from there, 757 00:34:26,700 --> 00:34:27,360 read it 758 00:34:27,360 --> 00:34:28,520 and it's, 759 00:34:28,520 --> 00:34:29,140 it's straight forward. 760 00:34:29,440 --> 00:34:29,960 We, 761 00:34:30,040 --> 00:34:30,940 and this way, 762 00:34:31,060 --> 00:34:32,600 we install a sniffer 763 00:34:32,600 --> 00:34:35,140 on major hardware 764 00:34:35,740 --> 00:34:36,080 that, 765 00:34:36,120 --> 00:34:37,160 that will, 766 00:34:37,360 --> 00:34:37,620 like, 767 00:34:37,680 --> 00:34:37,980 like, 768 00:34:39,740 --> 00:34:40,480 it's 65 or nine. 769 00:34:41,760 --> 00:34:42,320 They're, 770 00:34:42,380 --> 00:34:42,960 they're, 771 00:34:42,960 --> 00:34:43,420 they're, 772 00:34:43,420 --> 00:34:43,640 they're, 773 00:34:43,640 --> 00:34:43,960 they're, 774 00:34:43,960 --> 00:34:44,960 they're laying the switch 775 00:34:46,260 --> 00:34:47,240 enables us 776 00:34:47,240 --> 00:34:48,260 to look at all traffic 777 00:34:48,260 --> 00:34:49,620 passing across its interfaces 778 00:34:50,320 --> 00:34:51,700 just using SNP. 779 00:34:52,960 --> 00:34:54,480 If they're competent managers, 780 00:34:54,780 --> 00:34:55,860 they'll be able to find out 781 00:34:55,860 --> 00:34:56,580 what's going on 782 00:34:56,580 --> 00:34:57,440 and what's not. 783 00:34:59,000 --> 00:34:59,560 They'll, 784 00:34:59,560 --> 00:34:59,740 they'll, 785 00:34:59,820 --> 00:34:59,880 they'll see, 786 00:35:00,120 --> 00:35:01,220 I need a, 787 00:35:01,900 --> 00:35:03,000 do we have another? 788 00:35:05,240 --> 00:35:06,600 My battery's dying. 789 00:35:08,080 --> 00:35:08,640 Oh, 790 00:35:08,720 --> 00:35:09,720 oh, 791 00:35:09,920 --> 00:35:09,940 oh, 792 00:35:11,240 --> 00:35:11,660 oh. 793 00:35:11,740 --> 00:35:12,660 Sky Diving. 794 00:35:16,620 --> 00:35:18,620 This is fear and loathing in Las Vegas, huh? 795 00:35:20,600 --> 00:35:21,320 So anyway, 796 00:35:22,360 --> 00:35:22,780 arm, 797 00:35:22,820 --> 00:35:23,680 we like Rmon. 798 00:35:23,940 --> 00:35:24,880 Rmon's very good. 799 00:35:25,020 --> 00:35:25,260 We can, 800 00:35:25,260 --> 00:35:26,680 we can break a lot of stuff with it 801 00:35:26,680 --> 00:35:29,160 and Rmon is also the way we make a lot of money 802 00:35:29,160 --> 00:35:30,060 if we're interested in managing 803 00:35:30,060 --> 00:35:30,320 because 804 00:35:30,840 --> 00:35:31,820 managers love Rmon. 805 00:35:31,980 --> 00:35:32,780 It tells us every, 806 00:35:32,880 --> 00:35:34,680 it tells us our top talkers, 807 00:35:34,680 --> 00:35:35,420 host top end, 808 00:35:35,480 --> 00:35:36,080 stuff like that. 809 00:35:36,300 --> 00:35:36,960 It's what, 810 00:35:37,020 --> 00:35:37,620 does our traps 811 00:35:37,620 --> 00:35:37,880 and, 812 00:35:37,920 --> 00:35:38,940 and Rmon, 813 00:35:39,020 --> 00:35:39,500 like the, 814 00:35:39,500 --> 00:35:41,340 The thing about Armand, it's still a MIB. 815 00:35:41,340 --> 00:35:42,740 It's still like S&MP. 816 00:35:42,960 --> 00:35:45,440 The only thing is, when they defined the RFC, 817 00:35:45,580 --> 00:35:48,660 they defined matrix-y style, like architecture, 818 00:35:48,920 --> 00:35:50,200 which was like a big thing back then 819 00:35:50,200 --> 00:35:53,420 because they were doing straightforward tables. 820 00:35:53,820 --> 00:36:01,220 So it was kind of a step forward in the management world. 821 00:36:03,260 --> 00:36:05,220 So we want to talk about reconnaissance. 822 00:36:06,120 --> 00:36:09,280 When we're looking at a network and we want to break it, 823 00:36:09,840 --> 00:36:12,920 what are we going to do from an S&MP perspective? 824 00:36:13,400 --> 00:36:14,940 We want to identify the network first. 825 00:36:15,380 --> 00:36:18,100 The big thing is the access lists. 826 00:36:19,760 --> 00:36:24,260 Access list detection from an S&MP perspective sucks 827 00:36:24,260 --> 00:36:27,540 because when we're using version 1, version 2, 828 00:36:28,140 --> 00:36:29,620 and we're sending our packets, 829 00:36:30,320 --> 00:36:35,800 we're going to get the same response from an access list device 830 00:36:36,660 --> 00:36:39,160 as we would if we were using the wrong community string. 831 00:36:39,500 --> 00:36:41,360 So this is where sniffing comes in. 832 00:36:41,520 --> 00:36:44,760 And this is where our... 833 00:36:44,760 --> 00:36:46,500 Oh, hi there. 834 00:36:47,520 --> 00:36:48,020 So... 835 00:36:48,580 --> 00:36:48,880 So... 836 00:36:51,000 --> 00:36:52,280 Can anybody see? 837 00:36:56,780 --> 00:36:57,780 Good boy. 838 00:37:02,980 --> 00:37:04,100 That's five, I think. 839 00:37:04,280 --> 00:37:05,820 That's five, baby. 840 00:37:05,980 --> 00:37:06,300 Come on. 841 00:37:07,560 --> 00:37:08,300 I'm scared. 842 00:37:21,600 --> 00:37:25,640 Hey, so the best way we're going to get into a network... 843 00:37:40,720 --> 00:37:44,380 So, when are we going to get into a network? 844 00:37:44,880 --> 00:37:53,740 The best bet is through the DMZ, because our DMZ is typically not managed correctly, either 845 00:37:53,740 --> 00:37:54,680 they're letting in... 846 00:37:54,680 --> 00:37:55,620 They're not... 847 00:37:55,620 --> 00:38:00,240 They don't have the proper ingress filtering and stuff like that, so the way we want to 848 00:38:00,240 --> 00:38:07,460 do is go after a host in the DMZ, be it a web server or anything like that, and that 849 00:38:07,460 --> 00:38:13,740 will give us the trusted capabilities inside the network using SNMP, because... 850 00:38:14,060 --> 00:38:22,260 I wish I had that fucking picture, but I forgot to write it, I was drunk, so basically, let's 851 00:38:22,260 --> 00:38:25,600 say our firewall has segmented the DMZ from the... 852 00:38:25,600 --> 00:38:29,960 The private network, and they're doing that, they're doing all kinds of great stuff. 853 00:38:31,620 --> 00:38:36,760 Managers will enable SNMP protocol passes from the DMZ to the private segment. 854 00:38:38,500 --> 00:38:44,040 No implementation of a firewall is going to let SNP traffic pass from the outside inside, 855 00:38:44,300 --> 00:38:48,880 it's just not a real situation you're going to find in the wild. 856 00:38:49,400 --> 00:38:52,220 But from the DMZ, it's different, I've seen it. 857 00:38:52,420 --> 00:38:54,060 So look there first. 858 00:38:54,260 --> 00:38:55,560 If you can't get there, you're not going to get there. 859 00:38:55,600 --> 00:39:01,620 Then the only other thing is, you've got to get internal access, and our internal access 860 00:39:01,620 --> 00:39:05,560 comes from another way, another way, social engineering, I don't need to describe that 861 00:39:05,560 --> 00:39:07,280 to you, everyone here is pretty much educating that. 862 00:39:07,780 --> 00:39:12,200 Once inside, we have to attack the management VLAN. 863 00:39:12,720 --> 00:39:16,220 Normally our management VLAN, VLANs suck, right? 864 00:39:16,340 --> 00:39:21,960 I mean, they're not secure by any means, even in the most standard of implementations. 865 00:39:22,320 --> 00:39:24,460 We're looking at a... 866 00:39:24,460 --> 00:39:25,580 We're looking at a... 867 00:39:25,600 --> 00:39:26,980 VLAN that will... 868 00:39:26,980 --> 00:39:31,020 If they do it right, they're not going to let you route, they're not going to let you 869 00:39:31,020 --> 00:39:36,780 route between a management VLAN and a student one, or whatever else they've got. 870 00:39:37,100 --> 00:39:45,740 So that doesn't mean crap though, it's easy to get around, and what the hell is this? 871 00:39:51,960 --> 00:39:53,140 What's going on here? 872 00:39:53,740 --> 00:39:55,580 SNMP is also a great way to transport traffic. 873 00:39:55,600 --> 00:39:55,940 It's a great way to transport viruses. 874 00:39:56,680 --> 00:39:57,360 Just kidding. 875 00:39:58,360 --> 00:39:59,740 And I don't know how to use... 876 00:39:59,740 --> 00:40:00,580 Does this... 877 00:40:03,020 --> 00:40:04,060 Who's PC is this? 878 00:40:04,400 --> 00:40:05,360 What the fuck? 879 00:40:06,980 --> 00:40:07,660 Let it in. 880 00:40:07,880 --> 00:40:08,280 I hit? 881 00:40:08,340 --> 00:40:08,420 Yeah. 882 00:40:15,260 --> 00:40:16,480 Extreme prejudice, baby. 883 00:40:16,660 --> 00:40:17,060 Get rid of it. 884 00:40:21,660 --> 00:40:22,540 Oh, my God. 885 00:40:24,080 --> 00:40:24,740 Oh, shit. 886 00:40:25,180 --> 00:40:25,580 Oh, shit. 887 00:40:28,080 --> 00:40:28,620 Uh-oh-oh, we needed the pandemic. 888 00:40:28,620 --> 00:40:30,700 Why is SNMP a viable attack mechanism? 889 00:40:32,800 --> 00:40:36,500 Not when we want to replace web pages people, or de-face. 890 00:40:36,680 --> 00:40:37,520 Replace, whatever. 891 00:40:37,980 --> 00:40:41,000 We're not going to replace index.htm with SNMP. 892 00:40:41,400 --> 00:40:42,380 It's out there. 893 00:40:43,200 --> 00:40:44,260 Toplesslawyers.com. 894 00:40:44,380 --> 00:40:50,040 We have people, but we want to look at ways of compromising networks. 895 00:40:50,160 --> 00:40:51,620 Not ways of compromising web servers. 896 00:40:51,880 --> 00:40:51,980 All right. 897 00:40:54,020 --> 00:40:55,120 We're not gonna... 898 00:40:55,600 --> 00:40:57,620 If you can run a nice, happy overflow, great. 899 00:40:57,900 --> 00:40:58,760 It's a lot easier. 900 00:40:58,860 --> 00:40:59,960 SMP takes a lot of work. 901 00:41:01,800 --> 00:41:03,580 This is the key thing. 902 00:41:03,700 --> 00:41:07,540 When we have ways of communicating properly to network electronics. 903 00:41:08,100 --> 00:41:15,820 And keep in mind, did anybody see the talk on printers and stuff like that? 904 00:41:16,300 --> 00:41:17,560 Overflows using CDP. 905 00:41:18,000 --> 00:41:19,100 That was great. 906 00:41:19,220 --> 00:41:22,320 That will give you a great perspective on how we can compromise a major network. 907 00:41:22,560 --> 00:41:24,000 We can look at printers. 908 00:41:24,000 --> 00:41:27,660 We can look at UPSs with smart management cards. 909 00:41:27,840 --> 00:41:33,260 We can look at any type of network electronic that has SMP agents enabled on it. 910 00:41:33,700 --> 00:41:34,840 It's everywhere. 911 00:41:35,260 --> 00:41:42,880 So what we have to do is we have to get creative and we have to look at JetDirect cards. 912 00:41:43,080 --> 00:41:48,400 And we say, hey, we can compromise JetDirect cards and exploit the trust relationship between 913 00:41:48,400 --> 00:41:51,100 JetDirect managers and the JetDirect printers. 914 00:41:51,340 --> 00:41:53,980 We can compromise UPSs the same way. 915 00:41:55,360 --> 00:41:57,340 And it's super easy. 916 00:41:58,460 --> 00:42:00,060 That talk was really awesome. 917 00:42:00,240 --> 00:42:02,700 And I have to give that guy a lot of respect, but I don't know where he is. 918 00:42:03,740 --> 00:42:06,400 SMP has a tool for attack and reconnaissance. 919 00:42:07,220 --> 00:42:12,820 SMP lets us take over an entire network, given the conditions I'm at, just like everything 920 00:42:12,820 --> 00:42:13,080 else. 921 00:42:14,620 --> 00:42:20,300 SMP can give us complete access to their infrastructure and will belong to us. 922 00:42:21,320 --> 00:42:23,240 But we have to know a few key things. 923 00:42:23,320 --> 00:42:23,960 Community storage. 924 00:42:23,980 --> 00:42:28,760 What type of strings, what type of agents are running, and more importantly, the management 925 00:42:28,760 --> 00:42:30,760 hierarchy, which I think is coming up. 926 00:42:31,200 --> 00:42:32,140 So network management. 927 00:42:32,900 --> 00:42:35,380 So these are the key protocols we see in a network. 928 00:42:37,800 --> 00:42:45,400 Network management is basically the way of managing large amounts of network electronics. 929 00:42:46,000 --> 00:42:51,940 We have a network with 10,000 nodes and 300-plus routers, you're not going to be able to go 930 00:42:51,940 --> 00:42:53,960 out to every single one and say, hey, we're going to do this. 931 00:42:53,960 --> 00:42:55,780 We're going to say, hey, what's your MAC address? 932 00:42:56,400 --> 00:43:03,140 So we have to centralize our way of querying these things, and this is where network management 933 00:43:03,140 --> 00:43:03,980 servers come in. 934 00:43:04,160 --> 00:43:09,180 And also our network management protocols, SMP being number one, and then we have stuff 935 00:43:09,180 --> 00:43:16,200 like syslog and syscode discovery protocol and the network time protocol and all that 936 00:43:16,200 --> 00:43:16,440 stuff. 937 00:43:18,680 --> 00:43:18,980 NTP. 938 00:43:20,080 --> 00:43:22,180 NTP is a management protocol. 939 00:43:22,840 --> 00:43:23,940 We can use it. 940 00:43:23,960 --> 00:43:35,560 We can look at to maybe get a little more slide in under the normal ways of what they're 941 00:43:35,560 --> 00:43:37,640 looking at from a security perspective. 942 00:43:38,340 --> 00:43:43,660 So NTP all does a synchronized time between electronics, and it normally goes outside 943 00:43:43,660 --> 00:43:46,960 to do that, one of those big university atomic clocks. 944 00:43:47,640 --> 00:43:52,100 And so there's ways of authenticating it, but it's normally not authenticated. 945 00:43:52,100 --> 00:43:54,940 Because it's so simple. 946 00:43:55,220 --> 00:44:01,400 So it's a way of communicating to our major routers who synchronize time on their LAN 947 00:44:01,980 --> 00:44:10,880 slash LAN, and we have to, if we have no other mechanism, NTP is the way to go. 948 00:44:11,480 --> 00:44:19,240 So CDP, Jesus Christ, CDP is like, oh my God, one of the craziest protocols I've ever 949 00:44:19,240 --> 00:44:19,740 seen in my life. 950 00:44:20,560 --> 00:44:21,120 . 951 00:44:22,160 --> 00:44:26,340 Dude, those guys who gave a talk, talked about exploiting Cisco ISs, they're writing 952 00:44:26,340 --> 00:44:30,880 to the kernel, you know, using CDP as their attack vector. 953 00:44:31,060 --> 00:44:31,900 It was insane. 954 00:44:32,440 --> 00:44:38,900 CDP is so fucking informative that we can know everything about a network just by sticking 955 00:44:38,900 --> 00:44:44,820 our laptop on one of the ports and saying, hey, look, they're just, they're just, watch. 956 00:44:47,000 --> 00:44:48,560 Here's our CDP protocol dump. 957 00:44:49,400 --> 00:44:51,100 Okay, you guys can't see that, but okay. 958 00:44:51,100 --> 00:44:57,800 This is basically a device telling a 6509, hey, this is what kind of, this is what software 959 00:44:57,800 --> 00:45:01,700 version I'm running, this is where I am, this is how I work. 960 00:45:01,960 --> 00:45:03,360 Talk back to me, I miss you. 961 00:45:03,600 --> 00:45:12,800 So the CDP, CDP is, it's the glue that binds Cisco devices, and have you guys ever seen 962 00:45:13,380 --> 00:45:17,820 Jeremy Rod's talk, he did a lot of this stuff, so I don't want to get into like, you know, 963 00:45:17,880 --> 00:45:21,080 like, you know, this type of stuff. 964 00:45:21,080 --> 00:45:26,160 Like security mechanisms, because we can authenticate CDP, and we can do stuff with 965 00:45:26,160 --> 00:45:31,940 it, but by default, same as all the other protocols, it's, it's, it's like, it's almost 966 00:45:31,940 --> 00:45:35,260 broadcast over their LAN saying, hey, this is what we do. 967 00:45:35,620 --> 00:45:43,180 The typical thing managers do, or security people do, is segment this by VLAN, but, you 968 00:45:43,180 --> 00:45:44,560 know, we can get around that. 969 00:45:45,820 --> 00:45:46,440 Syslog too. 970 00:45:46,980 --> 00:45:49,220 Syslog is, you know, it's our favorite thing. 971 00:45:49,960 --> 00:45:50,720 Centralizes logging. 972 00:45:51,080 --> 00:45:57,460 And, and, and, it's, it's, what a lot of people don't understand is Syslog is not a way to 973 00:45:57,460 --> 00:45:58,640 get, to receive traps. 974 00:45:59,500 --> 00:46:05,080 Syslog is, is, is sort of the log server. 975 00:46:05,320 --> 00:46:09,060 It's what happens to our network electronics when we need to log something, a single event. 976 00:46:09,900 --> 00:46:11,760 Trap clearing is a completely different thing. 977 00:46:12,220 --> 00:46:19,840 But these, both these two things are, are, are kind of in the same analog because we 978 00:46:19,840 --> 00:46:21,040 can, we can. 979 00:46:21,040 --> 00:46:25,200 We can exploit the trust between Syslog and traps and stuff like that, just like anything 980 00:46:25,200 --> 00:46:25,480 else. 981 00:46:25,880 --> 00:46:31,500 And typically, when a server is, is, is like a Syslog server, like, any of these servers 982 00:46:31,500 --> 00:46:37,800 are running multiple server versus, and this is what we need to identify, is that, is that 983 00:46:39,040 --> 00:46:44,740 we, these management servers are so susceptible to attacks and, and they're, they're, they're 984 00:46:44,740 --> 00:46:46,740 wide open as long as we can compromise the VLAN. 985 00:46:47,060 --> 00:46:51,020 They, they are easily the most vulnerable. 986 00:46:55,120 --> 00:46:58,780 They built their, their best end for us. 987 00:46:58,980 --> 00:47:01,520 They, they got really low costs of intellectual infrastructure. 988 00:47:01,520 --> 00:47:03,100 It's really low of a price. 989 00:47:03,220 --> 00:47:13,240 And not, but we will be at a loss for them if we make future judgments, you know, depending 990 00:47:13,240 --> 00:47:13,760 on who we are. 991 00:47:13,820 --> 00:47:17,800 Uh, hold on a second. 992 00:47:17,880 --> 00:47:20,300 Um, so this is什么. 993 00:47:20,440 --> 00:47:21,000 So. 994 00:47:21,020 --> 00:47:32,400 If you want to do it right, do intrusion detection in your VLAN, do firewalling in your VLAN as well as the rest of your network. 995 00:47:33,260 --> 00:47:42,120 This is the part of your network that owns the rest of your network, so we have to pay a lot of attention to this. 996 00:47:42,120 --> 00:47:51,480 And the thing is, it's not giving too much perspective, or whatever the word is. I'm drunk. 997 00:47:52,720 --> 00:47:59,860 So, TACOS Plus. TACOS Plus. We like TACOS Plus. This is the way we authenticate and manage devices. 998 00:48:01,240 --> 00:48:06,440 TACOS Plus is pretty cool. It's better than RADIUS, but it's susceptible to... 999 00:48:10,020 --> 00:48:10,980 Replay. Shit. 1000 00:48:13,420 --> 00:48:20,600 But, you know, yeah, TACOS Plus, just like any other implementations, is not that well authenticated. 1001 00:48:20,920 --> 00:48:24,200 Replay attacks are a way to get into TACOS Plus-enabled networks. 1002 00:48:28,080 --> 00:48:32,780 TACOS Plus is over TCP. RADIUS is over UDP, so you guys know the difference. 1003 00:48:33,040 --> 00:48:41,720 It's, like, if we're looking outside, you know, like from the outside, TACOS Plus is not going to be a viable way to get in. 1004 00:48:42,460 --> 00:48:46,680 RADIUS is not going to be a viable way to get in. You're going to have to be creative and look at the DMZ. 1005 00:48:47,300 --> 00:48:53,320 But when we do get in, we want to pay attention to, you know, the triple authentication stuff. 1006 00:48:53,440 --> 00:48:58,260 We want to pay attention to what's going on, because this is the management hierarchy we are attacking. 1007 00:49:00,780 --> 00:49:10,900 So, and here's more, you know, and like everything else, this is usually centralized over the... 1008 00:49:12,120 --> 00:49:18,080 specific areas of the network using something like cisco secure you know access control server but 1009 00:49:19,760 --> 00:49:24,920 access control server is just like everything else we can break it through it just using um 1010 00:49:25,720 --> 00:49:31,560 watching the way in which the the network is managed and this is kind of what i'm trying 1011 00:49:31,560 --> 00:49:38,540 to get across to everybody is the way in which people manage networks also tells us the way in 1012 00:49:38,540 --> 00:49:46,780 which we can break into it so um and like our network management security is kind of a joke 1013 00:49:46,780 --> 00:49:52,620 we have we have our we have our you know fifty thousand dollar solutions that let us pull you 1014 00:49:52,620 --> 00:49:58,560 know hundreds of devices open views you know number one cisco works all that stuff tivoli 1015 00:50:00,000 --> 00:50:07,420 unicenter and these things these things are running a shitload of services and a shitload of just 1016 00:50:09,840 --> 00:50:16,380 unneeded stuff like like you look at you look at like a hpu xbox with open view on it you run an 1017 00:50:16,380 --> 00:50:24,040 end map against it you'll see like like like 15 ports open it's it's a joke like and and the way 1018 00:50:24,040 --> 00:50:29,880 we can get into this server is is there's there's too many ways like it's it's too possible like 1019 00:50:29,880 --> 00:50:36,800 we have the protist test suite as as an snmp attack vector we also have we we also have you 1020 00:50:36,800 --> 00:50:38,320 know our replay 1021 00:50:38,540 --> 00:50:45,780 attacks and stuff like that so what we could do is is is we we want to we want to break into these 1022 00:50:45,780 --> 00:50:51,440 servers we can all we need to know is where they are and how to talk to them and that's the 1023 00:50:51,440 --> 00:51:08,340 sniffing part and i think i'm done so anybody have any questions questions comments it should 1024 00:51:08,340 --> 00:51:08,520 keep going 1025 00:51:08,540 --> 00:51:10,000 kira in the crowd i kind of want to talk to her 1026 00:51:11,900 --> 00:51:16,600 what did you litter i'm very curious porn we were throwing porn at cars 1027 00:51:18,220 --> 00:51:23,920 yeah it was crazy but we're we you know because there's too much porn in las vegas i just kind of 1028 00:51:23,920 --> 00:51:27,160 want i want to spread the word you know because i didn't think the cars were getting enough porn 1029 00:51:27,160 --> 00:51:27,420 so 1030 00:51:29,740 --> 00:51:31,560 you were talking earlier about uh 1031 00:51:31,560 --> 00:51:36,380 i'm just curious what has those by 1032 00:51:37,120 --> 00:51:37,520 people 1033 00:51:40,400 --> 00:51:43,840 okay this is a good question um we'll see because 1034 00:51:44,660 --> 00:51:54,840 anti-plea and ntp assumes a it's trust relationship right we're asking a a specific device outside of 1035 00:51:54,840 --> 00:52:02,160 our network to centralize our time so so if if we set up a bogus ntp server there's there's issues 1036 00:52:02,160 --> 00:52:07,360 it's more of like a like a dos thing like if we set up improper timing 1037 00:52:08,540 --> 00:52:12,740 when we train people for the timing v display issues that come come come on 1038 00:52:12,740 --> 00:52:25,060 our router architecture and sort of 1039 00:52:25,060 --> 00:52:26,680 removes the device in the network 1040 00:52:27,300 --> 00:52:27,820 uh... 1041 00:52:27,820 --> 00:52:30,460 that's the only thing i've seen heard with otherwise 1042 00:52:30,460 --> 00:52:31,200 what's moved 1043 00:52:31,680 --> 00:52:33,040 that's more of the trust relationship 1044 00:52:33,040 --> 00:52:34,700 again there's a way to communicate 1045 00:52:35,160 --> 00:52:36,160 to network electronics 1046 00:52:36,160 --> 00:52:37,320 and sort of fingerprint 1047 00:52:37,320 --> 00:52:49,480 what we're talking to yeah yeah exactly well that's why oh yeah and that's why 1048 00:52:49,480 --> 00:52:55,900 NTP authentication is like the most important like managed protocol because 1049 00:52:55,900 --> 00:53:00,280 it's it's something that's coming from outside our network so we have to look 1050 00:53:00,280 --> 00:53:04,740 at which it should be key anything that's talking to our devices and 1051 00:53:04,740 --> 00:53:10,600 telling us synchronization information is is it's the most important thing 1052 00:53:10,600 --> 00:53:19,740 because it tells us how our devices are supposed to perform perform right but 1053 00:53:19,740 --> 00:53:23,600 you have to go pick one your device won't just go out there and say hey 1054 00:53:23,600 --> 00:53:26,660 alright there's an there's an automated to be sort of rather you 1055 00:53:34,800 --> 00:53:39,140 yeah yeah right 1056 00:53:46,300 --> 00:53:47,700 really 1057 00:53:55,960 --> 00:53:57,360 right 1058 00:54:04,840 --> 00:54:10,580 , well yeah and it's it's it's time it's obviously it's not like that that 1059 00:54:10,580 --> 00:54:14,800 big of an issue on your network the thing is it gives us potentials for you 1060 00:54:14,800 --> 00:54:17,840 know denial of service and stuff like that that's the reason I mentioned it's 1061 00:54:17,840 --> 00:54:22,620 not it's not like it's not a it's not a practical attack you see in the wild 1062 00:54:22,620 --> 00:54:26,520 it's not it's it's it's it's kind of worthless but but it's a it's a 1063 00:54:26,520 --> 00:54:28,520 management protocol just like all the others and so 1064 00:54:37,260 --> 00:54:45,720 I really yeah see there you go yeah it's it's not it the synchronization is keen 1065 00:54:45,720 --> 00:54:51,580 in inside because when you when you're your master router doing you know 1066 00:54:51,580 --> 00:54:56,660 hopefully doing we landed NTP like polling and stuff like that is pushing 1067 00:54:56,660 --> 00:55:01,060 out times to the rest of you the rest gear edge like the rest of your switches 1068 00:55:01,060 --> 00:55:04,720 and stuff like that it's it screws everything on okay we're definitely 1069 00:55:04,720 --> 00:55:12,440 of your servers aren't synchronized the same thing as your managed electronics. Things 1070 00:55:13,460 --> 00:55:18,820 don't work correctly. So, I don't know. It's fun stuff. Any other questions? 1071 00:55:21,420 --> 00:55:27,200 Too much. But I want some more. So, if anyone wants to go party. Shakira especially. 1072 00:55:27,200 --> 00:55:43,400 Especially. Well. Porn. Right. Casa. Or. We're in Las Vegas. Let's just go walk down 1073 00:55:43,400 --> 00:55:49,340 the street. I'll find some porn. And, you know, I just want to give a shout out to the 1074 00:55:49,340 --> 00:55:54,680 Muppet Babies. They're like an extinct species almost. They're endangered. So, we need to 1075 00:55:54,680 --> 00:55:55,720 look out for the Muppet Babies. 1076 00:55:56,740 --> 00:55:57,140 No. 1077 00:55:57,200 --> 00:56:05,860 No. They're all good. Trust me. We love them. But anyway, it's the last talk of the day. 1078 00:56:06,040 --> 00:56:16,180 So, I hope everyone had a good time. And let's party. And let's do math. And a lick number 1079 00:56:16,180 --> 00:56:16,480 theory.