1 00:00:00,780 --> 00:00:00,920 Thank you. 2 00:00:09,380 --> 00:00:12,180 Thank you. 3 00:00:32,320 --> 00:00:52,780 I would prefer to hear your ideas and your questions because much of what you see up here derives from all the good ideas that have been discussed throughout this conference in the talks and in the conversations. 4 00:00:53,040 --> 00:01:00,620 In fact, a lot of what you see up here is a result of those things happening at this conference. 5 00:01:00,620 --> 00:01:02,960 Because I rewrote the slides this morning. 6 00:01:09,640 --> 00:01:16,940 So we're going to talk about a couple of things related to host-based intrusion prevention on Windows and Unix. 7 00:01:17,560 --> 00:01:20,340 And I'm not going to try and define what those are. 8 00:01:21,720 --> 00:01:30,020 I think the community, by developing the intellectual property, will... 9 00:01:30,740 --> 00:01:33,560 Define what these are as we make advances. 10 00:01:34,860 --> 00:01:41,240 And I want to recognize several people for the contributions that they've made. 11 00:01:41,340 --> 00:01:44,700 Niels Provost is at the University of Michigan. 12 00:01:44,780 --> 00:01:45,560 He's a graduate student. 13 00:01:46,400 --> 00:01:48,460 And he's published several tools. 14 00:01:48,580 --> 00:01:51,360 One of them is SysTrace that we're going to look at closely. 15 00:01:53,320 --> 00:01:56,620 And those are currently in OpenBSD and NetBSD. 16 00:01:57,460 --> 00:02:00,260 And there's code on your conference CD. 17 00:02:00,620 --> 00:02:03,680 To support FreeBSD 5.1. 18 00:02:04,440 --> 00:02:09,480 And there's more code on his website to support FreeBSD 4.8. 19 00:02:10,700 --> 00:02:12,600 And we'll look closer at that. 20 00:02:14,240 --> 00:02:24,500 T7 with the Razor team has similar components for Windows. 21 00:02:26,040 --> 00:02:28,060 That provide intrusion prevention. 22 00:02:29,800 --> 00:02:30,600 Slides. 23 00:02:30,620 --> 00:02:34,940 Lightly different approach in terms of the way it integrates with the system. 24 00:02:35,180 --> 00:02:36,840 But very similar functionality. 25 00:02:38,660 --> 00:02:44,700 I'd like to thank DT for suggesting this thread last year in his call for papers. 26 00:02:44,860 --> 00:02:51,000 There was a call for talks on how to harden FreeBSD. 27 00:02:52,620 --> 00:02:53,960 Last year I gave that. 28 00:02:54,080 --> 00:02:59,920 And the gap analysis of that showed a real need for something that... 29 00:03:01,540 --> 00:03:03,640 Increases the integrity of the system. 30 00:03:04,380 --> 00:03:08,220 That all of the rest of the security architecture depends on. 31 00:03:09,920 --> 00:03:14,500 I'd like to thank Greg Hoglin for many insights about application security. 32 00:03:15,000 --> 00:03:17,040 And looking at application state. 33 00:03:17,740 --> 00:03:19,580 And the code at the binary level. 34 00:03:22,380 --> 00:03:24,320 MD5 at the Ghetto Hackers. 35 00:03:24,740 --> 00:03:29,240 Reviewed a lot of this material and contributed comments about how intrusion prevention. 36 00:03:29,240 --> 00:03:32,080 Looks like firewalls in some ways. 37 00:03:32,440 --> 00:03:34,900 That was a great metaphor. 38 00:03:36,760 --> 00:03:37,820 Gotroot.net. 39 00:03:39,320 --> 00:03:44,220 Helped me find exploits such as SSH for the demo. 40 00:03:44,640 --> 00:03:48,220 And finally FreeBSD Mall for all the free stuff that we just gave away. 41 00:03:51,720 --> 00:03:53,720 So more about Niels Provost. 42 00:03:55,160 --> 00:03:57,060 He's written a tool called Systrace. 43 00:03:57,560 --> 00:03:59,220 What it does is it catches all the data. 44 00:03:59,220 --> 00:04:01,460 And then the system calls and alters their behavior. 45 00:04:02,380 --> 00:04:04,840 It supports OpenBSD and NetBSD. 46 00:04:04,980 --> 00:04:07,620 He's also written something called HoneyNet. 47 00:04:08,520 --> 00:04:09,720 That supports the... 48 00:04:13,620 --> 00:04:14,520 HoneyPipe project. 49 00:04:15,380 --> 00:04:17,360 And all these tools you can find on his homepage. 50 00:04:18,380 --> 00:04:19,380 It's listed right there. 51 00:04:20,680 --> 00:04:22,880 Okay, so in the abstract for the talk. 52 00:04:23,580 --> 00:04:25,120 I mentioned a couple of things. 53 00:04:25,300 --> 00:04:27,260 Why should we care about intrusion prevention? 54 00:04:28,160 --> 00:04:29,180 What does it do? 55 00:04:29,220 --> 00:04:29,680 What does it do for us? 56 00:04:32,380 --> 00:04:37,520 And we'll look at how it works. 57 00:04:38,440 --> 00:04:47,160 And how it is consistent across the platform because of architectural constraints of the way kernels are put together. 58 00:04:47,760 --> 00:04:53,860 We'll look at some common features and talk about what's missing. 59 00:04:57,300 --> 00:04:59,200 So why should we care about intrusion prevention? 60 00:04:59,200 --> 00:05:06,380 prevention one way to think about this is to look at an analogy of the network 61 00:05:06,380 --> 00:05:13,760 layers of network security so if you if you look at layered network security 62 00:05:13,760 --> 00:05:20,840 you'll find rules and routers and firewalls and services at the router 63 00:05:20,840 --> 00:05:29,300 level firewall and I NET D or TCP wrappers and each has a distinctive 64 00:05:30,160 --> 00:05:38,620 performance advantage because of the kind of objects it's dealing with at the 65 00:05:38,620 --> 00:05:45,500 router level dealing with lower layers of the protocols and doing a lot of 66 00:05:45,500 --> 00:05:50,640 filtering at the firewall if you have those rules in the router you're dealing 67 00:05:50,640 --> 00:05:55,220 dealing with higher layers, things that are more specific to individual sessions. 68 00:05:57,220 --> 00:06:06,120 And at INetD, you're looking at services that have successfully connected and a context 69 00:06:06,120 --> 00:06:08,240 of where they're coming from and who they're coming from. 70 00:06:08,880 --> 00:06:18,560 So each of those has a different specificity in terms of the context information, and each 71 00:06:18,560 --> 00:06:22,660 has something that contributes to the performance of the next layer. 72 00:06:25,060 --> 00:06:34,320 So if we look at the host side, there's a parallel structure there of information flowing 73 00:06:34,320 --> 00:06:36,100 through the app through the kernel to disk. 74 00:06:39,200 --> 00:06:45,720 And applications explicitly use authentication methods. 75 00:06:46,780 --> 00:06:48,340 Have rules for... 76 00:06:48,340 --> 00:06:48,540 Yeah. 77 00:06:50,040 --> 00:06:56,880 when to allow access and when not to. The kernel does the same thing. Enforcing permissions 78 00:06:56,880 --> 00:07:03,080 and the file system does as well. At each layer, you have different performance advantages 79 00:07:03,080 --> 00:07:08,640 depending on the kind of messages that are coming through, and each has a distinctive 80 00:07:08,640 --> 00:07:16,580 advantage. At the file system layer, you've got access to individual objects and permissions 81 00:07:16,580 --> 00:07:28,500 specific to the object. So in terms of specificity of rules, at the application, you have rules 82 00:07:28,500 --> 00:07:34,220 that can be specific to the session or the connection and the kernel, rules that are 83 00:07:34,220 --> 00:07:43,200 specific per system call, and at the file system, per file or other object. Each of 84 00:07:43,200 --> 00:07:46,560 these layers depends on, in a lot of cases, the application. So in terms of specificity 85 00:07:46,560 --> 00:07:52,440 is the integrity of the other layers. The file system permission assumes integrity 86 00:07:52,440 --> 00:08:03,860 of the application and kernel. The granularity of system call permissions affects what you 87 00:08:03,860 --> 00:08:11,480 can do in an application. So you depend on the granularity of the semantics of system 88 00:08:11,480 --> 00:08:16,440 calls to decide how you're going to enforce security. 89 00:08:16,560 --> 00:08:29,900 The problem is, all of this depends on the integrity of the layers around a particular 90 00:08:29,900 --> 00:08:39,940 layer. And it's very often that applications or services run as root, and if that integrity 91 00:08:39,940 --> 00:08:46,540 is not held, the architecture is not going to run as root. So if that integrity is not 92 00:08:46,560 --> 00:08:58,460 held, the architecture doesn't do you that much. And this is compounded by advances in the various 93 00:08:58,460 --> 00:09:09,560 layers, encryption, fragmentation, re-encoding. All of these can prevent application layer 94 00:09:09,560 --> 00:09:15,600 filtering on the wire. And that's why we're going to look at this in terms of the kernel 95 00:09:15,600 --> 00:09:16,400 being a gap. 96 00:09:17,720 --> 00:09:26,540 And the ability to preserve integrity of the system and the application. Why would we do 97 00:09:26,540 --> 00:09:36,540 that there? It's through the application that, well, your data is going to reside there 98 00:09:36,540 --> 00:09:45,680 in memory, and exploits are going to go through there to get to the disk. So visibility in 99 00:09:45,680 --> 00:09:46,220 the application, 100 00:09:46,220 --> 00:09:54,400 the application layer also provides the ability for better contextual discrimination. When you have 101 00:09:54,400 --> 00:10:05,020 an incoming connection, you have IP address of the client, maybe a domain name. Once you're inside 102 00:10:05,020 --> 00:10:13,420 the application, the application is likely going to be collecting other kinds of information about 103 00:10:13,420 --> 00:10:16,200 the session, about what permissions have been applied. And if you're inside the application, you're 104 00:10:16,220 --> 00:10:22,320 going to be up to date with what the application has been authenticated. And you can leverage that 105 00:10:22,320 --> 00:10:31,300 contextual information about what the application has established to enhance what you can do to block 106 00:10:31,300 --> 00:10:43,040 exploits. So why would we need another tool to do this when we have all the other layers already? We 107 00:10:43,040 --> 00:10:45,920 can think about this kernel level. 108 00:10:46,220 --> 00:11:05,980 System call filtering as, like we do about firewalls, as an application level firewall that enhances what you do at the router and downstream what you do in TCP wrappers. 109 00:11:07,860 --> 00:11:28,200 A lot of exploits are going to attack through service and daemons, and without enhancing the protection against buffer overflows and everything you do inside applications, the system is going to look crunchy on the outside, soft on the inside. 110 00:11:33,240 --> 00:11:35,580 The problem is applications. 111 00:11:35,980 --> 00:11:39,360 The state is very complex in terms of the state of memory, disk, clients. 112 00:11:44,020 --> 00:11:54,020 On the other hand, all that contextual information allows you to write signatures that are application state specific, specific to the state of the OS. 113 00:11:55,980 --> 00:12:05,840 Within the context of a process, there's all sorts of system information that you can rely on that should be met. 114 00:12:05,980 --> 00:12:25,220 Perhaps should be consistent each time an application runs or for each session, and these contextual clues that, if they are consistent from run to run, can allow you to block from the inside of the system, inside the application. 115 00:12:26,660 --> 00:12:34,940 So let's look at a specific example on FreeBSD, how it works. 116 00:12:35,980 --> 00:12:38,240 What's the motivation for doing this? 117 00:12:38,740 --> 00:12:40,620 We're going to look at an SSH exploit. 118 00:12:40,800 --> 00:12:50,700 It's an off-by-one and channel lookup in SSH 2.9, and it was current in all the BSDs at the time the exploit occurred. 119 00:12:52,180 --> 00:13:05,240 And the gap analysis for this was that if we can't rely on something, a hard, relatively hard application like SSH, what can we rely on? 120 00:13:07,280 --> 00:13:15,560 And what can we do to prevent exploits on something we would usually trust? 121 00:13:16,200 --> 00:13:20,680 So in this example, the stuff being done by root is at the top of this green. 122 00:13:20,860 --> 00:13:24,360 The stuff being done by a client user is at the bottom. 123 00:13:28,080 --> 00:13:35,840 So this is an example of setting up sys trace to filter system calls for the SSH. 124 00:13:35,980 --> 00:13:43,000 And at the very top, you see a directory that sys trace looks in to find all the rules. 125 00:13:43,380 --> 00:13:49,280 The rules that specify whether to permit or deny system calls. 126 00:13:49,780 --> 00:13:56,520 In the second panel, we've invoked sys trace with a capital A in order to gather all the system calls. 127 00:13:59,060 --> 00:14:03,700 And it'll watch those system calls and spit out a list of what's... 128 00:14:04,960 --> 00:14:05,960 what the application... 129 00:14:05,980 --> 00:14:19,020 application does. So here on the bottom we're logged in as a user. We've got SSH daemon 130 00:14:19,020 --> 00:14:34,280 running and we run an exploit here. The exploit uses, exploits this channel lookup. The exploit 131 00:14:34,280 --> 00:14:45,440 payload listens on port 11520 for a connection. So that's what the payload is doing. Then the 132 00:14:45,440 --> 00:15:00,720 client side connects to that port and the payload folks a root shell. And there's a message from 133 00:15:00,720 --> 00:15:04,260 the authors. That's part of the source for the exploit. 134 00:15:07,040 --> 00:15:16,440 So just to make sure what our context is, execute ID and we see we're root, wheel group. And PWD 135 00:15:16,440 --> 00:15:24,760 shows us we're in the root of the file system. So what can we do to modify this to block that 136 00:15:24,760 --> 00:15:33,740 exploit? Well, here we stop SSHD and when it exits, sys trace generates a file containing all the 137 00:15:34,280 --> 00:15:44,780 files. So there's the file right there. User bin SSHD. And we'll look at what it contains here. 138 00:15:45,960 --> 00:15:55,760 What we'll see is a list of system calls. These are all the system calls that SSHD invoked. You 139 00:15:55,760 --> 00:16:03,420 see all names of all libraries. So it gives you all the file names that it needs access to to run. 140 00:16:04,300 --> 00:16:07,700 It's invoked bin SSHD. And down at the bottom of all the permissions you see something interesting. 141 00:16:09,600 --> 00:16:24,100 It's invoked bin SSHD. So that's something that SSHD fundamentally normally does. But we can tune 142 00:16:24,100 --> 00:16:34,160 it a little bit by adding a condition. Let's change it so that it can fork a shell only if it's 143 00:16:34,160 --> 00:16:42,680 not root. So what happens when we change that rule? We'll invoke SSHD again with a minus 144 00:16:42,680 --> 00:16:48,140 little a. That means apply these rules with a default deny policy. So any system call 145 00:16:48,140 --> 00:16:55,800 that it hadn't made the first time is going to return an error. So invoke the exploit 146 00:16:55,800 --> 00:17:09,440 again. The client side binds to port, I'm sorry, the payload binds to port 11520. The 147 00:17:09,440 --> 00:17:17,300 client side connects to it. It tries to fork a shell as root, and a system call returns 148 00:17:17,300 --> 00:17:25,200 an error, and they close the connection. So that's the modification. That's the 149 00:17:25,200 --> 00:17:25,780 modification. 150 00:17:25,800 --> 00:17:33,380 Fundamental motivation for doing something like this, to add another layer to the security 151 00:17:33,380 --> 00:17:40,080 inside the host. And that does a couple of things. In this context, we're looking at 152 00:17:40,080 --> 00:17:49,140 SSHD that's normally one of the most trusted applications. In this instance, it's an off 153 00:17:49,140 --> 00:17:54,540 by one error in channel lookup that's buffer overflowed and elevates in user to root. 154 00:17:54,540 --> 00:18:03,800 It was in all the BSDs, as we just mentioned before, the demo. What can we do if we can't 155 00:18:03,800 --> 00:18:11,540 rely on something as trusted as SSH? What can we do to prevent this? As we saw in the 156 00:18:11,540 --> 00:18:17,340 example, we're doing something there that's specific to the payload, not the injection 157 00:18:17,340 --> 00:18:24,520 method. And that's slightly different than the way we're doing it in the demo. We're 158 00:18:24,540 --> 00:18:30,700 doing what's happening at other layers. It's a unique way to recognize what's going on 159 00:18:30,700 --> 00:18:39,180 in the exploit, rather than being unique to aspects of the injection. But for each of 160 00:18:39,180 --> 00:18:50,480 those, if there's contextual information that's usually consistent, we can use that 161 00:18:51,180 --> 00:18:52,500 to form rules. 162 00:18:53,700 --> 00:18:54,520 1. tô t бл legen sin 4. 163 00:18:54,520 --> 00:19:02,300 narrow the footprint of the exposure of the system. What kind of contextual information 164 00:19:02,790 --> 00:19:10,100 do we have inside the application? We've got network identity of the client, the IP address 165 00:19:10,100 --> 00:19:18,460 of the source of the connection. A lot of times we have user identity, either on the 166 00:19:18,460 --> 00:19:27,380 client system or user identity inside the application. We've got application state. 167 00:19:28,070 --> 00:19:33,540 We've got information about what was done to authenticate the connection. We've got 168 00:19:33,540 --> 00:19:44,060 information about workflow, where in the state of the processing we are. And we've 169 00:19:44,060 --> 00:19:47,600 got the advantage of being orthogonal to methods that are applied. 170 00:19:48,600 --> 00:20:02,560 And other layers. So MD5 suggested a look at firewall wizards discussion. And they were 171 00:20:02,560 --> 00:20:07,140 saying that intrusion prevention basically looks like a firewall. At first I thought, 172 00:20:07,140 --> 00:20:12,680 you know, that's a lot like a kid with a hammer. Everything looks like a nail. But they have 173 00:20:12,680 --> 00:20:18,340 a good point. You've got messages that come in. Messages 174 00:20:18,340 --> 00:20:18,440 that come in. Messages that come in. Messages that come in. Messages that come in. Messages 175 00:20:18,460 --> 00:20:24,900 that go out. Rules that decide what gets discarded. And in a firewall, that's packets and sessions. 176 00:20:28,460 --> 00:20:36,280 And the host-based side is analogous to that. You can look at it as API calls. But even 177 00:20:36,280 --> 00:20:41,460 more fundamentally, when you make a system trap, when the trap occurs, you've just got 178 00:20:41,460 --> 00:20:46,700 data sitting there. This calls a number. You've got a bunch of arguments sitting there 179 00:20:46,700 --> 00:20:47,060 in memory. 180 00:20:48,320 --> 00:21:00,160 So you've got a packet of information. So where for the network, you have packets, IP packets and 181 00:21:00,160 --> 00:21:06,400 signatures on those. On the host-based side, when you have a trap, you've got packets of 182 00:21:06,400 --> 00:21:17,040 syscall information. So you probably wouldn't consider, you know, if you have a trap, you'd 183 00:21:17,060 --> 00:21:20,020 be running on this network without a firewall, would you? 184 00:21:23,080 --> 00:21:30,680 And it's not that firewalls are the only essential thing. It's that they allow you, together 185 00:21:30,680 --> 00:21:37,400 with the other parts of the security architecture, to mount an effective defense. 186 00:21:40,980 --> 00:21:47,040 So I would look at intrusion prevention in the same way. That it's not an, it's not a 187 00:21:47,040 --> 00:21:55,080 solution in itself, but it's a way to tune all the layers together to provide something effective. 188 00:22:03,580 --> 00:22:04,200 So... 189 00:22:07,620 --> 00:22:10,940 where is intrusion prevention going and how is it different? 190 00:22:11,340 --> 00:22:16,700 The firewall wizards distinguish intrusion prevention from other kinds of firewalls in that 191 00:22:16,700 --> 00:22:19,200 that they use signatures rather than rules. 192 00:22:20,580 --> 00:22:24,920 Take a lot more state into consideration. 193 00:22:26,580 --> 00:22:28,260 But these aren't the same kind of rules 194 00:22:28,260 --> 00:22:30,360 that you might run in an intrusion detection system. 195 00:22:34,420 --> 00:22:38,020 In more cases, they're signatures 196 00:22:38,020 --> 00:22:40,860 as forms of access control. 197 00:22:46,980 --> 00:22:50,180 So, consider snort with hogwash. 198 00:22:51,580 --> 00:22:54,320 That's the sort of signature-based firewall 199 00:22:54,320 --> 00:22:55,280 they're talking about. 200 00:22:55,460 --> 00:22:58,880 And the IDNS vendors call this a gateway IDS. 201 00:23:01,300 --> 00:23:03,640 Some people look at it as intrusion prevention. 202 00:23:04,020 --> 00:23:06,700 And again, that's why I don't necessarily want to try 203 00:23:06,700 --> 00:23:08,160 and give you a definition. 204 00:23:10,240 --> 00:23:10,840 But I do want to give you a definition. 205 00:23:10,840 --> 00:23:12,800 There's a lot of creativity going on out there. 206 00:23:12,940 --> 00:23:14,620 And I think it's up to the community to decide 207 00:23:17,500 --> 00:23:21,380 what the effective boundaries between the layers are 208 00:23:21,380 --> 00:23:25,460 and what the effective architecture is. 209 00:23:32,940 --> 00:23:36,440 So, firewalls are complementary to routers and IDET-D. 210 00:23:38,360 --> 00:23:40,360 Intrusion prevention can be complementary 211 00:23:40,360 --> 00:23:40,820 to the IDNS. 212 00:23:40,840 --> 00:23:41,580 It can be complementary to antivirus, 213 00:23:42,080 --> 00:23:43,360 sending out a file system layer. 214 00:23:45,720 --> 00:23:48,080 The intrusion prevention filters messages. 215 00:23:48,880 --> 00:23:51,620 It's basically data staying in the stack or memory 216 00:23:51,620 --> 00:23:56,420 when you do a trap interrupt. 217 00:23:58,940 --> 00:24:02,880 And the intrusion prevention can use signatures 218 00:24:02,880 --> 00:24:06,920 to recognize, rather than the injection method, 219 00:24:07,040 --> 00:24:10,820 the payload, the behavior of the payload, 220 00:24:10,840 --> 00:24:11,000 and the payload. 221 00:24:16,340 --> 00:24:17,840 So, how does this work? 222 00:24:18,500 --> 00:24:20,840 Let's take a look at some architectural layering 223 00:24:20,840 --> 00:24:24,060 in Windows and in Unix. 224 00:24:24,880 --> 00:24:29,900 So, here's Windows kernel architecture, user land. 225 00:24:32,220 --> 00:24:34,100 It's a little bit different from Unix 226 00:24:34,100 --> 00:24:35,880 in that they have microkernel architecture 227 00:24:35,880 --> 00:24:37,760 and a few more layers. 228 00:24:41,140 --> 00:24:44,840 At the top, you've got executive services. 229 00:24:45,500 --> 00:24:48,460 That's where most of the syscalls land first. 230 00:24:48,600 --> 00:24:52,300 That then takes the traps, routes the messages, 231 00:24:53,380 --> 00:24:57,560 and you've got an NTDLL, in some ways, 232 00:24:57,660 --> 00:25:02,280 kind of like libc that takes an API call, 233 00:25:02,500 --> 00:25:03,780 turns it into a trap. 234 00:25:11,800 --> 00:25:13,660 Oh, that's basically what I just said. 235 00:25:13,840 --> 00:25:17,700 You've got, in the bottom half, executive services at the top. 236 00:25:19,160 --> 00:25:26,480 A bunch of top-level services that abstract away 237 00:25:26,480 --> 00:25:28,700 the hardware for various objects. 238 00:25:30,300 --> 00:25:33,320 At the bottom, hardware abstraction layers. 239 00:25:37,100 --> 00:25:38,140 Oop. Dang. 240 00:25:39,260 --> 00:25:40,820 End and home are right next to each other. 241 00:25:40,820 --> 00:25:41,980 So, you've got a lot of blocks to page up and page down. 242 00:25:46,960 --> 00:25:51,980 Okay. So, this is an example of Linux system architecture. 243 00:25:53,880 --> 00:25:55,640 It's similar in some ways, 244 00:25:55,700 --> 00:26:00,400 especially the boundary between the user land and kernel. 245 00:26:01,380 --> 00:26:05,400 So, you've got libc up there between the applications 246 00:26:08,240 --> 00:26:09,140 and the trap. 247 00:26:10,820 --> 00:26:12,940 Which, you know, is represented by the dotted line. 248 00:26:13,060 --> 00:26:15,020 Below that, you've got the system call interface 249 00:26:15,020 --> 00:26:21,100 that interprets the, the information associated with the trap. 250 00:26:21,740 --> 00:26:24,400 Turns it into access to the various modules there. 251 00:26:28,220 --> 00:26:28,780 And. 252 00:26:30,540 --> 00:26:33,820 You've got some layers, but most of the layers are specific 253 00:26:34,620 --> 00:26:36,500 to certain kinds of resources. 254 00:26:37,680 --> 00:26:38,660 In the case of Linux. 255 00:26:38,660 --> 00:26:48,180 And this is simply a fact of the architectural decision to use a macro-kernel architecture. 256 00:26:54,080 --> 00:26:58,240 So what are the common abstractions here? 257 00:27:01,840 --> 00:27:13,560 We've got a common abstraction in the layer between applications in the kernel and between most of the kernel and the upper side above the trap. 258 00:27:18,040 --> 00:27:21,460 Each of these layers provides some unique contextual information. 259 00:27:22,380 --> 00:27:26,280 So we're going to look closer at this particular boundary. 260 00:27:28,240 --> 00:27:32,120 You can apply this principle to all the other layers. 261 00:27:33,490 --> 00:27:45,280 This just happens to be a convenient place to do it because the method is very consistent across the various OSs. 262 00:27:47,340 --> 00:27:52,200 So to compare them, this highlights the similarities. 263 00:27:54,130 --> 00:27:57,840 We've got a C library on top. 264 00:27:59,540 --> 00:28:06,920 And something on bottom that interprets the traps and turns them back into calls to services in the kernel. 265 00:28:15,340 --> 00:28:23,020 So even if we consider the application a black box, even if we don't look at contextual information specific to an application. 266 00:28:25,440 --> 00:28:27,840 We still have contextual information. 267 00:28:28,240 --> 00:28:30,020 And at these various levels. 268 00:28:32,540 --> 00:28:35,360 Contextual information and API calls in libc. 269 00:28:36,530 --> 00:28:44,340 Or we can trap contextual information when the system calls invoked and we have trap into the system call interface. 270 00:28:45,940 --> 00:28:48,460 And lastly, at the instruction level. 271 00:28:50,130 --> 00:28:54,480 And all of these are, all these have distinct advantages. 272 00:28:54,960 --> 00:28:58,120 So what's being done today is really something that's the. 273 00:28:58,240 --> 00:28:59,680 Tip of the iceberg. 274 00:29:00,780 --> 00:29:04,940 We're looking at the most convenient place to apply these principles. 275 00:29:11,000 --> 00:29:23,400 So as, as exploits are advancing in terms of capabilities, there's a lot of focus on escaping IDS or using exceptional behavior to get in. 276 00:29:25,380 --> 00:29:26,020 And. 277 00:29:27,520 --> 00:29:28,160 I. 278 00:29:28,160 --> 00:29:29,940 I'm somewhat delusional with IDS. 279 00:29:32,440 --> 00:29:32,960 And. 280 00:29:37,160 --> 00:29:38,080 So what I'm. 281 00:29:41,540 --> 00:29:45,460 This provides a way to take an entirely different approach. 282 00:29:49,320 --> 00:29:56,740 And it's a unique approach because it's independent of the transport, can be independent of the transport, and independent of the method of ejection. 283 00:29:56,860 --> 00:29:58,140 And it can be specific. 284 00:29:58,140 --> 00:30:04,160 And it can be specific to the state or behavior of the application and the behavior of the exploit payload. 285 00:30:07,820 --> 00:30:21,740 So in terms of gap analysis, when you implement layered security, a lot of the host security depends on the integrity of the OS. 286 00:30:23,960 --> 00:30:28,120 And this assumption is made even when you have very complex or vulnerable systems. 287 00:30:28,120 --> 00:30:28,260 So this is kind of the source security issue. 288 00:30:28,260 --> 00:30:39,880 So it's important to keep in mind that all these things that are not regulated byовор and untrusted applications, things like netscape, IE, binds and mail, even SSH, exploits are advancing just as rapidly as the defense is. 289 00:30:42,680 --> 00:30:44,500 And those advances. 290 00:30:51,060 --> 00:30:52,340 And those advances. 291 00:30:52,340 --> 00:30:55,880 Are often gaining capability to circumvent existing layers. 292 00:30:56,540 --> 00:30:58,100 You know, using various human control mechanisms. 293 00:30:58,120 --> 00:31:01,460 encryption, fragmentation, re-encoding. 294 00:31:02,740 --> 00:31:07,720 So added layers is a common way to enhance protection. 295 00:31:11,940 --> 00:31:15,600 The system call rules have a distinct advantage 296 00:31:15,600 --> 00:31:19,220 in terms of being specific to individual system calls. 297 00:31:21,160 --> 00:31:23,920 And you can use them to enforce permissions, 298 00:31:23,920 --> 00:31:29,580 but you can also use rules to alter system call semantics, 299 00:31:30,340 --> 00:31:33,280 alter what the system call does and how it does it. 300 00:31:36,820 --> 00:31:38,640 So what we saw in the example was 301 00:31:38,640 --> 00:31:43,020 we first invoked the SSH daemon to generate a set of rules 302 00:31:44,940 --> 00:31:48,060 to allow or disallow individual system calls. 303 00:31:48,200 --> 00:31:50,380 So by default, we invoked it once 304 00:31:51,640 --> 00:31:53,900 and got a list of what it normally does. 305 00:31:53,920 --> 00:31:57,700 It invokes, and this narrows the footprint 306 00:31:57,700 --> 00:31:59,240 of interaction with the system. 307 00:32:00,360 --> 00:32:02,180 So that later on, if we invoke it again 308 00:32:02,180 --> 00:32:03,200 and does something different, 309 00:32:06,080 --> 00:32:07,160 it's outside of that footprint. 310 00:32:09,020 --> 00:32:09,600 It's blocked. 311 00:32:12,260 --> 00:32:16,300 And we can refine that in consideration 312 00:32:16,300 --> 00:32:20,340 with the other layers to reduce the dependence 313 00:32:20,340 --> 00:32:21,800 of the other layers 314 00:32:32,740 --> 00:32:36,120 on the permissions they need. 315 00:32:36,220 --> 00:32:44,100 For example, you can rewrite bind call, 316 00:32:44,200 --> 00:32:47,860 bind to a socket, so that you can open 317 00:32:47,860 --> 00:32:50,200 a low-numbered port without being root, 318 00:32:50,300 --> 00:32:53,480 and then perhaps not have to run a service 319 00:32:53,480 --> 00:32:53,900 as root to allow the server to run a service 320 00:32:53,900 --> 00:32:54,000 as root. 321 00:32:57,070 --> 00:33:01,860 So changing the semantics so that the application 322 00:33:01,860 --> 00:33:06,720 needs less resources is one way 323 00:33:09,120 --> 00:33:14,100 to move the specificity of the rules 324 00:33:14,100 --> 00:33:16,800 to the layer that best supports it. 325 00:33:20,420 --> 00:33:23,760 We can also rewrite system call argument. 326 00:33:27,040 --> 00:33:28,520 We'll talk about that a bit more. 327 00:33:33,560 --> 00:33:36,380 Some of the implementations use pop-up dialogs, 328 00:33:36,380 --> 00:33:37,620 similar to what a firewall does. 329 00:33:38,720 --> 00:33:41,640 So this is a big advantage in terms of being able 330 00:33:41,640 --> 00:33:46,560 to generate a first draft of your rules 331 00:33:48,400 --> 00:33:50,720 and not have to close all the gaps immediately. 332 00:33:53,900 --> 00:33:57,580 And it takes advantage of a default ask policy. 333 00:33:58,740 --> 00:34:00,640 So rather than just permit, deny, 334 00:34:00,820 --> 00:34:02,100 you've got default and ask. 335 00:34:03,100 --> 00:34:05,120 I mean, you've got ask. 336 00:34:06,260 --> 00:34:07,880 This allows gaps in the rules, 337 00:34:08,400 --> 00:34:11,420 allows you to incrementally develop the rules 338 00:34:12,160 --> 00:34:13,300 as you observe the behavior, 339 00:34:15,120 --> 00:34:19,420 and allows you to iteratively tune the specificity. 340 00:34:26,240 --> 00:34:31,120 Furthermore, in addition to permit and deny and ask, 341 00:34:31,200 --> 00:34:35,620 you can log exceptions, exceptional calls 342 00:34:35,620 --> 00:34:40,000 or interesting calls, divine rules for interesting calls 343 00:34:40,000 --> 00:34:42,340 like fork-bin-sh's root. 344 00:34:43,420 --> 00:34:45,700 And this permits improved reporting. 345 00:34:48,900 --> 00:34:52,700 Also permits logging interesting 346 00:34:53,900 --> 00:34:54,880 and contextual information. 347 00:34:55,400 --> 00:34:59,100 So when fork-bin-sh occurs as root, 348 00:34:59,980 --> 00:35:03,420 grab the client user IP domain and application state. 349 00:35:11,480 --> 00:35:13,080 So the next couple of slides talk about 350 00:35:13,400 --> 00:35:14,680 how this works in practice. 351 00:35:16,100 --> 00:35:21,060 For a lot of applications, things like LS, find, 352 00:35:21,380 --> 00:35:22,240 a lot of other, 353 00:35:24,240 --> 00:35:25,200 core components, 354 00:35:26,600 --> 00:35:27,480 a lot of them 355 00:35:28,920 --> 00:35:30,900 use around 25 system calls. 356 00:35:31,500 --> 00:35:35,100 And relatively heavyweight applications like browsers, 357 00:35:37,500 --> 00:35:38,460 email clients, 358 00:35:38,720 --> 00:35:40,240 you know, with rich interaction, 359 00:35:41,240 --> 00:35:42,700 they can use up to 60. 360 00:35:42,760 --> 00:35:44,680 And this is out of a total of, say, 361 00:35:44,740 --> 00:35:48,280 250 for Unix. 362 00:35:50,540 --> 00:35:52,680 And I don't even know how many there are in Windows. 363 00:35:52,920 --> 00:35:53,880 A couple thousand. 364 00:35:56,980 --> 00:36:02,300 And as it stands, most of the current implementations 365 00:36:05,840 --> 00:36:08,700 are generating and using rules for file names. 366 00:36:09,000 --> 00:36:11,940 And in some way, this duplicates file system permissions. 367 00:36:13,800 --> 00:36:17,940 And what this suggests is that there needs to be more consideration 368 00:36:17,940 --> 00:36:19,360 of cross-layer architecture 369 00:36:21,300 --> 00:36:23,880 and interaction of the file system production system. 370 00:36:23,880 --> 00:36:24,340 Consequently, things like this don't work. 371 00:36:24,340 --> 00:36:24,680 performance impact of the Syscall. 372 00:36:28,580 --> 00:36:31,300 What it also means in terms of performance impact 373 00:36:31,300 --> 00:36:36,020 is that typically there's a high performance impact 374 00:36:36,020 --> 00:36:39,340 on applications that make a lot of open system calls. 375 00:36:40,260 --> 00:36:43,520 In terms of using rules that do a string match 376 00:36:43,520 --> 00:36:45,300 or rules that use regular expressions. 377 00:36:47,020 --> 00:36:49,140 And with the current implementation, you see 378 00:36:49,940 --> 00:36:53,860 relatively low impact on anything that CPUs or other objects 379 00:36:53,860 --> 00:37:09,520 bound. What this means in terms, well, let's look at how this fits into the rest of the 380 00:37:09,520 --> 00:37:15,780 system. One advantage of this is that the system call filtering is completely transparent 381 00:37:15,780 --> 00:37:23,620 to the application. So the application doesn't have to know anything about or recognize anything 382 00:37:23,620 --> 00:37:31,120 about the system call filtering. So you can use third-party applications, untrusted applications. 383 00:37:33,920 --> 00:37:43,200 The caveat is that rule creation isn't fully automated yet. It's not completely transparent 384 00:37:43,200 --> 00:37:53,080 to the user. And that's where it's really important for things to be transparent. And 385 00:37:53,080 --> 00:37:53,600 lastly, the third-party application. 386 00:37:53,620 --> 00:37:59,560 You can see that as it stands, most of the tools generate rules by observing application 387 00:37:59,560 --> 00:38:07,620 behavior. And in general, a large part of the advantage is being able to reduce the 388 00:38:07,620 --> 00:38:20,900 dependence in other layers. So zero-day code. 389 00:38:21,960 --> 00:38:22,520 There's... 390 00:38:23,620 --> 00:38:35,300 There's patches for FreeBSD 5.1 on the conference CD. Niels Provost has all these. They are differences 391 00:38:35,300 --> 00:38:44,460 between the SysTrace and NetBSD and OpenBSD current for kernel and user land in FreeBSD 5.1. 392 00:38:47,860 --> 00:38:53,600 It's on the conference CD. It's on Niels Provost's home page. And hopefully, it's going to work. 393 00:38:53,600 --> 00:38:55,600 And hopefully, we'll be in FreeBSD current soon. 394 00:39:04,640 --> 00:39:14,660 So here's what I believe are the current advantages of these tools. You've got things like chroot 395 00:39:14,660 --> 00:39:23,180 and jail for sandboxing. System call filtering does some of the same kind of thing in terms 396 00:39:23,180 --> 00:39:24,660 of being able to sand... 397 00:39:25,140 --> 00:39:32,940 Reduce the footprint of an application's interaction with the system and can be tuned for the 398 00:39:32,940 --> 00:39:34,140 footprint of each application. 399 00:39:35,960 --> 00:39:43,780 The current tools allow iterative and interactive rule generation, a lot very similar to what 400 00:39:43,780 --> 00:39:45,060 firewalls do. 401 00:39:46,240 --> 00:39:52,900 It's got some limited automated rule generation in terms of tracing past invocations they 402 00:39:52,900 --> 00:39:53,320 have. 403 00:39:55,420 --> 00:40:05,120 It's transparent to the application and allows you to tune system call permissions, but more 404 00:40:05,120 --> 00:40:11,840 importantly, system call semantics. You can change the system call semantics to reduce the 405 00:40:11,840 --> 00:40:19,740 dependency of other layers on the security architecture, on their ability to enforce permissions. 406 00:40:20,520 --> 00:40:22,880 So it's available for FreeBSD 5.1. 407 00:40:26,220 --> 00:40:35,960 And you can find updated versions on my website, on Neil's provost's website, hopefully in FreeBSD soon. 408 00:40:39,100 --> 00:40:42,520 The slides that you're looking at now are slightly different than what's on the CD. 409 00:40:43,940 --> 00:40:51,100 And the updated slides will be on the DEF CON site's archives and on my sites. 410 00:40:51,220 --> 00:40:52,860 And if you like, you can contact me at the DEF CON website. 411 00:40:52,860 --> 00:40:53,900 I'll be happy to get this email address. 412 00:40:54,720 --> 00:40:56,060 I think that's about it. 413 00:41:07,380 --> 00:41:09,060 Wow, we're way early. 414 00:41:16,420 --> 00:41:19,280 So there's a couple other things I can talk about. 415 00:41:22,160 --> 00:41:25,080 Before the questions, let me make a couple more comments. 416 00:41:26,300 --> 00:41:28,360 We looked at the system architecture. 417 00:41:34,160 --> 00:41:39,040 There's a common architecture for the layer between user and a kernel. 418 00:41:42,180 --> 00:41:48,080 And this is similar at the source code level for the BSDs. 419 00:41:48,660 --> 00:41:49,260 Great. 420 00:41:51,540 --> 00:41:54,360 and similar at the binary level for Windows. 421 00:41:57,520 --> 00:42:01,700 So for these tools in general, across all these platforms, 422 00:42:04,040 --> 00:42:09,140 there's a lot of commonality in the architecture 423 00:42:09,140 --> 00:42:12,140 of how you implement system call filtering. 424 00:42:12,480 --> 00:42:18,460 You've got to have a device that allows you to set rules 425 00:42:18,460 --> 00:42:23,180 so something in slash dev that you can write rules to. 426 00:42:26,020 --> 00:42:29,240 You've got to get the module into the kernel somehow. 427 00:42:33,520 --> 00:42:36,520 And when the module's invoked on a particular application, 428 00:42:36,800 --> 00:42:41,680 it's got to have hooks to start up, grab the rules, 429 00:42:42,580 --> 00:42:45,200 wait for an application to be invoked. 430 00:42:48,460 --> 00:42:51,220 And it's got to catch the application as it starts up. 431 00:42:52,940 --> 00:42:56,920 Between when fork is called and when the application starts up, 432 00:42:57,400 --> 00:42:59,820 do things like fill out the system call table. 433 00:43:01,420 --> 00:43:03,960 And there are a couple of methods of how you do the hooking, 434 00:43:05,760 --> 00:43:09,920 but it's always going to occur between when you create the process 435 00:43:09,920 --> 00:43:11,460 and when it begins to execute. 436 00:43:15,220 --> 00:43:17,120 And there are a couple of different implementations 437 00:43:18,460 --> 00:43:18,660 out there. 438 00:43:18,780 --> 00:43:19,600 Are we close? 439 00:43:20,160 --> 00:43:20,680 OK. 440 00:43:28,140 --> 00:43:36,960 I'm told the awards ceremony is going to be held in the Apollo room, 441 00:43:37,100 --> 00:43:37,760 rather than here. 442 00:43:38,260 --> 00:43:40,020 And that's at 4 o'clock. 443 00:43:43,180 --> 00:43:44,780 It's about 3.40. 444 00:43:46,480 --> 00:43:47,260 3.45? 445 00:43:47,580 --> 00:43:47,920 Yeah. 446 00:43:48,460 --> 00:43:48,860 35. 447 00:43:48,900 --> 00:43:49,320 35. 448 00:43:50,520 --> 00:43:50,880 OK. 449 00:43:52,680 --> 00:43:55,480 So the similarities here across all these platforms 450 00:43:55,480 --> 00:44:00,300 are those junction points I just mentioned. 451 00:44:00,780 --> 00:44:03,020 Between start up of the application, 452 00:44:03,440 --> 00:44:05,600 or between creating the application, 453 00:44:06,260 --> 00:44:07,800 filling out the process structure, 454 00:44:08,600 --> 00:44:09,860 and starting the application. 455 00:44:11,140 --> 00:44:12,980 Something that happens when the module's loaded. 456 00:44:14,200 --> 00:44:16,520 And some kind of architecture for a device, 457 00:44:17,460 --> 00:44:18,440 that you can use. 458 00:44:18,440 --> 00:44:21,740 And applications can read or write rules to. 459 00:44:23,960 --> 00:44:25,560 There's a couple different instances, 460 00:44:27,740 --> 00:44:30,960 or implementations, of system call tracing. 461 00:44:31,240 --> 00:44:32,740 We looked at one, Systrace. 462 00:44:34,440 --> 00:44:38,200 There is another for FreeBSD called SERPNG. 463 00:44:38,240 --> 00:44:40,160 SERP Next Generation. 464 00:44:42,600 --> 00:44:43,200 They... 465 00:44:46,180 --> 00:44:48,080 That varies from Systrace. 466 00:44:48,080 --> 00:44:49,700 In a couple of ways. 467 00:44:50,080 --> 00:44:51,720 It's a loadable kernel module. 468 00:44:56,940 --> 00:45:00,100 But they both have to do the same kinds of things, 469 00:45:00,180 --> 00:45:01,520 in terms of where they hook in. 470 00:45:02,380 --> 00:45:03,760 Whether it's module load, 471 00:45:04,880 --> 00:45:06,160 or if it's a static, 472 00:45:06,280 --> 00:45:07,400 statically compiled, 473 00:45:07,760 --> 00:45:09,140 in the case of Systrace, 474 00:45:10,820 --> 00:45:12,960 there's a start up routine that gets called. 475 00:45:15,940 --> 00:45:18,060 So for each of these implementations, 476 00:45:18,060 --> 00:45:19,980 they may plug in differently, 477 00:45:20,180 --> 00:45:24,260 but they're basically going to plug in in the same place. 478 00:45:27,980 --> 00:45:31,340 Start up of the module, 479 00:45:31,520 --> 00:45:32,500 start up of the application, 480 00:45:33,860 --> 00:45:35,860 and something that happens at the syscall, 481 00:45:35,980 --> 00:45:37,400 at the time of the syscall. 482 00:45:38,820 --> 00:45:41,640 And because we've got a couple of implementations out there, 483 00:45:45,140 --> 00:45:48,000 I have a feeling that these things are going to evolve, 484 00:45:48,060 --> 00:45:50,760 like the way the firewalls are evolving, 485 00:45:51,860 --> 00:45:52,840 and other tools. 486 00:45:55,140 --> 00:46:00,660 There was a statement by Linus Torvalds recently, 487 00:46:00,780 --> 00:46:07,060 about people lobbying to put in other firewall implementations, 488 00:46:07,760 --> 00:46:08,600 and he basically said, 489 00:46:10,920 --> 00:46:13,000 I'm not convinced which one is the best, 490 00:46:13,100 --> 00:46:14,920 or where we're going to go, 491 00:46:15,000 --> 00:46:17,440 so what I want to do is create an API. 492 00:46:19,040 --> 00:46:20,440 Let them all sort it out. 493 00:46:24,380 --> 00:46:27,440 So I think that's what I'm going to try to pursue next, 494 00:46:27,640 --> 00:46:31,180 is create a first draft of an API, 495 00:46:34,060 --> 00:46:37,260 get Systrace and CERB Next Generation to plug in, 496 00:46:38,820 --> 00:46:43,340 and then hopefully let them fight it out. 497 00:46:50,340 --> 00:46:51,640 How we doing on time? 498 00:46:54,880 --> 00:46:55,460 Okay. 499 00:46:56,040 --> 00:46:57,300 Why don't we take questions? 500 00:46:59,320 --> 00:47:00,040 Right here. 501 00:47:00,200 --> 00:47:00,660 Oh, wait. 502 00:47:01,180 --> 00:47:01,760 Mark? 503 00:47:08,480 --> 00:47:11,200 Is there a port for this for Windows? 504 00:47:11,500 --> 00:47:12,000 Yes. 505 00:47:12,380 --> 00:47:16,090 There's a reference to it in the acknowledgements. 506 00:47:17,460 --> 00:47:18,040 Okay. 507 00:47:18,040 --> 00:47:20,560 And it was written by one of the guys at BindView 508 00:47:20,560 --> 00:47:21,360 with the Razor team. 509 00:47:25,500 --> 00:47:26,140 I'm sorry. 510 00:47:28,060 --> 00:47:31,420 There's two implementations for BSD. 511 00:47:32,600 --> 00:47:35,220 There aren't any yet for Linux, 512 00:47:37,140 --> 00:47:41,040 but if we use the same kernel abstraction for these modules, 513 00:47:43,240 --> 00:47:45,780 there's no reason we can't use the same implementations 514 00:47:45,780 --> 00:47:46,320 in Linux. 515 00:47:49,060 --> 00:47:51,680 Windows, we don't have the opportunity 516 00:47:53,320 --> 00:47:55,880 to implement those interfaces at source level, 517 00:47:56,060 --> 00:48:02,820 but the Windows, it plugs in at the same places, 518 00:48:02,840 --> 00:48:06,220 but it's got to muck with the kernel directly to hook in. 519 00:48:06,420 --> 00:48:07,980 I mean, muck with the binary. 520 00:48:09,700 --> 00:48:12,840 So T7 with the Razor team at BindView 521 00:48:13,520 --> 00:48:15,940 has a tool called Systrace again. 522 00:48:16,040 --> 00:48:17,820 I think the current version is 0.3. 523 00:48:18,040 --> 00:48:20,020 So same name, but it's for Windows, 524 00:48:20,160 --> 00:48:23,220 and it's on BindView's site. 525 00:48:24,280 --> 00:48:28,280 And I believe it's more or less open source license. 526 00:48:34,960 --> 00:48:36,600 I was going to ask you, 527 00:48:36,660 --> 00:48:39,640 in the next version of Windows in Longhorn, 528 00:48:39,700 --> 00:48:40,580 they have something called 529 00:48:40,580 --> 00:48:42,740 Next Generation Windows Protection Services, 530 00:48:43,000 --> 00:48:44,240 which is Palladium, 531 00:48:44,400 --> 00:48:46,800 which is actually exactly this. 532 00:48:46,800 --> 00:48:50,840 They actually, Microsoft is trapping all API calls 533 00:48:50,840 --> 00:48:52,740 and generating rules for them 534 00:48:52,740 --> 00:48:54,720 based on whether they have like a signature 535 00:48:54,720 --> 00:48:55,800 or something like that, 536 00:48:55,920 --> 00:48:58,520 unique processor ID or something of that nature. 537 00:49:00,900 --> 00:49:04,820 But what happens when a version of the software changes 538 00:49:04,820 --> 00:49:06,760 and they change the API calls that they do? 539 00:49:06,880 --> 00:49:09,740 How does the BSD tools react to that? 540 00:49:09,880 --> 00:49:11,260 Do you have to regenerate all the rules? 541 00:49:18,000 --> 00:49:20,760 If you're extremely paranoid, you probably would, 542 00:49:20,840 --> 00:49:21,900 because you'd want to close, 543 00:49:22,620 --> 00:49:24,820 reduce as much of the footprint as possible. 544 00:49:25,560 --> 00:49:26,820 But with Windows... 545 00:49:26,820 --> 00:49:29,240 In practice, I would imagine you would do 546 00:49:29,240 --> 00:49:30,640 exactly what you do with a firewall. 547 00:49:30,840 --> 00:49:34,240 If you upgrade a client or a service, 548 00:49:36,680 --> 00:49:39,040 you continue applying the same rules 549 00:49:39,040 --> 00:49:40,520 and you catch any exceptions 550 00:49:40,520 --> 00:49:43,100 and decide on the per exception basis 551 00:49:43,740 --> 00:49:44,900 whether to add rules. 552 00:49:45,600 --> 00:49:47,540 So with the Windows tool, 553 00:49:47,660 --> 00:49:50,080 does it plug into the ntdll.dll 554 00:49:50,080 --> 00:49:51,280 or does it sit above it? 555 00:49:52,600 --> 00:49:55,940 No, it plugs into system trap. 556 00:49:56,440 --> 00:49:57,000 Okay. 557 00:49:59,980 --> 00:50:01,020 Any more questions? 558 00:50:07,120 --> 00:50:10,420 No, the Microsoft research has detours library, 559 00:50:10,720 --> 00:50:14,040 which allows you to insert trampline functions 560 00:50:14,040 --> 00:50:14,700 into syscalls. 561 00:50:15,400 --> 00:50:16,000 Cool. 562 00:50:16,720 --> 00:50:17,780 For the system. 563 00:50:22,620 --> 00:50:25,500 And the latest messaging vulnerabilities 564 00:50:25,500 --> 00:50:26,540 everybody's talking about, 565 00:50:26,640 --> 00:50:29,420 I think one guy had to prove a concept using McAfee 566 00:50:29,420 --> 00:50:32,480 and how he could send this to this window. 567 00:50:33,060 --> 00:50:36,500 Does this take care of that problem? 568 00:50:41,080 --> 00:50:43,920 A lot of the windowing is in the kernel and Windows. 569 00:50:45,180 --> 00:50:48,820 But that's not the case in Unix. 570 00:50:48,880 --> 00:50:50,560 So I imagine that would be very different, 571 00:50:50,680 --> 00:50:54,100 implemented very differently on Unix. 572 00:50:55,700 --> 00:50:57,440 So maybe they're trying to fix it 573 00:50:57,440 --> 00:50:59,040 with this Longhorn implementation. 574 00:50:59,760 --> 00:50:59,980 Yeah. 575 00:51:03,880 --> 00:51:06,440 So I would imagine a lot of that would be 576 00:51:06,440 --> 00:51:09,060 rather than the syscall filtering 577 00:51:09,060 --> 00:51:13,000 and library call filtering for xWindows. 578 00:51:17,220 --> 00:51:18,780 Any other questions? 579 00:51:21,880 --> 00:51:22,640 We're good. 580 00:51:22,780 --> 00:51:23,240 All right. 581 00:51:23,360 --> 00:51:24,780 Have fun at the awards ceremony.