1 00:00:03,960 --> 00:00:07,720 So, hi, my name is Fufas, and I'm here to give a little talk at DEF CON, which is a 2 00:00:07,720 --> 00:00:11,820 very exciting thing for me. I've been coming for a number of years, and I've always really 3 00:00:11,820 --> 00:00:16,120 enjoyed it, and I always apply to give a talk, and this is the first time I've been accepted. 4 00:00:16,740 --> 00:00:21,860 Now, there have been a number of really interesting talks so far in the CON about Windows security. 5 00:00:22,080 --> 00:00:26,700 In particular, I would like to pay respect to Jamie Butler's talk on the rootkit stuff, 6 00:00:26,700 --> 00:00:30,600 and Brett Moore's talk on Windows messaging. Those were both really interesting, and they 7 00:00:30,600 --> 00:00:35,220 were ways that people are sort of pushing back the boundaries in terms of what is understood 8 00:00:35,220 --> 00:00:41,360 about the internal workings of Windows and really breaking new territory and showing 9 00:00:41,360 --> 00:00:45,640 people things that, well, we all thought couldn't really be done. This is not a talk like that. 10 00:00:46,200 --> 00:00:51,820 This is a talk about stuff that is already known at least a little bit. So what is it 11 00:00:51,820 --> 00:00:55,580 really about? We're talking about getting a better handle on some stuff that everyone 12 00:00:55,580 --> 00:00:56,680 has talked about for a while. 13 00:00:56,680 --> 00:01:01,320 We've talked about this for a long time, but no one's really addressed in a coherent 14 00:01:01,320 --> 00:01:05,640 and rigorous manner, and we're talking about providing some tools to help produce more 15 00:01:05,640 --> 00:01:09,900 thorough and authoritative testing results so that when we go and make these same observations 16 00:01:09,900 --> 00:01:13,840 that other people have been making for a long time, we can do so in a way that's more 17 00:01:13,840 --> 00:01:18,760 convincing and terrifying. And then also, we want to have just some general enjoyment 18 00:01:18,760 --> 00:01:22,580 from looking at old stuff and maybe seeing it in a new light. There are a few organizational 19 00:01:22,580 --> 00:01:26,640 details I'd like to get out of the way. I have updated the presentation since the 20 00:01:26,640 --> 00:01:30,640 time when I – oh, my goodness. It's off the side of the screen. 21 00:01:31,080 --> 00:01:31,640 Resolution. 22 00:01:34,160 --> 00:01:43,900 They told me it's 1024 by 768. Well, there's some interesting words off to the side. Just 23 00:01:43,900 --> 00:01:44,220 a second. 24 00:01:45,460 --> 00:01:48,760 Well, I thought switching to 800 by 600 would be sufficient. 25 00:01:50,420 --> 00:01:53,900 Pardon for another resolution change here. 26 00:02:02,240 --> 00:02:03,140 Come up here. 27 00:02:04,280 --> 00:02:05,160 Come up here. 28 00:02:08,000 --> 00:02:08,700 Thank you. 29 00:02:13,420 --> 00:02:14,080 All right. 30 00:02:15,960 --> 00:02:22,640 Okay, so some things may look a little funny on this now, but we're going to try. So there 31 00:02:22,640 --> 00:02:26,620 are a few organizational details. I have updated the presentation slightly since one of the 32 00:02:26,640 --> 00:02:30,160 slides was written to the CD. That is all available on the website, the actual version 33 00:02:30,160 --> 00:02:36,220 that I'm giving now, if you feel like a sense of longing for updated materials. And a lot 34 00:02:36,220 --> 00:02:39,480 of people contributed to this talk. Some of them deserve special attention. Joe Mokun, 35 00:02:39,620 --> 00:02:44,300 sitting in the front row here, has done a really great job. He's responsible for the 36 00:02:44,300 --> 00:02:50,020 updates to Hydra and to the Samba software that I'll be talking about. And he built the 37 00:02:50,020 --> 00:02:54,880 KizzApp prototype that we'll be talking about. Fen Fen did a lot of research and basically 38 00:02:54,880 --> 00:02:56,620 handed me the IE support that we're going to be talking about in a few minutes. And 39 00:02:56,620 --> 00:02:59,440 we're going to talk about on a platter, so I really didn't have to do anything but write 40 00:02:59,440 --> 00:03:04,340 some Perl. And then FizzGig, also sitting right up here with the elegant blue hair, helped 41 00:03:04,340 --> 00:03:09,840 a lot with teaching me how to work the development environment and getting it installed and stuff. 42 00:03:10,040 --> 00:03:14,160 I don't know how many of you have installed visualstudio.net recently, but it's not always 43 00:03:14,160 --> 00:03:15,380 a smooth and quick process. 44 00:03:16,040 --> 00:03:20,280 And also, I would like to get some style points for not using presentation software. I am 45 00:03:20,740 --> 00:03:24,340 always amazed that you come to hacker conferences and see everyone using PowerPoint or whatnot. 46 00:03:24,540 --> 00:03:25,400 It's very funny to me. 47 00:03:26,140 --> 00:03:26,540 Okay. 48 00:03:26,620 --> 00:03:31,660 So when you talk to expensive consultants about risk, which is what all security consultants 49 00:03:31,660 --> 00:03:36,700 will try to steer the topic to sooner or later, one of the common things that they talk to 50 00:03:36,700 --> 00:03:40,880 you about is trying to rank things numerically. And they say something along these lines. 51 00:03:40,940 --> 00:03:44,360 This is a common formula. There are others. But one of the common things that they say 52 00:03:44,360 --> 00:03:48,640 is that risk can be measured. And we say that this is the estimated annual rate of occurrence, 53 00:03:48,820 --> 00:03:53,340 in other words, how many times per year you think a bad thing will happen to you, multiplied 54 00:03:53,340 --> 00:03:56,000 by the estimated single loss expectancy. 55 00:03:56,000 --> 00:04:00,440 So in other words, how severe the consequences are for you. And hopefully you have this information 56 00:04:00,440 --> 00:04:05,180 in some sort of handy flipbook format that will show you exactly how bad things are for 57 00:04:05,180 --> 00:04:05,320 you. 58 00:04:06,360 --> 00:04:10,900 And from this, you should be able to calculate risk. So this is a well-known thing, and 59 00:04:10,900 --> 00:04:14,800 people have talked about it for a long, long time. But historically, people have a bad 60 00:04:14,800 --> 00:04:18,900 tendency to underestimate risk. And a good and interesting example of this is, at the 61 00:04:18,900 --> 00:04:24,100 end of World War II, the Allies embarked on something called Project TICOM, which is the 62 00:04:24,100 --> 00:04:31,160 US sent people in behind what was German-controlled territory, and they rounded up Nazi 63 00:04:31,160 --> 00:04:36,140 cryptographers. Now, it's well known probably to most people in this room from watching cool spy 64 00:04:36,140 --> 00:04:39,860 movies and stuff that towards the end of the war, the Allies had been reading a significant 65 00:04:39,860 --> 00:04:45,280 portion of Axis encrypted traffic. The Enigma machine was pretty much broken via a number of 66 00:04:45,280 --> 00:04:53,860 different avenues. And so the Allies wanted to know how much the Axis knew about this, how much 67 00:04:54,100 --> 00:04:58,340 aware were the Germans of this, because they wanted to go into business after the war selling 68 00:04:58,340 --> 00:05:01,880 Enigma machines to other foreign nations, and it would be convenient if the secret didn't 69 00:05:01,880 --> 00:05:05,540 get out. So they rounded up the cryptographers, and they said, hey, boys, what do you think? 70 00:05:05,840 --> 00:05:09,420 Did you know that your machines had any problems? And it turns out that when they talked to 71 00:05:09,420 --> 00:05:13,740 the actual technical crypto guys, they all knew there were problems. They all said, yeah, 72 00:05:13,760 --> 00:05:17,440 we know there are weaknesses in our system, and this or that thing might happen, but no 73 00:05:17,440 --> 00:05:20,980 one would ever really go to all that trouble. And so they were sort of banking on this. 74 00:05:20,980 --> 00:05:25,760 This is a documented thing. There's a link to a description of this in the bibliography. 75 00:05:26,880 --> 00:05:30,580 They knew that the Enigma system had problems, but they didn't think that anyone would go 76 00:05:30,580 --> 00:05:34,060 to the trouble of actually doing all the work to crack it. 77 00:05:35,280 --> 00:05:39,440 If you look at Michael Howard and David LeBlanc's book on writing secure code, it's a Microsoft 78 00:05:39,440 --> 00:05:44,280 Press book. It's actually a very good book. I like it a lot. They have in the, at the 79 00:05:44,280 --> 00:05:50,500 end, they have a top ten list of lame excuses that they've heard from developers about why 80 00:05:50,500 --> 00:05:53,900 they didn't make their software better. And two of the ones that I want to cite today 81 00:05:53,900 --> 00:06:01,220 were no one will do that, and also why would anyone do that. This is a very funny sort 82 00:06:01,220 --> 00:06:07,700 of lazy wrapper around the idea of security by obscurity. Security by obscurity is the 83 00:06:07,700 --> 00:06:14,240 mistaken belief that by hiding stuff you can actually control that annual rate of occurrence 84 00:06:14,240 --> 00:06:17,800 for your bad security events. That's what security by obscurity is all about. And, of 85 00:06:17,800 --> 00:06:19,940 course, the moment that the secret is out... 86 00:06:20,500 --> 00:06:23,600 you can have the annual rate of occurrence skyrocket. 87 00:06:25,860 --> 00:06:30,540 So, last year, I don't remember exactly when, I think summertime, 88 00:06:30,860 --> 00:06:38,160 there was a document published and a prominent security philosopher, thinker, was let go from his job. 89 00:06:38,300 --> 00:06:42,040 And never mind the fact that the place that he was let go from has a long history of letting people go. 90 00:06:42,520 --> 00:06:45,640 This is just sort of more interesting because it made headlines. 91 00:06:45,640 --> 00:06:50,620 One thing that people talked about was the fact that corporate partnerships 92 00:06:50,620 --> 00:06:56,160 were going to start having really chilling effects on security research, and this was a bad thing. 93 00:06:56,320 --> 00:07:02,020 And then another thing, one thesis of the article was that there was an analogy between 94 00:07:02,740 --> 00:07:06,440 operating system monocultures and monocultures in biological systems. 95 00:07:06,560 --> 00:07:09,360 And so if you had creatures that all had the same genetic defect, 96 00:07:09,400 --> 00:07:12,620 when a virus came that exploited that defect, they would all be wiped out. 97 00:07:12,680 --> 00:07:15,440 And this is why we have genetic diversity in nature. 98 00:07:15,640 --> 00:07:20,480 And so the theory was that maybe the same thing could be said of operating systems in large environments. 99 00:07:20,580 --> 00:07:24,440 If you have a bazillion systems and they all have the exact same security flaw, 100 00:07:24,600 --> 00:07:29,140 when somebody figures out how to do something with that flaw, all bazillion of them have troubles. 101 00:07:30,800 --> 00:07:32,780 So that in itself is a persuasive point. 102 00:07:32,860 --> 00:07:38,280 It doesn't necessarily prove that this is worth deploying multiple flawed operating systems in your environment, 103 00:07:38,420 --> 00:07:39,700 but it's an interesting thing to think about. 104 00:07:41,420 --> 00:07:43,820 So there was a lot of discussion about that too. 105 00:07:44,360 --> 00:07:45,500 And I, you know, 106 00:07:45,640 --> 00:07:46,400 kind of let it go. 107 00:07:46,480 --> 00:07:48,540 That was interesting at the time, and I forgot about it. 108 00:07:48,600 --> 00:07:53,620 And then I went on vacation and I read The Cuckoo's Egg, which is a kind of classic of computer security writing. 109 00:07:53,920 --> 00:08:00,760 And I had never read it before, and I was trying to catch up on my hacker trivia because I lost in the last round of Hacker Jeopardy last year to Kevin Mitnick's team, 110 00:08:00,820 --> 00:08:01,980 and I was very bitter about that. 111 00:08:02,300 --> 00:08:12,000 And so I thought, I read this, and in it, there was a really fascinating quote, which is reprinted lovingly in your conference programs, 112 00:08:12,100 --> 00:08:13,960 if you were to look at the blurb for my speech. 113 00:08:14,240 --> 00:08:15,200 And he talks, 114 00:08:15,640 --> 00:08:24,200 specifically about the Morris Internet Worm, which was, of course, a fascinating topic to me since that was the very question on the basis of which I had lost in Final Jeopardy at Hacker. 115 00:08:25,580 --> 00:08:34,800 And he talks about that very issue, and he talks about how that worm was a problem if you were running Berkeley Unix, 116 00:08:34,860 --> 00:08:38,240 but if you were running AT&T Unix, it was really not such a big deal for you. 117 00:08:38,400 --> 00:08:41,940 And so he's making the analogy right back then. 118 00:08:41,980 --> 00:08:43,800 He says, oh, it's just like viruses in nature. 119 00:08:44,420 --> 00:08:45,620 This was a book that came out in the early 2000s. 120 00:08:45,620 --> 00:08:49,460 This was a book that came out in 1989 and spent four months on the New York Times bestseller list. 121 00:08:49,860 --> 00:08:53,720 So what was the big idea when someone else just repeated that same idea? 122 00:08:54,540 --> 00:08:58,920 Why were people so upset when that same idea just got repeated in recent times? 123 00:09:01,260 --> 00:09:02,760 Well, here's my theory. 124 00:09:02,920 --> 00:09:07,220 It's sort of like the old Loft Heavy Industries website, making the theoretical practical. 125 00:09:07,540 --> 00:09:09,880 This idea had been around for a while. 126 00:09:10,160 --> 00:09:15,600 Everybody had absorbed it, but it had never been said by a real live security professional in a day. 127 00:09:15,620 --> 00:09:19,120 It was in a trade journal that people read, well, not in a trade journal, but in a publication that people would read. 128 00:09:19,820 --> 00:09:23,480 And it suddenly got a lot more scary when it was said in that atmosphere. 129 00:09:23,660 --> 00:09:25,340 And that was kind of interesting to me. 130 00:09:25,760 --> 00:09:28,140 So I thought, well, how can I get in on this action? 131 00:09:28,280 --> 00:09:32,760 What kind of old, crappy ideas can I dig up and make interesting? 132 00:09:33,220 --> 00:09:35,360 So we're going to address a few specific topics. 133 00:09:35,880 --> 00:09:39,480 One is discovery of trust relationships between Windows hosts. 134 00:09:39,680 --> 00:09:41,980 And when I say trust relationships, I'll define this a little bit later. 135 00:09:42,040 --> 00:09:45,600 But I'm just talking about if you hack one host, you basically inherit ownership of that host. 136 00:09:45,620 --> 00:09:46,420 You have the trust relationship of the one next door. 137 00:09:47,280 --> 00:09:51,320 Taking advantage of those trust relationships without the tedium of cracking passwords. 138 00:09:51,480 --> 00:09:54,280 Just being able to exploit that in a happy and quick way. 139 00:09:54,900 --> 00:10:01,460 Having fun with wireless interfaces that are perhaps a little too promiscuous or friendly with you. 140 00:10:01,620 --> 00:10:04,120 And then tinkering with poorly configured web browsers. 141 00:10:04,380 --> 00:10:08,960 And everybody already knows that these are problem areas. 142 00:10:09,140 --> 00:10:12,960 It should not come as a surprise to anyone in this room that there have recently been 143 00:10:12,960 --> 00:10:15,600 security discussions regarding each of these points. 144 00:10:15,600 --> 00:10:22,460 And we also know that if you were so blessed as to apply what the consultants tell us 145 00:10:22,460 --> 00:10:28,340 are best practices across your network, that you would fix 90 or even more percent of these problems. 146 00:10:28,860 --> 00:10:34,560 But in general, like the Nazi cryptographers at the end of World War II, people tend to 147 00:10:34,560 --> 00:10:39,760 kid themselves by thinking that they've taken care of these problems in some shortcut way. 148 00:10:39,840 --> 00:10:42,420 Or by thinking that the problems won't really affect them. 149 00:10:43,060 --> 00:10:44,140 And why is that? 150 00:10:44,240 --> 00:10:45,240 Because there isn't really... 151 00:10:45,240 --> 00:10:47,940 There isn't really an easy way to demonstrate these risks. 152 00:10:48,100 --> 00:10:52,900 So that's what I hope to provide today is a way of talking about these things in a more 153 00:10:52,900 --> 00:10:54,480 easily demonstrable manner. 154 00:10:55,040 --> 00:11:03,560 So I want to talk briefly about what I consider to be security equivalent hosts. 155 00:11:03,940 --> 00:11:09,520 These are hosts which have something in common with each other such that if you have compromised 156 00:11:09,520 --> 00:11:11,860 one, you've effectively compromised the other. 157 00:11:11,920 --> 00:11:15,220 You don't really have to do any work to have control or access to the other. 158 00:11:15,240 --> 00:11:20,280 So this is a situation in which the security of a community of hosts becomes equivalent 159 00:11:20,280 --> 00:11:22,000 to the security of the least common denominator. 160 00:11:22,260 --> 00:11:25,540 In other words, the weakest link is the one that will get us in. 161 00:11:25,720 --> 00:11:30,220 A classic example of this, I did some consulting for an insurance company a number of years 162 00:11:30,220 --> 00:11:33,940 back and their crown jewels were on an MVS system. 163 00:11:34,160 --> 00:11:37,260 That's where they did all of their real processing and that was really interesting. 164 00:11:37,920 --> 00:11:44,000 But MVS is a reasonably mature model with sort of good security. 165 00:11:44,240 --> 00:11:45,220 And it's not a problem. 166 00:11:45,240 --> 00:11:48,420 It's not like MVS O-Day gets out there very often. 167 00:11:48,920 --> 00:11:53,640 So they did a nice thing, though, because their users hated to have to remember passwords. 168 00:11:53,940 --> 00:11:57,540 They would synchronize passwords between their Windows domain and their MVS host so that 169 00:11:57,540 --> 00:12:00,580 when you logged into Windows, you didn't have to think of a whole other password when 170 00:12:00,580 --> 00:12:02,460 you wanted to get on to do your claims processing or whatnot. 171 00:12:02,740 --> 00:12:08,560 So this meant that if you could own the Windows domain, you owned major portions of MVS. 172 00:12:08,680 --> 00:12:10,280 That's security equivalence in action. 173 00:12:11,260 --> 00:12:14,620 You know, the Windows domain in those days was actually a relatively porous thing and 174 00:12:14,620 --> 00:12:15,220 you could get in one way or another. 175 00:12:15,240 --> 00:12:15,540 You could get in one way or another when you wanted. 176 00:12:15,800 --> 00:12:19,240 And that meant you could impersonate important corporate office entry. 177 00:12:20,020 --> 00:12:25,380 All right, so the dominant causes of this problem are lax policies or inconsistently 178 00:12:25,380 --> 00:12:27,060 – hey, that's better, isn't it, when I take my hand away? 179 00:12:28,100 --> 00:12:31,860 Inconsistently applied standards or shared passwords between platforms. 180 00:12:32,220 --> 00:12:34,440 Those are the dominant causes of these problems. 181 00:12:35,840 --> 00:12:43,020 All right, so when you go and look particularly at Windows networking for this symptom, there 182 00:12:43,020 --> 00:12:44,580 is a variety of… 183 00:12:45,360 --> 00:12:49,160 It's just sort of a mishmash of tools out there and they all take input in a slightly 184 00:12:49,160 --> 00:12:52,060 different way and they all give you output in a slightly different way. 185 00:12:52,480 --> 00:12:56,240 There are lots of little tools from different sources so that, you know, just like global 186 00:12:56,240 --> 00:13:01,580 and local from the NT resource kit or enum from the fine folks over at Razor at Vineview. 187 00:13:02,340 --> 00:13:06,180 They all, you know, want things, you know, sometimes you put two backslashes in front 188 00:13:06,180 --> 00:13:07,320 of the host name, sometimes you don't. 189 00:13:07,360 --> 00:13:11,420 They all give you just different kinds of output and they don't even necessarily work 190 00:13:11,420 --> 00:13:12,200 real consistently. 191 00:13:12,360 --> 00:13:14,500 Like, Active Directory system. 192 00:13:14,580 --> 00:13:17,640 These systems nowadays, some of these will puke out and not give you complete results 193 00:13:17,640 --> 00:13:18,180 and that's… 194 00:13:18,760 --> 00:13:20,760 Well, it's frustrating when you're trying to get complete results. 195 00:13:21,520 --> 00:13:29,040 So we would like something that gives us a single format for input and output so that 196 00:13:29,040 --> 00:13:30,340 we can be consistent about this. 197 00:13:30,440 --> 00:13:34,140 We would like it to be a simple command line executable so that it's easily wrapped by 198 00:13:34,140 --> 00:13:35,020 something like Perl. 199 00:13:35,180 --> 00:13:39,060 And we would like it to give our output in a way that's easily imported into things 200 00:13:39,060 --> 00:13:42,500 like a spreadsheet or a database or whatever other reporting tool we have so that we can 201 00:13:42,500 --> 00:13:42,960 give charts. 202 00:13:42,960 --> 00:13:47,100 Give charts of how many of your hosts suck or how many of them have bad, you know, this 203 00:13:47,100 --> 00:13:47,680 bad problem. 204 00:13:48,000 --> 00:13:51,880 And a consistent user interface so that when you're scripting it in Perl you know you've 205 00:13:51,880 --> 00:13:53,120 done it once, you can do it all the time. 206 00:13:53,780 --> 00:14:00,300 So this is really not aimed for the small environments where it's feasible to do this 207 00:14:00,300 --> 00:14:03,820 work by hand and you don't care that the output is funny and you have to munch it a little 208 00:14:03,820 --> 00:14:04,160 by hand. 209 00:14:04,260 --> 00:14:05,080 It's really not that much. 210 00:14:05,580 --> 00:14:10,640 And it's not really aimed at the really well-maintained large environment either because the results 211 00:14:10,640 --> 00:14:12,940 should be the same no matter what you're looking at. 212 00:14:12,940 --> 00:14:17,400 This is aimed at the large disorderly environment which is something that we encounter in our 213 00:14:17,400 --> 00:14:18,620 daily lives very often. 214 00:14:20,160 --> 00:14:23,180 Things with, you know, different generations of systems out there. 215 00:14:23,280 --> 00:14:25,320 They've had a few different rollouts of software and so forth. 216 00:14:25,480 --> 00:14:27,700 And we want to extract information from them. 217 00:14:28,260 --> 00:14:34,860 So I have begun work and it's included for you on the CD on the opportunistic Windows 218 00:14:34,860 --> 00:14:39,760 networking reporter which is a nice little utility, a command line utility. 219 00:14:40,140 --> 00:14:41,900 And it's a pretty simple thing. 220 00:14:41,900 --> 00:14:44,420 The base executable is just a stub. 221 00:14:44,600 --> 00:14:47,820 All it knows how to do is load a certain kind of library and call it. 222 00:14:48,420 --> 00:14:55,640 And so we have OWNR module files, .OMF files, and these just accept commands and run them. 223 00:14:56,000 --> 00:15:00,780 So that's just a DLL that exports a single function and the function is called go. 224 00:15:01,000 --> 00:15:06,260 And we provide a handful of them to you on your CD and these do a few things for you. 225 00:15:06,320 --> 00:15:10,920 They'll report the attributes of a user account, all the information that we can get from a 226 00:15:10,920 --> 00:15:11,400 user account. 227 00:15:11,900 --> 00:15:15,440 They'll report the membership of groups on a single host. 228 00:15:16,000 --> 00:15:18,160 And the output is just a simple stream. 229 00:15:18,280 --> 00:15:19,480 You can redirect it to a file. 230 00:15:19,620 --> 00:15:22,700 And we always try to get as much information as we can out of the API. 231 00:15:22,820 --> 00:15:25,560 We're not going to leave some parameters uncrossed. 232 00:15:25,580 --> 00:15:30,300 And so it's just this very simple architecture where we have an executable that calls other 233 00:15:30,300 --> 00:15:33,020 little libraries and they all have a single function that they export. 234 00:15:33,180 --> 00:15:36,520 And so the smarties in the audience are probably looking up here and saying, hey, dude, haven't 235 00:15:36,520 --> 00:15:39,220 you just reinvented com, only stupider? 236 00:15:40,020 --> 00:15:41,880 And so I would say, well, shut up. 237 00:15:41,900 --> 00:15:47,200 So let's have a little demonstration. 238 00:15:47,480 --> 00:15:51,220 And for this, I'm going to have to set the microphone down probably because I'm a bad 239 00:15:51,220 --> 00:15:55,000 one-handed typist and I'm trying to squeeze things into one corner of my screen anyway. 240 00:15:55,600 --> 00:15:57,020 But you'll notice a few things. 241 00:15:57,180 --> 00:16:03,440 When we run OWNR, we'll detect the presence of the different OMF libraries that are there. 242 00:16:04,320 --> 00:16:08,420 Each OMF knows enough to describe its own usage so that when you call it, it'll say 243 00:16:08,420 --> 00:16:10,560 how it should be called if you didn't know beforehand. 244 00:16:11,120 --> 00:16:15,200 Output is character delimited and it gathers more than just the basic information. 245 00:16:15,480 --> 00:16:19,920 So included on your CD, you have this and source code and all of the fun things you 246 00:16:19,920 --> 00:16:20,860 might want to go with that. 247 00:16:21,300 --> 00:16:23,120 You get a handful of the OMFs. 248 00:16:23,140 --> 00:16:27,000 You get a test program for debugging because it's a pain with a debugger to step into 249 00:16:27,000 --> 00:16:28,920 a library that you've loaded via load library. 250 00:16:29,080 --> 00:16:30,900 You want something that's actually linked with the executable. 251 00:16:31,040 --> 00:16:36,820 And there's a skeleton program for generating OMFs just to get you started, the OMF generator 252 00:16:36,820 --> 00:16:38,720 or as we call it, the OMFG. 253 00:16:39,160 --> 00:16:39,600 Okay. 254 00:16:39,640 --> 00:16:40,520 So here is... 255 00:16:41,100 --> 00:16:42,400 Here is the tool. 256 00:16:42,600 --> 00:16:51,140 Actually in action, I've got a little VMware session up here and oh, great. 257 00:16:54,580 --> 00:16:57,640 Well can we all see that well enough? 258 00:16:57,780 --> 00:16:57,900 Yeah. 259 00:16:57,960 --> 00:16:58,700 That's actually acceptable. 260 00:16:59,180 --> 00:16:59,660 Okay. 261 00:16:59,720 --> 00:17:01,160 So let's run it. 262 00:17:01,820 --> 00:17:02,300 OWNR. 263 00:17:03,940 --> 00:17:04,420 No. 264 00:17:04,480 --> 00:17:04,720 I'm okay. 265 00:17:04,780 --> 00:17:04,960 Thanks. 266 00:17:05,420 --> 00:17:08,440 And you'll see it detected that it found these different modules. 267 00:17:08,580 --> 00:17:10,540 And there's a lot of sort of debugging silliness. 268 00:17:10,560 --> 00:17:15,380 In here right now when we release the next version, we'll clean up some of that. 269 00:17:15,640 --> 00:17:17,900 But we say we have these modules. 270 00:17:18,180 --> 00:17:20,300 One that detects information about a user account. 271 00:17:20,540 --> 00:17:23,960 And then there's one that will detect information about all user accounts on a local machine. 272 00:17:24,120 --> 00:17:24,880 So let's just do that. 273 00:17:24,940 --> 00:17:26,620 I'm going to run that against my own machine right now. 274 00:17:32,000 --> 00:17:35,280 So then you specify the module that you want to run and where you want to run it. 275 00:17:37,520 --> 00:17:37,920 Okay. 276 00:17:37,920 --> 00:17:37,960 Okay. 277 00:17:40,140 --> 00:17:40,540 Okay. 278 00:17:44,420 --> 00:17:44,820 Okay. 279 00:17:46,940 --> 00:17:47,340 Okay. 280 00:17:51,240 --> 00:17:54,960 So what we want to do is, we're going to use our usual ender module. 281 00:17:55,080 --> 00:17:59,660 And sure enough, all the user information from my local box came back. 282 00:17:59,740 --> 00:18:03,460 And you can see that because of Visual Studio, I had the sequel debugger there and there's 283 00:18:03,460 --> 00:18:05,240 a test user account and we gathered it all. 284 00:18:05,340 --> 00:18:06,000 And that's kind of fun. 285 00:18:06,180 --> 00:18:09,760 Now, what's nice about this is we've got our field separated. 286 00:18:09,760 --> 00:18:12,800 with a single colon between the name of a value 287 00:18:12,800 --> 00:18:13,620 and the value itself, 288 00:18:13,900 --> 00:18:16,120 and then a double colon between value pairs. 289 00:18:16,400 --> 00:18:18,480 So this is really nice for importing 290 00:18:18,480 --> 00:18:20,640 into a single unified reporting framework 291 00:18:20,640 --> 00:18:24,800 so that you can just use tools like grep or awk 292 00:18:24,800 --> 00:18:26,500 or whatever you like to parse through that. 293 00:18:29,400 --> 00:18:31,780 All right, let's hop out of VMware now. 294 00:18:31,940 --> 00:18:34,720 And we've used this in production now a little bit. 295 00:18:35,660 --> 00:18:38,720 And I'm going to get myself a little console window here. 296 00:18:43,680 --> 00:18:45,700 And get that over onto the screen. 297 00:18:47,060 --> 00:18:48,560 And I'll be right back. 298 00:18:58,700 --> 00:19:02,960 Okay, so this is a suite of actual data 299 00:19:02,960 --> 00:19:07,340 captured in the wild from a network of about 500 machines. 300 00:19:07,560 --> 00:19:09,720 And we're going to show how this tool 301 00:19:09,720 --> 00:19:12,660 can actually allow us to derive somewhat interesting information. 302 00:19:14,020 --> 00:19:16,760 And I actually am going to grab this up. 303 00:19:19,700 --> 00:19:20,600 Thank you, KK. 304 00:19:26,080 --> 00:19:27,360 Woo, hands free. 305 00:19:28,260 --> 00:19:32,980 Okay, so I have scrubbed this data 306 00:19:32,980 --> 00:19:36,240 so that you can't tell who it is, I hope. 307 00:19:36,820 --> 00:19:38,540 And so we're going to... 308 00:19:39,720 --> 00:19:41,300 One of the interesting things about this data 309 00:19:41,300 --> 00:19:44,000 was that we found that the... 310 00:19:44,000 --> 00:19:46,720 We were already domain administrators by the time we ran this, 311 00:19:46,800 --> 00:19:47,880 so we could get a lot of information. 312 00:19:48,420 --> 00:19:50,500 But what's interesting about it is that 313 00:19:50,500 --> 00:19:52,180 there was information that, 314 00:19:53,420 --> 00:19:55,020 well, just being a domain administrator 315 00:19:55,020 --> 00:19:56,580 sometimes isn't all you need. 316 00:19:56,740 --> 00:19:58,760 Sometimes you need to be able to show people 317 00:19:59,180 --> 00:20:00,720 that this has real consequences. 318 00:20:00,940 --> 00:20:03,280 So what if we looked for the string CEO in there? 319 00:20:03,400 --> 00:20:05,340 Because there might be a user account for the CEO. 320 00:20:11,380 --> 00:20:13,040 Oh, sure enough, there is. 321 00:20:13,640 --> 00:20:14,420 That's interesting. 322 00:20:14,580 --> 00:20:16,580 Now, I have scrubbed the CEO's name, 323 00:20:16,740 --> 00:20:18,380 and he is just now user 160. 324 00:20:19,280 --> 00:20:22,680 Now, user 160 shows up on the domain controllers. 325 00:20:22,880 --> 00:20:23,400 Okay, great. 326 00:20:23,460 --> 00:20:26,360 So user 160 has an account on these domain controllers, 327 00:20:26,440 --> 00:20:27,180 and that's very interesting. 328 00:20:27,540 --> 00:20:29,640 What else can we learn about user 160? 329 00:20:34,860 --> 00:20:37,480 So this is just the simplest possible query, 330 00:20:38,020 --> 00:20:39,620 and we don't have enough... 331 00:20:39,620 --> 00:20:41,000 screen real estate to have it all on there. 332 00:20:41,080 --> 00:20:42,420 But what's interesting is here is 333 00:20:43,080 --> 00:20:45,500 a machine that's not a domain controller, 334 00:20:46,020 --> 00:20:50,600 and the local administrators group contains user 160. 335 00:20:50,920 --> 00:20:52,660 So here's a machine that we might not... 336 00:20:52,660 --> 00:20:53,820 We might have overlooked otherwise, 337 00:20:54,260 --> 00:20:55,880 but it happens to be a machine 338 00:20:55,880 --> 00:20:59,220 where the CEO has been added to the administrators group, 339 00:20:59,280 --> 00:21:01,160 which suggests that it would be an interesting machine 340 00:21:01,160 --> 00:21:02,200 for further analysis. 341 00:21:02,320 --> 00:21:03,920 There might be valuable things there. 342 00:21:04,540 --> 00:21:06,480 And that was something that you wouldn't necessarily 343 00:21:06,480 --> 00:21:09,300 have determined easily had you not been able to 344 00:21:09,620 --> 00:21:12,020 quickly sort through this large body of information. 345 00:21:13,620 --> 00:21:16,760 So, you know, again, I'm not really inventing anything new 346 00:21:16,760 --> 00:21:17,520 or fascinating here. 347 00:21:17,580 --> 00:21:20,060 I'm just making some stuff easier that was tedious before. 348 00:21:21,180 --> 00:21:24,980 All right, so now it's time for a little musical interlude. 349 00:21:25,160 --> 00:21:27,580 This is from the book... 350 00:21:28,100 --> 00:21:29,080 Which one is this from? 351 00:21:29,300 --> 00:21:32,180 This is from Cyber Thief and the Samurai. 352 00:21:32,220 --> 00:21:35,400 So I was telling you I was reading a lot of hacker trivia, 353 00:21:35,520 --> 00:21:36,980 and the focus of this was largely 354 00:21:36,980 --> 00:21:38,560 Kevin Mitnick hacker-related trivia. 355 00:21:39,620 --> 00:21:41,480 And the Christmas attack on his machines, 356 00:21:43,160 --> 00:21:46,680 Mr. Shimomura went and spoke at a conference, 357 00:21:46,900 --> 00:21:48,660 and I forget the exact name of the conference, 358 00:21:48,780 --> 00:21:49,840 and trivia buffs in the audience 359 00:21:49,840 --> 00:21:50,960 probably haven't forgotten that. 360 00:21:51,060 --> 00:21:53,520 But anyway, he went and tried to explain 361 00:21:53,520 --> 00:21:54,660 the nature of the attack, 362 00:21:54,760 --> 00:21:57,240 which was based on trust relationships by IP address, right? 363 00:21:57,300 --> 00:22:01,260 Certain IP addresses were trusted to come into his machine. 364 00:22:01,360 --> 00:22:03,040 We were unaware, or rather, 365 00:22:03,120 --> 00:22:07,100 we hadn't really taken seriously the threat of IP spoofing yet. 366 00:22:08,360 --> 00:22:09,600 So here's the question. 367 00:22:09,600 --> 00:22:11,780 Of course, Tsutomu didn't have to explain 368 00:22:11,780 --> 00:22:13,280 the technical details to this crowd. 369 00:22:13,840 --> 00:22:15,960 The system's vulnerability had been known for a long time. 370 00:22:16,020 --> 00:22:17,440 Two respected security experts, 371 00:22:17,580 --> 00:22:19,120 Robert Morris and Steve Belivin, 372 00:22:19,200 --> 00:22:21,080 had published papers about it years earlier. 373 00:22:21,440 --> 00:22:23,760 But it was such an elaborate method of attack 374 00:22:23,760 --> 00:22:25,260 that it had rarely been used. 375 00:22:25,440 --> 00:22:27,460 In computer security lingo, it was non-trivial. 376 00:22:27,540 --> 00:22:29,040 That meant that it required a lot of time, 377 00:22:29,200 --> 00:22:31,460 a lot of patience, and a lot of guts. 378 00:22:32,080 --> 00:22:33,700 Not only that, but much of the attack 379 00:22:33,700 --> 00:22:34,880 appeared to have been automated. 380 00:22:35,040 --> 00:22:37,100 That is, someone had written a computer program 381 00:22:37,560 --> 00:22:38,480 which carried out the attack. 382 00:22:38,580 --> 00:22:39,580 That made the attack all the more complicated. 383 00:22:39,600 --> 00:22:41,240 Even more alarming, because it meant 384 00:22:41,240 --> 00:22:42,320 that it could be done by anyone 385 00:22:42,320 --> 00:22:43,720 with enough savvy to run the script, 386 00:22:43,880 --> 00:22:45,940 which meant, basically, that someone 387 00:22:45,940 --> 00:22:48,020 with slightly above average technical knowledge, 388 00:22:48,100 --> 00:22:49,300 by hacker standards, that is, 389 00:22:49,320 --> 00:22:51,200 like Kevin, might indeed be able to pull it off. 390 00:22:51,380 --> 00:22:53,260 So this raises a couple really interesting questions. 391 00:22:53,420 --> 00:22:54,520 And the first, in my mind, is, 392 00:22:54,580 --> 00:22:55,980 how come nobody can string together 393 00:22:55,980 --> 00:22:57,900 about five sentences regarding Kevin Mitnick 394 00:22:57,900 --> 00:23:00,400 without describing him as a substandard hacker? 395 00:23:00,560 --> 00:23:01,240 I don't really get that. 396 00:23:01,440 --> 00:23:04,660 But anyway, what is also interesting here 397 00:23:04,660 --> 00:23:05,920 is that this is a known vulnerability, 398 00:23:06,340 --> 00:23:09,000 known by smarties in the industry, 399 00:23:09,600 --> 00:23:10,580 yet it was mostly overlooked, 400 00:23:10,660 --> 00:23:12,060 because no one thought people would go 401 00:23:12,060 --> 00:23:14,740 to the trouble of figuring it out, 402 00:23:14,780 --> 00:23:17,020 and actually making it usable. 403 00:23:17,380 --> 00:23:20,320 So, if you want to write your own OMFs 404 00:23:20,320 --> 00:23:24,480 to determine interesting facts of your own interest, 405 00:23:24,960 --> 00:23:25,880 here's how you do it. 406 00:23:25,940 --> 00:23:27,580 You must export at least one function. 407 00:23:27,740 --> 00:23:29,520 It must have the following prototype. 408 00:23:29,720 --> 00:23:31,000 So it's just like main, basically. 409 00:23:31,740 --> 00:23:33,080 It should be thread safe, 410 00:23:33,180 --> 00:23:36,500 because soon we are bringing you multi-threadedness. 411 00:23:37,020 --> 00:23:39,580 It should return one of the meaningful return codes, 412 00:23:39,600 --> 00:23:41,000 defining the header files for you. 413 00:23:41,140 --> 00:23:43,440 And it should accurately show usage information 414 00:23:43,440 --> 00:23:45,000 when it's invoked improperly. 415 00:23:45,380 --> 00:23:47,700 So you should note any other modules 416 00:23:47,700 --> 00:23:48,860 that it depends on, and so forth. 417 00:23:49,060 --> 00:23:53,120 If you do those things, and you make yourself an OMF, 418 00:23:53,220 --> 00:23:54,820 then it is free for everyone to share. 419 00:23:55,040 --> 00:23:56,760 You don't need to do any complicated installation 420 00:23:56,760 --> 00:23:57,700 or uninstallation. 421 00:23:58,360 --> 00:24:01,400 OWNR just detects the OMF when it is in the same directory. 422 00:24:02,000 --> 00:24:03,860 There's no conflicts with other versions 423 00:24:03,860 --> 00:24:04,620 or anything like that, 424 00:24:04,700 --> 00:24:06,900 and each one can call others that are present 425 00:24:07,520 --> 00:24:08,540 in a happy way, 426 00:24:08,540 --> 00:24:11,020 because they all export things exactly the same way. 427 00:24:11,120 --> 00:24:13,980 So if you want to reuse some of that code, 428 00:24:14,100 --> 00:24:14,560 go right ahead. 429 00:24:16,040 --> 00:24:18,220 And hopefully this will be interesting. 430 00:24:20,060 --> 00:24:22,480 So the idea of this is to give us the ability 431 00:24:22,480 --> 00:24:23,400 to sort output nicely, 432 00:24:23,480 --> 00:24:25,400 and I've shown a little bit about how that might be used. 433 00:24:25,500 --> 00:24:26,800 You can use the tools of your choice, 434 00:24:28,020 --> 00:24:33,200 and support your audience in a user-friendly reporting manner. 435 00:24:34,500 --> 00:24:37,640 Our goal is to try to provide more authoritative answers 436 00:24:37,640 --> 00:24:38,460 to questions like, 437 00:24:38,540 --> 00:24:40,600 well, if we have access to an account on one machine, 438 00:24:40,720 --> 00:24:41,960 where else might that be helpful? 439 00:24:42,180 --> 00:24:44,880 Or what percentage of machines have non-standard accounts 440 00:24:44,880 --> 00:24:46,680 or non-standard password policies? 441 00:24:46,920 --> 00:24:48,780 Or if we have control of this one machine, 442 00:24:48,900 --> 00:24:52,660 what other ones are available to us? 443 00:24:53,540 --> 00:24:58,340 All right, so let's step back for a moment and note 444 00:24:58,340 --> 00:25:00,700 that another old and familiar fact is 445 00:25:00,700 --> 00:25:03,200 that Windows authentication is vulnerable to replay attacks. 446 00:25:03,500 --> 00:25:04,460 This isn't news. 447 00:25:05,660 --> 00:25:08,520 You see the encrypted hash fly across on a network, 448 00:25:08,540 --> 00:25:10,000 and everybody knows you could replay that 449 00:25:10,000 --> 00:25:11,620 and be authenticated to a Windows device. 450 00:25:12,240 --> 00:25:17,220 There's a tool that's from, what, about 94 or something, 451 00:25:17,760 --> 00:25:21,240 an old tool called SMB Proxy, which claims to do this. 452 00:25:21,640 --> 00:25:23,940 We were never smart enough to get it to work. 453 00:25:26,720 --> 00:25:29,000 But it really would be nice to have that. 454 00:25:29,200 --> 00:25:30,880 And so it's been historically kind of inconvenient 455 00:25:30,880 --> 00:25:32,360 to take advantage of this fact. 456 00:25:32,960 --> 00:25:36,500 And so people, because it's been inconvenient 457 00:25:36,500 --> 00:25:38,400 to take advantage of that, people have, 458 00:25:38,540 --> 00:25:40,340 you know, underestimated the risk of compromise 459 00:25:40,340 --> 00:25:41,560 to local administrator accounts. 460 00:25:41,720 --> 00:25:43,160 And I really wish I had been able to attend 461 00:25:43,160 --> 00:25:45,440 the previous talk on locking down workstations, 462 00:25:45,500 --> 00:25:47,700 because this is exactly what I'm interested in. 463 00:25:47,940 --> 00:25:50,820 So wouldn't it be nice to quickly check to see 464 00:25:50,820 --> 00:25:53,840 if a given password hash is reused elsewhere on the network? 465 00:25:54,040 --> 00:25:57,360 And wouldn't it also be nice, in the event that it is reused 466 00:25:57,360 --> 00:25:59,580 and you do find it to be successful someplace, 467 00:25:59,840 --> 00:26:01,820 to be able to mount file systems over there 468 00:26:01,820 --> 00:26:03,940 or to schedule commands and run them? 469 00:26:04,200 --> 00:26:06,400 Why, yes, I think it would. 470 00:26:07,020 --> 00:26:08,420 So and here is where Jomo 471 00:26:08,540 --> 00:26:09,740 Kun's contribution comes in. 472 00:26:10,340 --> 00:26:12,740 If you are familiar with Hydra, 473 00:26:12,840 --> 00:26:16,880 the fantastic password Swiss Army knife tool from THC, 474 00:26:17,000 --> 00:26:20,420 you are already familiar with many of the things that this does. 475 00:26:20,620 --> 00:26:22,520 And Jomo Kun has added enhancements to it 476 00:26:22,520 --> 00:26:24,780 to do many things, look for Cisco enabled passwords 477 00:26:24,780 --> 00:26:26,340 and so forth, you know, just grind on them. 478 00:26:27,560 --> 00:26:30,460 And concurrent password guessing 479 00:26:30,460 --> 00:26:33,420 on multiple Windows hosts is what's interesting about this. 480 00:26:33,480 --> 00:26:35,100 And I say multi-threading and he corrected me. 481 00:26:35,180 --> 00:26:37,700 It's actually using fork, it's not really threads. 482 00:26:37,700 --> 00:26:41,180 So but multiple concurrent attacks on Windows machines. 483 00:26:41,440 --> 00:26:43,600 Lots of tools don't have this built in. 484 00:26:43,680 --> 00:26:45,420 Most Windows password grinders are going to go 485 00:26:45,420 --> 00:26:47,860 after one machine with a dictionary and an account list 486 00:26:48,260 --> 00:26:50,620 because only one session at a time is possible 487 00:26:50,620 --> 00:26:51,580 between two hosts. 488 00:26:51,760 --> 00:26:53,280 But we could have multiple sessions 489 00:26:53,280 --> 00:26:54,880 if we just targeted them at different hosts. 490 00:26:55,040 --> 00:26:57,280 So now you can quickly check to see whether credentials 491 00:26:57,280 --> 00:26:59,360 are shared in a large Windows environment. 492 00:26:59,820 --> 00:27:03,380 And you can also rapidly lock out accounts this way. 493 00:27:03,440 --> 00:27:04,420 So be gentle. 494 00:27:05,520 --> 00:27:07,580 So you could take a password hash 495 00:27:07,700 --> 00:27:11,840 table like pwdumpoutput and give that as input 496 00:27:11,840 --> 00:27:14,640 to this new Hydra thing that he's got. 497 00:27:14,940 --> 00:27:16,680 And so without cracking passwords, 498 00:27:16,860 --> 00:27:19,060 you can tell whether they are good on other boxes. 499 00:27:19,480 --> 00:27:22,200 Just without having to decrypt them, without having to, 500 00:27:22,680 --> 00:27:25,780 you know, run John or shell out for Loftcrack or whatever, 501 00:27:25,940 --> 00:27:28,740 you can just do this nice and fast, find out if the password 502 00:27:28,740 --> 00:27:30,100 that you, password database 503 00:27:30,100 --> 00:27:33,280 that you've captured gives you access to anything else. 504 00:27:33,500 --> 00:27:36,320 Now getting this to work for you may be a bit of a challenge. 505 00:27:36,800 --> 00:27:37,680 THC has a 10-year history 506 00:27:37,700 --> 00:27:40,400 and a tendency to release outputs that break the stuff 507 00:27:40,400 --> 00:27:41,660 that Jomo Kuhn has contributed. 508 00:27:42,040 --> 00:27:44,080 They acknowledge that his contribution is 509 00:27:44,080 --> 00:27:46,160 in the source tree, but then the next generation 510 00:27:46,160 --> 00:27:50,160 of code somehow, you know, walks all over whatever he did. 511 00:27:50,380 --> 00:27:53,760 So there are patches that work, but you may not be able 512 00:27:53,760 --> 00:27:55,320 to run the bleeding edge version of the code. 513 00:27:55,420 --> 00:27:57,120 And this is where you should go to get them. 514 00:27:57,480 --> 00:27:59,440 Again, that link is also on your CD, et cetera. 515 00:27:59,800 --> 00:28:02,380 And work is underway on a more elegant design 516 00:28:02,380 --> 00:28:04,560 that actually uses threads and is built from the ground 517 00:28:04,560 --> 00:28:05,780 up to do this task right. 518 00:28:05,780 --> 00:28:08,100 And someday that will be available. 519 00:28:08,920 --> 00:28:10,460 Okay, so we've now been able 520 00:28:10,460 --> 00:28:13,880 to tell whether a password hash is reused someplace else 521 00:28:13,880 --> 00:28:15,120 on the network, and that's pretty fun. 522 00:28:15,760 --> 00:28:19,180 So theoretically, armed with this knowledge, we should be able 523 00:28:19,180 --> 00:28:21,380 to mount a remote file system without having 524 00:28:21,380 --> 00:28:22,820 to know that cracked password. 525 00:28:22,960 --> 00:28:24,760 And we should be able to schedule tasks remotely 526 00:28:24,760 --> 00:28:26,140 without knowing that cracked password. 527 00:28:26,340 --> 00:28:27,880 And again, this is all available 528 00:28:27,880 --> 00:28:29,820 for your enjoyment thanks to Jomo Kuhn. 529 00:28:29,920 --> 00:28:32,640 We've got patches to Samba 3, which are good 530 00:28:32,640 --> 00:28:35,700 for mounting remote file systems, and also to Samba T, 531 00:28:35,780 --> 00:28:37,920 and Samba TNG, and Samba TNG is the one that we like 532 00:28:37,920 --> 00:28:39,320 for scheduling remote commands. 533 00:28:40,940 --> 00:28:42,800 It's a little flaky for some other things. 534 00:28:43,000 --> 00:28:45,040 But it's good, good stuff. 535 00:28:45,180 --> 00:28:47,180 Again, taking PW dump output and using that 536 00:28:47,660 --> 00:28:49,560 for authentication to remote hosts. 537 00:28:49,960 --> 00:28:51,500 So what is the point of this again? 538 00:28:51,680 --> 00:28:53,300 You know, now that I've been rambling for a little while. 539 00:28:54,020 --> 00:28:56,320 Note that I am not telling you 540 00:28:56,320 --> 00:28:58,120 about anything you don't already know. 541 00:28:58,200 --> 00:29:00,620 The technical vulnerability is a well-known one 542 00:29:00,620 --> 00:29:01,780 and has been for some time. 543 00:29:02,000 --> 00:29:04,360 We haven't invented any new techniques either. 544 00:29:04,480 --> 00:29:05,460 Everyone has told us 545 00:29:05,780 --> 00:29:07,280 for a long time that you can replay the same data 546 00:29:07,280 --> 00:29:08,520 across the network and get results. 547 00:29:09,000 --> 00:29:11,880 All we're doing is making this a little bit more easy 548 00:29:11,880 --> 00:29:13,280 and accessible and maybe scary. 549 00:29:13,640 --> 00:29:15,260 So for instance, having seen this, 550 00:29:15,320 --> 00:29:17,040 is there anyone here who thinks it's still a good idea 551 00:29:17,040 --> 00:29:18,300 to have a local administrator account 552 00:29:18,300 --> 00:29:20,020 with the same password on every workstation? 553 00:29:22,600 --> 00:29:23,840 Yeah, that guy, okay. 554 00:29:25,240 --> 00:29:27,640 And everybody knows that it's a good idea 555 00:29:27,640 --> 00:29:29,420 to minimize the number of local accounts, right? 556 00:29:29,440 --> 00:29:31,020 Because local accounts are always gonna be one 557 00:29:31,020 --> 00:29:32,580 with the username the same as the password 558 00:29:32,580 --> 00:29:33,620 or without a password on it. 559 00:29:33,680 --> 00:29:34,880 Somebody's always gonna screw that up. 560 00:29:34,880 --> 00:29:36,360 So everyone knows that it's a good idea 561 00:29:36,360 --> 00:29:38,080 to minimize local accounts usage. 562 00:29:38,340 --> 00:29:41,500 And this is why, because with local account access 563 00:29:41,500 --> 00:29:44,340 to a machine, I might be able to get other things, 564 00:29:44,380 --> 00:29:45,980 you know, shared with the domain and so forth. 565 00:29:46,560 --> 00:29:49,360 So the expensive consultants have been telling people 566 00:29:49,360 --> 00:29:51,660 for a long time, move towards a kerberized environment, 567 00:29:52,400 --> 00:29:55,200 harden your workstations, use an active directory design 568 00:29:55,200 --> 00:29:56,540 that compartmentalizes privileges. 569 00:29:57,040 --> 00:29:58,800 Now there's maybe a little bit more motivation. 570 00:29:59,020 --> 00:30:00,100 How many of you have heard that 571 00:30:00,100 --> 00:30:01,220 from an expensive consultant? 572 00:30:02,860 --> 00:30:04,080 How many of you have been 573 00:30:04,080 --> 00:30:06,020 the expensive consultant and have been ignored? 574 00:30:06,200 --> 00:30:08,260 Much greater response, okay, good. 575 00:30:10,920 --> 00:30:14,760 All right, so that was some fun with Windows Credentials. 576 00:30:16,220 --> 00:30:18,080 It also comes as no surprise 577 00:30:18,080 --> 00:30:19,840 that browser security is a hot topic. 578 00:30:19,940 --> 00:30:21,500 There are a number of great resources out there. 579 00:30:23,000 --> 00:30:26,360 Georgi Guninsky's resources are fun and interesting to read. 580 00:30:26,780 --> 00:30:28,760 Malware.com is my personal favorite. 581 00:30:28,860 --> 00:30:29,980 Lots of great stuff there. 582 00:30:30,120 --> 00:30:32,800 And Lu Dayu's got a good collection of things to look at. 583 00:30:34,080 --> 00:30:36,320 But so far, most browser attacks have been 584 00:30:36,740 --> 00:30:38,900 what the defense people that I talk to 585 00:30:38,900 --> 00:30:40,460 call disorganized threats. 586 00:30:40,780 --> 00:30:42,980 They're a menace, they can do bad things to you, 587 00:30:43,040 --> 00:30:47,000 but they're not really targeted at specific individuals. 588 00:30:47,640 --> 00:30:50,000 They're usually targeted towards a victim community 589 00:30:50,000 --> 00:30:52,800 which includes everyone who has this version of the browser, 590 00:30:52,880 --> 00:30:53,900 or everyone who is vulnerable. 591 00:30:54,260 --> 00:30:59,220 We're not really looking at a specific victim in mind 592 00:30:59,220 --> 00:31:01,360 and saying, well, we're gonna go after this person 593 00:31:01,360 --> 00:31:03,320 or this organization with a browser split. 594 00:31:03,320 --> 00:31:05,520 Does that mean we don't need to worry about it 595 00:31:05,520 --> 00:31:06,700 because it would be hard to do? 596 00:31:07,020 --> 00:31:07,960 Not necessarily. 597 00:31:09,400 --> 00:31:11,560 And this is Fen Fen's contribution, 598 00:31:11,820 --> 00:31:14,140 and this is another little program that's available 599 00:31:14,140 --> 00:31:16,620 in the .bz file on your CD. 600 00:31:18,860 --> 00:31:21,520 The malware.com website has a write-up 601 00:31:21,520 --> 00:31:23,120 of what they call the malicious shortcut 602 00:31:23,120 --> 00:31:25,480 self-executing HTML vulnerability, 603 00:31:25,820 --> 00:31:29,240 which Fen Fen laid on my desk one morning 604 00:31:29,240 --> 00:31:30,240 and said, hey, look at this. 605 00:31:30,560 --> 00:31:33,080 So it's pretty interesting, and I'll spend a couple seconds 606 00:31:33,080 --> 00:31:33,800 on how it works. 607 00:31:33,920 --> 00:31:38,400 We write a webpage that initializes an ActiveX control 608 00:31:38,400 --> 00:31:39,760 called shell.application. 609 00:31:40,100 --> 00:31:42,120 Now that's a one that everybody has, 610 00:31:42,260 --> 00:31:43,800 but most people have it, you know, 611 00:31:43,820 --> 00:31:45,280 we don't allow that to be initialized. 612 00:31:46,980 --> 00:31:50,820 We use shell.application to copy a shortcut file, 613 00:31:51,000 --> 00:31:52,960 and the malware.com proof of concept code 614 00:31:52,960 --> 00:31:55,400 uses the shortcut to paint.exe 615 00:31:55,400 --> 00:31:56,940 because they figure everyone's gonna have paint 616 00:31:56,940 --> 00:31:58,460 on their start menu. 617 00:31:58,620 --> 00:32:00,400 So we're gonna copy that shortcut file, 618 00:32:00,540 --> 00:32:02,760 but we're gonna alter the target of that shortcut, 619 00:32:03,080 --> 00:32:05,840 to an HTA file that's housed elsewhere 620 00:32:05,840 --> 00:32:08,080 on a server that we own, okay? 621 00:32:08,240 --> 00:32:11,440 And we're going to launch MSHTA to download 622 00:32:11,440 --> 00:32:13,680 and interpret the code in the HTA file 623 00:32:13,680 --> 00:32:15,460 that we've got on our evil server. 624 00:32:15,940 --> 00:32:18,680 So the HTA file, when it finally gets downloaded 625 00:32:18,680 --> 00:32:20,700 and executed, has little VB script 626 00:32:20,700 --> 00:32:23,420 that writes the contents of an executable image 627 00:32:23,420 --> 00:32:26,260 to the hard disk, and then loads and executes that image. 628 00:32:26,520 --> 00:32:29,880 So it's, you know, multiple steps to get there. 629 00:32:30,060 --> 00:32:32,900 So it sure would be nice if we could change that 630 00:32:33,080 --> 00:32:35,220 to a proof of concept HTA to include 631 00:32:35,220 --> 00:32:36,540 whatever executable we wanted. 632 00:32:37,340 --> 00:32:38,880 So, here's a way to do that. 633 00:32:39,160 --> 00:32:40,980 Take the executable of your choice 634 00:32:40,980 --> 00:32:43,780 and put it in a directory with these files 635 00:32:43,780 --> 00:32:45,500 that I've given you, there's a top and a bottom, 636 00:32:45,580 --> 00:32:47,340 these are just wrappers for your executable. 637 00:32:47,460 --> 00:32:49,140 And then you run this little script, hexify, 638 00:32:49,620 --> 00:32:51,160 which generates a middle file, 639 00:32:51,340 --> 00:32:52,800 and then you cat those three together. 640 00:32:53,720 --> 00:32:56,520 You can send an attachment to your intended victim, 641 00:32:57,120 --> 00:32:59,020 and that attachment contains a form 642 00:32:59,740 --> 00:33:02,000 that submits itself to your web server, 643 00:33:02,000 --> 00:33:04,600 so in other words, it automatically submits itself 644 00:33:04,600 --> 00:33:06,760 to your web server, the submission will force 645 00:33:06,760 --> 00:33:11,240 the vulnerable web client to download an HTML file 646 00:33:11,240 --> 00:33:14,560 that does the shell.application ActiveX trick. 647 00:33:14,960 --> 00:33:17,560 If the browser there is an unwary one, 648 00:33:17,680 --> 00:33:19,780 it will download and execute the script in phase two, 649 00:33:19,880 --> 00:33:21,720 which now includes the executable 650 00:33:21,720 --> 00:33:22,980 that you have put in there. 651 00:33:23,340 --> 00:33:25,800 And so, the executable also, I'm sorry, 652 00:33:25,920 --> 00:33:31,880 the phase two, I'm sorry, phase one.html is nice too, 653 00:33:32,000 --> 00:33:34,460 because it actually redirects the user 654 00:33:34,460 --> 00:33:35,660 to the website of your choice, 655 00:33:35,740 --> 00:33:37,300 so they may not even really have realized 656 00:33:37,300 --> 00:33:38,700 that they visited this hostile site, 657 00:33:38,800 --> 00:33:39,960 it redirects them someplace good. 658 00:33:40,160 --> 00:33:42,460 This is a trick stolen from Svir Husby's book 659 00:33:42,460 --> 00:33:45,840 on writing secure code called Innocent Code, 660 00:33:46,000 --> 00:33:48,080 which is a fantastic book, I recommend it, it's really great. 661 00:33:50,060 --> 00:33:52,360 So, that's all, you know, good and fun, 662 00:33:52,440 --> 00:33:54,560 and we've included, the sample that we've included 663 00:33:54,560 --> 00:33:56,340 is one that we have tried out in production also. 664 00:33:56,480 --> 00:34:01,960 It just, it's a stupid little program that does, 665 00:34:02,000 --> 00:34:04,200 a couple of things, it calls get computer name 666 00:34:04,200 --> 00:34:07,560 and get user name, and then it issues a get to foofus.net 667 00:34:07,560 --> 00:34:10,360 with those as parameters, so it's like get whatever, 668 00:34:10,540 --> 00:34:13,580 question mark, my user name is, my computer name is. 669 00:34:13,720 --> 00:34:15,740 So, it doesn't really do anything that bad, 670 00:34:15,860 --> 00:34:18,500 and properly configured browsers should not allow 671 00:34:18,500 --> 00:34:20,640 the initialization of that ActiveX control, 672 00:34:21,300 --> 00:34:25,060 and even up to date antivirus should catch that file, 673 00:34:25,180 --> 00:34:27,840 because antivirus vendors are getting wary 674 00:34:27,840 --> 00:34:30,060 to this sort of thing now, and sure enough, 675 00:34:30,700 --> 00:34:31,980 our company's antivirus, 676 00:34:32,420 --> 00:34:35,140 we'll catch that, and I mean, we're not an antivirus vendor, 677 00:34:35,260 --> 00:34:36,940 but the one that we have installed on our desktops. 678 00:34:37,680 --> 00:34:41,200 We'll catch that and say, oh, bad stuff came over the web, 679 00:34:41,340 --> 00:34:44,240 help, so we sent this out to some people. 680 00:34:44,320 --> 00:34:45,120 Did we get any results? 681 00:34:45,400 --> 00:34:46,880 Well, we found a couple of things. 682 00:34:46,980 --> 00:34:49,320 The first was that a lot of antivirus didn't block things 683 00:34:49,320 --> 00:34:50,320 before they got executed. 684 00:34:50,560 --> 00:34:52,880 It would detect them and say that this was a bad thing, 685 00:34:53,000 --> 00:34:55,260 but it was already too late by the time it got detected. 686 00:34:55,720 --> 00:34:58,540 And the second thing was, it wasn't out of date 687 00:34:58,540 --> 00:35:00,340 configurations that we found that were vulnerable. 688 00:35:00,480 --> 00:35:01,900 Can anyone guess who we found? 689 00:35:01,980 --> 00:35:03,060 Was vulnerable to this attack? 690 00:35:04,060 --> 00:35:07,000 Yeah, yeah, you did it, so you're not eligible. 691 00:35:07,380 --> 00:35:09,000 Software developers were vulnerable. 692 00:35:09,320 --> 00:35:11,380 Software developers who write ActiveX controls, 693 00:35:11,500 --> 00:35:13,920 in particular, because they turn off their browser protection 694 00:35:13,920 --> 00:35:16,500 because they don't want to have to digitally sign everything 695 00:35:16,920 --> 00:35:20,660 every time they hit the build key to test their work. 696 00:35:20,780 --> 00:35:23,440 So they're unwary, and they are vulnerable to this. 697 00:35:23,560 --> 00:35:25,400 So once again, there's nothing really new here. 698 00:35:25,760 --> 00:35:27,340 It's not a breakthrough technical achievement. 699 00:35:27,840 --> 00:35:29,240 You can try it out, though. 700 00:35:29,280 --> 00:35:31,700 You can give people that very same file if you want 701 00:35:31,700 --> 00:35:33,920 to have them, like, if you want to send me information 702 00:35:33,920 --> 00:35:35,880 about your friends, it'll still point to my website. 703 00:35:36,080 --> 00:35:39,220 But you can do other things with it and test and stuff. 704 00:35:39,720 --> 00:35:41,120 It's nothing really new here. 705 00:35:41,360 --> 00:35:43,080 It's been difficult in the past, though, 706 00:35:43,100 --> 00:35:45,740 to get information about whose browsers are vulnerable. 707 00:35:47,420 --> 00:35:49,480 This is a way to gather some of that information. 708 00:35:49,720 --> 00:35:55,140 We can now sort of send out emails to our user base, 709 00:35:55,580 --> 00:35:59,200 and by reading the email, their browsers will report back to us 710 00:35:59,200 --> 00:36:00,020 whether or not they're vulnerable 711 00:36:00,020 --> 00:36:01,220 to this particular hack. 712 00:36:01,340 --> 00:36:01,680 That's kind of cool. 713 00:36:01,700 --> 00:36:02,280 That's kind of a nice thing. 714 00:36:02,600 --> 00:36:05,620 And it underscores how crucial administration of software 715 00:36:05,620 --> 00:36:06,760 on the desktop can be. 716 00:36:06,860 --> 00:36:08,600 It's not just enough to lock down the operating system 717 00:36:08,600 --> 00:36:12,080 and set good policies and so forth. 718 00:36:12,160 --> 00:36:14,160 You also have to worry about the programs that are running 719 00:36:14,160 --> 00:36:15,280 in the operating system. 720 00:36:16,080 --> 00:36:19,560 So fans of previous presentations from me will 721 00:36:19,560 --> 00:36:22,220 remember these slides, and someone 722 00:36:22,220 --> 00:36:24,140 in the front row raises a hand. 723 00:36:24,300 --> 00:36:27,700 Now this graphic is ridiculously outsized for the screen 724 00:36:27,700 --> 00:36:29,800 on which I must present it, and I apologize for that. 725 00:36:29,800 --> 00:36:35,060 But when we think about our network, 726 00:36:35,240 --> 00:36:37,840 one traditional view is to think about the internal network, 727 00:36:38,320 --> 00:36:40,300 and it just sort of barely touches 728 00:36:40,300 --> 00:36:42,720 up against the outside network at the firewall. 729 00:36:42,900 --> 00:36:45,560 That's the point where, that's our point of ingress and egress, 730 00:36:45,700 --> 00:36:47,700 and that's where we're going to enforce policy about what kind 731 00:36:47,700 --> 00:36:49,180 of traffic can come through. 732 00:36:49,380 --> 00:36:51,520 And so this is one of my favorite points to harp on, 733 00:36:51,620 --> 00:36:53,320 and so I will indulge myself a little bit. 734 00:36:53,800 --> 00:36:55,460 Nowadays, we're getting used to the idea 735 00:36:55,460 --> 00:36:57,940 of some hosts being outdoors. 736 00:36:58,140 --> 00:36:59,780 VPNs have allowed us to have some hosts being outdoors. 737 00:36:59,800 --> 00:37:00,800 There are hosts that we treat as internal, 738 00:37:00,920 --> 00:37:04,340 but they're secretly outside, and evil packets can land on them. 739 00:37:04,440 --> 00:37:06,460 We may protect them in different ways and so forth. 740 00:37:06,580 --> 00:37:08,680 But we're getting used to the idea of some internal hosts 741 00:37:08,680 --> 00:37:10,460 out in the outside world. 742 00:37:11,000 --> 00:37:14,160 And wireless networking makes this even more, oh my goodness, 743 00:37:14,280 --> 00:37:15,320 this is very funny formatting. 744 00:37:16,920 --> 00:37:19,060 Wireless networking makes this even more interesting 745 00:37:19,060 --> 00:37:22,980 because conceivably, there are sort of migratory hosts 746 00:37:22,980 --> 00:37:25,100 that come and go from our internal networks. 747 00:37:25,340 --> 00:37:28,220 We have people, whether they're contractors who come in 748 00:37:28,220 --> 00:37:29,780 and have to attach to our wired network, 749 00:37:29,800 --> 00:37:31,720 to do work, or maybe they are employees 750 00:37:31,720 --> 00:37:34,160 who take their laptops home, they have a wireless network 751 00:37:34,160 --> 00:37:36,100 at home and they come back in and maybe they haven't turned 752 00:37:36,100 --> 00:37:37,100 off that networking card. 753 00:37:38,040 --> 00:37:40,040 Or sometimes there's just equipment you didn't even 754 00:37:40,040 --> 00:37:41,420 realize had a wireless interface. 755 00:37:41,600 --> 00:37:42,900 Almost everything is shipping right now 756 00:37:42,900 --> 00:37:44,200 with some sort of card in it. 757 00:37:44,340 --> 00:37:46,240 If you buy a new laptop, it's very rare 758 00:37:46,240 --> 00:37:47,220 to find ones without that. 759 00:37:49,440 --> 00:37:52,260 And so we sometimes find ourselves with pockets 760 00:37:52,260 --> 00:37:55,040 of the outside world popping up behind our firewall 761 00:37:55,040 --> 00:37:55,920 on the internal network. 762 00:37:57,140 --> 00:37:59,060 So this is, there's even been a mention of this 763 00:37:59,060 --> 00:37:59,780 in the mainstream press. 764 00:37:59,800 --> 00:38:01,720 In Internet Week, about two weeks ago, 765 00:38:01,880 --> 00:38:04,960 there was a discussion of the possibility 766 00:38:05,800 --> 00:38:08,120 of insecure wireless access 767 00:38:08,120 --> 00:38:10,600 at the Democratic National Convention. 768 00:38:10,940 --> 00:38:14,640 And they specifically talked about possibly seeing 769 00:38:15,440 --> 00:38:17,760 wireless cards in laptops that were attached 770 00:38:17,760 --> 00:38:21,300 to the wired network there and possibly attacking those cards 771 00:38:21,300 --> 00:38:23,900 and using that as a vector of ingress into the wired network. 772 00:38:24,120 --> 00:38:25,140 And that's pretty interesting. 773 00:38:25,280 --> 00:38:27,040 I mean, it's not a brand new idea, 774 00:38:27,160 --> 00:38:29,000 but it's pretty interesting to see it popping up 775 00:38:29,000 --> 00:38:32,400 in a regular, you know, human-readable publication, 776 00:38:33,060 --> 00:38:36,120 which is, you know, really the first mention of it 777 00:38:36,120 --> 00:38:39,720 that I've seen outside of pretty technical trade discussions 778 00:38:39,720 --> 00:38:41,980 and kind of inspiring. 779 00:38:42,180 --> 00:38:44,020 And I thought it was especially interesting 780 00:38:44,020 --> 00:38:45,720 that they didn't really bother to explain it. 781 00:38:45,760 --> 00:38:46,760 They just sort of took it for granted 782 00:38:46,760 --> 00:38:48,020 that people would understand what this was 783 00:38:48,020 --> 00:38:48,720 and they mentioned it. 784 00:38:48,780 --> 00:38:50,440 And there's a link to that story in the bibliography 785 00:38:50,440 --> 00:38:51,460 as well if you want to go read it. 786 00:38:52,140 --> 00:38:53,660 Anyway, yeah, I have no doubt 787 00:38:53,660 --> 00:38:55,900 that there are some insecure wireless access points there. 788 00:38:56,000 --> 00:38:58,980 So Windows seemed to slide from side to side. 789 00:38:59,000 --> 00:39:00,360 I've never experienced that before. 790 00:39:02,000 --> 00:39:02,860 Apologize for that. 791 00:39:05,420 --> 00:39:06,380 La, la, la. 792 00:39:06,700 --> 00:39:10,740 Okay, so tools are becoming available for attacking 793 00:39:10,740 --> 00:39:13,820 or playing with some of these beaconing interfaces. 794 00:39:15,060 --> 00:39:15,940 Hotspotter is one. 795 00:39:16,000 --> 00:39:19,180 Hotspotter is sort of custom tailored to the XP client 796 00:39:19,180 --> 00:39:21,340 because XP loves to jabber. 797 00:39:21,860 --> 00:39:24,420 And we have one that we're tinkering 798 00:39:24,420 --> 00:39:25,740 with a little bit called KizzApp. 799 00:39:25,820 --> 00:39:27,240 Actually, we built it a long time ago. 800 00:39:27,300 --> 00:39:28,020 Joe did. 801 00:39:29,580 --> 00:39:31,540 You know, it's sort of laying dormant for a while 802 00:39:31,540 --> 00:39:33,500 because we haven't had the need to work on it. 803 00:39:33,600 --> 00:39:35,920 But we're using the net Kizmit Perl module 804 00:39:35,920 --> 00:39:37,300 and it consists of a couple different things. 805 00:39:37,400 --> 00:39:39,380 We're going to take our laptop 806 00:39:39,380 --> 00:39:41,260 and we're going to have two wireless cards in it, 807 00:39:41,320 --> 00:39:41,820 not just one. 808 00:39:41,980 --> 00:39:43,040 One is for listening. 809 00:39:43,140 --> 00:39:44,280 We're going to run Kizmit to listen. 810 00:39:44,600 --> 00:39:48,620 And we've patched IW event so that we're sending things 811 00:39:48,620 --> 00:39:50,260 to standard error instead of standard out. 812 00:39:50,320 --> 00:39:51,120 It's a little easier to look at. 813 00:39:51,320 --> 00:39:57,300 And we've written KizzApp.pl to watch for probes for networks. 814 00:39:57,300 --> 00:40:01,980 And when we see that, we have our other wireless card 815 00:40:01,980 --> 00:40:03,000 where we're running host AP. 816 00:40:03,700 --> 00:40:06,460 And when we see a probe for a certain SSID, 817 00:40:06,700 --> 00:40:09,760 we immediately announce ourselves as that SSID. 818 00:40:09,860 --> 00:40:11,340 And we're running a DHCP server. 819 00:40:11,480 --> 00:40:14,060 So if someone is friendly enough to associate with us, 820 00:40:14,100 --> 00:40:17,400 we'll issue them an IP address and then we can look at them. 821 00:40:17,760 --> 00:40:19,940 So this is not something that's ready for prime time. 822 00:40:20,000 --> 00:40:21,660 The materials are available on the web 823 00:40:21,660 --> 00:40:22,640 if you want to look at them. 824 00:40:22,700 --> 00:40:24,640 It's pretty unreliable. 825 00:40:24,720 --> 00:40:27,180 It's not really stable, et cetera. 826 00:40:27,300 --> 00:40:29,160 There's work yet to be done on this. 827 00:40:29,300 --> 00:40:32,340 But we have made some progress with it. 828 00:40:32,380 --> 00:40:34,880 We have been able to access networks this way. 829 00:40:36,000 --> 00:40:38,360 Again, though, before long, this is the sort of thing 830 00:40:38,360 --> 00:40:39,780 that's going to be a commonplace risk, 831 00:40:39,880 --> 00:40:41,680 just like everyone has been saying. 832 00:40:41,740 --> 00:40:44,360 But no one is really worrying about enough yet. 833 00:40:45,380 --> 00:40:46,020 All right. 834 00:40:46,080 --> 00:40:46,920 That's very swell. 835 00:40:48,220 --> 00:40:49,860 Let's move on to the next one. 836 00:40:51,160 --> 00:40:54,420 Here's time for another brief interlude from literature. 837 00:40:54,860 --> 00:40:57,280 This is from Shimabukuro. 838 00:40:57,280 --> 00:40:59,840 Shimabukuro and Markov's book, Takedown. 839 00:40:59,980 --> 00:41:01,700 And it's also inspirational. 840 00:41:01,900 --> 00:41:05,340 So this is a discussion of the very same story. 841 00:41:05,460 --> 00:41:07,320 It's the very same point of history 842 00:41:07,320 --> 00:41:09,700 that I was telling with the last musical interlude, 843 00:41:10,440 --> 00:41:13,640 talking about the conference describing the Christmas 844 00:41:13,640 --> 00:41:14,040 attack. 845 00:41:14,420 --> 00:41:17,960 I noted that the attack appeared to be scripted or automated 846 00:41:17,960 --> 00:41:19,580 based on the timing of events. 847 00:41:20,340 --> 00:41:23,340 The fact that it had taken a great deal of detailed analysis 848 00:41:23,340 --> 00:41:25,340 for me to reconstruct the break-in. 849 00:41:25,380 --> 00:41:26,720 So this is Shimabukuro speaking, by the way. 850 00:41:27,280 --> 00:41:29,640 It was something that clearly hit home with the audience. 851 00:41:29,880 --> 00:41:32,100 The situation I was describing was the type 852 00:41:32,100 --> 00:41:35,320 of attack that might have been going on undetected 853 00:41:35,320 --> 00:41:37,120 beneath their own noses all along. 854 00:41:37,620 --> 00:41:39,400 So it's exactly this. 855 00:41:41,180 --> 00:41:42,860 The problem is known. 856 00:41:42,980 --> 00:41:45,260 The fact that it is not really widespread 857 00:41:45,780 --> 00:41:47,020 doesn't mean it isn't happening. 858 00:41:47,340 --> 00:41:49,160 And that's a kind of interesting observation. 859 00:41:49,280 --> 00:41:54,140 We had a saying that we say to each other sometimes 860 00:41:54,140 --> 00:41:55,820 in the . . . 861 00:41:55,820 --> 00:41:59,640 You know, when we're attacking things and we say to each other, 862 00:41:59,720 --> 00:42:01,720 well, just because they're lame doesn't mean you're good. 863 00:42:06,660 --> 00:42:08,480 So what's in store for the future? 864 00:42:08,740 --> 00:42:14,020 One thing is I need to do some rewrite of a little bit 865 00:42:14,020 --> 00:42:17,160 of the enumeration when we're talking about multiple user accounts 866 00:42:17,160 --> 00:42:17,880 in multiple groups. 867 00:42:19,160 --> 00:42:22,780 The API has actually changed since I began work on this, 868 00:42:22,820 --> 00:42:25,540 or at least the documentation that's available to me has changed. 869 00:42:25,820 --> 00:42:30,040 And instead of using net user enum or something like that 870 00:42:30,040 --> 00:42:32,700 to enumerate users, you're now encouraged to use 871 00:42:32,700 --> 00:42:36,360 net get display information index and net query display information. 872 00:42:36,960 --> 00:42:38,820 So I need to do some conversion there. 873 00:42:38,980 --> 00:42:41,940 There are some accounts, if you've created a user account 874 00:42:41,940 --> 00:42:45,040 and not done that through the net user add API, 875 00:42:45,780 --> 00:42:48,560 so you've imported it in some weird Active Directory way, 876 00:42:49,380 --> 00:42:50,920 OWNR does not find it right now. 877 00:42:50,960 --> 00:42:54,040 It'll show up as a group member, but it won't necessarily show up as a user. 878 00:42:55,820 --> 00:42:58,760 And that's because I'm apparently using an out-of-date SDK. 879 00:42:59,540 --> 00:43:01,180 I need to clean up the code. 880 00:43:01,260 --> 00:43:04,280 If you actually were to hurt your eyes by looking at the source 881 00:43:04,280 --> 00:43:05,560 that is available on the CD, 882 00:43:05,760 --> 00:43:09,960 you would see that it is somewhat disorganized and could be better. 883 00:43:10,120 --> 00:43:13,880 I don't think that's necessarily out of line for something presented at DEF CON, 884 00:43:14,000 --> 00:43:15,320 but I'd still like to see it get better. 885 00:43:15,760 --> 00:43:17,800 And I'd like to make a couple of more modules, 886 00:43:18,420 --> 00:43:20,120 getting more complete server information, 887 00:43:20,320 --> 00:43:21,780 not just user and group information, 888 00:43:22,640 --> 00:43:25,480 doing some careful password grinding, 889 00:43:25,820 --> 00:43:28,280 so instead of the brute force Hydra approach 890 00:43:28,280 --> 00:43:30,900 where we just blast out passwords at the maximum possible speed, 891 00:43:31,100 --> 00:43:34,820 let's look, because Windows will tell us how many invalid password guesses are left, 892 00:43:34,980 --> 00:43:36,620 and let's not lock out accounts. 893 00:43:36,760 --> 00:43:37,980 Let's do this in a gentle way. 894 00:43:38,320 --> 00:43:41,380 And then going after more than one host at a time 895 00:43:41,380 --> 00:43:43,620 would also be very nice, just in the interest of speed, 896 00:43:43,820 --> 00:43:45,800 because it's a pain watching things time out. 897 00:43:46,620 --> 00:43:49,080 And maybe giving some better options for handling output. 898 00:43:49,200 --> 00:43:50,660 Right now, you should be able to... 899 00:43:50,660 --> 00:43:52,760 I don't right now give you the option of specifying 900 00:43:52,760 --> 00:43:54,500 the delimiting character of your choice. 901 00:43:54,900 --> 00:43:55,620 I should. 902 00:43:55,820 --> 00:43:56,360 That would be better. 903 00:43:56,580 --> 00:43:57,400 Things like that. 904 00:43:57,460 --> 00:43:58,560 Just the niceties. 905 00:43:58,820 --> 00:44:01,700 But the basic functionality is there right now. 906 00:44:02,080 --> 00:44:03,680 So what are my conclusions? 907 00:44:03,920 --> 00:44:05,320 And I'm running a little bit ahead of schedule 908 00:44:05,320 --> 00:44:07,280 because we actually started a little bit early 909 00:44:07,280 --> 00:44:10,720 despite all of my troubles with getting my laptop to talk to the projector. 910 00:44:10,840 --> 00:44:14,820 So the first thing is there is still fun to be had with some old ideas. 911 00:44:15,020 --> 00:44:17,040 Sometimes when we look at these familiar ideas, 912 00:44:17,120 --> 00:44:18,440 they might take on a new meaning 913 00:44:18,440 --> 00:44:19,980 or become sort of more intensely interesting 914 00:44:19,980 --> 00:44:21,500 as we play with them in more detail. 915 00:44:22,220 --> 00:44:24,540 And a lot of times there have been good concepts introduced, 916 00:44:24,640 --> 00:44:25,800 but no one has really taken... 917 00:44:25,820 --> 00:44:30,940 taken them to the point at which they become truly at their logical conclusion 918 00:44:30,940 --> 00:44:32,760 and useful on an everyday basis. 919 00:44:33,220 --> 00:44:36,240 And then also, the world still has this tendency to coast. 920 00:44:36,580 --> 00:44:38,740 If you can't demonstrate something to people, 921 00:44:38,820 --> 00:44:39,840 it might as well not be real. 922 00:44:39,980 --> 00:44:43,360 And so real demonstrations are the way that we're going to try to produce actual results 923 00:44:43,360 --> 00:44:45,800 and get people to take notice of the things that we're talking about. 924 00:44:46,500 --> 00:44:50,800 And then the other thing that we want to do is encourage people to make more informed 925 00:44:50,800 --> 00:44:54,660 or better informed decisions about the cost of a fix versus the cost of the problem. 926 00:44:54,780 --> 00:44:55,540 So that... 927 00:44:55,540 --> 00:44:57,660 that original little formula that I showed you 928 00:44:57,660 --> 00:45:02,060 of talking about multiplying the annual rate of occurrence by the single loss expectancy, 929 00:45:02,580 --> 00:45:05,700 nobody right now has a good handle on how to calculate those things. 930 00:45:05,840 --> 00:45:07,180 And this doesn't solve the problem, 931 00:45:07,300 --> 00:45:12,280 but hopefully will at least get people to be more rigorous 932 00:45:12,280 --> 00:45:14,400 with their estimations of annual rate of occurrence. 933 00:45:15,000 --> 00:45:19,220 So with that, I've been through the material that I came intending to show. 934 00:45:19,400 --> 00:45:21,640 I would thank you very much for your time. 935 00:45:21,680 --> 00:45:22,600 It's been a real pleasure. 936 00:45:22,720 --> 00:45:25,140 But I also would invite any questions that people might have. 937 00:45:28,280 --> 00:45:29,660 Ah, Sunday at DEF CON. 938 00:45:33,860 --> 00:45:34,780 All right, thank you.