1 00:01:43,080 --> 00:01:46,680 The computer is taking the copious amounts of time it does to boot. 2 00:01:46,820 --> 00:01:49,420 I'll start with some giveaways. 3 00:01:49,680 --> 00:01:52,920 I've got some stress balls for everybody. 4 00:01:53,000 --> 00:01:53,800 If anybody wants some. 5 00:01:56,200 --> 00:01:56,680 Here. 6 00:02:06,360 --> 00:02:08,340 I've got some other stuff, too. 7 00:02:10,540 --> 00:02:12,140 Takes up the extra time. 8 00:02:14,340 --> 00:02:17,280 There's some keychains with pocket knives in them, too. 9 00:02:17,380 --> 00:02:19,080 So don't cut each other up, okay? 10 00:02:19,340 --> 00:02:20,040 There you go. 11 00:02:25,640 --> 00:02:26,700 There you go. 12 00:02:27,860 --> 00:02:28,560 All right. 13 00:02:28,640 --> 00:02:29,740 Well, my machine should finish. 14 00:02:29,740 --> 00:02:30,780 I'm going to finish booting up here any second. 15 00:02:35,820 --> 00:02:38,440 I don't want to have to carry this home, so take it all, okay? 16 00:02:38,720 --> 00:02:40,500 I don't want to have to carry any of it back with me. 17 00:02:44,420 --> 00:02:45,020 All right. 18 00:02:45,260 --> 00:02:47,920 Well, what I'm going to show you today, just so I can set your expectations, 19 00:02:49,980 --> 00:02:53,380 everything I'm going to be demoing to you today is relatively simple. 20 00:02:53,600 --> 00:02:58,480 If you are writing your own exploits, if you're doing all sorts of fancy, cool stuff, 21 00:02:58,480 --> 00:03:00,720 then you're probably in the wrong place. 22 00:03:02,000 --> 00:03:10,660 I'm doing a lot of penetration testing and penetration of physical security for machines. 23 00:03:11,980 --> 00:03:20,320 Really, my focus for the talk and actually what I do in real life is protecting physical machines. 24 00:03:20,620 --> 00:03:24,660 Somebody comes, sits down at your machine, wants access to your machine, 25 00:03:25,360 --> 00:03:26,960 making sure that they don't get on there. 26 00:03:27,580 --> 00:03:28,460 That's all you want. 27 00:03:28,880 --> 00:03:30,300 I think that's it for the giveaway. 28 00:03:30,340 --> 00:03:31,200 Sorry about that. 29 00:03:31,640 --> 00:03:32,260 Too late. 30 00:03:32,340 --> 00:03:32,680 Too slow. 31 00:03:36,400 --> 00:03:37,580 Anyway, let me show you. 32 00:03:37,640 --> 00:03:39,000 Let me bring my slides up now. 33 00:03:44,040 --> 00:03:45,120 We good on the other systems? 34 00:03:46,580 --> 00:03:49,800 We need to make sure we have the keyboard plugged in for them, too, 35 00:03:49,840 --> 00:03:51,860 even though we don't use it because it needs to have the power. 36 00:03:54,040 --> 00:03:54,760 All right. 37 00:03:56,280 --> 00:03:57,680 What I'm going to show you today, 38 00:03:58,480 --> 00:04:01,300 here we go, still being slow. 39 00:04:04,120 --> 00:04:06,260 Oh, resolution of my monitor doesn't match up. 40 00:04:06,340 --> 00:04:06,880 Hey, thank you. 41 00:04:10,620 --> 00:04:14,500 It's wonderful when you get to do your first dry run with the AV equipment, 42 00:04:14,540 --> 00:04:15,640 right when you're doing the presentation. 43 00:04:15,920 --> 00:04:16,580 It's always a plus. 44 00:04:18,580 --> 00:04:26,620 Let me change that if my machine decides that it wants to do that, too. 45 00:04:27,980 --> 00:04:28,460 Yeah, it's working. 46 00:04:28,480 --> 00:04:30,080 Yeah, 10-minute startup sequence, exactly. 47 00:04:37,760 --> 00:04:38,360 Try that. 48 00:04:50,460 --> 00:04:51,820 That looks a little bit better. 49 00:04:52,820 --> 00:04:53,460 There we go. 50 00:04:56,180 --> 00:04:57,000 Yeah, I know. 51 00:04:57,040 --> 00:04:57,860 Too much tray, huh? 52 00:05:01,460 --> 00:05:01,940 Yeah. 53 00:05:01,940 --> 00:05:03,320 All right, let's see if we'll do 10-24. 54 00:05:16,700 --> 00:05:17,580 We'll do 800. 55 00:05:18,360 --> 00:05:19,480 All right, here we go. 56 00:05:20,680 --> 00:05:21,660 Let's just get going. 57 00:05:24,040 --> 00:05:24,520 Let's go. 58 00:05:24,760 --> 00:05:25,000 Let's go. 59 00:05:25,000 --> 00:05:25,260 Let's go. 60 00:05:25,780 --> 00:05:26,260 Let's go. 61 00:05:26,740 --> 00:05:27,220 Let's go. 62 00:05:27,220 --> 00:05:27,480 Let's go. 63 00:05:27,480 --> 00:05:28,320 I've got a lot. 64 00:05:28,320 --> 00:05:56,240 lot of junk, don't I? Cheese. Bonus. I should sing or something. Yeah, exactly. Yep, exactly. 65 00:05:56,240 --> 00:06:11,980 Exactly. Boring lull. Wow. You could tell I was on the DEFCON network today. Let's just 66 00:06:11,980 --> 00:06:12,760 switch over here. 67 00:06:26,240 --> 00:06:36,520 All right. Anyway, finally. All right. So what I'm going to do today is show you basically 68 00:06:37,080 --> 00:06:46,520 some lame security methods for protecting information on your machine. Who am I? What 69 00:06:46,520 --> 00:06:49,860 am I? All that good stuff. The audience, I already told you, I'm going to show you pretty 70 00:06:49,860 --> 00:06:56,060 basic stuff. This is not rocket science. I would know that. I do have a degree in astrophysics, 71 00:06:56,240 --> 00:07:04,180 so it is not rocket science, however. This is all crap, just basic stuff. But most of 72 00:07:04,180 --> 00:07:09,620 the people in business, in the real world, don't understand even one or two of these 73 00:07:09,620 --> 00:07:16,500 things, although a lot of you may already. Who am I? I'm Brian Glancy. I already mentioned 74 00:07:16,500 --> 00:07:24,620 that. I run a professional services team in the United States to deploy security countermeasures 75 00:07:24,620 --> 00:07:25,840 to different... 76 00:07:26,420 --> 00:07:31,940 Companies. Let's just leave it at that. Told you what I do. What am I going to do today? 77 00:07:32,060 --> 00:07:37,300 I already told you about that. I'm going to show you some of the different... I'm not 78 00:07:37,300 --> 00:07:39,580 going to show you anything since the switch decided to go out. 79 00:07:44,760 --> 00:07:49,380 My agenda for today. I'm going to show you some bad security measures. I'm going to 80 00:07:49,380 --> 00:07:54,500 show you some stupid things that are built and sold to all sorts of companies, even today. 81 00:07:55,500 --> 00:08:02,380 As security, and are basically stupid. They're only security against really dumb people. 82 00:08:03,420 --> 00:08:10,920 Really give you no way, no protection, no method of keeping your information safe. Nothing 83 00:08:10,920 --> 00:08:15,300 like that. And I'll mention, also towards the end, I'll mention some things that you 84 00:08:15,300 --> 00:08:20,740 can do about it. Some ways that you can actually keep your stuff secure, and you can manage 85 00:08:20,740 --> 00:08:24,480 to keep other people out of your machine. So, when you get raided by this, you're going 86 00:08:24,500 --> 00:08:28,000 to be the Fed panel. They can't actually take all your kiddie porn off your machine, 87 00:08:28,080 --> 00:08:32,820 and all that good stuff. I'm also going to talk a little bit about information gathering 88 00:08:32,820 --> 00:08:40,680 tools. I'm going to talk really simple stuff. Sector editors, in case you guys aren't familiar 89 00:08:40,680 --> 00:08:46,380 with them. Very simplistic. Show you how they work. Show you how you can garnish information 90 00:08:46,380 --> 00:08:52,680 from them. They actually give classes on this stuff, which is kind of scary, as forensic 91 00:08:54,700 --> 00:08:58,300 tools. Just going to show you some basic things about how they work, what they do, 92 00:08:58,540 --> 00:09:03,900 what sort of information you can find, and also why most of the security products that 93 00:09:03,900 --> 00:09:08,860 are sold don't protect at all against most things like that. Then I'll talk a little 94 00:09:08,860 --> 00:09:09,660 bit about countermeasures. 95 00:09:10,900 --> 00:09:16,560 So where did this presentation come from? Last year, I've been to DEF CON for the 96 00:09:16,560 --> 00:09:22,260 last four years. I do a lot of speaking, not usually at, this is my first time speaking 97 00:09:22,260 --> 00:09:22,900 at DEF CON. 98 00:09:23,380 --> 00:09:28,900 But I do a lot of speaking at security conferences for the industry, for business, and things 99 00:09:28,900 --> 00:09:34,760 like that. And I always come to DEF CON. And last year, Bruce was a little bit more 100 00:09:34,760 --> 00:09:41,000 animated than he was this year. And he had a lot to say about stupid security systems. 101 00:09:41,560 --> 00:09:46,600 So I thought about making up a presentation about different things that are sold to people 102 00:09:48,160 --> 00:09:52,420 by our friends at anybody from Microsoft to all different sorts of companies. 103 00:09:52,900 --> 00:09:54,000 I think that's great. 104 00:09:54,000 --> 00:09:54,180 Yeah, well, I do a lot of speaking about security 105 00:09:54,180 --> 00:09:59,120 products, but actually have, you know, do no security whatsoever, because they either 106 00:09:59,120 --> 00:10:06,380 have bad implementations or they don't really protect any information. And the thing that 107 00:10:06,380 --> 00:10:14,380 gave me the title for my speech is really not the TV show, believe it or not. But Bruce's 108 00:10:14,380 --> 00:10:22,880 book, Secrets & Lies, has got a lot of stuff in it about your security only being as true 109 00:10:22,880 --> 00:10:30,860 strong as your weakest link. I want to start off with something, a statement 110 00:10:30,860 --> 00:10:35,460 that was recently circulated around all over the place and a lot of people called me and 111 00:10:35,460 --> 00:10:42,940 asked me about it and a lot of companies have brought it up regarding, this statement is 112 00:10:42,940 --> 00:10:46,940 from Microsoft, this is cut right off their website, I have it posted at the bottom, the 113 00:10:46,940 --> 00:10:52,960 URL for it on the bottom. Basically what their point was, they were getting nailed all the 114 00:10:52,960 --> 00:10:58,040 time about EFS, I know most of you have probably installed or played with or looked at EFS, 115 00:10:58,740 --> 00:11:04,880 and they were getting nailed constantly because people were saying, well, EFS is not really 116 00:11:04,880 --> 00:11:11,300 secure, there's so many tools out there that I can break it with, there's easy ways to circumvent 117 00:11:11,300 --> 00:11:16,240 it, I can steal the certificates, I can attack it in a number of different ways, and Microsoft 118 00:11:16,240 --> 00:11:16,700 basically, 119 00:11:16,940 --> 00:11:22,080 they came back with this response, and what they basically said is, if you have physical 120 00:11:22,080 --> 00:11:27,660 access to the machine, there is absolutely nothing that can be done to keep you out of 121 00:11:27,660 --> 00:11:35,800 the machine. Which is not true. There are solutions that you can do to secure yourself 122 00:11:36,340 --> 00:11:41,560 against, secure your operating system, whether it be something like the steel, or secure 123 00:11:42,040 --> 00:11:46,520 your access to the machine, which there's a lot of different people that have products 124 00:11:46,520 --> 00:11:46,700 and 125 00:11:46,700 --> 00:11:53,120 different pieces that do that. But, Microsoft, of course, does not see that, and 126 00:11:53,120 --> 00:12:00,400 they named a new set of security laws called the Ten Immutable Laws of Security. Now, in 127 00:12:00,400 --> 00:12:04,220 case anybody doesn't know what immutable means, and I didn't know, I had to go look 128 00:12:04,220 --> 00:12:11,360 it up. Unchanging or unchangeable. So, they had the balls to do a press release about 129 00:12:11,360 --> 00:12:16,560 this to the whole world, and say that there was no way that anybody could ever guarantee 130 00:12:16,560 --> 00:12:21,280 guarantee if they have physical access to the system that you cannot have access to 131 00:12:21,280 --> 00:12:26,120 all the information on that system, which I think is rather a stupid thing to say. 132 00:12:28,100 --> 00:12:34,220 But here's the law. If a bad guy has unrestricted physical access to your computer, it's not 133 00:12:34,220 --> 00:12:39,180 your computer anymore. Well, I would agree that it's not your computer, but I would say 134 00:12:39,180 --> 00:12:43,580 it's still your information. I would hope that if somebody comes into my house and takes 135 00:12:43,580 --> 00:12:47,980 my computer, that the information is still mine, and they're not going to be able to 136 00:12:47,980 --> 00:12:52,480 just take it off there and do whatever they want with it or interpret it in any way. 137 00:12:54,040 --> 00:12:58,600 Microsoft followed up with, if the attacker has physical access to your machine, they 138 00:12:58,600 --> 00:13:04,160 can get all the data they want, and you have no method of defense. And I say, develop a 139 00:13:04,160 --> 00:13:06,800 little bit of better security, and then they will have a little bit of a defense. 140 00:13:09,500 --> 00:13:13,160 So who cares about this problem? Who cares about information? 141 00:13:13,580 --> 00:13:18,540 Information on machines. Well, I definitely care about it, and I think that anybody cares 142 00:13:18,540 --> 00:13:22,920 about it, that if you use your computer at home or work for confidential business or 143 00:13:22,920 --> 00:13:29,440 personal use, if you have documents, medical records, whatever they may be, correspondence 144 00:13:29,440 --> 00:13:33,880 on your machine, that you don't want somebody to be able to get that information if they 145 00:13:33,880 --> 00:13:37,900 take your computer, then you care about what happens if somebody has physical access to 146 00:13:37,900 --> 00:13:43,560 your machine. If you travel with a laptop, like a lot of people do these days, how do 147 00:13:43,560 --> 00:13:49,400 you know if your machine is stolen? Are you going to know that nobody has that information? 148 00:13:50,200 --> 00:13:56,820 Now, all of you probably have seen all the wonderful hacking news in the media about 149 00:13:56,820 --> 00:14:02,920 things like executives at Qualcomm losing their laptop and having beyond secret information 150 00:14:02,920 --> 00:14:08,920 about the running of the security infrastructure of the United States on there. All different 151 00:14:08,920 --> 00:14:13,380 sorts of people from financial institutions losing your credit card numbers that are on 152 00:14:13,560 --> 00:14:19,100 their machines and all those wonderful, great things that happen. I think that there's 153 00:14:19,100 --> 00:14:24,700 a lot of different security that can be done to prevent this, but of course, we have to 154 00:14:24,700 --> 00:14:30,300 be educated and companies have to be educated to know that we require this of them, that 155 00:14:30,300 --> 00:14:34,460 they keep our information confidential and that they actually take security measures 156 00:14:34,880 --> 00:14:43,540 to make it so not just anybody can get into anything they want. Okay. So, now we get a 157 00:14:43,560 --> 00:14:47,440 round to some demos. We're heading in the right direction now, and hopefully the KVM 158 00:14:47,440 --> 00:14:56,420 is going to work when I go to switch. What we're going to demo. It is hot. Wow. What 159 00:14:56,420 --> 00:14:59,720 we're going to demo. We're going to demo stuff about biased passwords. I see a lot 160 00:14:59,720 --> 00:15:02,820 of people that use biased passwords. They are the stupidest frigging thing ever invented 161 00:15:02,820 --> 00:15:08,280 in the world. I have no idea why anybody would ever use them or what the purpose of them 162 00:15:08,280 --> 00:15:11,040 was or what the person that wrote them was actually thinking. 163 00:15:11,040 --> 00:15:17,820 And I think the most hilarious thing about it, I think, is that the people that wrote 164 00:15:17,820 --> 00:15:22,540 the biased password utilities quite often are the same people that had to write for 165 00:15:22,540 --> 00:15:27,140 their companies the bias reset utilities for when a user forgets his password, you can 166 00:15:27,140 --> 00:15:32,780 reset the bias to a blank password. It's a really useful security measure when you 167 00:15:32,780 --> 00:15:37,840 can actually even reset it at your whim. So, we're going to show a little bit about 168 00:15:37,840 --> 00:15:40,460 that. Then I'm going to show a little bit about 169 00:15:40,460 --> 00:15:41,020 bootloading. 170 00:15:41,040 --> 00:15:46,800 Some of you may have seen, there's a lot of different boot lockers out there. There 171 00:15:46,800 --> 00:15:51,900 was a product out there that I used to love to rip up by Norton Semantic called For Your 172 00:15:51,900 --> 00:15:57,980 Eyes Only that sucked and was just basically a feeble attempt at a security that you could 173 00:15:57,980 --> 00:16:02,960 hack really easily. They're gone now. They went out of business. But there are still 174 00:16:02,960 --> 00:16:06,860 a lot of other ones. I just actually bought, the one that I'm going to hack, I bought last 175 00:16:06,860 --> 00:16:09,100 week and you're going to see it's pretty dumb. 176 00:16:11,040 --> 00:16:15,880 Then we're going to talk a little bit about file level passwords, any password prompt 177 00:16:15,880 --> 00:16:21,420 that comes up to you inside Windows and what the problems with those are. Then I'm going 178 00:16:21,420 --> 00:16:26,880 to talk a little bit about EFS and what the problems with EFS are. 179 00:16:32,060 --> 00:16:39,720 Our first demo is bias passwords. Let me see what we've got over here with our machines. 180 00:16:52,120 --> 00:17:02,220 All right. Let's see. This computer, we need the, thank you to my wonderful helpers, by 181 00:17:02,220 --> 00:17:07,200 the way. Help for helping me out to run this whole thing and put it all together kind of 182 00:17:07,200 --> 00:17:09,740 quickly. Put the keyboard prompt. 183 00:17:13,160 --> 00:17:19,740 All right. So, a bias password. What does it look like? Let's see if we can switch over. 184 00:17:20,140 --> 00:17:28,200 I'm sure you've all seen them. Assuming the KVM decides it wants to switch. 185 00:17:32,040 --> 00:17:36,620 What cable is that? Four. 186 00:17:40,180 --> 00:17:46,460 One second. Stop reading. It's on the next one. 187 00:17:54,440 --> 00:18:01,940 One second. Yeah, it's doing it right now. Thank you. 188 00:18:15,380 --> 00:18:39,560 Okay, there we go. That's what a bias level password looks like. Pretty easy to use, pretty dumb. It just comes up as soon as you turn the machine on this is the prompting that you get. Lots of machines have 189 00:18:39,740 --> 00:18:41,600 different levels of bias passwords. They have a bias 190 00:18:41,600 --> 00:18:43,340 password that comes on for access of information. 191 00:18:44,460 --> 00:18:45,740 And they also have a bias 192 00:18:45,740 --> 00:18:47,460 level password for changing any of the 193 00:18:47,460 --> 00:18:48,500 information in the bias. 194 00:18:49,640 --> 00:18:51,600 Well, so, what do we 195 00:18:51,600 --> 00:18:53,240 do about this if we are an attacker 196 00:18:53,240 --> 00:18:55,540 and we want to get the information off 197 00:18:55,540 --> 00:18:57,600 this machine? How difficult is it? 198 00:18:57,840 --> 00:18:59,640 Well, I've got 199 00:18:59,640 --> 00:19:01,780 another machine right here. 200 00:19:02,020 --> 00:19:03,720 Do we have a keyboard for this guy? 201 00:19:05,000 --> 00:19:05,440 Okay. 202 00:19:18,460 --> 00:19:19,620 Too much equipment 203 00:19:19,620 --> 00:19:20,460 for one place, huh? 204 00:19:30,220 --> 00:19:31,480 What cable is that? 205 00:19:32,400 --> 00:19:33,460 Is that cable 206 00:19:34,440 --> 00:19:35,220 right here? 207 00:19:36,740 --> 00:19:38,080 Hold on for a second. 208 00:19:47,660 --> 00:19:49,840 Not yet, but it will be 209 00:19:49,840 --> 00:19:50,860 by the end of the day. 210 00:19:52,240 --> 00:19:53,740 Actually, mail it, mail to 211 00:19:53,740 --> 00:19:55,600 bri, b-r-y, at 212 00:19:55,600 --> 00:19:57,560 pointsec.com, and I'll mail it to you. 213 00:19:57,620 --> 00:19:58,700 Or I'll mail you the URL. 214 00:20:00,180 --> 00:20:00,980 Okay, so, 215 00:20:02,120 --> 00:20:03,220 we have our 216 00:20:03,640 --> 00:20:05,800 bias password up. We want to get 217 00:20:05,800 --> 00:20:07,400 the information off that machine. 218 00:20:07,680 --> 00:20:09,580 Well, how do we do it? Well, 219 00:20:09,740 --> 00:20:11,820 I've got another machine that's just like it right here. 220 00:20:12,640 --> 00:20:13,820 Alright, I want 221 00:20:13,820 --> 00:20:15,080 to take the information off this. 222 00:20:15,280 --> 00:20:16,500 I take the machine, 223 00:20:18,040 --> 00:20:18,800 I'm over, 224 00:20:19,560 --> 00:20:21,440 I'm visiting a company, I'm doing whatever, 225 00:20:21,680 --> 00:20:23,660 I want the information off there. I pop 226 00:20:23,660 --> 00:20:25,560 the drive out, it takes me a couple seconds, 227 00:20:25,760 --> 00:20:27,100 comes right out in one hand, 228 00:20:28,400 --> 00:20:29,700 turn off my other computer, 229 00:20:32,040 --> 00:20:33,300 and as you all know, 230 00:20:33,820 --> 00:20:35,700 as soon as I plug this drive 231 00:20:35,700 --> 00:20:36,400 in here, 232 00:20:37,820 --> 00:20:39,620 the bias password is not going to, 233 00:20:39,620 --> 00:20:41,680 uh, port with the machine. 234 00:20:42,840 --> 00:20:43,680 The bias 235 00:20:43,680 --> 00:20:44,960 password is localized 236 00:20:46,760 --> 00:20:47,880 only to 237 00:20:47,880 --> 00:20:49,680 that machine. It's not 238 00:20:49,680 --> 00:20:51,340 localized to the hardware. 239 00:20:54,660 --> 00:20:55,640 Now, there are 240 00:20:55,640 --> 00:20:57,740 a couple, that's a very good point, very good 241 00:20:57,740 --> 00:20:59,660 question. There are a couple companies 242 00:20:59,660 --> 00:21:01,720 out there that make, uh, encrypting 243 00:21:01,720 --> 00:21:03,320 hard drive controllers that link. 244 00:21:04,300 --> 00:21:05,420 And those 245 00:21:05,420 --> 00:21:07,340 companies are doing 246 00:21:07,340 --> 00:21:09,440 a very good job. One of them, 247 00:21:09,620 --> 00:21:10,140 is IBM. 248 00:21:11,000 --> 00:21:13,180 They have a link, uh, 249 00:21:13,340 --> 00:21:14,220 encrypting controller, 250 00:21:15,200 --> 00:21:17,460 and that encrypting controller links 251 00:21:17,460 --> 00:21:19,420 to your bias password. And that's not 252 00:21:19,420 --> 00:21:21,620 bad, but the only big problem about it is what happens 253 00:21:21,620 --> 00:21:22,600 when you lose your password. 254 00:21:23,380 --> 00:21:24,720 That's not a good situation. 255 00:21:25,560 --> 00:21:26,480 So, anyway, 256 00:21:27,600 --> 00:21:28,860 let's see if I can toggle 257 00:21:28,860 --> 00:21:31,280 systems now, to... 258 00:21:32,480 --> 00:21:33,000 ... 259 00:21:33,000 --> 00:21:33,940 ... 260 00:21:36,380 --> 00:21:36,900 ... 261 00:21:39,620 --> 00:21:40,420 ... 262 00:21:41,100 --> 00:21:41,580 ... 263 00:21:43,500 --> 00:21:44,840 This is my bias 264 00:21:45,700 --> 00:21:47,780 password system. As soon as I plug 265 00:21:47,780 --> 00:21:48,980 the drive into another machine, 266 00:21:49,260 --> 00:21:51,760 it comes right up. I actually had 267 00:21:51,760 --> 00:21:52,660 a CD in there, so 268 00:21:54,040 --> 00:21:55,620 it actually booted to the CD. 269 00:21:55,800 --> 00:21:57,320 That's one of the other demonstrations. 270 00:22:02,960 --> 00:22:03,720 But it will 271 00:22:03,720 --> 00:22:04,940 boot directly to the machine. 272 00:22:05,380 --> 00:22:05,780 So, 273 00:22:07,580 --> 00:22:09,140 basically, the bias passwords, 274 00:22:09,620 --> 00:22:11,680 don't protect any of the information 275 00:22:11,680 --> 00:22:13,600 on the machine. They don't encrypt the information 276 00:22:13,600 --> 00:22:15,580 on the machine except for the specialized bias 277 00:22:15,580 --> 00:22:17,660 encrypting passwords. This one just booted 278 00:22:17,660 --> 00:22:19,320 right up. Now, this is a 279 00:22:19,320 --> 00:22:21,440 WUSI 98 machine. I know. 280 00:22:21,500 --> 00:22:22,680 I just use it for demonstration. 281 00:22:23,180 --> 00:22:25,120 Now, here we go. Let's switch to 282 00:22:26,060 --> 00:22:27,200 back to the presentation 283 00:22:27,200 --> 00:22:27,940 machine here. 284 00:22:37,520 --> 00:22:38,000 Okay. 285 00:22:38,000 --> 00:22:39,320 Okay. So, 286 00:22:39,380 --> 00:22:40,400 bias passwords. 287 00:22:42,120 --> 00:22:43,680 Random people can't just sit down 288 00:22:43,680 --> 00:22:44,700 at your computer and use it. 289 00:22:45,760 --> 00:22:46,960 Bad part is 290 00:22:47,720 --> 00:22:49,600 what happens when you forget your 291 00:22:49,600 --> 00:22:51,140 password? One bad thing. 292 00:22:51,460 --> 00:22:53,640 What you have to do is reset 293 00:22:53,640 --> 00:22:55,600 your bias or pull 294 00:22:55,600 --> 00:22:57,420 the battery off your motherboard. 295 00:22:57,560 --> 00:22:58,760 That's one thing you can do. 296 00:23:00,080 --> 00:23:01,440 Now, the other question is 297 00:23:02,200 --> 00:23:03,300 you can wipe 298 00:23:03,300 --> 00:23:05,340 What am I looking at here? 299 00:23:05,520 --> 00:23:07,640 Can be wiped through motherboard access. We talked about 300 00:23:07,640 --> 00:23:09,500 that. Move the drive to another machine 301 00:23:09,500 --> 00:23:11,400 which is what we just did and you have full access 302 00:23:11,400 --> 00:23:13,360 to the machine. Check the web 303 00:23:13,360 --> 00:23:15,140 for bias password crackers. 304 00:23:15,440 --> 00:23:17,220 There's also a lot of bias password crackers 305 00:23:17,220 --> 00:23:19,380 out there. So, basically, that's no 306 00:23:19,380 --> 00:23:21,600 security at all. So, bias passwords are stupid. 307 00:23:22,160 --> 00:23:22,600 Okay. 308 00:23:23,200 --> 00:23:23,780 Boot lock. 309 00:23:26,180 --> 00:23:27,500 This boot lock program 310 00:23:27,500 --> 00:23:29,320 that I'm going to demonstrate to you today 311 00:23:29,980 --> 00:23:30,420 is 312 00:23:32,100 --> 00:23:32,980 freely available 313 00:23:33,740 --> 00:23:35,340 on the web. Or I shouldn't say freely 314 00:23:35,340 --> 00:23:37,520 available. I paid $29.95 for it. 315 00:23:37,520 --> 00:23:37,720 Actually. 316 00:23:40,220 --> 00:23:41,480 And what it basically 317 00:23:41,480 --> 00:23:43,380 does is it prevents 318 00:23:43,380 --> 00:23:45,160 the normal booting of a machine 319 00:23:45,160 --> 00:23:47,400 by intercepting your 320 00:23:47,400 --> 00:23:48,980 boot sector. Now, 321 00:23:49,740 --> 00:23:51,260 for any of you that know how hard drives 322 00:23:51,260 --> 00:23:53,100 work, when you 323 00:23:53,100 --> 00:23:55,520 turn on your machine, as soon as you turn it on 324 00:23:55,520 --> 00:23:57,300 it reads out your master boot record. 325 00:23:57,780 --> 00:23:59,580 Reads your master boot record, 326 00:23:59,740 --> 00:24:01,600 determines what your active partition is 327 00:24:01,600 --> 00:24:03,320 and then reads that active 328 00:24:03,320 --> 00:24:05,420 partition, that partition 329 00:24:05,420 --> 00:24:07,220 which is marked active. 330 00:24:08,200 --> 00:24:09,480 Reads the boot code off 331 00:24:09,480 --> 00:24:11,560 the boot sector off the beginning of that 332 00:24:11,560 --> 00:24:13,480 drive. That's where this 333 00:24:13,480 --> 00:24:14,640 whole thing comes into play. 334 00:24:15,160 --> 00:24:17,140 They actually start up as soon as you 335 00:24:17,140 --> 00:24:19,200 try to load from that drive 336 00:24:20,500 --> 00:24:21,460 and they 337 00:24:21,460 --> 00:24:23,560 prevent you from just getting 338 00:24:23,560 --> 00:24:25,440 in. They look pretty 339 00:24:25,440 --> 00:24:27,580 simplistic. All they do 340 00:24:28,080 --> 00:24:29,180 Drive back in this one? 341 00:24:29,320 --> 00:24:31,440 Yeah. Good. All they really 342 00:24:31,440 --> 00:24:32,280 do is 343 00:24:33,720 --> 00:24:35,120 when you boot them up 344 00:24:35,120 --> 00:24:35,800 they 345 00:24:37,520 --> 00:24:39,260 give you a password. Some of them 346 00:24:39,260 --> 00:24:40,980 have passwords for multiple people. 347 00:24:41,300 --> 00:24:42,940 They have the ability to let administrators 348 00:24:42,940 --> 00:24:45,200 get in. They have the ability to do 349 00:24:45,200 --> 00:24:47,200 all different sorts of cool things 350 00:24:47,200 --> 00:24:49,020 like that. Real 351 00:24:49,020 --> 00:24:50,040 problem is 352 00:24:50,800 --> 00:24:52,360 they don't have 353 00:24:54,600 --> 00:24:55,200 anything 354 00:24:55,200 --> 00:24:57,260 linking, any security linking to them on 355 00:24:57,260 --> 00:24:59,260 the back end that would prevent you 356 00:24:59,260 --> 00:25:01,280 from bypassing them. You could do 357 00:25:01,280 --> 00:25:03,120 anything from rewriting the boot 358 00:25:03,120 --> 00:25:04,580 sector, which is really easy, 359 00:25:05,240 --> 00:25:07,420 to just booting 360 00:25:07,420 --> 00:25:09,060 off of the disk, which is 361 00:25:09,060 --> 00:25:11,160 really the easiest thing to do in this 362 00:25:11,160 --> 00:25:13,200 situation. You could take a boot 363 00:25:13,200 --> 00:25:15,180 floppy, you drop a little sucker 364 00:25:15,180 --> 00:25:17,100 in there, it'll come right up 365 00:25:17,100 --> 00:25:19,120 and it'll work for you. 366 00:25:19,180 --> 00:25:20,540 Let me show you what these guys look like. 367 00:25:21,980 --> 00:25:22,420 Two. 368 00:25:30,160 --> 00:25:30,600 Hey. 369 00:25:31,620 --> 00:25:33,160 It's deciding to work a little quicker 370 00:25:33,160 --> 00:25:34,440 now. Three. 371 00:25:37,840 --> 00:25:38,880 Three's not working yet. 372 00:25:40,580 --> 00:25:41,900 Is that four or three? 373 00:25:42,000 --> 00:25:44,140 Four. Sorry about that. 374 00:25:48,800 --> 00:25:49,460 Keyboard error. 375 00:25:49,640 --> 00:25:50,120 Yeah, blah. 376 00:25:54,380 --> 00:25:55,380 Oh, that's our 377 00:25:55,380 --> 00:25:56,620 bias password. Okay. 378 00:25:58,300 --> 00:25:59,420 Yeah, let me switch it. 379 00:26:20,540 --> 00:26:21,500 All right. 380 00:26:24,000 --> 00:26:25,200 Here we go. 381 00:26:27,060 --> 00:26:28,500 That must take so much longer. 382 00:26:30,220 --> 00:26:30,900 All right. 383 00:26:31,380 --> 00:26:33,060 So here's my computer booting up. 384 00:26:36,180 --> 00:26:37,400 Booting up off the hard disk. 385 00:26:37,420 --> 00:26:39,240 Hard drive. And the first thing that we 386 00:26:39,240 --> 00:26:41,240 get is the intercepted boot 387 00:26:41,240 --> 00:26:43,220 code. And it prompts us 388 00:26:43,220 --> 00:26:45,020 with the bias password. 389 00:26:45,240 --> 00:26:47,280 With the, pardon me, the boot 390 00:26:47,280 --> 00:26:48,000 locker password. 391 00:26:49,200 --> 00:26:50,700 Now, this password 392 00:26:50,700 --> 00:26:53,300 is a little bit better than the bias one that we just 393 00:26:53,300 --> 00:26:55,240 tried to defeat. In that 394 00:26:55,240 --> 00:26:57,100 it is ported with the hard drive. It's 395 00:26:57,100 --> 00:26:58,880 actually modifying the hard drive. 396 00:26:59,100 --> 00:27:01,180 So if we take the drive out, we're 397 00:27:01,180 --> 00:27:03,200 still going to have this security when 398 00:27:03,200 --> 00:27:04,260 we go on to the next computer. 399 00:27:05,380 --> 00:27:06,420 But it's not 400 00:27:06,420 --> 00:27:07,100 really any better. 401 00:27:07,420 --> 00:27:09,300 Because if we put a floppy disk 402 00:27:09,300 --> 00:27:12,060 in it, which I think we have our 403 00:27:13,540 --> 00:27:16,400 floppy disk rate. Is this bootable? 404 00:27:18,760 --> 00:27:21,820 No, I can, it doesn't matter. 405 00:27:28,380 --> 00:27:31,800 As soon as we boot it to a floppy, 406 00:27:34,100 --> 00:27:35,880 it's going to come up. Oh, you're right. 407 00:27:35,940 --> 00:27:36,520 Oh, that's the machine. 408 00:27:37,420 --> 00:27:39,340 As soon as we boot it to a floppy, 409 00:27:39,950 --> 00:27:41,520 we can have all of the information 410 00:27:41,520 --> 00:27:42,960 out of it. Because 411 00:27:42,960 --> 00:27:45,320 we're not actually encrypting the information, 412 00:27:45,440 --> 00:27:47,400 protecting the information, or protecting the 413 00:27:47,400 --> 00:27:49,440 partition table, or any of that 414 00:27:49,440 --> 00:27:51,180 good stuff. All we're doing 415 00:27:51,180 --> 00:27:53,480 is making it harder to 416 00:27:53,480 --> 00:27:54,900 boot the computer. So 417 00:27:54,900 --> 00:27:57,140 this doesn't really protect us either. 418 00:27:57,820 --> 00:27:59,300 And we're also still, 419 00:27:59,920 --> 00:28:01,500 we still have the regular problems 420 00:28:01,500 --> 00:28:03,660 with what 421 00:28:03,660 --> 00:28:05,600 happens if we forget our password, 422 00:28:05,740 --> 00:28:06,840 what if we want to do reset, 423 00:28:07,420 --> 00:28:09,620 all that good stuff. This is a bootable 424 00:28:09,620 --> 00:28:11,220 CD that I just dropped in here. 425 00:28:11,520 --> 00:28:13,560 As soon as I drop the bootable CD in, 426 00:28:14,840 --> 00:28:15,740 you'll notice that 427 00:28:15,740 --> 00:28:17,860 even though I've got that boot lock 428 00:28:17,860 --> 00:28:19,720 product installed on here, 429 00:28:20,380 --> 00:28:21,640 I go to my C drive, 430 00:28:22,140 --> 00:28:23,360 I do a directory, 431 00:28:24,260 --> 00:28:25,300 there's all my files. 432 00:28:25,480 --> 00:28:27,700 So I can copy any file I want off here, 433 00:28:27,800 --> 00:28:29,060 I can do anything I want to the machine, 434 00:28:29,540 --> 00:28:31,840 there's no access control whatsoever. 435 00:28:32,700 --> 00:28:33,780 Now this is the same 436 00:28:33,780 --> 00:28:35,620 situation, there's a lot of products out here that 437 00:28:35,620 --> 00:28:37,340 fall into this area. 438 00:28:37,420 --> 00:28:39,800 And there's a lot of people that spend a lot of money, 439 00:28:39,820 --> 00:28:41,720 way too much, on buying them. 440 00:28:42,560 --> 00:28:44,880 There's products like Norton Free RIs Only that I mentioned, 441 00:28:45,000 --> 00:28:47,440 there's this boot locker, and basically if you go on the web 442 00:28:47,440 --> 00:28:50,020 and you do a query for a boot lock, 443 00:28:50,140 --> 00:28:52,160 you're going to find a lot of different people that sell 444 00:28:52,160 --> 00:28:54,320 this sort of thing, but it's pretty much junk. 445 00:28:54,520 --> 00:28:56,300 It doesn't really give you any security, 446 00:28:56,800 --> 00:28:57,880 easy to get around, 447 00:28:59,200 --> 00:29:01,600 doesn't really protect you from anybody that knows what they're doing. 448 00:29:03,120 --> 00:29:05,360 So, what do we do from there? 449 00:29:05,480 --> 00:29:06,500 Pardon? Question? 450 00:29:12,460 --> 00:29:14,600 The question was, with Norton Free RIs Only, 451 00:29:14,700 --> 00:29:16,740 you actually couldn't see the C drive when you boot it up. 452 00:29:16,900 --> 00:29:17,480 That's correct. 453 00:29:17,760 --> 00:29:20,060 But if you rewrote the partition table, 454 00:29:20,180 --> 00:29:21,160 you could see the C drive. 455 00:29:25,940 --> 00:29:26,920 Fdisk slash MBR. 456 00:29:27,700 --> 00:29:30,120 Yes, you could do it with Fdisk slash MBR, 457 00:29:30,300 --> 00:29:33,420 or you could do it with something like Disk Edit 458 00:29:33,420 --> 00:29:35,480 from Norton Utilities, which is what I usually use. 459 00:29:35,580 --> 00:29:36,540 It works a little bit more 460 00:29:37,720 --> 00:29:38,880 controllably, reliably. 461 00:29:39,200 --> 00:29:41,060 It's not in Microsoft, that sort of thing. 462 00:29:42,260 --> 00:29:43,280 Here we go. 463 00:29:46,280 --> 00:29:49,800 So, with that, what have we done? 464 00:29:54,750 --> 00:29:57,820 So, so far, we've circumvented a bias password system. 465 00:29:58,280 --> 00:30:01,220 We've circumvented a boot lock system. 466 00:30:01,680 --> 00:30:07,380 Now, the boot lock was easy to circumvent just because it didn't really have a lot of 467 00:30:07,420 --> 00:30:08,040 back-end security. 468 00:30:08,480 --> 00:30:14,160 Now, it's a true point that Norton Free RIs Only had a little bit more security, but it 469 00:30:14,160 --> 00:30:17,340 actually doesn't have security against the next set of tools, which we're talking about, 470 00:30:17,400 --> 00:30:18,220 which are sector editors. 471 00:30:18,500 --> 00:30:24,380 Sector editors can retrieve all the information off the machine, regardless of whether you 472 00:30:24,380 --> 00:30:27,900 mess up the partition table or not, because it just reads the information directly off 473 00:30:27,900 --> 00:30:28,260 the machine. 474 00:30:28,560 --> 00:30:30,400 All your file structures are there. 475 00:30:30,840 --> 00:30:35,840 All the file beginning and ending, all that stuff is there, and you could easily get it 476 00:30:35,840 --> 00:30:37,400 off and copy it to a floppy and take whatever you want. 477 00:30:37,400 --> 00:30:41,880 So, boot locks, not really a good idea. 478 00:30:43,680 --> 00:30:44,560 File encryption. 479 00:30:46,900 --> 00:30:51,500 There's a lot of different things out there for file encryption, and I'm going to show 480 00:30:51,500 --> 00:30:53,280 you a couple different things. 481 00:30:53,540 --> 00:30:56,800 A lot of these things you may know, some you may not. 482 00:30:57,760 --> 00:31:05,160 The bad thing about file encryption, and basically all security products that run inside 483 00:31:05,160 --> 00:31:07,340 Windows after the operating system has started. 484 00:31:07,340 --> 00:31:11,460 Is that they're cursed with having to run in a multi-tasking environment. 485 00:31:12,100 --> 00:31:18,600 So as soon as you start up Windows, or whatever operating system you're talking about, and 486 00:31:18,600 --> 00:31:23,640 you have a product that asks you for authentication, you have an opportunity to have another product 487 00:31:23,640 --> 00:31:27,760 attacking, or another program attacking that authentication scheme. 488 00:31:28,620 --> 00:31:33,780 So as long as you're using regular passwords and you're not using something like smart 489 00:31:33,780 --> 00:31:35,220 cards or two-factor authentication. 490 00:31:35,920 --> 00:31:37,320 You're open for a lot of security. 491 00:31:37,320 --> 00:31:40,780 You're open for open season on attacking that program. 492 00:31:42,900 --> 00:31:47,140 You also have another problem with things like file encryption, which is recovery, lost 493 00:31:47,140 --> 00:31:47,700 passwords. 494 00:31:48,480 --> 00:31:54,820 Also you have an assurance problem, which is a big problem for people that have secure 495 00:31:54,820 --> 00:31:56,820 information that they want to make sure stays secure. 496 00:31:57,120 --> 00:32:00,200 How do you know that they haven't been able to break it? 497 00:32:00,600 --> 00:32:02,560 And you really don't have a way. 498 00:32:02,760 --> 00:32:06,980 If they can take the file away with them and work at it on their leisure, then you have 499 00:32:06,980 --> 00:32:07,780 no way to guarantee. 500 00:32:08,080 --> 00:32:11,940 Your only real way is to make sure that they can't get in the file system at all. 501 00:32:13,660 --> 00:32:15,520 So what am I going to show you on that? 502 00:32:16,220 --> 00:32:20,440 So file encryption, it allows you to protect your information with strong encryption. 503 00:32:20,780 --> 00:32:25,200 Weakest link is that it runs in a multi-tasking environment. 504 00:32:25,780 --> 00:32:28,700 Password security is only as strong as the password, which is true. 505 00:32:28,820 --> 00:32:31,620 So I'm going to show you some of the different tools you can use to attack it. 506 00:32:32,100 --> 00:32:33,940 There are some possible mitigations. 507 00:32:34,200 --> 00:32:35,520 Things like dynamic tokens. 508 00:32:35,720 --> 00:32:36,860 X9.99. 509 00:32:36,860 --> 00:32:39,980 Challenge and response tokens, which I don't know if some of you guys are familiar with. 510 00:32:40,220 --> 00:32:43,640 They're basically hardware tokens with an encryption scheme built into them. 511 00:32:43,820 --> 00:32:47,920 So you have to have the token in order to authenticate against your machine. 512 00:32:48,560 --> 00:32:51,420 There's also smart cards that you can authenticate against your machine. 513 00:32:51,940 --> 00:32:57,120 And if you don't have the key that's burnt into that smart card, you can't access the 514 00:32:57,120 --> 00:32:57,400 information. 515 00:32:57,840 --> 00:33:03,440 So if, for example, a good example would be if you encrypted on a smart card and you put 516 00:33:03,440 --> 00:33:06,100 that information on your machine. 517 00:33:06,100 --> 00:33:10,020 But you took the smart card and you had it in your pocket, somebody could run off with 518 00:33:10,020 --> 00:33:11,820 the machine and do whatever they wanted to do. 519 00:33:11,940 --> 00:33:16,520 And they wouldn't be able to decrypt it unless they had the actual physical key that you 520 00:33:16,520 --> 00:33:16,740 had. 521 00:33:17,460 --> 00:33:19,220 USB tokens, another good example. 522 00:33:19,320 --> 00:33:20,500 They have some weaknesses also. 523 00:33:20,620 --> 00:33:22,380 They have been attacked in a couple different ways. 524 00:33:23,060 --> 00:33:24,720 But generally they're pretty darn good. 525 00:33:25,580 --> 00:33:27,360 There's also biometrics and things like that. 526 00:33:27,820 --> 00:33:32,600 Let's look a little bit at what these things do and how to attack. 527 00:33:33,480 --> 00:33:34,020 All right. 528 00:33:34,060 --> 00:33:35,620 Well, we've got a couple different things here. 529 00:33:36,100 --> 00:33:47,640 First thing we can take a look at is basically how to attack a file with a Windows password 530 00:33:47,640 --> 00:33:48,160 prompt. 531 00:33:48,480 --> 00:33:49,460 Let's look at that. 532 00:33:54,320 --> 00:33:55,480 Here we go. 533 00:33:56,000 --> 00:33:56,280 Okay. 534 00:34:04,420 --> 00:34:09,660 I'm going to open up a file now that has been protected. This is just a simple demonstration 535 00:34:09,660 --> 00:34:16,620 of a password. If we open up this document, this is a protected Word document now. It's 536 00:34:16,620 --> 00:34:22,520 protected against change. When I try to unprotect it, it's going to give me a password prompt 537 00:34:22,520 --> 00:34:27,040 in just a regular box, and we're going to use that for our demonstration. There's lots 538 00:34:27,040 --> 00:34:32,400 of other things you could hack against. I often demonstrate this in hacking against 539 00:34:32,400 --> 00:34:39,920 the PGP Windows prompt where you can do a passphrase. That's another good example. This 540 00:34:39,920 --> 00:34:45,700 is a pretty simplistic one. Let me show you how this guy works. As soon as you go to unprotect 541 00:34:45,700 --> 00:34:52,180 this guy, it pops you with an authentication. 542 00:34:54,160 --> 00:34:59,620 This authentication screen is a screen in itself. You notice it floats around. It does 543 00:34:59,620 --> 00:35:04,740 all the good stuff. If you're a programmer out there, you know that this box has controls. 544 00:35:05,040 --> 00:35:09,980 It's got a name. It's got a box. It's got different actions that can perform against 545 00:35:10,520 --> 00:35:15,380 it. You could, of course, snoop this box, which I'll show you in a second. You could 546 00:35:15,380 --> 00:35:20,520 find out what all the controls are doing, anything that's being entered in here. I'm 547 00:35:20,520 --> 00:35:21,420 going to show you in a second. 548 00:35:22,520 --> 00:35:26,760 Even when it enters star, star, star, of course, you can get it to reveal all that because 549 00:35:26,760 --> 00:35:31,300 it has to broadcast it as part of the control. That's rather an obvious thing, but I'll 550 00:35:31,300 --> 00:35:37,660 show it to you in a minute anyway. Generally, let me show you an attack on this guy. This 551 00:35:37,660 --> 00:35:46,540 box is up. We're going to now find my... Actually, let's just do it this way. 552 00:35:54,860 --> 00:36:01,240 We're going to run an old program. Works really, really good, though. It's called Claymore. 553 00:36:01,360 --> 00:36:07,800 You can get it on all the good hacking sites, hackers.com, all over the place. Works really 554 00:36:07,800 --> 00:36:14,000 well, really, really well, and it's really, really easy. That's why I like to demo with 555 00:36:14,000 --> 00:36:18,880 it. Let me show you what it does. Basically, what Claymore is is it's a very simplistic 556 00:36:18,880 --> 00:36:21,760 program that allows you to... 557 00:36:22,600 --> 00:36:29,360 Use dictionary attack or random character generated brute force attacks. What it does 558 00:36:29,360 --> 00:36:34,520 is it gets the focus of a window, and then it just throws passwords at it until it's 559 00:36:34,520 --> 00:36:39,540 successful. There's lots of different ones of these utilities. It's actually not that 560 00:36:39,540 --> 00:36:43,920 hard to even write one of these because all you're doing is going through a file, reading 561 00:36:43,920 --> 00:36:48,880 the output, and then sending it out to the screen. It's not hard at all. It's really 562 00:36:48,880 --> 00:36:49,340 simplistic. 563 00:36:50,320 --> 00:36:51,740 Let me show you how this works. 564 00:36:51,760 --> 00:36:54,520 Let me show you how this guy works. If I choose a file, I'm going to choose a dictionary 565 00:36:54,520 --> 00:37:01,540 file for this. This has got a whole bunch of different passwords in it. It could be 566 00:37:02,160 --> 00:37:08,540 a dictionary file like userdict off the internet. It could be my... There's lots of different 567 00:37:08,540 --> 00:37:13,640 Linux password crackers that use large dictionaries that you can get off the internet. This dictionary 568 00:37:13,640 --> 00:37:18,100 file is not that big because it's only for the sake of example, but you can get really 569 00:37:18,100 --> 00:37:18,680 huge ones. 570 00:37:19,620 --> 00:37:25,960 I then entered the strokes that I wanted to do after it enters its password. It goes 571 00:37:25,960 --> 00:37:30,360 through the entries one at a time, enters the password, and then it does these keys 572 00:37:30,360 --> 00:37:30,900 to finish up. 573 00:37:31,040 --> 00:37:36,340 I could also have a whole set of keys that it has to do. It has to hit control F1, switch 574 00:37:36,340 --> 00:37:41,520 around, change window focus, do a whole bunch of things before it runs. In this case, it's 575 00:37:41,520 --> 00:37:45,620 pretty simplistic. What it's going to do is it's going to go through these words one 576 00:37:45,620 --> 00:37:46,080 at a time. 577 00:37:46,240 --> 00:37:48,660 I hit start. It's going to start counting down. It's going to go through these words 578 00:37:48,680 --> 00:37:54,620 one at a time, then I point it at what I want it to break. I point it right here. It's 579 00:37:54,620 --> 00:37:58,180 going to count down and then it's just going to start going crazy on that window and throwing 580 00:37:58,180 --> 00:38:02,880 passwords until it gets in. It got in pretty quick. You notice if I let it keep running, 581 00:38:03,600 --> 00:38:07,380 you're going to see all the passwords that it's throwing at it. It throws them fast, 582 00:38:07,500 --> 00:38:11,820 fast, fast, fast. This is, it's running pretty slow because it's running inside Word. 583 00:38:12,080 --> 00:38:17,920 I did it in a text editor, you see it even runs faster than this. It just goes through 584 00:38:17,920 --> 00:38:21,880 until it finds the password, and then it'll actually just keep going anyway. 585 00:38:22,800 --> 00:38:25,780 But you can use that against anything that has 586 00:38:25,780 --> 00:38:29,720 a Windows password prompt. Anything. Doesn't matter what it is. 587 00:38:29,840 --> 00:38:32,980 Unless they're smart enough to put something in like a 588 00:38:33,560 --> 00:38:37,920 maximum number of attempts, something like that. Other than that, you can 589 00:38:37,920 --> 00:38:41,840 use this against that. And you'd be surprised how many things don't put maximum level 590 00:38:41,840 --> 00:38:46,040 of attempts. The other good countermeasure to this when you're programming 591 00:38:46,040 --> 00:38:49,900 is putting in the time limitations. But you can account for that 592 00:38:49,900 --> 00:38:51,980 in this. You could restart 593 00:38:53,440 --> 00:38:57,640 open the document again, or something like that. You could have a new 594 00:38:57,640 --> 00:39:01,560 setup sequence in the beginning of the document to close it and then open it again. 595 00:39:01,740 --> 00:39:05,220 And then you may get around the timeout. You may not have to wait 30 seconds or whatever. 596 00:39:06,880 --> 00:39:09,860 So this is a simplistic thing. The next thing 597 00:39:09,860 --> 00:39:13,780 I'm going to show you also to go with this that's also simplistic 598 00:39:13,780 --> 00:39:17,280 is what I was just talking about. And that is the 599 00:39:18,620 --> 00:39:20,120 sniffer for Windows. 600 00:39:21,220 --> 00:39:25,860 Again, this is just a regular hacker tool that you can get off hackers.com. 601 00:39:26,140 --> 00:39:28,760 You can get it all over the place. It's actually just a 602 00:39:31,580 --> 00:39:33,540 small, almost like a VB debugging 603 00:39:33,540 --> 00:39:37,720 type of tool. Because you'll notice if I put this up 604 00:39:37,720 --> 00:39:37,960 here, 605 00:39:41,480 --> 00:39:43,340 this is the window that reads 606 00:39:43,340 --> 00:39:43,700 my 607 00:39:44,700 --> 00:39:48,260 text out, right? If I take this cursor and I put it across 608 00:39:48,260 --> 00:39:52,220 anything that's a control, you'll notice that it's going to bring up 609 00:39:52,220 --> 00:39:56,280 what that control does. Check for update, about. That's the name of the 610 00:39:56,280 --> 00:40:02,300 control. All these things are broadcasted. If I bring it up here on top of 611 00:40:02,300 --> 00:40:05,840 the password there, it tells me that the password that I entered under 612 00:40:05,840 --> 00:40:11,640 all those stars is defcom. This works really well for anything that 613 00:40:11,640 --> 00:40:13,760 stores a password if you forget your password. 614 00:40:13,760 --> 00:40:19,640 Your password for anything. And it comes up, star, star, star. It will always decrypt that. 615 00:40:19,900 --> 00:40:24,180 There are a couple companies that have done a good job of subverting this. 616 00:40:24,340 --> 00:40:28,160 And they basically don't let the password even enter in the program. They're not entered 617 00:40:28,160 --> 00:40:32,480 into the window. Old versions of PGP, actually, they still 618 00:40:32,480 --> 00:40:36,580 came up. New versions of PGP actually block this now. 619 00:40:36,820 --> 00:40:40,340 So it doesn't broadcast the password out. But most programs 620 00:40:40,340 --> 00:40:43,600 that you get, anything that you get this star, star, star with, you can get the password out by 621 00:40:43,600 --> 00:40:47,140 just snooping the window. And it will give you the password that you 622 00:40:47,140 --> 00:40:52,980 entered. Pretty simplistic, pretty easy, pretty effective. Gets the password out really quick. 623 00:40:54,820 --> 00:40:57,620 So that's that guy. So we're not going to change that. 624 00:41:02,820 --> 00:41:13,580 Now. All right. So, the bad part about file encryption, or any sort of file password 625 00:41:13,600 --> 00:41:17,220 prompt, is that it runs in a multi-threatened tasking environment. 626 00:41:19,080 --> 00:41:22,460 And the other bad part is that the password security is the only, is 627 00:41:23,000 --> 00:41:26,580 only, or I should say the security is only as strong as the password. 628 00:41:27,320 --> 00:41:31,140 Two-factor authentication helps you out a little bit here, because you can't hack at two-factor 629 00:41:31,140 --> 00:41:35,160 authentication. It's, you know, you need a little bit, you need an encryption key, 630 00:41:35,300 --> 00:41:39,140 you need a response. It might change multiple times. There's lots of different 631 00:41:39,140 --> 00:41:41,800 things you can do for this. Yeah. 632 00:41:44,820 --> 00:41:52,100 Pardon? What if you lose your smart card? That's a good question. The answer is that 633 00:41:52,100 --> 00:41:57,660 there's a lot of different things out there that work in an infrastructure, so more than 634 00:41:57,660 --> 00:42:03,400 one person have, has access to your information. There's a couple different systems that are 635 00:42:03,400 --> 00:42:09,840 built to run inside, like, an administrative interface. Whether you are your own backdoor 636 00:42:09,840 --> 00:42:13,580 or administrator, or, you know, somebody else's backdoor, or somebody else's backdoor, or 637 00:42:13,600 --> 00:42:18,240 somebody else's. You could lock it to two smart cards, lock it to something different, 638 00:42:18,400 --> 00:42:23,280 a smart card and a token, or lock it to a, have a fixed password as a backdoor, but have 639 00:42:23,280 --> 00:42:27,160 it, like, 50 characters, something crazy like that, so you don't have to type it in 640 00:42:27,160 --> 00:42:30,120 every time. Rent something randomly generated. Lots of different things. 641 00:42:31,500 --> 00:42:37,580 Okay. So, now on to some different tools that we have to work with on this whole thing. 642 00:42:37,840 --> 00:42:43,080 If we want to get the information off a machine, some of the tools that we have available to 643 00:42:43,080 --> 00:42:50,580 us is sector editors. Sector editor that I'm going to show you today is Norton Utilities 644 00:42:50,580 --> 00:42:56,200 2001 Disk Edit. Works really simply. It's got a lot of nice features in there. It's 645 00:42:56,200 --> 00:43:00,960 got searching. It's got spanning. You can look all over the disk. So, even if you were 646 00:43:00,960 --> 00:43:04,840 in a situation like Norton for your eyes only, which messed up the boot record a little bit, 647 00:43:04,920 --> 00:43:09,160 I could still search for any information I wanted on the disk and take it all off. So, 648 00:43:09,340 --> 00:43:12,520 a confidential document, a PowerPoint. 649 00:43:13,080 --> 00:43:17,660 Anything like that, I could go around it and just zoom right through it. There are 650 00:43:17,660 --> 00:43:23,100 a lot of other sector editors that are available on the market. It's actually not that hard 651 00:43:23,100 --> 00:43:29,640 of a thing to even write a sector editor if you wanted to. The, if you go to a query 652 00:43:29,640 --> 00:43:33,480 on, like, download.com, you'll notice that there's a bunch of them, like WinHex and things 653 00:43:33,480 --> 00:43:42,320 like that that are pretty darn good sector editors. So, let's switch over here and we'll 654 00:43:43,080 --> 00:43:43,960 see just a minute what they do. 655 00:43:44,300 --> 00:43:46,880 This really isn't a hedge pool at all. 656 00:43:50,580 --> 00:43:55,840 That's not, that's a good question. This is ineffective, sector editors are not 657 00:43:55,840 --> 00:44:00,260 effective on things that do encryption on the data. That's correct. You have to tack, 658 00:44:00,400 --> 00:44:03,880 things that do encryption on the data, you would need to tack them through the method 659 00:44:03,880 --> 00:44:08,440 like I was just showing. Where it throws multiple passwords. Or 아, through attacking 660 00:44:08,440 --> 00:44:12,920 them. Through. Actually, I, I shouldn't say that. I shouldn't say this isn't effective. 661 00:44:13,080 --> 00:44:15,520 on things that encrypt the data. 662 00:44:15,640 --> 00:44:16,740 Let me give you an example. 663 00:44:17,100 --> 00:44:20,760 EFS, which is coming up in probably three or four slides. 664 00:44:25,500 --> 00:44:26,200 That's true. 665 00:44:30,200 --> 00:44:30,680 That's true. 666 00:44:30,780 --> 00:44:32,460 Yeah, things that are implemented well, 667 00:44:33,040 --> 00:44:35,020 if they encrypt the data and they implement it well 668 00:44:35,020 --> 00:44:37,820 and they trash all of the old temp files 669 00:44:37,820 --> 00:44:39,340 and they do all that good stuff, 670 00:44:40,580 --> 00:44:42,500 this attack method does not work. 671 00:44:42,500 --> 00:44:46,620 But if they have implemented their encryption of the data 672 00:44:46,620 --> 00:44:49,340 in any dumb sort of way 673 00:44:49,340 --> 00:44:51,000 that they don't encrypt the temp file, 674 00:44:51,300 --> 00:44:53,500 they don't encrypt the page file, 675 00:44:53,800 --> 00:44:54,860 there's lots of different things 676 00:44:54,860 --> 00:44:56,820 that could have information left in them. 677 00:44:56,920 --> 00:44:58,680 Then you can get to all that information 678 00:44:58,680 --> 00:44:59,520 with the sector editor. 679 00:45:00,140 --> 00:45:02,140 Let's take a look at what the sector editor looks like. 680 00:45:06,600 --> 00:45:07,420 Let's see. 681 00:45:09,000 --> 00:45:09,960 Not that guy. 682 00:45:11,600 --> 00:45:12,340 This guy. 683 00:45:15,120 --> 00:45:16,220 Okay, here we go. 684 00:45:21,640 --> 00:45:23,040 Okay, our sector editor. 685 00:45:23,380 --> 00:45:26,600 If we start it up, as I said, I'm going to use the Norton one 686 00:45:26,600 --> 00:45:30,140 just because it's pretty and it shows kind of well, 687 00:45:30,700 --> 00:45:32,160 but there's a lot of other ones. 688 00:45:35,380 --> 00:45:36,840 Oh, yeah, I'm on the wrong drive. 689 00:45:42,880 --> 00:45:44,280 I need to reboot it. 690 00:45:44,700 --> 00:45:45,920 I need to reboot it. 691 00:45:46,080 --> 00:45:47,120 No, I need to reboot it. 692 00:45:49,680 --> 00:45:50,320 Here we go. 693 00:45:50,360 --> 00:45:51,820 Let me boot up onto this boot disk 694 00:45:51,820 --> 00:45:55,940 and enable the disk so I can see all the information on it. 695 00:45:58,180 --> 00:46:01,640 By the way, if you are looking at trying to get information off machines, 696 00:46:02,160 --> 00:46:07,820 a really good utility to make is there's a CD burning program out there 697 00:46:07,820 --> 00:46:09,700 called Roxio, which a lot of you may use. 698 00:46:11,100 --> 00:46:12,260 You'll notice that. 699 00:46:12,500 --> 00:46:14,720 They give you an option to build a bootable CD, 700 00:46:15,200 --> 00:46:17,740 which is really useful if you want to be able to go to a machine 701 00:46:17,740 --> 00:46:19,320 and get anything you want off of it 702 00:46:19,320 --> 00:46:23,720 because you can basically mount 650 megs of tools 703 00:46:24,240 --> 00:46:28,140 to play with and do whatever you want with on that machine, 704 00:46:28,760 --> 00:46:30,640 which is what I'm doing in this particular case. 705 00:46:36,200 --> 00:46:37,520 Okay, disk edit. 706 00:46:43,420 --> 00:46:45,520 So, I'm going to bring this up in a read-only mode, 707 00:46:46,100 --> 00:46:47,900 take a look at my C drive. 708 00:46:49,960 --> 00:46:52,180 You'll notice that in most cases, 709 00:46:52,260 --> 00:46:54,520 disk edit understands even your file system, 710 00:46:54,640 --> 00:46:56,880 so it makes it vastly simplistic. 711 00:46:57,480 --> 00:46:58,960 It sees all my files. 712 00:46:59,100 --> 00:47:00,460 It sees all my directories. 713 00:47:00,600 --> 00:47:04,520 I don't even have to look at this in hex or all those other things. 714 00:47:04,560 --> 00:47:07,780 I can pick up any one of these files and take a look at them. 715 00:47:08,760 --> 00:47:11,260 I'm going to change the view a little bit. 716 00:47:12,500 --> 00:47:13,440 So, we can take a look. 717 00:47:16,100 --> 00:47:17,880 You can look at it as different file systems. 718 00:47:18,040 --> 00:47:19,140 You can look at the partition table. 719 00:47:19,280 --> 00:47:20,520 You can look at the boot record. 720 00:47:21,000 --> 00:47:23,700 You can modify this, guys, however you want. 721 00:47:24,500 --> 00:47:26,680 We can also look at what the information is looking like 722 00:47:26,680 --> 00:47:29,020 on the actual disk and search through it. 723 00:47:29,640 --> 00:47:32,580 Search through it one piece at a time to try to find the data. 724 00:47:33,300 --> 00:47:35,620 So, if we were looking for data on somebody's machine 725 00:47:36,100 --> 00:47:37,320 or something that we lost, 726 00:47:37,580 --> 00:47:39,800 all we have to do is zip through here 727 00:47:39,800 --> 00:47:41,860 and we can have any data that we want off this machine. 728 00:47:42,540 --> 00:47:45,420 And this is reading it at bypassing all security, 729 00:47:45,580 --> 00:47:46,980 file level security, everything. 730 00:47:47,360 --> 00:47:51,140 All we're doing is taking this directly off the sectors of the drive. 731 00:47:51,280 --> 00:47:53,760 Pretty simplistic, but it's pretty powerful. 732 00:47:57,780 --> 00:47:59,160 So, that's what they look like. 733 00:47:59,180 --> 00:48:01,660 I don't know if you guys have had a chance to look at them before. 734 00:48:02,980 --> 00:48:07,080 Let me show you what the partition table and everything looks like. 735 00:48:08,040 --> 00:48:10,320 You can tell what operating system is on the machine 736 00:48:10,320 --> 00:48:12,180 just by booting to it, even if it were protected. 737 00:48:13,060 --> 00:48:16,180 You could tell, even with file encryption, 738 00:48:16,920 --> 00:48:19,660 what type of operating system attack you wanted to do. 739 00:48:19,760 --> 00:48:22,680 If you wanted to plug in a key logger underneath 740 00:48:22,680 --> 00:48:26,140 so you could pick up the keys that were being entered 741 00:48:26,140 --> 00:48:28,680 for authentication to open up a file encryption, 742 00:48:29,080 --> 00:48:30,120 you could do that. 743 00:48:30,320 --> 00:48:32,540 You could tell which partition is being booted from 744 00:48:32,540 --> 00:48:34,860 so you could intercept that and put it in a false boot sector. 745 00:48:35,680 --> 00:48:37,380 You could do pretty much anything you want. 746 00:48:37,980 --> 00:48:40,080 Disk editors are your favorite tool 747 00:48:40,080 --> 00:48:41,520 for taking a look at everything. 748 00:48:42,320 --> 00:48:42,480 You can do that. 749 00:48:42,480 --> 00:48:43,100 You can do anything on that machine. 750 00:48:44,100 --> 00:48:45,780 So, they're pretty comprehensive, 751 00:48:45,840 --> 00:48:48,060 and they really let you have a lot of access to the machine. 752 00:48:55,300 --> 00:48:55,620 Alright. 753 00:49:01,140 --> 00:49:04,040 Again, that one was Norton Utilities, 754 00:49:04,100 --> 00:49:05,660 but you can get a lot of free ones off the internet. 755 00:49:05,780 --> 00:49:07,280 If you wanted to just take a look at your machine, 756 00:49:07,780 --> 00:49:08,580 it's pretty easy. 757 00:49:08,880 --> 00:49:11,400 You can't hurt anything as long as you leave it in read-only mode, 758 00:49:11,520 --> 00:49:12,460 and it's definitely a great tool. 759 00:49:12,460 --> 00:49:13,180 It's a really interesting reading 760 00:49:13,180 --> 00:49:15,320 to figure out how the file system works 761 00:49:15,320 --> 00:49:16,340 and how it's storing information 762 00:49:16,340 --> 00:49:17,660 and how it retrieves it. 763 00:49:18,000 --> 00:49:19,140 And it's definitely important 764 00:49:19,140 --> 00:49:21,540 if you want to try to keep your information secure 765 00:49:21,540 --> 00:49:22,820 from other people getting into it. 766 00:49:24,840 --> 00:49:27,900 Okay, so how does this link up 767 00:49:27,900 --> 00:49:29,680 with the encrypting file system? 768 00:49:30,140 --> 00:49:32,860 Well, the encrypting file system, 769 00:49:33,060 --> 00:49:34,500 EFS by Microsoft, 770 00:49:35,200 --> 00:49:37,220 is a popular topic out there 771 00:49:37,820 --> 00:49:39,780 in government, in companies, 772 00:49:39,900 --> 00:49:41,220 all over the place, 773 00:49:41,340 --> 00:49:42,440 and a lot of people are interested in it. 774 00:49:42,440 --> 00:49:42,960 They're implementing it, 775 00:49:43,040 --> 00:49:44,040 and a lot of people, 776 00:49:44,560 --> 00:49:46,960 it's like PKI was a couple years ago. 777 00:49:47,440 --> 00:49:48,380 You know, everybody thinks, 778 00:49:49,080 --> 00:49:51,160 thought PKI was the end of the universe 779 00:49:51,160 --> 00:49:53,880 and that it was a solution to every security problem. 780 00:49:54,140 --> 00:49:55,960 EFS is what that is now. 781 00:49:56,920 --> 00:49:58,760 Everybody you've talked to in a company, 782 00:49:58,940 --> 00:50:00,440 they're all, EFS is unbelievable. 783 00:50:00,700 --> 00:50:02,600 You can protect against it, 784 00:50:02,680 --> 00:50:05,860 but really there's a lot of attacks against EFS, 785 00:50:06,000 --> 00:50:08,060 most of which you've probably read about on the internet. 786 00:50:10,240 --> 00:50:12,420 NT BugTrack has got a lot of good stuff. 787 00:50:12,420 --> 00:50:13,260 There's a lot of good stuff about it. 788 00:50:14,480 --> 00:50:18,300 Microsoft themselves in that URL 789 00:50:18,300 --> 00:50:19,900 that I started off with there, 790 00:50:20,040 --> 00:50:22,840 they talk a lot about all the different attack methods 791 00:50:23,260 --> 00:50:24,900 that have been used against EFS 792 00:50:24,900 --> 00:50:26,260 and are all successful. 793 00:50:27,460 --> 00:50:29,760 And that's why they basically said that thing about 794 00:50:29,760 --> 00:50:31,120 if you have physical access to the machine, 795 00:50:31,240 --> 00:50:32,400 there's no way that they can prevent you 796 00:50:32,400 --> 00:50:33,440 from having access to it 797 00:50:33,440 --> 00:50:36,660 because they don't have a way to secure EFS right now. 798 00:50:37,760 --> 00:50:38,700 One of the, 799 00:50:40,640 --> 00:50:41,920 one of the two, 800 00:50:41,920 --> 00:50:45,020 two main ways that EFS stinks 801 00:50:45,700 --> 00:50:48,580 is if you encrypt information quite often, 802 00:50:49,220 --> 00:50:52,140 unless you're creating information in an encrypted directory 803 00:50:52,140 --> 00:50:53,720 and leaving it in an encrypted directory, 804 00:50:54,040 --> 00:50:55,660 it's got a big problem with temp files. 805 00:50:56,100 --> 00:50:57,920 I don't know if any of you have seen it, 806 00:50:57,960 --> 00:50:58,520 played with it, 807 00:50:58,580 --> 00:50:59,920 or tried it, 808 00:51:00,060 --> 00:51:04,220 but if you were to actually look for a temp file, 809 00:51:04,420 --> 00:51:05,620 you encrypt a Word document, 810 00:51:05,800 --> 00:51:06,820 you encrypt an Excel file, 811 00:51:07,120 --> 00:51:08,780 you encrypt a PowerPoint presentation, 812 00:51:08,980 --> 00:51:09,640 something like that, 813 00:51:09,800 --> 00:51:11,600 you would find that, 814 00:51:11,920 --> 00:51:15,000 the temp files for that file, 815 00:51:15,120 --> 00:51:16,480 when you move it into an encrypted directory, 816 00:51:16,660 --> 00:51:17,620 still exist. 817 00:51:18,300 --> 00:51:21,100 And you can read all the information fully encrypted. 818 00:51:21,280 --> 00:51:23,000 So you actually get two copies of your data, 819 00:51:23,100 --> 00:51:23,600 one encrypted, 820 00:51:23,860 --> 00:51:25,020 one non-encrypted, 821 00:51:25,220 --> 00:51:27,060 the unencrypted one fully accessible, 822 00:51:27,260 --> 00:51:28,460 you can read it anytime you want, 823 00:51:29,280 --> 00:51:32,700 and the encrypted one with your certificate encryption. 824 00:51:33,520 --> 00:51:35,680 Now the other really interesting way, 825 00:51:35,860 --> 00:51:38,640 and I almost thought about demoing it today, 826 00:51:38,720 --> 00:51:39,960 but it takes a lot of switching, 827 00:51:40,080 --> 00:51:41,820 and you can see how interesting the switch, 828 00:51:41,920 --> 00:51:44,100 switching already works out to be switching between multiple computers, 829 00:51:44,760 --> 00:51:46,860 is the recovery agent attack. 830 00:51:47,500 --> 00:51:50,680 And most of you must have already read about this. 831 00:51:50,980 --> 00:51:53,760 When you set up EFS originally, 832 00:51:54,500 --> 00:51:57,620 EFS by default sets your local administrator to be, 833 00:51:58,260 --> 00:52:00,700 if the machine is not part of an active directory domain, 834 00:52:00,980 --> 00:52:04,200 sets your local administrator to be the recovery agent. 835 00:52:04,420 --> 00:52:06,580 What the recovery agent is, 836 00:52:06,780 --> 00:52:10,840 is the person that is able to save you if you screw yourself 837 00:52:10,840 --> 00:52:11,840 by forgetting your password, 838 00:52:12,480 --> 00:52:14,260 it's a password backup utility. 839 00:52:14,880 --> 00:52:20,640 And most programs that encrypt data have this sort of thought built in, 840 00:52:20,720 --> 00:52:22,360 so basically if you mess yourself up, 841 00:52:22,440 --> 00:52:24,620 you have somebody you can go cry to, 842 00:52:24,800 --> 00:52:27,460 or either an administrator you can cry to, 843 00:52:27,660 --> 00:52:31,380 or your own backdoor that you put into the encryption when you set it up, 844 00:52:31,480 --> 00:52:35,180 so you can get your data back if you forget your password, 845 00:52:35,320 --> 00:52:37,680 or you forget your authentication scheme. 846 00:52:40,040 --> 00:52:41,000 But basically, 847 00:52:41,000 --> 00:52:45,180 the bad thing about local administrator becoming the recovery agent, 848 00:52:45,380 --> 00:52:49,620 is I don't know how many of you have ever played with a utility called Loafcrack, 849 00:52:49,780 --> 00:52:53,340 but it's pretty easy to get local administrator. 850 00:52:54,820 --> 00:52:58,560 Any way from bringing up into NTFS DOS, 851 00:52:59,160 --> 00:53:00,800 and taking the SAM file, 852 00:53:01,060 --> 00:53:02,120 and hacking the SAM file, 853 00:53:02,660 --> 00:53:04,340 so you can log in as administrator, 854 00:53:06,960 --> 00:53:10,020 to just deleting the SAM file entirely, 855 00:53:10,440 --> 00:53:10,980 which is a lot of work, 856 00:53:10,980 --> 00:53:12,200 which I'm sure some of you know, 857 00:53:12,740 --> 00:53:14,180 if you delete the SAM file entirely, 858 00:53:14,460 --> 00:53:17,980 Windows has to recreate it in order to be able to start up again. 859 00:53:19,060 --> 00:53:21,520 So you end up with an administrator with a blank password, 860 00:53:21,580 --> 00:53:22,580 that is the recovery agent, 861 00:53:23,040 --> 00:53:24,200 and the local administrator, 862 00:53:24,360 --> 00:53:25,760 so you have access to all the files. 863 00:53:26,100 --> 00:53:28,400 So if you have physical access to the machine, 864 00:53:28,480 --> 00:53:30,580 you can get anything you want. 865 00:53:31,980 --> 00:53:35,740 Other bad thing about EFS, 866 00:53:36,300 --> 00:53:38,100 is that it has, 867 00:53:39,340 --> 00:53:40,360 you know, the regular, 868 00:53:40,360 --> 00:53:42,500 the regular baggage that comes with PKI. 869 00:53:43,310 --> 00:53:46,080 Now there's a lot of people that are really hot on PKI. 870 00:53:46,360 --> 00:53:49,880 I think PKI has its place particularly in things like email, 871 00:53:50,740 --> 00:53:51,820 and exchanges, 872 00:53:52,960 --> 00:53:54,200 and things of that sort. 873 00:53:54,440 --> 00:53:56,560 But I don't really think that it's good for encryption, 874 00:53:56,700 --> 00:53:59,700 general encryption of sitting data. 875 00:54:00,560 --> 00:54:01,760 And one of those problems, 876 00:54:01,900 --> 00:54:03,640 one of those reasons is certificate theft. 877 00:54:04,480 --> 00:54:09,020 One of the big problems with storing information 878 00:54:09,020 --> 00:54:10,840 in companies, 879 00:54:11,060 --> 00:54:12,180 in your house, 880 00:54:12,280 --> 00:54:13,000 in anywhere, 881 00:54:13,560 --> 00:54:16,400 is that the people that are likely to get attacked, 882 00:54:16,440 --> 00:54:18,100 to attack it is not, 883 00:54:18,100 --> 00:54:19,020 you know, 884 00:54:19,040 --> 00:54:20,780 some foreign government or something like that. 885 00:54:20,940 --> 00:54:22,920 It's more likely somebody that knows something 886 00:54:22,920 --> 00:54:23,620 about the computer, 887 00:54:23,800 --> 00:54:25,840 somebody that knows something about you, 888 00:54:25,980 --> 00:54:27,740 has done research about you, 889 00:54:27,800 --> 00:54:28,960 or your mom, 890 00:54:29,080 --> 00:54:30,260 or something like that, you know. 891 00:54:30,460 --> 00:54:33,720 Somebody that knows something about you, 892 00:54:33,740 --> 00:54:35,760 can make guesses about your password, 893 00:54:35,840 --> 00:54:36,600 or knows your machine, 894 00:54:37,200 --> 00:54:37,820 and they may, 895 00:54:37,820 --> 00:54:39,360 can get physical access to your machine. 896 00:54:39,500 --> 00:54:41,120 Well, if they can get physical access to your machine, 897 00:54:41,300 --> 00:54:42,780 they can steal your certificate. 898 00:54:44,140 --> 00:54:45,280 Now, certificates are, 899 00:54:45,400 --> 00:54:47,060 somebody's gonna raise their hand in two seconds and say, 900 00:54:47,160 --> 00:54:48,300 yes, certificates are protected. 901 00:54:48,540 --> 00:54:49,800 But they're not protected very well. 902 00:54:50,100 --> 00:54:51,540 There's a lot of different ways out there 903 00:54:51,540 --> 00:54:54,060 to get the pins off certificates, 904 00:54:54,360 --> 00:54:55,960 lots of different ways to attack certificates. 905 00:54:56,260 --> 00:54:57,640 As soon as you own the certificate, 906 00:54:57,940 --> 00:54:59,140 you own all the data. 907 00:54:59,240 --> 00:55:00,620 You can do two things. 908 00:55:00,860 --> 00:55:02,540 First thing, you can decrypt anything you want. 909 00:55:02,740 --> 00:55:05,200 And second thing, you can pose as anybody you want. 910 00:55:05,580 --> 00:55:07,640 And if you can pose as anybody you want, 911 00:55:07,820 --> 00:55:08,380 with a certificate, 912 00:55:08,760 --> 00:55:11,180 I mean, as far as a certificate goes, 913 00:55:11,280 --> 00:55:12,560 if you're using a certificate as authentication, 914 00:55:14,020 --> 00:55:15,600 then there's not much purpose to it. 915 00:55:17,380 --> 00:55:21,540 So, EFS has a lot of flaws in it, 916 00:55:21,600 --> 00:55:24,360 and it's not really generally very secure. 917 00:55:26,580 --> 00:55:30,080 So, how do we attack a machine before it started? 918 00:55:30,220 --> 00:55:32,240 Oh, I'm sorry, it's cut off a little bit at the top there. 919 00:55:32,460 --> 00:55:34,640 How can I attack a machine before it starts? 920 00:55:34,820 --> 00:55:36,500 Well, I think I've showed you a couple different ways. 921 00:55:36,500 --> 00:55:38,340 You can steal the hard drive. 922 00:55:38,880 --> 00:55:41,480 You can boot from a boot disk. 923 00:55:41,740 --> 00:55:43,540 You can see whatever information you want. 924 00:55:43,820 --> 00:55:45,580 You can play with NTFS DOS, 925 00:55:46,320 --> 00:55:49,460 which a lot of you have definitely played with. 926 00:55:50,000 --> 00:55:53,520 NTFS DOS lets you mount anything that's NTFS 927 00:55:54,540 --> 00:55:57,920 from a Windows NT or a 2000 machine in DOS, 928 00:55:57,940 --> 00:55:59,780 look at it, read, write it, edit it, 929 00:55:59,840 --> 00:56:00,680 do whatever you need to do. 930 00:56:01,020 --> 00:56:04,160 NT Locksmith, another product from the same company, 931 00:56:04,320 --> 00:56:06,480 lets you, basically, rewrite things. 932 00:56:06,480 --> 00:56:09,520 Write the SAM hashes so you can inject your own account. 933 00:56:10,800 --> 00:56:12,900 There's also some more interesting things 934 00:56:12,900 --> 00:56:13,800 as we get down to its bottom. 935 00:56:14,200 --> 00:56:15,600 Lovecrack, everybody knows about. 936 00:56:15,880 --> 00:56:18,980 Lets you do the NTLM hashes. 937 00:56:20,040 --> 00:56:22,540 Basically, try to decipher passwords 938 00:56:22,540 --> 00:56:25,280 out of your SAM database. 939 00:56:26,340 --> 00:56:30,260 Then, of course, there's the new hot topic for hackers, 940 00:56:30,340 --> 00:56:32,580 which is actor directory injection. 941 00:56:33,620 --> 00:56:36,040 Basically, I can inject any data I want to 942 00:56:36,040 --> 00:56:40,360 in an active directory with no way of tracing it 943 00:56:41,360 --> 00:56:44,560 or taking it out or anything like that. 944 00:56:44,740 --> 00:56:47,480 There's a lot of companies now that are basing their security, 945 00:56:47,920 --> 00:56:51,900 their mail systems, their everything on active directory. 946 00:56:52,080 --> 00:56:55,780 They're trying to move everything into running off that system. 947 00:56:56,240 --> 00:56:58,440 There's really no way that they can prevent you 948 00:56:58,440 --> 00:57:00,680 from injecting your own email accounts. 949 00:57:02,480 --> 00:57:04,900 Brian Glancy at whitehouse.gov, for example. 950 00:57:06,160 --> 00:57:08,520 You can inject whatever you want into the system 951 00:57:08,520 --> 00:57:10,180 if you have physical access. 952 00:57:12,880 --> 00:57:17,880 All these attacks occur by using an alternative operating system 953 00:57:17,880 --> 00:57:20,040 against the machine. 954 00:57:20,440 --> 00:57:21,820 You boot up into DOS, 955 00:57:21,920 --> 00:57:24,120 you boot up into another operating system, Linux, 956 00:57:24,320 --> 00:57:25,920 or something like that, 957 00:57:26,100 --> 00:57:27,940 and then you attack the operating system 958 00:57:27,940 --> 00:57:29,600 when it's not in its started up state. 959 00:57:30,240 --> 00:57:31,880 It's very, very hard to prevent. 960 00:57:31,980 --> 00:57:35,540 Only real way to prevent it is to maybe, either, 961 00:57:35,540 --> 00:57:40,560 encrypt all the information on the machine beginning to end or have I know 962 00:57:40,560 --> 00:57:45,320 there's some military installations that have hardware encryption basically 963 00:57:45,320 --> 00:57:48,860 encrypting cards that encrypt all the data on the drive and basically if you 964 00:57:48,860 --> 00:57:51,460 don't have that card you can't get the data off the drive there's a couple 965 00:57:51,460 --> 00:57:59,840 different installations floppy locks exactly here the tools from sister 966 00:57:59,840 --> 00:58:02,980 sister colonel so you should take a look at if you're interested in the doing 967 00:58:02,980 --> 00:58:10,800 this sort of thing NTFS DOS does what I just talked about it lets you mount NTFS 968 00:58:10,800 --> 00:58:16,260 read write from a floppy disk so you could do anything you want to to empty 969 00:58:16,260 --> 00:58:20,440 system whether it is take the SAM whether it's take the files off there 970 00:58:20,440 --> 00:58:24,700 whether it's try to defeat EFS by deleting the SAM and restarting the 971 00:58:24,700 --> 00:58:30,500 recovery agent whether it's in injection into active directory so basically with 972 00:58:30,500 --> 00:58:32,960 this type of attack and NTFS DOS 973 00:58:32,960 --> 00:58:36,600 you know if you need if you had physical access to a server for any 974 00:58:36,600 --> 00:58:41,280 company you could inject anything you wanted from you know your own email 975 00:58:41,280 --> 00:58:46,600 account to your own bank account if it were a bank to whatever you wanted if 976 00:58:46,600 --> 00:58:51,080 you have physical access that machine you can inject into the system NT 977 00:58:51,080 --> 00:58:58,980 locksmith just a utility that lets you reset inject accounts into SAM pretty 978 00:58:58,980 --> 00:59:02,020 simplistic all it does is reset the hashes to known 979 00:59:02,020 --> 00:59:02,500 value 980 00:59:02,960 --> 00:59:07,240 that way you can you know the password for administrator all of a sudden works 981 00:59:07,240 --> 00:59:15,260 like charm for every system you basically just boot up from it and you 982 00:59:15,260 --> 00:59:19,180 run it and then on the system on the target system and then all of a sudden 983 00:59:19,180 --> 00:59:22,300 boom you've got root you've got system administrator access 984 00:59:33,660 --> 00:59:38,320 what that's a good question yes the quote the question was that NT locksmith 985 00:59:38,320 --> 00:59:45,500 requires an ERD and NTFS DOS requires two machines NTFS DOS requires that you 986 00:59:45,500 --> 00:59:51,000 had made the disk in advance I've made these I made the floppies my NTFS DOS 987 00:59:51,000 --> 00:59:54,280 floppies I don't know six months ago I carry them around with me whenever I 988 00:59:54,280 --> 00:59:58,700 need them I just pop my machine so I had to have a machine sometime in order to 989 00:59:58,700 --> 01:00:02,080 create the NTFS DOS floppies I don't need anything else I just stick them in 990 01:00:02,080 --> 01:00:07,780 there and then boom I got it now regarding regarding the question about 991 01:00:07,780 --> 01:00:13,080 anti locksmith it does require an ERD in some circumstances but there's some 992 01:00:13,080 --> 01:00:16,600 there they have some advanced options that you can do to work around it even 993 01:00:16,600 --> 01:00:22,040 if you don't have the ERD Lovecrack we've probably all played with it easy 994 01:00:22,040 --> 01:00:27,540 fun fast it'll basically doesn't fail it's got a 995 01:00:27,540 --> 01:00:31,760 lot of different ways for you to hack all of the passwords 996 01:00:32,080 --> 01:00:34,820 inside an NT system, an NT domain. 997 01:00:35,900 --> 01:00:39,020 You can take down, either just take the SAM file, 998 01:00:39,220 --> 01:00:41,080 crack it offline, which is nice and safe 999 01:00:41,080 --> 01:00:42,680 because you don't have to worry about sitting at a desk 1000 01:00:42,680 --> 01:00:44,180 inside a company or something like that, 1001 01:00:45,360 --> 01:00:46,980 or wherever you may be, 1002 01:00:47,120 --> 01:00:49,080 and taking all the files off there. 1003 01:00:49,420 --> 01:00:54,920 Or the other thing you could, of course, do 1004 01:00:54,920 --> 01:00:56,760 is you could sit it down at that computer, 1005 01:00:56,900 --> 01:01:00,260 put it in, and run it inside Windows 1006 01:01:00,260 --> 01:01:01,480 and run it real time. 1007 01:01:03,380 --> 01:01:04,460 Everybody's probably seen it. 1008 01:01:05,200 --> 01:01:06,520 Works really simplistically. 1009 01:01:06,600 --> 01:01:07,680 Dumps all your passwords, 1010 01:01:08,160 --> 01:01:09,860 and then it cracks them all one at a time. 1011 01:01:09,900 --> 01:01:10,680 Works very quickly. 1012 01:01:13,180 --> 01:01:13,540 Pardon? 1013 01:01:15,280 --> 01:01:15,740 That's right. 1014 01:01:16,620 --> 01:01:16,980 Exactly. 1015 01:01:17,200 --> 01:01:18,300 John the Ripper, so you don't have to pay. 1016 01:01:18,540 --> 01:01:20,040 There's a lot of utilities like this. 1017 01:01:20,840 --> 01:01:22,440 I usually use Loft. 1018 01:01:22,440 --> 01:01:22,740 You're right. 1019 01:01:22,980 --> 01:01:24,360 You do have to pay for Loft. 1020 01:01:24,600 --> 01:01:26,300 You could use it for 30 days for free. 1021 01:01:29,280 --> 01:01:30,000 So anyway. 1022 01:01:30,000 --> 01:01:30,120 Anyway. 1023 01:01:31,820 --> 01:01:35,140 And by the way, if you start playing, 1024 01:01:35,440 --> 01:01:36,800 when I'm playing with a SAM file, 1025 01:01:37,140 --> 01:01:40,260 the SAM file moved, just so everybody knows. 1026 01:01:41,160 --> 01:01:44,460 SAM file used to be in system root on NT4. 1027 01:01:44,740 --> 01:01:46,940 Now it's in system32 config. 1028 01:01:47,800 --> 01:01:49,400 SAM file's still in there. 1029 01:01:50,520 --> 01:01:51,040 Great. 1030 01:01:52,900 --> 01:01:56,820 So, I have a section in here on how hard drives work. 1031 01:01:57,160 --> 01:01:59,100 I think we've already covered a lot of this. 1032 01:01:59,100 --> 01:02:05,640 At the low level, hard drives are just ones and zeros. 1033 01:02:06,660 --> 01:02:14,240 All the information that we place on it, all the different file systems, operating systems, and everything are just manifestations of that. 1034 01:02:15,240 --> 01:02:18,820 Every time we look at a sector editor, you usually look at those things in hex. 1035 01:02:19,220 --> 01:02:23,500 The hex is just a higher level interpretation of that binary that's being written on that disk. 1036 01:02:23,500 --> 01:02:33,140 So it's very hard to protect the information that you're writing down to that disk unless you encrypt it at the low level 1037 01:02:33,140 --> 01:02:41,540 or you were to do the floppy lock like we were talking about or protect the authentication against that. 1038 01:02:42,700 --> 01:02:46,760 On the low level of these machines, they include partitions. 1039 01:02:46,960 --> 01:02:49,940 The partitions are just basically logical drives. 1040 01:02:50,320 --> 01:02:51,140 Everybody knows this. 1041 01:02:51,140 --> 01:02:58,760 It's just the master boot record, which has a record of all the information, the partitions that are on this disk, 1042 01:02:58,900 --> 01:03:03,000 how they start, where they go, how big they are, all that good stuff. 1043 01:03:03,220 --> 01:03:09,000 When you pick it up, you can take a look at it in disk edit and a lot of other utilities, too. 1044 01:03:11,020 --> 01:03:13,440 Basically, you could see where your partitions are. 1045 01:03:13,560 --> 01:03:14,440 You could resize it. 1046 01:03:14,520 --> 01:03:16,420 Things like partition magic, this is where they play. 1047 01:03:16,880 --> 01:03:18,540 All they do is change the numbers in there. 1048 01:03:18,680 --> 01:03:20,000 All they do is resize. 1049 01:03:20,000 --> 01:03:25,860 You can resize the beginning and end sectors, beginning and end cylinders to change the size of your drive. 1050 01:03:26,200 --> 01:03:28,000 It's pretty simplistic stuff. 1051 01:03:28,840 --> 01:03:34,240 The next part of the whole story is your boot sector, of course, which is where you actually get into your operating system. 1052 01:03:34,800 --> 01:03:39,240 The master boot record, as I mentioned before, contains a marker for active. 1053 01:03:39,640 --> 01:03:41,080 It's a single bit, actually. 1054 01:03:41,200 --> 01:03:46,180 A marker for active partition. 1055 01:03:46,420 --> 01:03:49,480 The active partition is the partition that you want to boot from. 1056 01:03:50,000 --> 01:03:54,900 All it does is repeat the same process that it did for the master boot record. 1057 01:03:55,060 --> 01:03:56,340 Actually, I have it up here on the screen. 1058 01:03:56,980 --> 01:04:02,360 The same process that it went through for the master boot record reads that information into memory and executes it. 1059 01:04:02,460 --> 01:04:09,800 It reads the beginning 446 bytes off that drive and then executes that program. 1060 01:04:10,660 --> 01:04:13,980 If that program were you, it would execute you. 1061 01:04:14,180 --> 01:04:17,220 If it were a boot locker, it would execute the boot locker. 1062 01:04:17,660 --> 01:04:19,980 If you had a boot locker on it and you wanted to boot it, you would execute it. 1063 01:04:20,000 --> 01:04:26,400 If you had a boot locker on it and you wanted to execute you, all you do is replace it with a regular Windows 95 boot sector and you're fine. 1064 01:04:27,260 --> 01:04:33,220 Basically, all the boot sector does is point to the operating system that you're going to load and say, 1065 01:04:33,360 --> 01:04:40,160 dump to win NT or dump to NT loader, dump to command.com. 1066 01:04:40,360 --> 01:04:41,300 That's all it really does. 1067 01:04:46,380 --> 01:04:48,260 Examples of secure authentication. 1068 01:04:50,440 --> 01:04:54,740 One of the ways to mitigate all this stuff is to figure out a good way to authenticate yourself. 1069 01:04:55,100 --> 01:04:57,760 There's some cheap ways and there's some expensive ways. 1070 01:05:00,220 --> 01:05:03,080 Expensive ways include things like biometrics, even though they're getting cheaper. 1071 01:05:03,960 --> 01:05:07,580 There's a lot of really good ones that you guys may or may not have played with. 1072 01:05:08,300 --> 01:05:10,340 There's a lot of cheap fingerprint readers. 1073 01:05:10,720 --> 01:05:16,360 There's actually some good new ones that are PCMCI cards that pop out right outside of your machine. 1074 01:05:18,560 --> 01:05:19,980 Some really good stuff out there. 1075 01:05:20,000 --> 01:05:25,080 Other forms of two-factor authentication that are less expensive include USB tokens. 1076 01:05:25,480 --> 01:05:27,720 People that make these are like Aladdin and Rainbow. 1077 01:05:28,140 --> 01:05:32,460 They make very cheap authentication tokens that have an encryption algorithm built into them. 1078 01:05:32,720 --> 01:05:36,740 Basically, you put this USB token on your key ring. 1079 01:05:36,940 --> 01:05:38,300 You carry it around with you. 1080 01:05:38,480 --> 01:05:42,000 If somebody turns on your computer when you're gone and they don't have that key in there, 1081 01:05:42,140 --> 01:05:44,100 it's not going to read any of the information off there. 1082 01:05:45,460 --> 01:05:47,860 They're actually quite strongly encrypted. 1083 01:05:48,200 --> 01:05:48,720 They give you... 1084 01:05:48,720 --> 01:05:49,580 There's... 1085 01:05:50,000 --> 01:05:50,800 They're really hard to attack. 1086 01:05:51,300 --> 01:05:54,300 So if you have information on your machine that you don't want people to be able to get to, 1087 01:05:54,740 --> 01:05:56,260 this is a good way to protect it. 1088 01:05:56,540 --> 01:05:57,900 There are also smart cards out there. 1089 01:05:57,940 --> 01:05:59,680 A lot of people make smart cards. 1090 01:05:59,880 --> 01:06:02,080 They're a little bit more expensive because you've got to invest in a reader. 1091 01:06:02,780 --> 01:06:04,060 A little bit of a pain in the butt. 1092 01:06:04,300 --> 01:06:05,740 But they're not bad. 1093 01:06:07,540 --> 01:06:08,640 Challenge and response tokens. 1094 01:06:09,120 --> 01:06:11,520 There's a lot of different people that also make something. 1095 01:06:11,600 --> 01:06:13,460 There's a standard for it, X9.9. 1096 01:06:14,000 --> 01:06:15,140 Challenge and response tokens. 1097 01:06:15,320 --> 01:06:19,720 They basically are tokens that have a little encryption algorithm built into them. 1098 01:06:20,000 --> 01:06:25,960 And basically, the computer knows the encryption algorithm and the card does. 1099 01:06:26,260 --> 01:06:30,400 And it generates a challenge and response that goes back and forth between you and the computer 1100 01:06:30,960 --> 01:06:33,480 in order for you to authenticate yourself. 1101 01:06:33,820 --> 01:06:35,720 If you miss it, you don't get into the computer. 1102 01:06:37,100 --> 01:06:38,960 So this is another good method. 1103 01:06:39,100 --> 01:06:40,960 And it's really a good one. 1104 01:06:41,340 --> 01:06:47,320 All these different ones are really good if you want to be able to maintain control of your information even when you're gone. 1105 01:06:47,580 --> 01:06:49,420 Somebody comes and tries to get the information. 1106 01:06:50,000 --> 01:06:51,080 You've got the physical token. 1107 01:06:51,120 --> 01:06:53,380 And they've got to say, give me that physical token before I get out.