1 00:00:00,000 --> 00:00:06,500 All right. Morning, folks. Can you hear me and everything? All right. Good stuff. Okay. So 2 00:00:08,260 --> 00:00:13,040 virtualization, packed room. Why does this always happen? You know, your moment to put that word in 3 00:00:13,040 --> 00:00:18,960 the talk, suddenly the room becomes full. Yeah. Lots of attention. Everyone likes it. 4 00:00:21,040 --> 00:00:25,380 But no one's really thinking about it seriously. So we're going to think about it a little bit 5 00:00:25,380 --> 00:00:32,400 more today. First of all, what we're going to talk about are mostly known issues. We don't 6 00:00:32,400 --> 00:00:38,920 really even have to get into the unknown stuff to find just tons of reasons why running it right now 7 00:00:38,920 --> 00:00:46,240 may not be the best idea. These are design flaws. These aren't just things that are 8 00:00:46,240 --> 00:00:53,460 bugs that are just easily fixable. Not all of them are just simple bugs. Not all of them are 9 00:00:53,460 --> 00:00:54,940 exploits. Some of them are 10 00:00:55,380 --> 00:00:59,320 just simply because the way they were designed. They weren't designed to perfectly virtualize. 11 00:00:59,440 --> 00:01:04,520 And because of that, we have security problems. And because of this, some of this is just 12 00:01:04,520 --> 00:01:12,040 documented behavior. And let's see. So, you know, slightly less testing because it's not like 13 00:01:12,040 --> 00:01:18,760 there's 20 new novel exploits here. This is very simple stuff for the most part. We didn't bother 14 00:01:18,760 --> 00:01:25,360 to test on all of the VMware products that I'm going to talk about. So really, we're going to 15 00:01:25,360 --> 00:01:30,900 really, the worst thing about why I'm here today is that I don't even need to find things 16 00:01:30,900 --> 00:01:35,820 that we don't know about to be up here today. There's just the stuff that we do know about 17 00:01:35,820 --> 00:01:40,020 and just the stuff that's sitting there in the documentation that no one bothers to read. 18 00:01:40,540 --> 00:01:45,860 Just that makes the position virtualization is in absolutely untenable. 19 00:01:48,640 --> 00:01:54,540 So you know, now you're sitting here and I've just told you that I'm not releasing any new cool stuff. 20 00:01:55,360 --> 00:02:01,440 That this is all in the documentation. And that this is boring. And you've got this feeling of betrayal, right? 21 00:02:01,900 --> 00:02:07,480 Because there was this talk and it had virtualization in the title, so you knew it was going to be cool. 22 00:02:07,960 --> 00:02:14,100 And here I am and I'm just going to give a boring talk. Okay, so hold on to that feeling of betrayal 23 00:02:14,100 --> 00:02:18,520 and take it out whenever you hear the word virtualization from now on because we could use a little bit 24 00:02:18,520 --> 00:02:25,340 more skepticism. As it is, I don't think the talk's going to suck. There is some stuff and 25 00:02:25,360 --> 00:02:34,460 we are bringing some new stuff into it. So stick with me and you know, it's just that each of these 26 00:02:34,460 --> 00:02:39,080 individual issues may be documented, but when you combine some of them, it just creates situations 27 00:02:39,080 --> 00:02:46,300 that just aren't right. So first we're going to start out with a little review of where we're at 28 00:02:46,300 --> 00:02:55,340 with virtualization, what types of technologies we're using, how everything's set up, categorized 29 00:02:55,360 --> 00:03:00,480 the different things, explain what features there are, you know, all of the basic virtualization stuff. 30 00:03:00,640 --> 00:03:04,100 So in case you walked into a talk on virtualization without knowing anything about virtualization, 31 00:03:04,220 --> 00:03:10,600 you won't be completely behind. Unlikely, I know. Then we're going to explain why isolation just... 32 00:03:11,380 --> 00:03:19,240 So everyone claims that there's isolation. Yeah, it doesn't happen at all. And so when you talk about 33 00:03:19,240 --> 00:03:23,840 isolation, you've got to touch on covert channels just because the NSA loves to worry about covert channels. 34 00:03:25,360 --> 00:03:30,040 No one's saying worries about covert channels just because you can't eliminate them. There's just too many. 35 00:03:30,620 --> 00:03:35,160 But we're going to touch on them just because there's just so many fun new ones. Then we're going to look at how 36 00:03:35,160 --> 00:03:40,180 virtual machines on a network are different than physical machines on a network. And then we're going to 37 00:03:40,180 --> 00:03:45,340 look at how merely having a virtual machine server on your network is going to have to change the way 38 00:03:45,340 --> 00:03:49,860 that you architect your network. Because you just can't build it the same way anymore. 39 00:03:50,140 --> 00:03:54,440 You can't rely on the same firewalls you were using. You can't rely on the same switching infrastructure. 40 00:03:55,360 --> 00:04:02,240 It just isn't there. Then we're going to talk about live migration, plain text. 41 00:04:02,600 --> 00:04:05,220 I think you've got the idea of where we're going with this section. 42 00:04:06,400 --> 00:04:15,700 And then this is actually going to be in the Q&A room, but you can go ahead and question, heckle, 43 00:04:16,130 --> 00:04:21,020 or propose grandiose things and accuse me of hating freedom. 44 00:04:21,640 --> 00:04:24,300 All right. So on to the technology overview. 45 00:04:27,540 --> 00:04:32,740 First, we've got the OS-level virtualization stuff, which is your Solaris zones, your user mode Linux, 46 00:04:32,980 --> 00:04:34,820 your OpenVZ, your... 47 00:04:36,700 --> 00:04:42,980 They're basically glorified FreeBSD jails, which really descended from other stuff. 48 00:04:44,320 --> 00:04:48,720 They're just basically stricter partitionings of operating systems. 49 00:04:48,900 --> 00:04:53,300 They're not really incredibly revolutionary, but they're cool. 50 00:04:53,540 --> 00:04:55,340 The OpenVZ, for example, you can... 51 00:04:55,360 --> 00:05:00,840 You can still do all the migration stuff, and you get all the features that you get with virtualization for less overhead. 52 00:05:01,220 --> 00:05:02,780 So that's pretty neat. 53 00:05:03,500 --> 00:05:09,200 Para-virtualization is basically what Zen's doing now, and there's a couple other minor tools that use it. 54 00:05:09,400 --> 00:05:14,480 And this is essentially where you cheat, and instead of actually just running the operating system, 55 00:05:14,800 --> 00:05:17,600 you modify the operating system and then run it. 56 00:05:18,440 --> 00:05:22,960 Good concept, lowers the overhead, but you have to be able to cheat to make this work. 57 00:05:24,220 --> 00:05:28,160 And, of course, Zen, if you have hardware support, can do full virtualization. 58 00:05:28,700 --> 00:05:30,020 KVM works on that, too. 59 00:05:30,160 --> 00:05:32,560 That's in the mainline Linux kernel these days. 60 00:05:33,820 --> 00:05:35,740 It was just, you know... 61 00:05:35,740 --> 00:05:38,640 It was incorporated so quickly because all you needed was, 62 00:05:38,680 --> 00:05:40,700 as soon as you had this hardware virtualization support, 63 00:05:41,240 --> 00:05:45,200 it was only a little bit of code that you needed to add to the kernel before you could do full virtualization, 64 00:05:45,600 --> 00:05:46,500 which is pretty cool. 65 00:05:46,640 --> 00:05:48,800 It doesn't have quite all the features that the others have, 66 00:05:48,960 --> 00:05:52,580 but, you know, it is still full virtualization and a couple hundred lines of code. 67 00:05:53,080 --> 00:05:56,780 And then the full virtualization without hardware is what's been going on the longest, 68 00:05:56,940 --> 00:05:58,060 and that's VMware's products. 69 00:05:58,900 --> 00:06:03,440 Fabrice Bellard seems to just kick out a new utility that rocks the world every six months, 70 00:06:03,540 --> 00:06:12,860 and one of his last ones was a module for QEMU that does virtualization in a similar manner that VMware did. 71 00:06:13,440 --> 00:06:14,580 I don't know about this guy. 72 00:06:14,660 --> 00:06:16,980 He just sits there and writes things, and they're good. 73 00:06:18,160 --> 00:06:21,540 And then, of course, full emulation, which isn't virtualization at all, 74 00:06:21,540 --> 00:06:23,460 but is really where it all came from. 75 00:06:24,560 --> 00:06:27,940 You know, originally, it was emulating. 76 00:06:28,160 --> 00:06:35,280 And this is the only thing that really allows you to run something that's compiled from one processor on another. 77 00:06:36,700 --> 00:06:37,900 So that's the basics. 78 00:06:38,140 --> 00:06:42,060 And the features that we're getting are the fact that we can freeze an instance, 79 00:06:42,360 --> 00:06:45,060 thought later, and snapshot an entire state. 80 00:06:45,260 --> 00:06:46,460 That's one of the big ones. 81 00:06:46,580 --> 00:06:48,240 It's one of the first ones anyone implements. 82 00:06:48,900 --> 00:06:51,040 And my notes here don't seem to be helping me at all. 83 00:06:51,920 --> 00:06:54,180 And you can also decouple it from the hardware. 84 00:06:54,340 --> 00:06:57,240 So now it doesn't really matter what hardware you're running on. 85 00:06:57,660 --> 00:06:59,860 Now, this is a double-edged sword, and we'll get to that later, 86 00:06:59,960 --> 00:07:04,900 but the advantage is that if your servers aren't all the same, 87 00:07:05,040 --> 00:07:08,740 you can still have VMs that just don't care. 88 00:07:09,620 --> 00:07:12,000 And it's a big advantage in many ways, 89 00:07:12,580 --> 00:07:15,420 and it'll kill you and some others because you can't actually use your hardware. 90 00:07:16,680 --> 00:07:19,480 And then, theoretically, it adds another layer of protection. 91 00:07:19,480 --> 00:07:22,500 You have another partitioning scheme that you have to bust through 92 00:07:22,500 --> 00:07:24,620 to compromise the entire data on the machine. 93 00:07:26,240 --> 00:07:28,260 And we'll talk more about that in a moment. 94 00:07:29,080 --> 00:07:30,500 And then there's live migration. 95 00:07:30,760 --> 00:07:35,800 And this is the big one that all the folks like to deal with now 96 00:07:35,800 --> 00:07:39,780 because it's one of the more recent-ish features that, you know, 97 00:07:39,820 --> 00:07:43,580 you just take a VM running on one machine and soon it's running over there. 98 00:07:43,820 --> 00:07:46,780 And so that's your basic live migration feature. 99 00:07:47,860 --> 00:07:48,820 People do it. 100 00:07:48,820 --> 00:07:51,600 People do it in different areas of real time. 101 00:07:51,900 --> 00:07:53,720 And some call it live migration. 102 00:07:53,940 --> 00:07:55,040 Some call it hot migration. 103 00:07:55,320 --> 00:07:57,420 Some call it cold migration. 104 00:07:57,840 --> 00:07:59,640 But generally, it's all the same shit. 105 00:08:01,180 --> 00:08:02,640 Dynamic deployment and creation. 106 00:08:03,320 --> 00:08:10,140 This is where your marketing droids tell you that you absolutely can just dynamically send these VMs out 107 00:08:10,140 --> 00:08:11,740 and you have a completely scalable environment 108 00:08:11,740 --> 00:08:14,780 and you don't have to remember anything about hardware ever again. 109 00:08:15,120 --> 00:08:16,240 Sounds perfect, doesn't it? 110 00:08:16,660 --> 00:08:17,160 Yeah. 111 00:08:17,160 --> 00:08:19,600 So that's where the hype comes in. 112 00:08:21,480 --> 00:08:21,920 Reliability. 113 00:08:22,200 --> 00:08:23,400 You know, hardware goes down. 114 00:08:23,580 --> 00:08:24,460 We just move it across. 115 00:08:24,680 --> 00:08:25,080 It's fine. 116 00:08:25,240 --> 00:08:25,760 It's great. 117 00:08:27,640 --> 00:08:28,080 Consolidation. 118 00:08:28,140 --> 00:08:32,280 We can just take as many machines as we want, use less of them, 119 00:08:32,440 --> 00:08:33,960 and better utilize the hardware we have. 120 00:08:34,160 --> 00:08:38,660 This is really, really the point that all the new Linux distros 121 00:08:38,660 --> 00:08:41,460 are selling their virtualization technologies on the most 122 00:08:41,460 --> 00:08:44,400 because it's the point that paying customers are most interested in, 123 00:08:44,460 --> 00:08:45,520 which is spending less money. 124 00:08:48,780 --> 00:08:51,220 We're going to examine this. 125 00:08:51,360 --> 00:08:53,560 It doesn't really make a whole lot of sense 126 00:08:53,560 --> 00:08:56,440 because to me, if your web servers are getting hit really hard, 127 00:08:56,980 --> 00:09:03,640 assuming that your database servers wouldn't is a little bit of a weird assumption. 128 00:09:04,360 --> 00:09:07,900 Your peak times would probably be your peak times across all of your hardware 129 00:09:07,900 --> 00:09:09,520 and not just one particular segment. 130 00:09:09,820 --> 00:09:13,040 But hey, these guys have a theory and they're right sometimes, 131 00:09:13,300 --> 00:09:14,340 but they're not always right. 132 00:09:14,340 --> 00:09:20,040 And then isolation is where you take different things 133 00:09:20,040 --> 00:09:22,340 and you just put them in their own little compartments 134 00:09:22,340 --> 00:09:24,100 and they can't talk to each other. 135 00:09:24,200 --> 00:09:24,760 It's great. 136 00:09:25,720 --> 00:09:27,540 You're never going to have security problems ever again. 137 00:09:28,400 --> 00:09:29,740 Well, yeah, right. 138 00:09:30,960 --> 00:09:32,120 So let's attack that. 139 00:09:33,880 --> 00:09:36,700 First of all, you have the shared hardware attacks. 140 00:09:36,900 --> 00:09:37,800 You're sharing this hardware, 141 00:09:37,960 --> 00:09:40,500 and you just are never going to be able to get around that. 142 00:09:40,560 --> 00:09:42,220 Any point at which you are sharing hardware 143 00:09:42,220 --> 00:09:44,320 and you are not perfectly doing it, 144 00:09:44,340 --> 00:09:45,900 you have a problem. 145 00:09:46,320 --> 00:09:48,760 And right now, we are not perfectly sharing a lot of things. 146 00:09:48,920 --> 00:09:51,320 One of the biggest things we're not perfectly sharing is video cards. 147 00:09:52,320 --> 00:09:53,500 That's going to come up later. 148 00:09:54,760 --> 00:09:57,940 Basically, all the specialized hardware you have in your machine, 149 00:09:58,260 --> 00:10:01,100 you either have to share it or not worry about it at all. 150 00:10:01,480 --> 00:10:02,140 Speak up! 151 00:10:02,880 --> 00:10:03,640 You can't hear? 152 00:10:05,000 --> 00:10:07,280 All right. Is that better? 153 00:10:07,500 --> 00:10:07,800 Yeah. 154 00:10:08,060 --> 00:10:08,460 Okay. 155 00:10:09,360 --> 00:10:13,300 All right, so the attacks on symmetric multithreading, 156 00:10:13,300 --> 00:10:15,200 which is more commonly known as hyperthreading, 157 00:10:15,360 --> 00:10:20,980 were the attacks that were basically compromising GPG keys 158 00:10:20,980 --> 00:10:24,780 based on the traces left in the L1 cache of Intel's processors. 159 00:10:25,220 --> 00:10:27,260 Now, this is old news. 160 00:10:27,580 --> 00:10:29,280 This is nothing we don't know. 161 00:10:29,460 --> 00:10:31,360 The only thing is now with virtualization, 162 00:10:31,620 --> 00:10:33,700 you're compromising something that should have been running 163 00:10:33,700 --> 00:10:34,940 on a completely separate machine. 164 00:10:36,200 --> 00:10:39,380 So the fix, and it was a very stupid fix, 165 00:10:39,480 --> 00:10:42,480 but the fix was to just put processes 166 00:10:42,480 --> 00:10:43,880 of the same privilege level 167 00:10:44,700 --> 00:10:46,740 running at the same time on the processors. 168 00:10:47,200 --> 00:10:48,580 Well, now with virtualization, 169 00:10:48,800 --> 00:10:51,240 you can't have any virtualization processes 170 00:10:51,240 --> 00:10:53,260 running together on the same processes either. 171 00:10:54,620 --> 00:10:56,280 So you've really got a mess 172 00:10:56,280 --> 00:10:58,420 when you have this symmetric multithreading stuff, 173 00:10:58,640 --> 00:11:00,100 because to do it securely, 174 00:11:00,220 --> 00:11:02,480 you have all these contacts sitting on your processors, 175 00:11:02,620 --> 00:11:03,500 and you can't use them. 176 00:11:04,100 --> 00:11:05,660 You can't use them effectively. 177 00:11:06,400 --> 00:11:07,820 Virtualization is supposed to provide 178 00:11:07,820 --> 00:11:09,460 higher utilization of hardware, 179 00:11:09,460 --> 00:11:12,640 and you can't use the contacts on your chip. 180 00:11:13,420 --> 00:11:17,220 Just because the stuff left in the L1 cache, 181 00:11:17,420 --> 00:11:18,720 the stuff left in the L2 cache, 182 00:11:19,680 --> 00:11:21,000 it's going to compromise data, 183 00:11:21,260 --> 00:11:23,640 and you can't have that leak. 184 00:11:24,760 --> 00:11:26,640 And, you know, if we're only thinking 185 00:11:26,640 --> 00:11:28,060 that this happens in the trace cache, 186 00:11:28,220 --> 00:11:28,960 we're deluding ourselves. 187 00:11:29,440 --> 00:11:31,420 We've got video cards with caches, 188 00:11:31,540 --> 00:11:34,240 we've got disk I.O., 189 00:11:34,240 --> 00:11:36,780 we've got all kinds of weird little timing attacks 190 00:11:36,780 --> 00:11:39,280 that are out there that you can quickly, 191 00:11:39,280 --> 00:11:42,960 and easily, just look at the timings, 192 00:11:42,980 --> 00:11:44,280 and you can at least divine something 193 00:11:44,280 --> 00:11:46,080 about what some other machine is doing. 194 00:11:46,700 --> 00:11:48,560 And whether you can divine exactly 195 00:11:48,560 --> 00:11:50,120 what data they're passing or not 196 00:11:50,120 --> 00:11:51,560 is something that remains to be seen. 197 00:11:51,800 --> 00:11:53,480 But just the fact that you can divine 198 00:11:53,480 --> 00:11:55,900 that it's having some effect on the hardware 199 00:11:55,900 --> 00:11:57,820 is something you shouldn't be able to do. 200 00:11:58,340 --> 00:11:59,520 And that's easy to do. 201 00:11:59,980 --> 00:12:01,860 Actually pulling data out from it, 202 00:12:02,500 --> 00:12:03,760 it's not going to be much farther. 203 00:12:05,120 --> 00:12:07,700 I mean, you know, we thought the SMT attacks 204 00:12:07,700 --> 00:12:08,820 were just completely impossible 205 00:12:09,280 --> 00:12:10,220 until this guy wrote a paper 206 00:12:10,220 --> 00:12:13,020 and started sniffing GTPG keys, 207 00:12:13,160 --> 00:12:14,480 and then it wasn't theoretical anymore. 208 00:12:16,020 --> 00:12:17,500 So there's this paper, 209 00:12:17,660 --> 00:12:18,400 and it's... 210 00:12:18,400 --> 00:12:19,800 Let me find it here. 211 00:12:20,840 --> 00:12:22,540 It's a fairly recent paper. 212 00:12:22,680 --> 00:12:24,120 It's a very good one about 213 00:12:24,920 --> 00:12:26,560 some of the vulnerabilities 214 00:12:26,560 --> 00:12:28,040 in the Linux scheduler. 215 00:12:28,340 --> 00:12:32,000 In particular, it has some interactive things. 216 00:12:33,080 --> 00:12:35,040 Basically, you can trick the Linux scheduler 217 00:12:35,040 --> 00:12:36,600 into assuming a processor is interactive 218 00:12:37,280 --> 00:12:38,520 and giving it a higher priority. 219 00:12:39,280 --> 00:12:41,160 You can context switch mid-tick 220 00:12:41,160 --> 00:12:43,160 and not get counted as part of the scheduler. 221 00:12:43,300 --> 00:12:44,680 The paper, by the way, 222 00:12:44,740 --> 00:12:46,940 is called Secretly Monopolizing the CPU 223 00:12:46,940 --> 00:12:48,340 Without Super User Privileges. 224 00:12:48,620 --> 00:12:50,100 Good paper. You should check it out. 225 00:12:50,540 --> 00:12:51,660 But the point is, 226 00:12:51,660 --> 00:12:54,520 is this can happen in VMs, too. 227 00:12:54,820 --> 00:12:56,260 Now you have VMs. 228 00:12:56,260 --> 00:12:57,900 Any time you ever get a compromised VM, 229 00:12:58,200 --> 00:13:00,920 that VM is stealing scheduler cycles, 230 00:13:01,200 --> 00:13:03,020 and you're not going to be aware of it. 231 00:13:03,200 --> 00:13:05,740 Because the scheduler under the current Linux scheduler 232 00:13:06,080 --> 00:13:08,460 is not even going to be aware 233 00:13:08,460 --> 00:13:10,480 that this thing is taking the cycles it is. 234 00:13:10,860 --> 00:13:12,660 And I know this is... 235 00:13:13,500 --> 00:13:15,260 Without really going into the paper, 236 00:13:15,320 --> 00:13:16,620 this sounds like just black magic. 237 00:13:16,780 --> 00:13:19,740 But basically, the scheduler is designed as... 238 00:13:19,740 --> 00:13:21,580 It measures on every tick. 239 00:13:22,320 --> 00:13:24,540 But it doesn't measure on every context switch. 240 00:13:24,680 --> 00:13:25,700 So if you context switch 241 00:13:25,700 --> 00:13:27,880 between each tick all the time, 242 00:13:27,980 --> 00:13:30,360 you never actually get shown on the scheduler 243 00:13:30,360 --> 00:13:31,260 as being run. 244 00:13:33,700 --> 00:13:34,880 This is problematic, 245 00:13:35,080 --> 00:13:36,640 especially when your VMs 246 00:13:36,640 --> 00:13:37,360 at the top level 247 00:13:38,460 --> 00:13:38,840 have those processes. 248 00:13:39,420 --> 00:13:41,360 So you can load a kernel module in, 249 00:13:42,700 --> 00:13:43,660 smooth interactivity, 250 00:13:43,880 --> 00:13:45,720 and now your VM has more priority 251 00:13:45,720 --> 00:13:46,500 than it should. 252 00:13:49,740 --> 00:13:52,140 And then there's the actually using 253 00:13:52,640 --> 00:13:53,120 hardware. 254 00:13:53,840 --> 00:13:55,500 Zen has some nice functionality 255 00:13:55,500 --> 00:13:57,120 to allow you to actually use 256 00:13:58,380 --> 00:13:59,340 directly hardware 257 00:13:59,860 --> 00:14:01,540 inside one of the VMs. 258 00:14:01,640 --> 00:14:03,500 So you can pass it through a video card, 259 00:14:03,620 --> 00:14:05,860 and you can get your full 3D games 260 00:14:05,860 --> 00:14:07,060 just right on your screen, 261 00:14:07,060 --> 00:14:07,680 and it's beautiful. 262 00:14:09,600 --> 00:14:11,540 Except anytime you pass hardware, 263 00:14:11,680 --> 00:14:12,820 you pass a networking card, 264 00:14:12,980 --> 00:14:15,000 any of this hardware that you pass, 265 00:14:16,360 --> 00:14:17,620 any of those VMs 266 00:14:17,620 --> 00:14:18,520 can now wedge the box. 267 00:14:18,800 --> 00:14:20,320 If you have access to the PCI bus, 268 00:14:20,940 --> 00:14:22,240 you can wedge the box. 269 00:14:22,460 --> 00:14:23,900 You're done. It's over. 270 00:14:25,020 --> 00:14:25,420 Um... 271 00:14:27,400 --> 00:14:27,880 So... 272 00:14:29,160 --> 00:14:30,780 What has happened is 273 00:14:32,700 --> 00:14:34,140 there's been some advancements. 274 00:14:34,200 --> 00:14:35,640 VMware Fusion is a recent one 275 00:14:35,640 --> 00:14:37,040 that was released 276 00:14:37,060 --> 00:14:38,140 that's really good at learning 277 00:14:38,140 --> 00:14:39,920 how to share these devices appropriately. 278 00:14:40,260 --> 00:14:42,240 So that's targeted towards 279 00:14:42,960 --> 00:14:44,180 sharing the graphics card. 280 00:14:44,440 --> 00:14:46,800 And it's passing OpenGL messages 281 00:14:46,800 --> 00:14:48,420 back and forth and basically doing 282 00:14:48,900 --> 00:14:50,520 proper sharing of the graphics card. 283 00:14:51,820 --> 00:14:53,260 They also do a pretty good job 284 00:14:53,260 --> 00:14:53,720 with USB. 285 00:14:54,200 --> 00:14:56,500 But when you actually start to pass PCI devices, 286 00:14:56,820 --> 00:14:58,460 if you actually want to use any of this 287 00:14:58,460 --> 00:15:00,100 specialized hardware that you have on your machine, 288 00:15:00,320 --> 00:15:01,640 you can't do it in a VM. 289 00:15:02,580 --> 00:15:04,540 And, you know, we keep on hitting our heads 290 00:15:04,540 --> 00:15:05,520 against a wall on this. 291 00:15:07,060 --> 00:15:08,820 Using PCI devices is not the solution. 292 00:15:09,260 --> 00:15:11,040 Because that just entirely 293 00:15:11,040 --> 00:15:11,940 ruins isolation. 294 00:15:13,040 --> 00:15:13,400 Um... 295 00:15:15,220 --> 00:15:16,800 And now we're just gonna briefly 296 00:15:16,800 --> 00:15:18,520 cover covert channels because 297 00:15:19,420 --> 00:15:20,380 they're fun. 298 00:15:20,640 --> 00:15:22,680 Even though no one really cares about them too much. 299 00:15:22,960 --> 00:15:24,760 The most common covert channel is 300 00:15:24,760 --> 00:15:26,020 simply to use a bunch of resources. 301 00:15:26,520 --> 00:15:28,440 You use memory, you release memory, 302 00:15:28,660 --> 00:15:30,340 you use memory, you release memory, 303 00:15:30,900 --> 00:15:31,480 coded pattern. 304 00:15:33,100 --> 00:15:34,980 And then you just detect it 305 00:15:34,980 --> 00:15:36,940 on another. So now your machines are talking 306 00:15:37,060 --> 00:15:39,080 to each other without you ever being able to tell. 307 00:15:39,580 --> 00:15:41,180 Unless you're looking very carefully 308 00:15:41,180 --> 00:15:43,040 at memory usage, network 309 00:15:43,040 --> 00:15:44,980 usage, or obscure things, you're not 310 00:15:44,980 --> 00:15:46,800 going to be able to tell if your VMs are talking 311 00:15:46,800 --> 00:15:48,120 to each other and they've been hacked. 312 00:15:49,240 --> 00:15:50,620 You know, usually you try and 313 00:15:50,620 --> 00:15:53,020 with real hardware they at least have to go out 314 00:15:53,020 --> 00:15:54,880 of the hardware somehow and there's only some 315 00:15:54,880 --> 00:15:56,760 narrowly defined avenues where that can happen. 316 00:15:56,980 --> 00:15:58,340 Usually it's a network card. 317 00:15:58,840 --> 00:16:00,360 Usually it's some central 318 00:16:01,980 --> 00:16:02,920 service of some 319 00:16:02,920 --> 00:16:05,100 sort which usually runs across the network. 320 00:16:06,240 --> 00:16:06,720 But 321 00:16:07,060 --> 00:16:09,080 to some extent you can just monitor 322 00:16:09,080 --> 00:16:10,900 that one place and catch most of the 323 00:16:10,900 --> 00:16:12,800 covert channels that your machines can actually communicate 324 00:16:12,800 --> 00:16:14,860 between each other with. As soon as you have 325 00:16:14,860 --> 00:16:17,000 VMs, they can communicate all they want 326 00:16:17,000 --> 00:16:18,640 and it doesn't even matter. 327 00:16:20,020 --> 00:16:21,020 You can even 328 00:16:21,020 --> 00:16:22,940 pass data raw on Ethernet 329 00:16:22,940 --> 00:16:23,200 frames. 330 00:16:24,940 --> 00:16:25,460 Because 331 00:16:26,720 --> 00:16:28,080 right now, currently, 332 00:16:29,200 --> 00:16:30,720 with multiple boxes, 333 00:16:31,140 --> 00:16:33,060 you put a Cisco switch in the middle of it, 334 00:16:33,120 --> 00:16:34,300 you tell the Cisco switch 335 00:16:35,040 --> 00:16:36,640 don't route anything that isn't IP 336 00:16:37,060 --> 00:16:38,860 and you don't have IPX streams 337 00:16:38,860 --> 00:16:40,600 that you're not seeing going across your network. 338 00:16:41,240 --> 00:16:42,780 Now, with virtualization, 339 00:16:43,000 --> 00:16:44,420 you've got a virtualized network. 340 00:16:45,220 --> 00:16:46,700 Doesn't quite have that feature. 341 00:16:47,340 --> 00:16:48,780 So, you're sitting there 342 00:16:48,780 --> 00:16:50,040 and you've got IPX streams, 343 00:16:50,400 --> 00:16:51,200 AppleTalk streams, 344 00:16:52,600 --> 00:16:53,560 even DuckNet. 345 00:16:54,260 --> 00:16:55,920 All of this can be used. 346 00:16:56,540 --> 00:16:58,500 And you can use all of this and 347 00:16:58,500 --> 00:17:00,520 have your own little secret communication network. 348 00:17:00,900 --> 00:17:02,680 IP tables isn't going to catch it. 349 00:17:03,840 --> 00:17:04,840 And quickly, 350 00:17:05,020 --> 00:17:06,880 a show of hands for people who actually use 351 00:17:07,060 --> 00:17:07,920 EB tables anywhere. 352 00:17:08,660 --> 00:17:10,740 Okay, we got one, two, 353 00:17:11,860 --> 00:17:12,420 okay, 354 00:17:12,720 --> 00:17:14,200 a couple more, but 355 00:17:14,980 --> 00:17:16,180 generally the gist is 356 00:17:16,180 --> 00:17:17,720 not a whole lot of you do. 357 00:17:18,940 --> 00:17:20,620 How many people know what it is? 358 00:17:22,260 --> 00:17:22,820 Okay, 359 00:17:22,920 --> 00:17:23,260 more. 360 00:17:24,480 --> 00:17:26,820 EB tables is IP tables 361 00:17:26,820 --> 00:17:28,760 but for Layer 2. It will actually 362 00:17:29,400 --> 00:17:30,380 set up rules 363 00:17:30,380 --> 00:17:31,900 on the Ethernet level. 364 00:17:32,280 --> 00:17:33,580 And this is really the 365 00:17:34,980 --> 00:17:36,840 only thing that you're 366 00:17:37,060 --> 00:17:37,800 going to be able to use 367 00:17:37,800 --> 00:17:41,360 to protect you from this kind of stuff. 368 00:17:41,860 --> 00:17:43,000 So you need to be making 369 00:17:43,000 --> 00:17:44,660 EB tables rules every time you 370 00:17:44,660 --> 00:17:46,540 deploy a VMware server 371 00:17:47,060 --> 00:17:48,860 or a Zen server 372 00:17:48,860 --> 00:17:49,660 or whatever. 373 00:17:50,040 --> 00:17:52,400 And no one's doing it. 374 00:17:53,080 --> 00:17:54,760 Because no one even realizes 375 00:17:54,760 --> 00:17:57,100 you know, IP is king. 376 00:17:57,720 --> 00:17:59,080 No one remembers 377 00:17:59,080 --> 00:18:01,080 the other protocols that route 378 00:18:01,080 --> 00:18:02,740 that just don't get blocked by 379 00:18:02,740 --> 00:18:03,620 IP tables at all. 380 00:18:05,480 --> 00:18:06,000 Um, 381 00:18:07,580 --> 00:18:08,140 so, 382 00:18:09,560 --> 00:18:10,740 we need to be using 383 00:18:10,740 --> 00:18:12,160 EB tables and we're not. 384 00:18:13,020 --> 00:18:14,640 What's even worse is 385 00:18:14,640 --> 00:18:16,320 in some places you actually can't use 386 00:18:16,320 --> 00:18:17,900 EB tables to solve any of this stuff. 387 00:18:18,380 --> 00:18:20,560 Um, because 388 00:18:20,560 --> 00:18:22,780 you can bypass the host firewalls 389 00:18:22,780 --> 00:18:23,280 fairly easily. 390 00:18:24,900 --> 00:18:26,840 The most common way to do it 391 00:18:26,840 --> 00:18:28,400 with IP is you just 392 00:18:28,400 --> 00:18:29,360 pick a different IP. 393 00:18:29,940 --> 00:18:32,340 There go your carefully configured 394 00:18:32,340 --> 00:18:34,180 hardware firewall rules and 395 00:18:34,180 --> 00:18:36,420 your carefully configured software 396 00:18:37,060 --> 00:18:38,200 firewall rules. They're just out the window 397 00:18:38,200 --> 00:18:39,820 because you just hopped to a different IP 398 00:18:39,820 --> 00:18:40,920 and it's entirely different. 399 00:18:42,740 --> 00:18:44,520 So, what are you going to do about that? 400 00:18:45,080 --> 00:18:47,000 I mean, are you going to block an entire IP range? 401 00:18:47,920 --> 00:18:49,220 Some of you might be shouting 402 00:18:49,220 --> 00:18:51,180 that VLANs are the way to go. 403 00:18:51,500 --> 00:18:51,960 Right? 404 00:18:52,220 --> 00:18:54,220 We just put everything on its own VLAN 405 00:18:54,220 --> 00:18:55,800 and it all works out. 406 00:18:56,260 --> 00:18:58,280 Except to actually make 407 00:18:59,180 --> 00:18:59,640 the 408 00:19:00,860 --> 00:19:01,740 virtualization technology 409 00:19:02,700 --> 00:19:04,720 use VLANs, you have to extend VLAN 410 00:19:04,720 --> 00:19:06,620 taking into the virtualized network. 411 00:19:07,060 --> 00:19:08,480 That means you have to extend VLAN taking 412 00:19:08,480 --> 00:19:09,480 all the way into the host. 413 00:19:11,760 --> 00:19:13,000 So, if you compromise the 414 00:19:13,000 --> 00:19:14,760 host, there goes your entire VLAN 415 00:19:14,760 --> 00:19:16,080 setup. You're done. 416 00:19:17,420 --> 00:19:18,460 So, VLANs 417 00:19:19,060 --> 00:19:20,080 may be not the best 418 00:19:20,080 --> 00:19:21,620 place to fix this. 419 00:19:22,540 --> 00:19:24,840 You know, and that's 420 00:19:24,840 --> 00:19:26,060 assuming that it's even implemented. 421 00:19:26,420 --> 00:19:28,760 And the only place I've seen VLANs really 422 00:19:28,760 --> 00:19:29,860 implemented strongly 423 00:19:30,780 --> 00:19:32,280 Zen 3 has them. 424 00:19:33,160 --> 00:19:34,820 But they're just internal 425 00:19:34,820 --> 00:19:35,420 to the 426 00:19:37,500 --> 00:19:38,460 server, and 427 00:19:38,460 --> 00:19:40,680 VMware has them, but you have to import 428 00:19:40,680 --> 00:19:42,900 VLAN taking all the way out to the box. 429 00:19:46,820 --> 00:19:49,020 Now, here's the ridiculous thing. 430 00:19:49,560 --> 00:19:50,980 Before I was talking about 431 00:19:50,980 --> 00:19:52,300 how you can use EBTables. 432 00:19:52,820 --> 00:19:55,000 And you can save yourself from some of this stuff. 433 00:19:55,560 --> 00:19:56,040 Well, 434 00:19:57,320 --> 00:19:58,780 by default, VMware server 435 00:19:58,780 --> 00:20:00,880 has three different modes for your networking device. 436 00:20:01,280 --> 00:20:02,960 You've got a bridge mode, which basically 437 00:20:02,960 --> 00:20:04,540 means you can use a real IP address. 438 00:20:05,100 --> 00:20:06,960 You've got a host-only mode, which 439 00:20:07,060 --> 00:20:08,960 means it's useless. And you've got a 440 00:20:08,960 --> 00:20:10,960 NAT mode, which means it's useless 441 00:20:10,960 --> 00:20:12,640 for at least running servers. 442 00:20:13,360 --> 00:20:13,900 So, 443 00:20:15,120 --> 00:20:16,180 bridge mode is 444 00:20:16,180 --> 00:20:18,080 pretty much what you want to use. 445 00:20:18,620 --> 00:20:20,740 And in that mode, by default, 446 00:20:20,880 --> 00:20:22,900 you do not go through IP tables. 447 00:20:23,180 --> 00:20:25,060 And you do not go through EBTables. 448 00:20:25,280 --> 00:20:26,760 You just directly emit 449 00:20:26,760 --> 00:20:28,640 frames right out the device. 450 00:20:33,320 --> 00:20:34,500 It's a good question. 451 00:20:34,500 --> 00:20:36,860 I really don't know why they designed it that way. 452 00:20:36,980 --> 00:20:38,220 I have a feeling they were just 453 00:20:38,220 --> 00:20:39,880 pushing things in and out of the 454 00:20:39,880 --> 00:20:42,160 tongue-tap devices, and they weren't actually 455 00:20:42,160 --> 00:20:44,540 thinking about it in terms of filtering. 456 00:20:45,280 --> 00:20:46,580 You'll be glad to know that 457 00:20:46,580 --> 00:20:47,960 Xen does things a little differently. 458 00:20:48,120 --> 00:20:50,480 It actually uses the full-featured 459 00:20:50,480 --> 00:20:51,640 Linux bridging interfaces 460 00:20:52,180 --> 00:20:53,380 and the full-featured 461 00:20:54,420 --> 00:20:56,560 filtering interfaces. So that doesn't happen 462 00:20:56,560 --> 00:20:57,780 on a Xen server. 463 00:21:04,640 --> 00:21:06,360 It may have been developed 464 00:21:06,360 --> 00:21:08,100 before EBTables existed, 465 00:21:08,340 --> 00:21:09,900 but it wasn't developed before 466 00:21:10,400 --> 00:21:11,020 IPChains existed. 467 00:21:11,480 --> 00:21:13,600 And it bypasses those, too. 468 00:21:14,400 --> 00:21:16,000 It bypasses the entire 469 00:21:16,000 --> 00:21:17,340 netfilter setup of the kernel. 470 00:21:17,500 --> 00:21:18,980 So you can't filter anything. 471 00:21:19,340 --> 00:21:21,780 Even if you assume the IP addresses are right, 472 00:21:22,060 --> 00:21:23,500 your filtering is shot. 473 00:21:23,860 --> 00:21:25,880 So now the only thing you have to rely on 474 00:21:25,880 --> 00:21:26,940 is your hardware firewall. 475 00:21:28,000 --> 00:21:29,680 And seeing as your hardware firewall 476 00:21:29,680 --> 00:21:31,440 can't tell one virtualized interface 477 00:21:31,440 --> 00:21:32,080 from another, 478 00:21:34,500 --> 00:21:34,860 it hasn't done much. 479 00:21:40,240 --> 00:21:42,300 It has gotten much better 480 00:21:42,300 --> 00:21:42,840 in ESX, 481 00:21:43,680 --> 00:21:46,280 and I'm really waiting for them to push 482 00:21:46,280 --> 00:21:47,360 that to the rest of their products, 483 00:21:47,460 --> 00:21:48,440 because that's the only way, 484 00:21:48,680 --> 00:21:50,400 the only place that they have this 485 00:21:50,960 --> 00:21:52,120 is in ESX. 486 00:21:54,360 --> 00:21:55,400 This feature, 487 00:21:55,800 --> 00:21:57,880 you know, it seems really bad 488 00:21:57,880 --> 00:22:00,160 to make money on actually 489 00:22:00,160 --> 00:22:01,420 bothering to create a release 490 00:22:01,420 --> 00:22:02,480 of your product that's secure. 491 00:22:04,840 --> 00:22:06,540 You know, I'm fine with them 492 00:22:06,540 --> 00:22:08,360 making money on having 493 00:22:08,360 --> 00:22:09,880 some extra buttons and some extra 494 00:22:09,880 --> 00:22:11,600 snapshotting features. That's great. 495 00:22:11,800 --> 00:22:14,460 But actually ruining the security 496 00:22:14,460 --> 00:22:15,720 of your virtualization software 497 00:22:15,720 --> 00:22:17,700 and then advocating that people still use it. 498 00:22:18,760 --> 00:22:19,940 But, you know, 499 00:22:19,980 --> 00:22:22,040 if you want to be secure, you've got to buy an upgrade. 500 00:22:22,380 --> 00:22:23,440 Seems a little bit wrong. 501 00:22:25,540 --> 00:22:26,020 Right. 502 00:22:30,020 --> 00:22:31,920 Because testing environments never get hacked. 503 00:22:36,240 --> 00:22:38,560 The question was basically that 504 00:22:38,560 --> 00:22:41,940 VMware only advocates 505 00:22:41,940 --> 00:22:43,480 use of VMware server 506 00:22:43,480 --> 00:22:44,780 in testing environments 507 00:22:44,780 --> 00:22:47,180 and not entirely for production servers. 508 00:22:47,800 --> 00:22:48,000 And 509 00:22:49,520 --> 00:22:51,440 I don't think that's legitimate. 510 00:22:52,560 --> 00:22:53,340 You know, 511 00:22:53,380 --> 00:22:54,520 testing environments get hacked 512 00:22:54,520 --> 00:22:56,020 just like the rest of everything else. 513 00:22:56,220 --> 00:22:58,280 And passwords leak into those 514 00:22:58,280 --> 00:22:59,660 just as much as anything else. 515 00:22:59,760 --> 00:23:01,920 And really, those are very fertile grounds 516 00:23:01,920 --> 00:23:04,380 to find information and compromise production 517 00:23:04,500 --> 00:23:05,300 machines from. 518 00:23:08,520 --> 00:23:10,640 Well, there's a room devoted to questions, 519 00:23:10,860 --> 00:23:12,580 but where is this next one? 520 00:23:13,720 --> 00:23:14,540 Okay, shout it. 521 00:23:17,420 --> 00:23:17,940 So, 522 00:23:18,100 --> 00:23:20,220 I forgot to mention this at the beginning. 523 00:23:20,460 --> 00:23:21,820 I've only really studied 524 00:23:22,560 --> 00:23:24,120 virtualization closely on Linux 525 00:23:24,120 --> 00:23:26,260 because that's the platform that I find the most 526 00:23:26,260 --> 00:23:28,340 serious use of it being on. 527 00:23:29,120 --> 00:23:30,600 You know, the Windows guys 528 00:23:30,600 --> 00:23:31,680 have their own 529 00:23:32,480 --> 00:23:33,900 completely separate world. 530 00:23:34,500 --> 00:23:35,680 It is the same? Okay. 531 00:23:35,840 --> 00:23:37,720 So, yes, apparently it is the same. 532 00:23:40,180 --> 00:23:40,720 Alright. 533 00:23:40,860 --> 00:23:42,240 So, promiscuous mode 534 00:23:42,240 --> 00:23:42,880 is funny too. 535 00:23:45,160 --> 00:23:45,700 Even 536 00:23:45,700 --> 00:23:48,140 since VMware rewrote the networking 537 00:23:48,140 --> 00:23:49,940 stack, it still says in all their security 538 00:23:49,940 --> 00:23:52,280 documentation, don't use promiscuous mode. 539 00:23:53,780 --> 00:23:54,320 That 540 00:23:54,320 --> 00:23:56,040 doesn't seem like the 541 00:23:56,040 --> 00:23:57,940 proper response either. 542 00:23:58,220 --> 00:24:00,500 Just simply shouting don't use promiscuous 543 00:24:00,500 --> 00:24:02,560 mode is probably not the answer. 544 00:24:02,720 --> 00:24:04,180 The answer is making 545 00:24:04,500 --> 00:24:06,320 sure that when you do use promiscuous mode, 546 00:24:06,580 --> 00:24:08,400 it doesn't actually give you 547 00:24:08,400 --> 00:24:10,460 every packet on the device. Right now, 548 00:24:10,700 --> 00:24:12,640 again with the bridging 549 00:24:12,640 --> 00:24:13,580 in VMware, 550 00:24:13,940 --> 00:24:16,380 you sit, you pop the interface into promiscuous 551 00:24:16,380 --> 00:24:18,280 mode, you get your host's traffic, 552 00:24:18,480 --> 00:24:20,500 and you get every other VM's 553 00:24:20,500 --> 00:24:22,520 traffic sharing that same bridging 554 00:24:22,520 --> 00:24:24,020 mode. That just 555 00:24:24,020 --> 00:24:26,380 doesn't work very well. They can 556 00:24:26,380 --> 00:24:27,960 all read each other's traffic now. 557 00:24:28,860 --> 00:24:30,460 Exactly read each other's 558 00:24:30,460 --> 00:24:31,980 traffic. All the traffic coming in, 559 00:24:32,100 --> 00:24:34,480 all the traffic going out, and more importantly, 560 00:24:34,500 --> 00:24:36,100 you can read the host's traffic. 561 00:24:38,960 --> 00:24:40,220 Since you can 562 00:24:40,220 --> 00:24:42,400 take any IP you like and your 563 00:24:42,400 --> 00:24:44,580 hardware firewall or anyone on the other end 564 00:24:44,580 --> 00:24:45,460 doesn't know the difference, 565 00:24:47,280 --> 00:24:48,340 spoofing becomes pretty 566 00:24:48,340 --> 00:24:49,740 easy. You just 567 00:24:50,280 --> 00:24:52,380 look at the packets coming in and send your 568 00:24:52,380 --> 00:24:54,280 responses going out. If you want to 569 00:24:54,280 --> 00:24:56,380 compromise, say, I don't 570 00:24:56,380 --> 00:24:56,480 know, 571 00:24:58,260 --> 00:24:59,420 something on the host 572 00:25:00,320 --> 00:25:01,700 to crack into the host, 573 00:25:02,340 --> 00:25:04,200 it's fairly easy if you own a VM. 574 00:25:05,400 --> 00:25:06,260 I mean, 575 00:25:08,400 --> 00:25:08,720 networking, 576 00:25:09,240 --> 00:25:09,520 folks, 577 00:25:09,700 --> 00:25:12,000 you've got to be careful with it. 578 00:25:13,480 --> 00:25:14,120 There's, 579 00:25:14,120 --> 00:25:15,920 you know, people have 580 00:25:16,360 --> 00:25:17,940 analyzed virtualization technologies 581 00:25:18,320 --> 00:25:19,760 from going directly using 582 00:25:19,760 --> 00:25:22,460 very weird processor hacks and very weird 583 00:25:22,460 --> 00:25:23,520 operating system hacks, 584 00:25:23,800 --> 00:25:25,920 but the door's wide open in the networking. 585 00:25:26,900 --> 00:25:28,280 It's just all 586 00:25:28,280 --> 00:25:30,380 sitting there, waiting to be 587 00:25:30,380 --> 00:25:30,780 compromised. 588 00:25:32,180 --> 00:25:34,220 I'm being a little bit melodramatic there. 589 00:25:34,500 --> 00:25:36,400 It's not entirely, you know, 590 00:25:36,420 --> 00:25:37,800 just, you know, 591 00:25:37,820 --> 00:25:40,220 one shell script and you're there, but it's 592 00:25:40,220 --> 00:25:42,160 not too much far. If you can spoof any 593 00:25:42,160 --> 00:25:43,840 IP address coming from that server, 594 00:25:45,620 --> 00:25:46,260 you've got a 595 00:25:46,260 --> 00:25:46,540 problem. 596 00:25:48,420 --> 00:25:50,440 And, you know, I should also mention 597 00:25:50,440 --> 00:25:51,440 that you can impersonate 598 00:25:52,000 --> 00:25:54,240 whichever MAC address you'd like, too, so 599 00:25:54,240 --> 00:25:56,180 don't think MAC filtering's going to help much by 600 00:25:56,180 --> 00:25:57,520 any standard. 601 00:26:01,980 --> 00:26:04,420 The thing is, is ESX, again, 602 00:26:04,500 --> 00:26:06,180 did redesign their networking stack 603 00:26:06,180 --> 00:26:08,420 and did include some options to 604 00:26:08,420 --> 00:26:08,660 prevent 605 00:26:10,240 --> 00:26:11,000 MAC spoofing. 606 00:26:12,460 --> 00:26:14,500 Anyone want to guess if they're on by default? 607 00:26:16,860 --> 00:26:17,420 Yeah. 608 00:26:18,100 --> 00:26:19,340 No, not at all. 609 00:26:20,160 --> 00:26:21,280 So, wow, 610 00:26:22,120 --> 00:26:23,120 that green looks different. 611 00:26:23,560 --> 00:26:26,180 Anyways, so here's our 612 00:26:26,180 --> 00:26:27,800 generic VMware 613 00:26:28,360 --> 00:26:29,760 model, and this is 614 00:26:29,760 --> 00:26:32,060 really, you know, 615 00:26:32,080 --> 00:26:33,960 not to pick on VMware, 616 00:26:34,500 --> 00:26:35,240 but this is really, 617 00:26:36,660 --> 00:26:38,140 we're going to go through the default 618 00:26:38,140 --> 00:26:40,340 VMware model, which it can be changed to a 619 00:26:40,340 --> 00:26:42,340 much better model, and there's ways to 620 00:26:42,340 --> 00:26:44,400 do that, but this is 621 00:26:44,400 --> 00:26:46,300 really one of the worst ways you could 622 00:26:46,300 --> 00:26:48,340 set things up, and we're going to go through what's wrong 623 00:26:48,340 --> 00:26:50,400 with this, and then we're going to show the better 624 00:26:50,400 --> 00:26:52,380 virtualization model, and then we're going to 625 00:26:52,380 --> 00:26:53,600 explain what's wrong with that, too. 626 00:26:54,860 --> 00:26:56,260 So, right now, here, 627 00:26:56,420 --> 00:26:58,520 you've got basically a bunch 628 00:26:58,520 --> 00:27:00,200 of VMs, and each has to be 629 00:27:00,200 --> 00:27:01,160 trusted entirely 630 00:27:02,020 --> 00:27:04,080 to have their own entirely 631 00:27:04,500 --> 00:27:06,260 separate network firewall. 632 00:27:07,120 --> 00:27:08,440 You have to trust each 633 00:27:08,440 --> 00:27:10,200 VM to maintain its own 634 00:27:10,200 --> 00:27:11,680 and not get compromised. 635 00:27:12,520 --> 00:27:14,300 If any VM gets compromised, 636 00:27:14,620 --> 00:27:16,160 your hardware firewall can't help you, 637 00:27:16,200 --> 00:27:18,180 and the host's firewall can't help you, 638 00:27:18,220 --> 00:27:20,220 because VMware's interface just 639 00:27:20,220 --> 00:27:21,000 bypasses it. 640 00:27:23,100 --> 00:27:24,260 And even if it doesn't 641 00:27:24,260 --> 00:27:25,880 bypass, you can hop IPs and 642 00:27:25,880 --> 00:27:28,140 do all kinds of fun things, and for the most part, 643 00:27:28,180 --> 00:27:28,720 get around it. 644 00:27:31,320 --> 00:27:32,180 So your sphere 645 00:27:32,180 --> 00:27:33,640 of trust is really 646 00:27:34,500 --> 00:27:35,740 you've got all kinds of them. 647 00:27:35,860 --> 00:27:38,440 You don't just have one place that you can go 648 00:27:38,440 --> 00:27:40,440 and filter everything. You have to make 649 00:27:40,440 --> 00:27:42,400 sure every single filter works, 650 00:27:42,560 --> 00:27:44,460 or you have VMs running rampant 651 00:27:44,460 --> 00:27:45,060 across the network. 652 00:27:50,640 --> 00:27:52,240 So here's the model 653 00:27:52,240 --> 00:27:54,580 Zen uses, and the model that you can convince 654 00:27:54,580 --> 00:27:55,940 VMware to use if you 655 00:27:57,020 --> 00:27:57,900 take all of 656 00:27:57,900 --> 00:28:00,160 your VMs, assign them a different 657 00:28:00,160 --> 00:28:01,800 VM adapter, and 658 00:28:01,800 --> 00:28:04,200 put them all in a bridge, and basically force 659 00:28:04,500 --> 00:28:06,340 VMware to do things exactly the same way Zen 660 00:28:06,340 --> 00:28:07,700 does it by default. 661 00:28:08,760 --> 00:28:10,380 And here, you have a nice model 662 00:28:10,380 --> 00:28:12,720 where you've got all your VMs, 663 00:28:12,760 --> 00:28:14,140 and they all go to a central 664 00:28:14,140 --> 00:28:16,440 place, and you can 665 00:28:16,440 --> 00:28:18,120 filter, you can 666 00:28:19,140 --> 00:28:19,580 examine, 667 00:28:20,860 --> 00:28:21,960 and you can 668 00:28:22,500 --> 00:28:24,380 basically do anything with the packets there 669 00:28:24,380 --> 00:28:24,980 that you need to. 670 00:28:26,160 --> 00:28:28,460 And that goes for the host, too. So you can 671 00:28:28,460 --> 00:28:30,280 look at all those interfaces, you can use 672 00:28:30,280 --> 00:28:32,540 EB tables with impunity, you can use 673 00:28:32,540 --> 00:28:33,900 IP tables with impunity. 674 00:28:34,500 --> 00:28:35,760 It's all right there. 675 00:28:37,440 --> 00:28:38,200 So that's 676 00:28:38,200 --> 00:28:39,020 pretty good. 677 00:28:39,980 --> 00:28:42,220 But now let's look at what happens 678 00:28:42,220 --> 00:28:44,260 when you stand back, and even when this 679 00:28:44,260 --> 00:28:46,060 model, when you try and put it on a network. 680 00:28:47,000 --> 00:28:48,480 You actually have to end up 681 00:28:48,480 --> 00:28:50,240 redesigning the network. So here's 682 00:28:50,240 --> 00:28:52,360 our traditional network setup. You've 683 00:28:52,360 --> 00:28:54,420 got each computer going into a switch, hopefully 684 00:28:54,420 --> 00:28:55,440 with filtering capabilities. 685 00:28:55,940 --> 00:28:57,820 So you can't pass layer 2 traffic, 686 00:28:58,420 --> 00:28:59,460 you can't 687 00:29:00,980 --> 00:29:02,360 just pass weird things 688 00:29:02,360 --> 00:29:03,960 between VMs, you can't just 689 00:29:04,500 --> 00:29:06,180 change IPs or change 690 00:29:06,180 --> 00:29:07,920 MAC addresses on your links without 691 00:29:08,500 --> 00:29:10,480 someone noticing. You can't just 692 00:29:11,120 --> 00:29:12,320 do whatever you want. 693 00:29:12,900 --> 00:29:14,580 You have to be a little bit more careful. 694 00:29:16,040 --> 00:29:16,560 Now, 695 00:29:18,720 --> 00:29:20,460 that's what it looks like with virtualization. 696 00:29:21,340 --> 00:29:21,860 So, 697 00:29:23,100 --> 00:29:24,420 let's pretend we're trying to 698 00:29:24,420 --> 00:29:25,600 firewall these for a moment. 699 00:29:25,920 --> 00:29:28,240 And we've got our darkest 700 00:29:28,240 --> 00:29:30,760 green as our high security VMs, 701 00:29:30,760 --> 00:29:32,420 and our lightest green as 702 00:29:32,420 --> 00:29:33,940 our low security VMs. 703 00:29:34,500 --> 00:29:36,120 And we want to make sure that, 704 00:29:36,720 --> 00:29:38,380 say we're even doing malware 705 00:29:38,380 --> 00:29:39,660 analysis on one of these. 706 00:29:40,100 --> 00:29:42,380 Say we're doing malware analysis on 707 00:29:42,380 --> 00:29:44,480 the two light green ones in the upper 708 00:29:45,260 --> 00:29:46,120 right there. 709 00:29:47,680 --> 00:29:48,400 So those 710 00:29:48,400 --> 00:29:49,860 we know may be compromised. 711 00:29:51,980 --> 00:29:52,460 And 712 00:29:52,460 --> 00:29:54,320 we don't want it to touch the high security one 713 00:29:54,320 --> 00:29:54,580 there. 714 00:29:56,440 --> 00:29:58,140 We can do absolutely nothing 715 00:29:58,140 --> 00:29:59,400 to prevent it from doing that. 716 00:29:59,940 --> 00:30:01,960 In terms of networking, 717 00:30:02,520 --> 00:30:04,380 we have very few options. 718 00:30:04,900 --> 00:30:06,820 The host can't do a whole lot. 719 00:30:07,220 --> 00:30:07,740 You know, 720 00:30:07,820 --> 00:30:10,560 you can do more with the Zen model 721 00:30:10,560 --> 00:30:11,900 than you can do with the VMWare model. 722 00:30:12,140 --> 00:30:13,760 But you can still hop IP addresses 723 00:30:13,760 --> 00:30:16,160 and hop around enough where you're likely 724 00:30:16,160 --> 00:30:17,960 going to be able to subvert the host-based firewall. 725 00:30:18,660 --> 00:30:19,900 You need a hardware backup. 726 00:30:21,420 --> 00:30:22,520 And you don't have one. 727 00:30:23,120 --> 00:30:24,220 You certainly don't have 728 00:30:25,420 --> 00:30:26,300 different VLANs 729 00:30:26,300 --> 00:30:28,300 without extending VLAN taking out 730 00:30:28,300 --> 00:30:29,420 to your host. 731 00:30:29,780 --> 00:30:31,740 And then any time one of your hosts gets compromised, 732 00:30:32,260 --> 00:30:34,320 which will happen quite a lot if all your 733 00:30:34,500 --> 00:30:36,400 VMs can read whatever the host is sending 734 00:30:36,400 --> 00:30:38,040 in and out and spoof with impunity, 735 00:30:40,900 --> 00:30:41,540 you know, 736 00:30:42,380 --> 00:30:43,680 you have no VLANs. 737 00:30:44,120 --> 00:30:46,060 You have none of the traditional protections 738 00:30:46,060 --> 00:30:47,680 that we rely on every day 739 00:30:47,680 --> 00:30:48,800 to keep our network secure. 740 00:30:49,140 --> 00:30:50,860 Every network has a network firewall. 741 00:30:52,480 --> 00:30:53,960 Now, you could argue 742 00:30:53,960 --> 00:30:56,340 and you would probably be correct 743 00:30:56,340 --> 00:30:58,260 that none of these network firewalls 744 00:30:58,260 --> 00:31:00,260 are living to the capabilities that they should be 745 00:31:00,260 --> 00:31:02,540 and that they aren't doing as much as they should be 746 00:31:02,540 --> 00:31:03,920 and that they only repel 747 00:31:04,500 --> 00:31:06,000 hackers a little less brighter 748 00:31:06,000 --> 00:31:06,880 than a ham sandwich. 749 00:31:07,120 --> 00:31:09,560 But in the end, 750 00:31:10,780 --> 00:31:12,460 these are still a critical part 751 00:31:12,460 --> 00:31:13,020 of the infrastructure. 752 00:31:14,040 --> 00:31:15,320 And with virtualization, 753 00:31:16,100 --> 00:31:17,100 they're mostly gone. 754 00:31:17,240 --> 00:31:20,620 Because you have a virtualized network now. 755 00:31:21,280 --> 00:31:22,420 And you can talk within 756 00:31:22,420 --> 00:31:24,400 that virtualized network without ever touching hardware. 757 00:31:25,080 --> 00:31:26,460 At least switching hardware 758 00:31:26,460 --> 00:31:27,800 is what I'm talking about. 759 00:31:29,520 --> 00:31:30,320 And the 760 00:31:30,320 --> 00:31:32,240 virtualized network just isn't the same. 761 00:31:33,500 --> 00:31:34,480 So now let's talk 762 00:31:34,500 --> 00:31:35,220 about live migration, 763 00:31:35,520 --> 00:31:37,620 which given that we've established 764 00:31:37,620 --> 00:31:38,700 that you can spoof, 765 00:31:39,800 --> 00:31:41,940 that you can do whatever you want 766 00:31:41,940 --> 00:31:42,500 with the network, 767 00:31:42,760 --> 00:31:45,380 I think we've established fairly regularly 768 00:31:45,380 --> 00:31:48,320 that the network can never actually be trusted. 769 00:31:49,140 --> 00:31:49,780 So, 770 00:31:50,500 --> 00:31:52,300 it would seem unwise 771 00:31:52,300 --> 00:31:52,980 then that 772 00:31:54,300 --> 00:31:55,640 all of the major VM 773 00:31:56,500 --> 00:31:57,600 virtualization manufacturers 774 00:31:58,340 --> 00:32:00,160 say in every single manual 775 00:32:00,160 --> 00:32:02,020 that they have that you should never 776 00:32:02,020 --> 00:32:04,340 run live migration on an untrusted network. 777 00:32:04,900 --> 00:32:05,460 Ever. 778 00:32:07,600 --> 00:32:08,460 And there's 779 00:32:08,460 --> 00:32:09,380 a good reason for that. 780 00:32:10,720 --> 00:32:11,820 And that's because 781 00:32:12,420 --> 00:32:14,180 Zen doesn't bother to encrypt anything. 782 00:32:14,740 --> 00:32:16,180 So your entire memory 783 00:32:16,180 --> 00:32:18,320 contents are flying across a network 784 00:32:18,320 --> 00:32:20,400 that I think we just established pretty firmly 785 00:32:20,400 --> 00:32:22,080 isn't secure in the least. 786 00:32:22,960 --> 00:32:24,200 Not even a little bit. 787 00:32:24,760 --> 00:32:26,400 And your entire contents 788 00:32:26,400 --> 00:32:28,380 of the memory and the disk 789 00:32:28,380 --> 00:32:30,760 are flying across that same network. 790 00:32:31,240 --> 00:32:32,360 Just waiting for 791 00:32:32,360 --> 00:32:33,800 any compromised VM 792 00:32:34,500 --> 00:32:35,280 to snatch them out 793 00:32:35,280 --> 00:32:38,040 and go through the data just as you want. 794 00:32:38,300 --> 00:32:39,900 Now, I was 795 00:32:39,900 --> 00:32:41,660 going to release a tool to make this easier, 796 00:32:41,840 --> 00:32:44,080 but then I just realized that this is basically 797 00:32:46,460 --> 00:32:48,060 you know, IP dump 798 00:32:48,060 --> 00:32:49,460 and grep. 799 00:32:50,160 --> 00:32:50,640 So, 800 00:32:51,920 --> 00:32:54,340 I didn't think we needed a tool for that. 801 00:32:55,600 --> 00:32:57,980 I think everyone has 802 00:32:57,980 --> 00:32:59,700 those two down pretty well 803 00:33:00,420 --> 00:33:01,380 if you're at DEF CON. 804 00:33:02,600 --> 00:33:03,760 And here's VMware. 805 00:33:05,640 --> 00:33:06,560 And it's 806 00:33:06,560 --> 00:33:08,020 surprising in that it has 807 00:33:08,020 --> 00:33:10,360 an optional hardware-based SSL, 808 00:33:11,520 --> 00:33:12,400 but they still 809 00:33:12,400 --> 00:33:13,960 scream in all their manuals that 810 00:33:14,720 --> 00:33:16,020 you shouldn't run it across 811 00:33:16,020 --> 00:33:16,980 untrusted networks. 812 00:33:17,680 --> 00:33:18,760 Why do you think that is? 813 00:33:19,640 --> 00:33:22,100 Do you think that the SSL 814 00:33:22,100 --> 00:33:22,900 is turned on by default? 815 00:33:23,180 --> 00:33:25,820 Do you think that the certificates are 816 00:33:25,820 --> 00:33:27,540 typed in and verified by hand? 817 00:33:27,900 --> 00:33:29,980 Do you think that they're verified at all? 818 00:33:30,560 --> 00:33:31,940 I don't know. Good questions. 819 00:33:32,080 --> 00:33:32,480 Ask VMware. 820 00:33:35,020 --> 00:33:35,540 Yeah. 821 00:33:36,140 --> 00:33:38,260 I should have had a little bit more for you there. 822 00:33:38,580 --> 00:33:39,580 Sorry about that one. 823 00:33:40,680 --> 00:33:41,980 But from what I know, 824 00:33:42,060 --> 00:33:43,900 the SSL is not enabled by default. 825 00:33:44,360 --> 00:33:46,400 And you do not type in certificates 826 00:33:46,400 --> 00:33:48,180 by hand, so there's not a whole lot 827 00:33:48,180 --> 00:33:49,260 of verification going on. 828 00:33:51,040 --> 00:33:52,280 And we've seen 829 00:33:52,280 --> 00:33:53,720 in the past how easy it is to 830 00:33:54,340 --> 00:33:56,520 get an SSL certificate and fake it. 831 00:33:57,380 --> 00:33:57,900 And 832 00:33:58,500 --> 00:34:00,380 actually asking people 833 00:34:00,380 --> 00:34:02,300 to go ahead and get 834 00:34:02,300 --> 00:34:04,480 real SSL certificates to move their VMs 835 00:34:04,500 --> 00:34:04,640 around. 836 00:34:05,100 --> 00:34:07,740 You think anyone's gonna go jump on that right away? 837 00:34:09,000 --> 00:34:09,740 I mean, 838 00:34:09,760 --> 00:34:12,220 how many SSL websites do we have around 839 00:34:12,220 --> 00:34:14,100 compared to the non-SSL websites? 840 00:34:16,250 --> 00:34:17,180 Probably not the best choice. 841 00:34:17,760 --> 00:34:20,240 So OpenVZ, which is 842 00:34:20,240 --> 00:34:22,000 again, one of those OS-level 843 00:34:22,000 --> 00:34:24,300 virtualizers that is mostly targeted 844 00:34:24,300 --> 00:34:25,740 towards Linux, is 845 00:34:26,370 --> 00:34:28,380 really at the top of its game 846 00:34:28,380 --> 00:34:30,100 here. It uses SSH. 847 00:34:30,220 --> 00:34:31,980 It does everything right. 848 00:34:32,520 --> 00:34:34,220 The authentication goes across 849 00:34:34,500 --> 00:34:34,780 in encryption. 850 00:34:35,720 --> 00:34:37,900 The contents go across encrypted. 851 00:34:39,500 --> 00:34:40,120 And 852 00:34:40,120 --> 00:34:41,720 you just have one little problem. 853 00:34:41,940 --> 00:34:44,340 And that is that each of these hosts 854 00:34:44,340 --> 00:34:45,500 have 855 00:34:45,500 --> 00:34:46,860 public key, 856 00:34:47,600 --> 00:34:50,320 no password, SSH 857 00:34:50,320 --> 00:34:52,100 keys to each other's root 858 00:34:52,100 --> 00:34:52,360 accounts. 859 00:34:53,780 --> 00:34:54,400 So, 860 00:34:56,420 --> 00:34:57,220 you know, 861 00:34:57,300 --> 00:34:59,000 defense in depth, right? 862 00:34:59,520 --> 00:35:01,580 You've got the defense between 863 00:35:02,200 --> 00:35:04,380 any compromised host, and then 864 00:35:04,500 --> 00:35:05,400 you just give them everything, right? 865 00:35:06,560 --> 00:35:08,540 I don't think that's actually how it works. 866 00:35:09,900 --> 00:35:10,340 And 867 00:35:10,340 --> 00:35:11,900 so then there's also IBM's 868 00:35:11,900 --> 00:35:13,440 VM stuff, and 869 00:35:14,920 --> 00:35:16,160 their previous iteration 870 00:35:16,160 --> 00:35:17,400 was, yeah? 871 00:35:28,800 --> 00:35:30,440 So, that's a very good question. 872 00:35:30,540 --> 00:35:32,600 And I've loved the use of SSH force commands. 873 00:35:32,780 --> 00:35:34,480 They've helped me a lot in the past. 874 00:35:34,500 --> 00:35:35,880 What's the question? 875 00:35:36,040 --> 00:35:38,240 Oh, I'm sorry, right. No speakers. 876 00:35:38,580 --> 00:35:39,860 Or microphones, rather. 877 00:35:40,160 --> 00:35:42,460 Yeah, so the fellow in the front 878 00:35:42,460 --> 00:35:44,360 here was asking whether if you can 879 00:35:44,360 --> 00:35:46,420 use SSH forced commands 880 00:35:46,420 --> 00:35:48,480 to help aid the migration process 881 00:35:48,480 --> 00:35:50,380 so that if you 882 00:35:50,380 --> 00:35:52,720 if you 883 00:35:53,560 --> 00:35:54,440 compromise the 884 00:35:54,440 --> 00:35:55,740 key, it isn't completely 885 00:35:55,740 --> 00:35:58,440 a bad thing, because it can only 886 00:35:58,440 --> 00:36:00,360 run that one command. And it can only 887 00:36:00,360 --> 00:36:02,040 migrate anything 888 00:36:02,040 --> 00:36:04,080 it wants in and out of your system. 889 00:36:04,780 --> 00:36:05,260 Um... 890 00:36:07,200 --> 00:36:08,400 Oh, wait. Right. 891 00:36:09,020 --> 00:36:10,300 So that's the problem 892 00:36:10,300 --> 00:36:12,180 with that. Even if you can use 893 00:36:12,180 --> 00:36:13,140 SSH force commands, 894 00:36:13,820 --> 00:36:16,420 the fact that you can completely control 895 00:36:16,420 --> 00:36:18,220 what the server's running is probably 896 00:36:18,220 --> 00:36:19,860 still enough of a 897 00:36:20,420 --> 00:36:22,460 problem where you don't 898 00:36:22,460 --> 00:36:23,800 want to do that and rely on that. 899 00:36:24,200 --> 00:36:26,320 But yes, you would want to use force 900 00:36:26,320 --> 00:36:28,420 commands just to limit your scope, and so that 901 00:36:28,420 --> 00:36:30,300 you're not necessarily directly compromising 902 00:36:30,300 --> 00:36:32,380 the host right away. That would 903 00:36:32,380 --> 00:36:34,140 help you if it works. 904 00:36:34,500 --> 00:36:35,980 I haven't been able to check into that. 905 00:36:36,660 --> 00:36:38,340 You should. It would be awesome. 906 00:36:38,500 --> 00:36:39,120 Let me know. 907 00:36:41,960 --> 00:36:44,320 But yeah, generally, even if that does 908 00:36:44,320 --> 00:36:46,280 happen, you're still not really 909 00:36:46,280 --> 00:36:48,660 entirely secure. So IBM's 910 00:36:48,660 --> 00:36:49,900 VM stuff, their last iteration, 911 00:36:50,280 --> 00:36:52,320 the live migration features were in 912 00:36:52,320 --> 00:36:52,900 plain text. 913 00:36:54,420 --> 00:36:55,900 It wasn't as great as 914 00:36:56,500 --> 00:36:58,340 really we'd expect from 915 00:36:58,340 --> 00:37:00,120 IBM, who's been doing virtualization 916 00:37:00,120 --> 00:37:02,380 for, oh, what, 30 years 917 00:37:02,380 --> 00:37:04,020 now? Um... 918 00:37:04,500 --> 00:37:06,400 You know, you think they provide a 919 00:37:06,400 --> 00:37:08,440 solid live migration, and they're 920 00:37:08,440 --> 00:37:10,260 about to rewrite everything. So we'll see. 921 00:37:10,320 --> 00:37:11,940 We'll find out at the end of 07 922 00:37:12,500 --> 00:37:14,040 whether they've done a good job. 923 00:37:14,180 --> 00:37:16,300 I have hope. IBM 924 00:37:16,300 --> 00:37:18,260 does this usually pretty well 925 00:37:18,260 --> 00:37:19,340 and pretty right. 926 00:37:20,160 --> 00:37:22,220 You know, and their new power chips, this is 927 00:37:22,220 --> 00:37:24,460 their big thing now. So... 928 00:37:25,100 --> 00:37:25,680 We'll see. 929 00:37:26,780 --> 00:37:28,500 Any IBM engineers in the 930 00:37:28,500 --> 00:37:30,280 audience? This is 931 00:37:30,280 --> 00:37:32,600 one thing I'd really like to see in your product. 932 00:37:33,700 --> 00:37:34,480 Like, let's 933 00:37:34,500 --> 00:37:35,460 like, really, like... 934 00:37:36,240 --> 00:37:37,860 Yeah. Question? Oh. 935 00:37:38,240 --> 00:37:40,020 What do you think of IBM's 936 00:37:40,020 --> 00:37:42,540 logical partitioning, such as 937 00:37:42,540 --> 00:37:43,860 running Linux on AS400? 938 00:37:44,780 --> 00:37:46,440 Um, so I don't 939 00:37:46,440 --> 00:37:48,500 have as much experience with IBM 940 00:37:49,020 --> 00:37:50,400 virtualization as I'd like to 941 00:37:50,400 --> 00:37:52,020 be correctly answer that question. 942 00:37:52,240 --> 00:37:54,440 But everything I have seen of their virtualization 943 00:37:54,440 --> 00:37:56,160 products, they do a pretty decent job. 944 00:37:56,440 --> 00:37:58,480 And I know that the people around 945 00:37:58,480 --> 00:38:00,440 me who do use those products are very happy 946 00:38:00,440 --> 00:38:01,920 with them. Um... 947 00:38:02,340 --> 00:38:04,260 I was very disappointed that the 948 00:38:04,500 --> 00:38:06,300 to see that they didn't actually bother to encrypt 949 00:38:06,300 --> 00:38:08,180 live migration. Um... 950 00:38:08,180 --> 00:38:10,380 And I think that that's a failing 951 00:38:10,380 --> 00:38:12,440 that I hope they'll remedy. They usually do a pretty good 952 00:38:12,440 --> 00:38:14,340 job. And I think their logical partitioning, 953 00:38:14,340 --> 00:38:15,980 from what I've seen, is decent. 954 00:38:16,900 --> 00:38:18,220 Um... And really, 955 00:38:18,500 --> 00:38:20,260 IBM does better than 956 00:38:20,260 --> 00:38:22,060 anyone else because they carry on 957 00:38:22,060 --> 00:38:24,880 the partitioning 958 00:38:24,880 --> 00:38:26,420 not just in the CPU, but 959 00:38:26,420 --> 00:38:27,960 in every piece of hardware they produce. 960 00:38:28,220 --> 00:38:30,440 They really do a good job 961 00:38:30,440 --> 00:38:32,420 at doing virtualization correctly 962 00:38:32,420 --> 00:38:34,440 on all of the hardware, not 963 00:38:34,500 --> 00:38:35,860 just the processor. 964 00:38:36,580 --> 00:38:38,560 And that's a big bonus for them. 965 00:38:38,640 --> 00:38:39,820 And that really helps them out a lot. 966 00:38:40,140 --> 00:38:41,800 Okay. So, uh... 967 00:38:42,640 --> 00:38:44,260 I had that stamp 968 00:38:44,260 --> 00:38:46,300 on my presentation that said I was going to release 969 00:38:46,300 --> 00:38:48,120 a tool. So I can't 970 00:38:48,120 --> 00:38:50,380 get up here and not release a tool. Although 971 00:38:50,380 --> 00:38:52,440 I wasn't exactly saying 972 00:38:52,440 --> 00:38:54,200 that I was going to release a very good tool 973 00:38:54,200 --> 00:38:55,180 on my CFP, but 974 00:38:55,980 --> 00:38:57,620 you know how these things happen. 975 00:38:57,840 --> 00:39:00,400 You get the stamp, and so here it is. 976 00:39:00,860 --> 00:39:02,400 And basically what this 977 00:39:02,400 --> 00:39:03,980 does is it actually changes 978 00:39:04,500 --> 00:39:05,900 it does all the necessary 979 00:39:06,320 --> 00:39:07,320 prodding and polling to 980 00:39:07,900 --> 00:39:10,020 pull apart VMware's networking model 981 00:39:10,020 --> 00:39:12,480 and fit it into the same one Zen does. 982 00:39:14,040 --> 00:39:14,560 And... 983 00:39:14,560 --> 00:39:16,200 And it really, uh... 984 00:39:16,200 --> 00:39:18,100 It applies some EBTables rules 985 00:39:18,100 --> 00:39:19,400 right there for you by default. 986 00:39:19,660 --> 00:39:21,900 And it's a nice little script just to help you out 987 00:39:21,900 --> 00:39:23,760 in terms of those last details. 988 00:39:24,460 --> 00:39:26,540 You might want to check the ordering, 989 00:39:26,640 --> 00:39:28,200 and you might get a few error messages. 990 00:39:28,620 --> 00:39:30,360 The error messages should be fine. 991 00:39:30,460 --> 00:39:32,240 The ordering might not, 992 00:39:32,280 --> 00:39:34,480 depending on how your interfaces are set up. 993 00:39:35,060 --> 00:39:35,480 Um... 994 00:39:36,480 --> 00:39:36,900 So... 995 00:39:37,480 --> 00:39:39,980 The thing that I do usually when I run this script 996 00:39:39,980 --> 00:39:41,980 is I set up a cron job to do 997 00:39:41,980 --> 00:39:44,060 the exact inverse five minutes later. 998 00:39:44,260 --> 00:39:46,160 And if I can still contact the machine, 999 00:39:46,420 --> 00:39:48,620 I delete the cron job after I run the script. 1000 00:39:49,560 --> 00:39:50,420 Might be good for you. 1001 00:39:50,780 --> 00:39:51,200 Anyways... 1002 00:39:51,940 --> 00:39:53,900 I know. Not a very good tool. 1003 00:39:56,180 --> 00:39:56,600 Um... 1004 00:39:56,600 --> 00:39:58,540 Okay. So... 1005 00:39:59,040 --> 00:39:59,860 Summary. Wow. 1006 00:40:00,000 --> 00:40:00,660 That was fast. 1007 00:40:01,600 --> 00:40:03,020 I should have had my notes with me. 1008 00:40:04,500 --> 00:40:05,680 I have this little OLPC here. 1009 00:40:06,480 --> 00:40:06,820 And, uh... 1010 00:40:06,820 --> 00:40:08,920 It was supposed to carry my notes, 1011 00:40:09,060 --> 00:40:12,580 but somehow when I transferred them from this to that, 1012 00:40:12,740 --> 00:40:14,100 I got an old copy. 1013 00:40:14,940 --> 00:40:15,880 And, uh... 1014 00:40:15,880 --> 00:40:18,160 And so since there's some time at the end 1015 00:40:18,160 --> 00:40:18,960 after I do the summary, 1016 00:40:19,440 --> 00:40:20,560 I'm just gonna... 1017 00:40:21,300 --> 00:40:22,740 Does anyone want to see the OLPC? 1018 00:40:24,120 --> 00:40:25,240 Alright. That's what I thought. 1019 00:40:25,640 --> 00:40:26,820 So that's what we're gonna do. 1020 00:40:26,940 --> 00:40:29,240 And you can ask the QA questions in the QA room. 1021 00:40:29,380 --> 00:40:31,560 It's the Track 2 QA room out there. 1022 00:40:32,560 --> 00:40:32,960 Okay. 1023 00:40:34,500 --> 00:40:35,400 VMs are still neat. 1024 00:40:36,040 --> 00:40:36,640 Um... 1025 00:40:36,640 --> 00:40:39,680 But the people that make them live in a world without attackers... 1026 00:40:40,340 --> 00:40:40,940 And... 1027 00:40:40,940 --> 00:40:44,020 Yeah. That's just not gonna work. 1028 00:40:45,180 --> 00:40:45,780 Um... 1029 00:40:46,280 --> 00:40:48,260 Trivial issues never become more trivial. 1030 00:40:48,900 --> 00:40:49,500 So... 1031 00:40:50,320 --> 00:40:51,400 Even if you think those 1032 00:40:51,400 --> 00:40:53,960 hyper-threading attacks are just way out there 1033 00:40:53,960 --> 00:40:56,020 and, you know, 1034 00:40:56,060 --> 00:40:58,420 no one's gonna be sniffing GPG keys... 1035 00:40:58,420 --> 00:40:59,280 Well... 1036 00:41:00,220 --> 00:41:01,600 Tomorrow they be... 1037 00:41:02,480 --> 00:41:04,040 They will probably be sniffing 1038 00:41:04,500 --> 00:41:05,920 Mozilla password cache and... 1039 00:41:06,560 --> 00:41:07,460 You know... 1040 00:41:07,460 --> 00:41:09,980 Maybe you guys don't like your Mozilla password cache, 1041 00:41:10,240 --> 00:41:11,480 but some people do, 1042 00:41:11,620 --> 00:41:13,200 and it's becoming more important. 1043 00:41:13,700 --> 00:41:14,260 Um... 1044 00:41:14,260 --> 00:41:17,220 And folks, pushing VM technology really need to 1045 00:41:17,220 --> 00:41:19,860 put security earlier in the design process 1046 00:41:19,860 --> 00:41:21,640 and really incorporate 1047 00:41:22,300 --> 00:41:24,820 the full virtualization aspect 1048 00:41:24,820 --> 00:41:26,300 and consider 1049 00:41:26,300 --> 00:41:28,160 exactly whenever they make a compromise 1050 00:41:28,160 --> 00:41:30,740 on anything that they're not correctly virtualizing 1051 00:41:30,740 --> 00:41:32,100 the security impacts of it. 1052 00:41:33,340 --> 00:41:33,940 Um... 1053 00:41:34,500 --> 00:41:34,700 Okay. 1054 00:41:35,960 --> 00:41:36,440 And... 1055 00:41:37,320 --> 00:41:38,580 So now for the OLPC. 1056 00:41:39,980 --> 00:41:40,460 Alright. 1057 00:41:40,820 --> 00:41:41,580 You hate freedom! 1058 00:41:41,960 --> 00:41:43,020 I do hate freedom. 1059 00:41:43,960 --> 00:41:46,000 I hate freedom with a passion 1060 00:41:47,760 --> 00:41:49,540 because it's just so free. 1061 00:41:49,680 --> 00:41:50,860 It bothers me. 1062 00:41:52,340 --> 00:41:53,640 Actually, I don't hate freedom at all. 1063 00:41:54,100 --> 00:41:55,100 Okay, so... 1064 00:41:55,100 --> 00:41:56,480 We've got this little thing here 1065 00:41:56,480 --> 00:41:59,400 and I don't think that any of you can actually see it. 1066 00:41:59,600 --> 00:42:01,460 I would plug it into the thing, 1067 00:42:01,460 --> 00:42:03,260 but there's no actual VGA port. 1068 00:42:03,520 --> 00:42:05,440 So I'm just gonna give you a rundown on the hardware 1069 00:42:05,440 --> 00:42:06,540 seeing as that's probably 1070 00:42:06,540 --> 00:42:08,680 the best thing that I can do 1071 00:42:08,680 --> 00:42:11,360 in such a limited viewing space. 1072 00:42:12,200 --> 00:42:12,680 So... 1073 00:42:12,680 --> 00:42:14,500 This is your standard OLPC. 1074 00:42:14,920 --> 00:42:15,700 Pretty light. 1075 00:42:17,180 --> 00:42:18,020 Pretty rugged. 1076 00:42:19,500 --> 00:42:20,800 The first thing you'll notice 1077 00:42:20,800 --> 00:42:22,060 if you ever get your hands on one, 1078 00:42:22,180 --> 00:42:24,200 and I hope you all will because they're cool machines, 1079 00:42:24,720 --> 00:42:27,340 is that the first thing you have to overcome 1080 00:42:27,340 --> 00:42:29,000 is opening the OLPC. 1081 00:42:29,480 --> 00:42:30,920 It's harder than you would think, 1082 00:42:31,460 --> 00:42:32,900 particularly for a machine designed for children. 1083 00:42:33,660 --> 00:42:33,920 So... 1084 00:42:35,460 --> 00:42:38,120 Now, this isn't a terrible problem 1085 00:42:38,120 --> 00:42:39,720 because you have to seal it somehow. 1086 00:42:39,960 --> 00:42:41,200 This is why it's hard to open. 1087 00:42:41,260 --> 00:42:43,240 It's because it actually has a tight seal. 1088 00:42:43,400 --> 00:42:44,660 You just have to get used to it 1089 00:42:44,660 --> 00:42:45,920 and then once you know how to open it, 1090 00:42:45,980 --> 00:42:46,780 it's actually pretty easy. 1091 00:42:47,000 --> 00:42:49,300 So most people push on this right here. 1092 00:42:49,540 --> 00:42:52,480 This little green thing in the center of the white stuff. 1093 00:42:52,720 --> 00:42:53,720 And that's the hinge. 1094 00:42:53,940 --> 00:42:55,020 So that's not a button. 1095 00:42:57,020 --> 00:42:58,060 So what you gotta do 1096 00:42:58,060 --> 00:42:59,860 is you gotta take this little thing 1097 00:43:02,700 --> 00:43:03,580 over here, 1098 00:43:03,700 --> 00:43:04,540 tweak it over here, 1099 00:43:06,540 --> 00:43:07,760 and push it down 1100 00:43:07,760 --> 00:43:08,940 and up comes the screen. 1101 00:43:10,200 --> 00:43:11,820 So now you've opened the OLPC. 1102 00:43:13,020 --> 00:43:14,240 Now what else can we do? 1103 00:43:14,400 --> 00:43:14,780 Oh yeah. 1104 00:43:16,860 --> 00:43:18,680 So now what else can we do with it? 1105 00:43:18,820 --> 00:43:20,220 Does it have the hand crank on it still? 1106 00:43:20,420 --> 00:43:22,980 The hand crank has been moved 1107 00:43:22,980 --> 00:43:23,860 from the OLPC 1108 00:43:23,860 --> 00:43:25,400 to the power adapter 1109 00:43:25,400 --> 00:43:27,940 in places where a hand crank would be needed. 1110 00:43:28,420 --> 00:43:29,680 So in places with 1111 00:43:29,680 --> 00:43:30,980 a pretty stable power supply, 1112 00:43:31,460 --> 00:43:32,820 you don't bother to buy the hand crank 1113 00:43:32,820 --> 00:43:34,400 on the actual thing. 1114 00:43:35,040 --> 00:43:37,280 And this was done to put a little bit more, 1115 00:43:37,420 --> 00:43:38,940 you know, the newer version 1116 00:43:38,940 --> 00:43:41,160 is gonna have twice the memory that this one has. 1117 00:43:41,420 --> 00:43:42,880 It's gonna have a faster processor. 1118 00:43:43,040 --> 00:43:45,080 It's running a little AMD Geode processor 1119 00:43:45,080 --> 00:43:46,960 and I think the final specs is 1120 00:43:46,960 --> 00:43:48,740 it's gonna be 433 megahertz. 1121 00:43:49,080 --> 00:43:51,060 Fully x86, you can run all your 1122 00:43:52,100 --> 00:43:53,620 games and programs on it. 1123 00:43:53,680 --> 00:43:54,760 It may not be very fast, 1124 00:43:54,880 --> 00:43:56,060 but you can run them. 1125 00:43:57,460 --> 00:43:58,300 Anyways, let's 1126 00:43:59,440 --> 00:44:00,280 Isn't this nice? 1127 00:44:01,460 --> 00:44:02,960 All of the features of a tablet 1128 00:44:02,960 --> 00:44:05,000 and a smaller form factor. 1129 00:44:07,080 --> 00:44:08,760 Yeah, no, not the actual tablet. 1130 00:44:10,760 --> 00:44:12,640 But all that screen stuff, 1131 00:44:12,900 --> 00:44:14,700 it's just so very neat. 1132 00:44:16,160 --> 00:44:18,940 And these little things sticking out of the top, 1133 00:44:19,140 --> 00:44:21,200 I don't know if you guys know 1134 00:44:21,200 --> 00:44:22,500 that those are wireless antennas, 1135 00:44:22,540 --> 00:44:24,840 not just some weird 1136 00:44:25,420 --> 00:44:26,840 designer's fantasy there. 1137 00:44:29,460 --> 00:44:30,020 So 1138 00:44:31,460 --> 00:44:32,440 Now we've got our small 1139 00:44:35,140 --> 00:44:37,620 Doesn't work very well when you rotate the screen with one hand. 1140 00:44:37,940 --> 00:44:39,420 So we've got this keyboard here 1141 00:44:39,420 --> 00:44:41,060 which is your nice 1142 00:44:41,060 --> 00:44:42,700 rubber keyboard with the 1143 00:44:43,500 --> 00:44:44,960 outlines of the keys here. 1144 00:44:46,460 --> 00:44:47,220 You have 1145 00:44:47,220 --> 00:44:49,560 several things that you don't find on a normal keyboard 1146 00:44:49,560 --> 00:44:51,260 like a view source key. 1147 00:44:52,760 --> 00:44:53,240 And 1148 00:44:53,240 --> 00:44:54,920 a key to activate the webcam. 1149 00:44:55,580 --> 00:44:57,640 Oh, did I mention the OLPC has a webcam? 1150 00:44:58,780 --> 00:45:00,400 My laptop doesn't have a webcam. 1151 00:45:02,740 --> 00:45:03,420 It's this little 1152 00:45:03,420 --> 00:45:05,220 thing right here. It's actually pretty good. 1153 00:45:05,320 --> 00:45:07,200 I was sitting there taking pictures 1154 00:45:07,200 --> 00:45:09,560 in a car at 60 miles an hour the other day. 1155 00:45:09,920 --> 00:45:10,680 Snapped a shot. 1156 00:45:11,620 --> 00:45:12,060 Crisp. 1157 00:45:13,340 --> 00:45:15,300 Not the highest resolution camera, naturally, 1158 00:45:15,340 --> 00:45:17,040 because you've got this little 1159 00:45:18,340 --> 00:45:19,600 NAND flash in there. 1160 00:45:19,980 --> 00:45:21,340 And you don't want to store 1161 00:45:21,340 --> 00:45:22,020 too much on it. 1162 00:45:23,480 --> 00:45:24,920 But very nice and crisp. 1163 00:45:25,960 --> 00:45:26,400 Alright. 1164 00:45:27,120 --> 00:45:28,060 What else do we have? 1165 00:45:28,240 --> 00:45:31,160 We have this button here, which I don't know 1166 00:45:31,460 --> 00:45:32,160 if you can see this clearly, 1167 00:45:32,380 --> 00:45:35,000 but the screen just rotated about 90 degrees. 1168 00:45:35,600 --> 00:45:36,540 And you can 1169 00:45:36,540 --> 00:45:39,140 press it all you want, and the screen will rotate. 1170 00:45:39,540 --> 00:45:40,880 And if you're viewing a web page, 1171 00:45:41,140 --> 00:45:42,260 it'll resize appropriately. 1172 00:45:42,720 --> 00:45:45,040 It'll do the reflowing of the CSS. 1173 00:45:45,460 --> 00:45:47,020 It works very nicely. 1174 00:45:47,160 --> 00:45:48,040 They did a very good job. 1175 00:45:49,260 --> 00:45:51,020 And you've got this little 1176 00:45:51,020 --> 00:45:53,200 pad on here that you can scroll up 1177 00:45:53,200 --> 00:45:53,740 and down with. 1178 00:45:56,640 --> 00:45:58,900 Oh, right. The input devices. 1179 00:45:59,260 --> 00:46:01,280 So, when I said it didn't have a tablet, 1180 00:46:01,460 --> 00:46:02,900 I wasn't completely accurate, 1181 00:46:03,080 --> 00:46:04,960 because you've got this small writing surface here, 1182 00:46:05,040 --> 00:46:06,540 and you can write all the way across it. 1183 00:46:06,860 --> 00:46:08,660 And then this central part is a mouse. 1184 00:46:09,460 --> 00:46:11,340 You've got your standard two buttons 1185 00:46:11,340 --> 00:46:11,880 down here. 1186 00:46:13,760 --> 00:46:15,540 It has sound and everything. 1187 00:46:16,220 --> 00:46:17,740 Surprising for a $100 laptop. 1188 00:46:17,940 --> 00:46:19,120 Not surprising for anything better. 1189 00:46:21,000 --> 00:46:22,120 And so, 1190 00:46:23,680 --> 00:46:25,380 basically, one of the parts 1191 00:46:26,280 --> 00:46:27,320 everyone finds 1192 00:46:27,320 --> 00:46:29,460 interesting is this interface here. 1193 00:46:29,720 --> 00:46:31,340 And I know 1194 00:46:31,460 --> 00:46:32,480 you can't see it very well. 1195 00:46:32,700 --> 00:46:34,740 Basically, what we've got is a white screen 1196 00:46:35,280 --> 00:46:36,680 with a little round circle 1197 00:46:37,250 --> 00:46:38,420 and a little triangle here. 1198 00:46:38,680 --> 00:46:40,860 And this round circle is the mesh network 1199 00:46:40,860 --> 00:46:43,040 that connects us to all the other OLPCs 1200 00:46:43,040 --> 00:46:43,380 at DEF CON. 1201 00:46:44,120 --> 00:46:45,240 I haven't seen one yet. 1202 00:46:46,700 --> 00:46:47,720 Oh, there is. 1203 00:46:49,960 --> 00:46:50,880 The newest. 1204 00:46:51,360 --> 00:46:52,360 The newest stable. 1205 00:46:54,100 --> 00:46:55,040 The newest stable. 1206 00:46:58,260 --> 00:46:58,720 Oh. 1207 00:47:01,600 --> 00:47:02,980 Yeah, it isn't working too well. 1208 00:47:03,260 --> 00:47:04,200 Apparently I suck. 1209 00:47:04,360 --> 00:47:05,740 I'm going to have to get together with this guy 1210 00:47:05,740 --> 00:47:07,240 and see if we can mesh together later. 1211 00:47:11,480 --> 00:47:12,200 Sorry, what? 1212 00:47:14,980 --> 00:47:15,820 Oh, yeah. 1213 00:47:19,080 --> 00:47:19,800 Yeah, well, 1214 00:47:19,940 --> 00:47:22,100 EB tables and IP tables. 1215 00:47:22,240 --> 00:47:23,800 Remember, you can't just go with one. 1216 00:47:23,920 --> 00:47:24,800 It doesn't work. 1217 00:47:25,980 --> 00:47:28,400 Okay, so you've got this mode here, 1218 00:47:28,520 --> 00:47:30,600 and this is all your wireless access points around. 1219 00:47:31,460 --> 00:47:33,100 This is the DEF CON wireless access point here. 1220 00:47:33,320 --> 00:47:34,800 Anyone want to hack the OLPC? 1221 00:47:35,000 --> 00:47:35,940 I can connect to the network. 1222 00:47:36,780 --> 00:47:37,920 Anyone? No takers? 1223 00:47:38,060 --> 00:47:38,220 All right. 1224 00:47:39,740 --> 00:47:41,760 These are cool because you can just reflash 1225 00:47:41,760 --> 00:47:43,740 all the OS images and they're just back to normal. 1226 00:47:45,760 --> 00:47:47,220 And here's the network 1227 00:47:47,220 --> 00:47:48,780 where I would hopefully be seeing 1228 00:47:48,780 --> 00:47:49,780 that fellow over there, 1229 00:47:49,920 --> 00:47:51,220 but I'm not. 1230 00:47:51,960 --> 00:47:54,380 I've got this little green guy here, 1231 00:47:54,520 --> 00:47:55,700 and that's me. 1232 00:47:56,640 --> 00:47:58,100 I know I don't look green, 1233 00:47:58,180 --> 00:47:58,800 but I am here. 1234 00:48:01,460 --> 00:48:01,980 I'm overtime. 1235 00:48:02,220 --> 00:48:03,260 Good. I'm done.