1 00:00:03,940 --> 00:00:10,400 Okay, I'll start now then. I'm Ian Peters, I'm going to be talking about Rubicon, an extensive 2 00:00:10,400 --> 00:00:18,400 IDS. First about a bit about me and a look at what we're going to be doing. I until very recently 3 00:00:18,400 --> 00:00:23,820 was studying in London at Bureau College, now graduated, and this project was my final year 4 00:00:23,820 --> 00:00:32,060 degree project. It sort of started with Thomas Munn's presentation in DEFCON 9, in which he 5 00:00:32,060 --> 00:00:38,940 mentioned the idea of active IDS, basically an IDS which can route an integration of a firewall 6 00:00:38,940 --> 00:00:45,600 and an IDS. Now some of the problems I came across were, well, academia. They don't seem to like 7 00:00:45,600 --> 00:00:50,400 products. They like algorithms, that's cool, but actually trying to even let them do this was a 8 00:00:50,400 --> 00:00:53,680 bit of an arse. Now in about seven hours before I was 9 00:00:53,680 --> 00:00:53,800 due to leave, I was told that I was going to be studying at the University of London. 10 00:00:53,820 --> 00:00:59,520 I was due to present it, I had a head crash, and all my backups were screwed, so that was a bit 11 00:00:59,520 --> 00:01:04,380 of an issue, and test your backups if there's one thing you're going to learn today. So I rewrote 12 00:01:04,380 --> 00:01:12,720 it, and this presentation is primarily on version 2.8, as it were. There's a very bit, a little 13 00:01:12,720 --> 00:01:17,820 bit of background. Most of you can probably sleep through this bit. Firewalls, well, we all 14 00:01:17,820 --> 00:01:23,640 know what it does. Simple example, allow stuff out and replies, but stop the 15 00:01:23,640 --> 00:01:30,240 hackers coming in. There's stateless and stateful. You all know this. A couple of shortcomings, 16 00:01:30,340 --> 00:01:36,760 though. You can't understand upper-level traffic data, you know, things like HTTP. You can't 17 00:01:36,760 --> 00:01:42,140 filter on that most of the time. And similarly, you have issues with encrypted or tunneled 18 00:01:42,140 --> 00:01:53,500 traffic. And some of that I'm trying to address. A bit about proxies, that's, you know, firewalls which can handle it. They do a lot of 19 00:01:53,500 --> 00:02:01,720 work just via middle type effort. Now there's no such thing as 100% secure network, so you want to know when 20 00:02:01,720 --> 00:02:07,280 there's problems, you know, what's going on. And I know people say lots of the hackers are on the inside. I guess you 21 00:02:07,280 --> 00:02:13,460 guys will know that. So you want to know about what's going on. So you use an intrusion detection which gives you the 22 00:02:13,460 --> 00:02:22,040 information, which allows a human to look into it, respond, whatever. Host-based, running on the server. Network-based, 23 00:02:22,200 --> 00:02:23,220 looking at network traffic. 24 00:02:23,500 --> 00:02:26,920 This is primarily a network-based solution that I'm dealing with. 25 00:02:27,080 --> 00:02:32,680 A couple of patterns and a couple of different types and techniques mentioned in the previous, so I'll miss that. 26 00:02:33,140 --> 00:02:37,660 Two things which we've got to remember, false positives and false negatives. 27 00:02:37,920 --> 00:02:40,520 They do happen, and there's nothing we can do with it. 28 00:02:41,860 --> 00:02:43,620 RBSs currently can't stop an attack. 29 00:02:43,880 --> 00:02:45,440 That's a big problem with it. 30 00:02:45,620 --> 00:02:49,520 It's all right knowing about it six hours later, but by then your web server's down, 31 00:02:50,060 --> 00:02:53,260 half your systems have been rooted, so on and so forth. 32 00:02:53,980 --> 00:02:58,360 A lot of the traditional signature-based stuff can't detect a whole new attack. 33 00:02:58,660 --> 00:03:04,520 Now, if you're looking for a buffer overflow, somebody changes the shell code or the specific bit of the signature, you're screwed. 34 00:03:04,960 --> 00:03:09,160 And as mentioned, you can't have no false positives and negatives. 35 00:03:10,880 --> 00:03:17,700 So, one of the solutions, integrate a firewall and an RDS to our firewall-style filtering of RDS results. 36 00:03:18,200 --> 00:03:22,480 Packet comes in, you run your signature analysis, and it says, oh, buffer overflow. 37 00:03:22,720 --> 00:03:23,480 So, drop it. 38 00:03:23,500 --> 00:03:24,320 Or reroute it. 39 00:03:24,400 --> 00:03:24,980 Or whatever. 40 00:03:25,700 --> 00:03:29,600 By doing this, it means humans aren't involved, so it can happen straight away. 41 00:03:31,060 --> 00:03:33,540 And additionally, you can have some quite funky functionality. 42 00:03:33,860 --> 00:03:35,300 Hopefully, I'll cover that in a minute. 43 00:03:36,840 --> 00:03:42,020 Now, ways you could integrate, forging control packets, like TCP resets. 44 00:03:42,180 --> 00:03:43,380 Now, Snort does that. 45 00:03:43,600 --> 00:03:45,520 Quite a few RDSs are doing that. 46 00:03:46,200 --> 00:03:51,080 You could react based on the log outputs of the RDS, you know, using swatch, syslog, whatever. 47 00:03:52,020 --> 00:03:53,480 You could wrap firewalls. 48 00:03:53,500 --> 00:03:58,920 All outputs around RDS code, for example, hogwash, with Snort, basically does that. 49 00:03:59,500 --> 00:04:02,900 You can insert RDS facilities into a firewall. 50 00:04:03,000 --> 00:04:09,920 For example, NetFilter, you can take packets off into user space, do your RDS stuff there, 51 00:04:09,980 --> 00:04:15,380 return it back up to NetFilter IP tables, and it can then deal with the drop-in forwarding. 52 00:04:15,720 --> 00:04:20,360 Or, and this is what I did, fully integrate a bespoke solution. 53 00:04:21,900 --> 00:04:23,000 Current state of the art. 54 00:04:23,000 --> 00:04:27,040 Well, as I said, academia don't seem to be interested in products, especially not in the UK. 55 00:04:28,040 --> 00:04:31,640 That's a real shortfall in their part, I think. 56 00:04:32,280 --> 00:04:33,500 Hogwash already mentioned. 57 00:04:34,120 --> 00:04:34,960 A few others. 58 00:04:35,660 --> 00:04:38,460 Recently, GID's functionality has been added by several vendors. 59 00:04:39,480 --> 00:04:43,100 I started this project about October last year. 60 00:04:43,180 --> 00:04:46,560 A lot has changed since then, and that's one of the things I've really learned. 61 00:04:46,660 --> 00:04:48,320 RDS is a fast-moving area. 62 00:04:49,140 --> 00:04:51,320 Now, anyway, originally, it was all firewalls. 63 00:04:53,320 --> 00:04:55,400 Problems with integration, false positives. 64 00:04:55,640 --> 00:05:00,280 You don't want to go dropping everything from your upstream router. 65 00:05:00,480 --> 00:05:01,580 That would be a bad thing. 66 00:05:01,980 --> 00:05:03,680 Denial of service, same sort of thing. 67 00:05:03,780 --> 00:05:09,340 Or just hitting it with so much traffic, because don't forget, RDS stuff takes a lot of processing power. 68 00:05:09,800 --> 00:05:12,020 And finally, processing power and bandwidth. 69 00:05:13,080 --> 00:05:16,680 So, what am I going to do, or what have I done, daily art? 70 00:05:19,180 --> 00:05:22,120 The design was very modular, or supposed to be. 71 00:05:22,120 --> 00:05:24,280 Because the idea was, things change. 72 00:05:24,560 --> 00:05:26,340 We get new protocols all the time. 73 00:05:26,740 --> 00:05:29,280 We need to be able to modify quickly. 74 00:05:29,460 --> 00:05:34,240 For example, how hard is it to add IPX support to Snort? 75 00:05:35,060 --> 00:05:36,780 I've looked at it, and it looks quite hard. 76 00:05:36,840 --> 00:05:38,440 I don't know Snort that well on the inside. 77 00:05:38,620 --> 00:05:41,480 I'm sure some of you will correct me on that. 78 00:05:42,860 --> 00:05:46,440 I always start with an example of where this would be useful. 79 00:05:46,640 --> 00:05:48,140 And that helps me design it. 80 00:05:48,300 --> 00:05:51,760 So, basic firewall-type functionality. 81 00:05:53,340 --> 00:06:00,700 But how about, instead of blocking, just blocking straight away, based on, say, source IP address, or port, or whatever. 82 00:06:00,920 --> 00:06:04,280 How about we run the RDS on the input? 83 00:06:04,800 --> 00:06:10,220 Say it contains a buffer overflow, which we know from one of the different analyses which you could do. 84 00:06:10,280 --> 00:06:11,460 For example, the power matching. 85 00:06:11,700 --> 00:06:16,640 But you could easily do statistical, you could do protocol anomalies, so on and so forth. 86 00:06:18,060 --> 00:06:22,100 If there's a buffer overflow, or an attack, we reroute it transparently. 87 00:06:22,120 --> 00:06:22,760 To a honey-net. 88 00:06:23,220 --> 00:06:28,620 Rubicon can map to bridging, so the only thing which changes is delay time, or something. 89 00:06:29,780 --> 00:06:35,320 And then the hacker could then use your box to attack someone else, which you might get sued for. 90 00:06:35,640 --> 00:06:38,940 So how about we RDS the outbound, as well? 91 00:06:40,140 --> 00:06:46,280 And then, if it contains an attack, which we recognize, how about we then modify the packet to kill that attack? 92 00:06:46,560 --> 00:06:48,520 For example, standard buffer overflow. 93 00:06:49,020 --> 00:06:51,260 Your payload is shellcode and that. 94 00:06:51,380 --> 00:06:52,080 How about just... 95 00:06:52,080 --> 00:06:54,660 Changing the payload, just to nulls. 96 00:06:55,340 --> 00:06:58,500 It means that the attacker just thinks, oh, crap, it didn't work. 97 00:06:58,720 --> 00:07:02,980 Unless they're trying to hack their own box to test whether you've got Rubicon in place. 98 00:07:03,160 --> 00:07:04,480 There's nothing I can do about that. 99 00:07:04,900 --> 00:07:07,000 But they might just think, oh, it didn't work. 100 00:07:07,200 --> 00:07:07,600 Next. 101 00:07:07,860 --> 00:07:11,540 Meanwhile, you're getting information on who they're attacking, and what they're attacking with. 102 00:07:12,780 --> 00:07:14,060 And similarly, coming back. 103 00:07:14,520 --> 00:07:16,360 So from that, a few requirements. 104 00:07:17,080 --> 00:07:18,560 It must itself be secure. 105 00:07:18,760 --> 00:07:21,060 You don't want your box, your Rubicon box, 106 00:07:21,060 --> 00:07:22,380 getting hacked. 107 00:07:22,600 --> 00:07:25,200 And then everything falls apart at that point. 108 00:07:25,540 --> 00:07:26,580 It must be stable. 109 00:07:26,820 --> 00:07:28,920 Otherwise, I mean, it'll fail safe. 110 00:07:29,260 --> 00:07:35,820 But if you're on a really high bandwidth, important network, you don't want it to fail and block everything. 111 00:07:36,080 --> 00:07:37,680 Well, you don't want it to fail, full stop. 112 00:07:37,880 --> 00:07:39,680 And it must be able to handle the load. 113 00:07:40,700 --> 00:07:42,080 So a quick high-level design. 114 00:07:42,340 --> 00:07:47,580 Basically, on the left here, you've got all the different types of plug-in currently supported. 115 00:07:48,160 --> 00:07:51,040 Now, these are all connected via a central network. 116 00:07:51,060 --> 00:07:51,560 This is the root process. 117 00:07:52,080 --> 00:07:55,120 And on the right is the policy subsystem. 118 00:07:55,180 --> 00:07:59,040 That's actually run as a separate thread, for reasons I'll go into in a bit. 119 00:07:59,280 --> 00:08:02,960 Each of the dark black lines can be thought of as an interface between each part. 120 00:08:04,120 --> 00:08:07,200 Interfaces need APIs or similar to be designed. 121 00:08:07,660 --> 00:08:14,040 So the core loops contains a packet structure, which just wraps the packet and all the other data that's attached to it. 122 00:08:14,860 --> 00:08:16,920 One of those is a linked list of protocols. 123 00:08:17,720 --> 00:08:18,640 A protocol. 124 00:08:18,640 --> 00:08:23,720 A protocol is basically the decoded protocol header or whatever with a name. 125 00:08:23,800 --> 00:08:30,200 For example, Ethernet will point to the start of the Ethernet header, the length of the Ethernet header, and so on, and the payload. 126 00:08:30,780 --> 00:08:33,460 Normally, that's just a pointer into the actual packet itself. 127 00:08:34,060 --> 00:08:36,300 Otherwise, you'd copy and stuff, which is a bad thing. 128 00:08:36,480 --> 00:08:42,760 However, you might want to do RDS on decrypted SSL traffic. 129 00:08:43,240 --> 00:08:45,920 Now, just a quick digression here about SSL. 130 00:08:45,960 --> 00:08:47,240 Because I didn't know about this. 131 00:08:47,240 --> 00:08:48,320 Maybe that's just me. 132 00:08:50,080 --> 00:08:58,360 SSL works, you know, client-server, exchange a key, mess around with it a bit, and then use that from now on. 133 00:08:58,820 --> 00:09:00,260 A couple of different methods for that. 134 00:09:00,340 --> 00:09:09,000 RSA, where the client encrypts the session key with the service public, sends it off to the server, server decrypts, and then that's sorted. 135 00:09:09,180 --> 00:09:11,820 Or Diffie-Hellman, which uses combining logs. 136 00:09:12,100 --> 00:09:13,100 But I won't go into that. 137 00:09:13,280 --> 00:09:14,880 Now, if RSA is used, 138 00:09:15,880 --> 00:09:17,840 which you can normally set up, 139 00:09:18,440 --> 00:09:22,160 and the RDS has a copy of the server's public-private key pair, 140 00:09:22,320 --> 00:09:28,680 and what you can do is use, on your RDS, you can use a combination of a hacked-up version of SSLdom and OpenSSL 141 00:09:28,680 --> 00:09:32,940 to actually decrypt the traffic as it's going through, not performing the man-in-middle, anything like that. 142 00:09:33,260 --> 00:09:40,700 So that means that, say, for example, one thing which is being done a lot at the moment is hiding web attacks using SSL. 143 00:09:40,920 --> 00:09:43,400 Well, this would totally circumvent that. 144 00:09:46,100 --> 00:09:47,460 Quick look at the plug-ins. 145 00:09:47,520 --> 00:09:53,160 Everything has the plug-in interface, basically registration, initialization, and cleaning up at the end of the day. 146 00:09:53,580 --> 00:09:54,980 Four types of plug-in. 147 00:09:55,040 --> 00:09:56,460 Input, funnily enough, is input. 148 00:09:56,740 --> 00:09:57,400 Output's obvious. 149 00:09:57,680 --> 00:09:58,140 Analysis. 150 00:09:58,420 --> 00:09:59,280 And protocol. 151 00:09:59,660 --> 00:10:03,200 Rubicon, by default, does not have any support for any protocols. 152 00:10:04,080 --> 00:10:11,240 Instead, everything, Ethernet, IP, ATM, IPX, SONET, whatever, has a protocol plug-in. 153 00:10:12,040 --> 00:10:13,320 With a few different things. 154 00:10:14,320 --> 00:10:17,820 Decode, basically, is the one which produces the protocol linked list. 155 00:10:18,620 --> 00:10:22,760 Test is used for special tests, for example, to check whether checksums are valid. 156 00:10:23,260 --> 00:10:27,760 Print, for printing out, obviously, and make tests, whatever. 157 00:10:29,420 --> 00:10:30,240 Policy interface. 158 00:10:30,360 --> 00:10:34,680 On the internal, you've got a mutex shared pointer for the threads. 159 00:10:34,800 --> 00:10:41,880 Because compiling the policy from an intermediate language to the low-level representation is potentially processor-intensive. 160 00:10:41,880 --> 00:10:43,740 And you don't want that to affect your system. 161 00:10:43,780 --> 00:10:45,060 So, hence, a separate thread. 162 00:10:45,740 --> 00:10:49,500 On the external side, well, I haven't really written much that way, so I can't be arsed. 163 00:10:51,040 --> 00:10:53,440 High-level policy hasn't been implemented. 164 00:10:53,920 --> 00:10:55,620 I'm not interested in doing it. 165 00:10:55,660 --> 00:10:57,200 If anybody does, get in touch. 166 00:10:58,240 --> 00:11:00,060 Intermediate-level is XML. 167 00:11:00,480 --> 00:11:08,320 It's used, basically, to get around, well, some of the problems which occur with lower-level, you know, binary-type things. 168 00:11:08,700 --> 00:11:11,860 And the low-level is what's actually used. 169 00:11:11,880 --> 00:11:13,280 It's actually on the box, which I'll get into now. 170 00:11:14,140 --> 00:11:14,540 Intermediate. 171 00:11:15,740 --> 00:11:18,300 By ordering, et cetera, you don't have to worry about. 172 00:11:18,820 --> 00:11:24,520 It's human-readable and writable, which is good, because I haven't written a high-level policy, so I need to write the intermediate level by hand. 173 00:11:24,700 --> 00:11:27,160 I certainly don't want to be writing this by hand. 174 00:11:28,200 --> 00:11:29,980 And we want fast translation. 175 00:11:30,320 --> 00:11:35,460 So there's a one-to-one mapping, realistically, between the XML structure and the low-level structure. 176 00:11:36,860 --> 00:11:38,240 An example, XML. 177 00:11:40,460 --> 00:11:44,820 The low-level is a linked list, which I'm going to show you in a moment. 178 00:11:44,840 --> 00:11:49,500 Basically, a very large tree, which your process descends down and potentially back it up. 179 00:11:50,260 --> 00:11:51,100 Nodes are tests. 180 00:11:51,680 --> 00:11:53,320 Leaves are the outputs or whatever. 181 00:11:54,620 --> 00:11:58,380 For example, that's the, you know, generic linked list. 182 00:11:58,660 --> 00:12:04,400 So you'll start the policy head, go down to the first relevant protocol that you've decoded. 183 00:12:05,900 --> 00:12:07,800 Say, well, say Ethernet or whatever. 184 00:12:08,240 --> 00:12:13,180 Go along the matches, looking for the match on source address, that sort of thing. 185 00:12:13,360 --> 00:12:17,320 And if a match is made, it descends down the output chain. 186 00:12:17,620 --> 00:12:19,940 So test, test results, so on and so forth. 187 00:12:21,640 --> 00:12:22,700 More accurate example. 188 00:12:23,360 --> 00:12:25,460 Following this along, you go down, you hit Ethernet. 189 00:12:25,580 --> 00:12:28,620 So your source address is that one. 190 00:12:28,980 --> 00:12:31,400 Then you won't go down that drop EOF. 191 00:12:31,780 --> 00:12:35,020 EOF is basically, well, it's end of processing, so it should be EOP. 192 00:12:35,420 --> 00:12:38,220 And then you go back up, down, in. 193 00:12:38,220 --> 00:12:39,480 Into IP and through. 194 00:12:41,160 --> 00:12:44,160 Quick look at the plugins which have sort of been written. 195 00:12:44,440 --> 00:12:47,360 Because it's version two, they haven't totally been written. 196 00:12:48,540 --> 00:12:49,840 I've just been moving house. 197 00:12:49,960 --> 00:12:52,180 So that wiped out my Internet connection for two weeks. 198 00:12:52,900 --> 00:12:55,140 It's so hard to live without the Internet these days. 199 00:12:56,740 --> 00:12:58,540 LibPCAP, standard, everyone knows that. 200 00:12:58,900 --> 00:13:03,800 LibIPQ, that's for user space handling of packets from net filter, IP tables. 201 00:13:04,220 --> 00:13:07,740 So say you want to just phase your product in on a live network. 202 00:13:08,220 --> 00:13:14,180 Well, you could just have the odd packet or the odd set of rules sending into Rubicon from your net filter. 203 00:13:14,320 --> 00:13:18,100 So your network wouldn't really be affected if Rubicon screws up. 204 00:13:19,260 --> 00:13:26,080 One thing to notice about LibIPQ is it exports both the input and output plugin interfaces. 205 00:13:26,560 --> 00:13:31,620 Input to get the packet, output to tell LibIPQ or net filter what to do with it. 206 00:13:32,520 --> 00:13:33,940 Protocol, well, mentioned. 207 00:13:34,720 --> 00:13:35,240 Analysis. 208 00:13:35,240 --> 00:13:39,480 Basically, I pulled out the Snort matching. 209 00:13:40,580 --> 00:13:42,260 It was an old version of Snort. 210 00:13:42,360 --> 00:13:43,460 I think they've updated it recently. 211 00:13:45,320 --> 00:13:47,120 Basically, that gets initialized. 212 00:13:47,200 --> 00:13:50,260 In the XML policy, you can actually include Snort rules. 213 00:13:50,540 --> 00:13:55,000 So that gives some of the cross-platform compatibility I was looking for. 214 00:13:55,720 --> 00:13:59,820 It gets initialized with a load of rules and names. 215 00:14:00,300 --> 00:14:04,460 So, for example, you could use IIS and all the rules that you want to do IIS. 216 00:14:04,460 --> 00:14:07,220 And then any traffic sent to your web server. 217 00:14:07,400 --> 00:14:09,040 I'm not a Microsoft fan, by the way. 218 00:14:09,100 --> 00:14:10,800 I'm just using Windows for the hell of it. 219 00:14:11,980 --> 00:14:18,700 You could just run the IIS rules against the packet rather than having to run everything. 220 00:14:20,900 --> 00:14:24,080 Another nice one, well, personally, I think, Counter. 221 00:14:24,340 --> 00:14:31,580 So you can increment, decrement, set whatever values for as many user-defined variables as you want. 222 00:14:31,780 --> 00:14:33,100 And then you can test them. 223 00:14:33,100 --> 00:14:34,140 Always test them. 224 00:14:34,340 --> 00:14:39,080 So, say, for example, you only want so many FTP connections per hour. 225 00:14:39,280 --> 00:14:44,140 One thing, I'm trying to modify Counter so that you can do stuff on time as well. 226 00:14:44,160 --> 00:14:45,180 So reset every hour. 227 00:14:46,580 --> 00:14:49,160 Defrag, well, what can be said is defragmentation. 228 00:14:50,740 --> 00:14:53,460 Output, you've got the network outputs, same as any firewall. 229 00:14:53,700 --> 00:14:55,720 And you've got your log outputs, same as any IDS. 230 00:14:56,220 --> 00:14:58,820 The network, all provided by LibNet. 231 00:15:00,040 --> 00:15:01,700 It doesn't do masquerading yet. 232 00:15:01,740 --> 00:15:02,980 But you can do drop etc. 233 00:15:03,100 --> 00:15:03,300 It doesn't reject. 234 00:15:04,780 --> 00:15:09,000 Netmangling is the term I use for the modification of packets in LINE. 235 00:15:09,920 --> 00:15:12,940 You can modify any packet you want. 236 00:15:14,840 --> 00:15:18,560 Any header or payload is specifiable. 237 00:15:19,440 --> 00:15:20,860 You can't resize, though. 238 00:15:20,940 --> 00:15:22,500 Well, this isn't strictly true. 239 00:15:22,620 --> 00:15:25,400 You can't resize on anything which uses sequence numbering. 240 00:15:25,860 --> 00:15:28,900 If it's not using sequence numbering, then you've got nothing to worry about. 241 00:15:29,020 --> 00:15:30,340 And you can resize your packet. 242 00:15:30,460 --> 00:15:32,680 But currently, it just doesn't allow you to resize. 243 00:15:32,680 --> 00:15:35,240 All it allows you to do is just replace. 244 00:15:37,540 --> 00:15:39,280 Logging, well, all the standard stuff. 245 00:15:39,460 --> 00:15:44,540 I have a quick look at IDXP, which is an ID MEF. 246 00:15:44,640 --> 00:15:51,180 They're sort of cross-platform ideas for common logging formats or whatever. 247 00:15:53,100 --> 00:15:54,300 Doesn't really work yet. 248 00:15:54,780 --> 00:15:56,040 And that's not my fault. 249 00:15:56,080 --> 00:15:56,860 That's theirs. 250 00:15:58,240 --> 00:15:59,660 Right, now, conclusions. 251 00:15:59,940 --> 00:16:01,560 God, I'm racing through this. 252 00:16:01,560 --> 00:16:02,480 We'll always be on time. 253 00:16:04,280 --> 00:16:08,440 Well, because of the code review, there aren't any benchmarks available yet. 254 00:16:08,540 --> 00:16:12,300 But the old version of the code, basically, I only had a crap network at home. 255 00:16:12,400 --> 00:16:16,800 So I just banged away with a full, every single snort rule I could find. 256 00:16:17,060 --> 00:16:19,660 And it didn't drop anything at 8 megabits. 257 00:16:19,680 --> 00:16:21,140 And that was log into file. 258 00:16:22,580 --> 00:16:30,860 Just to make sure that everything was working correctly, I used both Rubicon and snort with identical rules 259 00:16:30,860 --> 00:16:33,940 to pass the sans 2000 log. 260 00:16:35,380 --> 00:16:37,600 Rubicon, a bit slow, but the output was identical. 261 00:16:37,840 --> 00:16:39,860 So I haven't screwed up too much there. 262 00:16:41,760 --> 00:16:42,560 Problems and limitations. 263 00:16:42,840 --> 00:16:48,080 Well, because of the way I've written it, accessing tunnel traffic is a real issue. 264 00:16:48,320 --> 00:16:53,280 I'm trying to say, when you're referring to IP, you know, IP source address, which IP source address? 265 00:16:53,600 --> 00:16:55,700 The one at the bottom or the one being tunneled? 266 00:16:56,640 --> 00:16:58,180 Bugs obviously need loads of work. 267 00:16:58,460 --> 00:16:59,720 The big thing. 268 00:16:59,720 --> 00:17:02,740 And this is one of the reasons I'm here, is there needs to be uptake. 269 00:17:02,920 --> 00:17:05,100 You need people testing any product. 270 00:17:05,340 --> 00:17:08,920 You know, every year at DEF CON, products are talked about. 271 00:17:09,040 --> 00:17:10,940 Some of them are quite good, some of them less so. 272 00:17:11,080 --> 00:17:12,740 I'll leave you to decide which this is. 273 00:17:12,940 --> 00:17:18,280 The fact of the matter is, if no one uses it, then good or bad, it'll just fall flat on its face. 274 00:17:19,940 --> 00:17:21,260 There have been some successes. 275 00:17:21,460 --> 00:17:22,680 It is very modular. 276 00:17:24,520 --> 00:17:27,360 It took me about two hours to write the TCP plugin. 277 00:17:28,600 --> 00:17:29,700 That's most of that. 278 00:17:29,720 --> 00:17:33,220 It's copy and pasting for printing and that sort of thing. 279 00:17:33,320 --> 00:17:35,060 It's very fast and very easy. 280 00:17:35,480 --> 00:17:37,660 It does do everything I always wanted to. 281 00:17:38,060 --> 00:17:41,740 At the time, it was unique functionality, the mangling. 282 00:17:41,960 --> 00:17:47,960 I believe Hogwash, I don't know if anybody can agree or disagree, Hogwash apparently can do this. 283 00:17:48,100 --> 00:17:48,480 Does it? 284 00:17:48,560 --> 00:17:50,160 Can you mangle packets now? 285 00:17:52,340 --> 00:17:53,540 I think that was a yes. 286 00:17:53,740 --> 00:17:54,160 Yeah. 287 00:17:54,480 --> 00:17:54,920 Okay. 288 00:17:55,100 --> 00:17:57,420 So, it wasn't that unique. 289 00:17:57,540 --> 00:17:57,880 But still. 290 00:17:57,880 --> 00:18:06,040 In theory, using automake and libtool and that, it's relatively cross-platform, although I haven't tested it that much. 291 00:18:06,220 --> 00:18:08,280 And as I said, it is very easy to develop for. 292 00:18:09,420 --> 00:18:12,580 Further work, as you can see, loads of different possibilities. 293 00:18:13,160 --> 00:18:15,600 This doesn't have to just be a security tool. 294 00:18:15,780 --> 00:18:20,700 Now, this is primarily for non-production use, although maybe it will scale up. 295 00:18:20,980 --> 00:18:25,060 But say, for example, you want to add quality of service to your network or load balance it. 296 00:18:25,140 --> 00:18:27,180 But because of the whole modular design. 297 00:18:27,180 --> 00:18:28,700 Then you can do that as well. 298 00:18:31,080 --> 00:18:37,140 A few conclusions on intrusion detection systems that I've come across, or made in my time. 299 00:18:37,600 --> 00:18:39,780 That we have to reduce false positives. 300 00:18:39,920 --> 00:18:41,740 We have to come up with new ways to do that. 301 00:18:42,140 --> 00:18:44,180 Now, academia is working on it. 302 00:18:44,200 --> 00:18:45,340 They are coming up with algorithms. 303 00:18:48,420 --> 00:18:50,260 I'm not that impressed most of the time. 304 00:18:50,320 --> 00:18:52,280 But I don't work that close in the area. 305 00:18:53,620 --> 00:18:55,320 We also need to pick up new attacks. 306 00:18:55,320 --> 00:18:57,500 Now, false positives picking up new attacks. 307 00:18:57,700 --> 00:18:59,340 They're working against each other here. 308 00:19:01,040 --> 00:19:04,080 We're starting to distribute analysis in that. 309 00:19:04,280 --> 00:19:05,880 I think 3Com is it? 310 00:19:05,880 --> 00:19:09,340 Produce NICs with firewalling capabilities. 311 00:19:09,720 --> 00:19:12,240 And apparently they can do IDS stuff in as well. 312 00:19:12,480 --> 00:19:14,760 I've heard today that that's quite crap though. 313 00:19:15,980 --> 00:19:20,800 Better correlation of the previous presentation actually covered that. 314 00:19:21,800 --> 00:19:22,400 Standardization. 315 00:19:22,400 --> 00:19:29,280 How are we supposed to communicate between different intrusion detection, firewall, etc. 316 00:19:29,540 --> 00:19:30,640 There's no standardization. 317 00:19:31,200 --> 00:19:33,320 There's so many vendors in the area now. 318 00:19:33,500 --> 00:19:36,100 And each of them seem to want to follow the Microsoft route. 319 00:19:36,220 --> 00:19:37,780 Yeah, let's follow the RFC. 320 00:19:38,080 --> 00:19:39,060 But change it. 321 00:19:39,680 --> 00:19:41,240 So, we need to sort that out. 322 00:19:42,460 --> 00:19:45,620 We're going to have to have more host-based juicer encryption. 323 00:19:45,900 --> 00:19:47,540 Okay, I can handle SSL. 324 00:19:47,660 --> 00:19:48,100 Maybe. 325 00:19:48,280 --> 00:19:48,740 Sometimes. 326 00:19:49,300 --> 00:19:50,100 And finally. 327 00:19:50,100 --> 00:19:53,000 I'm not sure about Snort. 328 00:19:53,100 --> 00:19:59,620 But I know certain of the IDSs out there have themselves got security flaws. 329 00:20:00,160 --> 00:20:01,440 And exploits their auth. 330 00:20:01,560 --> 00:20:06,420 And just because you've not got a portal open doesn't mean you can't be broken into. 331 00:20:08,080 --> 00:20:09,140 That's basically it. 332 00:20:09,320 --> 00:20:10,780 It was a very quick run-through. 333 00:20:11,380 --> 00:20:12,660 Hopefully there'll be questions. 334 00:20:12,800 --> 00:20:15,040 Otherwise, you've got enough time to go and get a drink. 335 00:20:15,120 --> 00:20:15,440 Yes? 336 00:20:20,520 --> 00:20:22,260 Sorry, I couldn't quite catch that. 337 00:20:22,300 --> 00:20:24,180 Do you want to grab the mic for a minute? 338 00:20:27,280 --> 00:20:29,640 Sorry, my hearing shot after a flight yesterday. 339 00:20:39,000 --> 00:20:44,180 Any plans to move it over to packet filter or IPF on FreeBSD and OpenBSD? 340 00:20:47,000 --> 00:20:47,960 Not especially. 341 00:20:47,960 --> 00:20:53,640 Most of the effort and plans at the moment are basically on just expanding what's here. 342 00:20:55,440 --> 00:20:57,640 Partly because I haven't got that much BSD experience. 343 00:20:57,960 --> 00:20:59,620 I'm primarily a sort of Linux person. 344 00:20:59,840 --> 00:21:05,060 However, if anyone's interested, then I would definitely be interested in doing that. 345 00:21:05,540 --> 00:21:06,460 Anyone else? 346 00:21:07,380 --> 00:21:07,940 Louise? 347 00:21:08,340 --> 00:21:09,320 Ah, yes, Louise. 348 00:21:13,120 --> 00:21:16,060 You were talking about the integration of IDS and firewall. 349 00:21:16,360 --> 00:21:16,460 Yeah. 350 00:21:16,460 --> 00:21:19,640 It sounds like you have one or two problems. 351 00:21:19,800 --> 00:21:22,160 Either you are doing pretty simply a fragment. 352 00:21:22,580 --> 00:21:27,140 And so, for anything other than email, you can produce, you know, unacceptable amount of latency. 353 00:21:27,360 --> 00:21:27,760 Yeah. 354 00:21:27,880 --> 00:21:32,200 And if you don't pull on the packet to fragment, by the time IDS ceases to pull apart and come out of the firewall, 355 00:21:32,440 --> 00:21:33,600 then people will do the other thing. 356 00:21:33,720 --> 00:21:34,140 Okay. 357 00:21:35,520 --> 00:21:41,180 And the question was, or comment, basically to do with defragmentation. 358 00:21:41,800 --> 00:21:43,060 What do we defragment? 359 00:21:43,880 --> 00:21:46,440 If we defrag everything, then we're going to do something else. 360 00:21:46,440 --> 00:21:51,540 If we don't have problems with latency, if we don't, then by the time we see stuff, it's already gone through. 361 00:21:51,800 --> 00:21:54,580 The answer is, that was the question pretty much here. 362 00:21:55,120 --> 00:21:58,340 The answer is, it's a configuration issue, surely. 363 00:21:59,760 --> 00:22:06,920 You defrag stuff which you don't think is an issue, and you allow frags through otherwise. 364 00:22:07,360 --> 00:22:10,120 This is, normally I'd say defrag everything. 365 00:22:11,680 --> 00:22:15,800 This isn't set for production sort of quality code. 366 00:22:15,800 --> 00:22:21,200 So, the latency introduced shouldn't be too much of an issue. 367 00:22:21,320 --> 00:22:24,060 Although, that's a potential denial of service problem. 368 00:22:24,320 --> 00:22:25,400 But that's the same with anything. 369 00:22:25,820 --> 00:22:29,240 There's very, there's realistically nothing you can do to get around that. 370 00:22:29,620 --> 00:22:37,360 One thing that just, well, it occurred to me a while back, but you could do protocol and packet shaping as it comes through. 371 00:22:37,560 --> 00:22:44,160 For example, fragments, okay, common way to get around intrusion section systems, overlapping fragments. 372 00:22:45,220 --> 00:22:47,380 Well, what we could do is remove that overlap. 373 00:22:47,540 --> 00:22:50,440 Because overlapping fragments, it's breaking the RCs anyway. 374 00:22:50,660 --> 00:22:57,060 So, by removing that overlap and resizing one or the other, and that, again, is a configuration issue. 375 00:22:57,180 --> 00:23:00,160 Then you can get rid of that particular problem. 376 00:23:01,820 --> 00:23:02,440 Yes, sir? 377 00:23:03,800 --> 00:23:04,300 . 378 00:23:17,260 --> 00:23:23,480 Right, again, that's currently, although I'm thinking about involving some sort of stop list. 379 00:23:23,760 --> 00:23:29,280 Sorry, the question was, how does Rubicon handle, like, spoof attacks and things like that, yeah? 380 00:23:31,060 --> 00:23:32,960 Again, it's a configuration issue. 381 00:23:33,040 --> 00:23:34,940 I'm considering looking into stop lists. 382 00:23:35,160 --> 00:23:38,560 So, you know, do not ever drop these IP addresses. 383 00:23:38,900 --> 00:23:43,140 However, if you think about it, you can involve that in your rules. 384 00:23:43,140 --> 00:23:46,360 So, that's more of a configuration issue than anything. 385 00:23:48,160 --> 00:23:49,220 Anyone else? 386 00:23:50,140 --> 00:23:50,760 No? 387 00:23:51,920 --> 00:23:52,540 Okay. 388 00:23:52,680 --> 00:23:55,420 Thank you for listening, and go and get a drink.