10 Feb 2001 scaramanga   » (Observer)

I've spent most of my day today with "Network Intrusion Detection, An analysts handbook" and "TCP/IP Illustrated" - trying to map out my new project, kNIDS. A kernel level network intrusion detection system. I think all NIDSes currently available are flawed in two places.

Sensor. The sensors are usually inplemented in userspace, so all the functionality like IP defragmentation, TCP stream reassembly etc.. are re-implemented on top of the kernels (and often badly implemented). Another problem is snow blinding, when the kernel recieves so much data, it decides not to send it to the sensor. A kernel level NIDS could never be fooled this way.

Analyst Console. User interfaces are usually badly designed, implemented in a proprietary fashion, ie: it doesn't interoperate with other systems. Eeach vendor has its own set of "standards" for sharing intrusion information. This is where I think UNIX can win out, with its srong standards, such as libpcap format for packet capture.

I think netfilter (part of linux 2.4) is an ideal playground to implement a kernel level NIDS sensor, it's simple and extensible. Anything implemented at this level should be fast, and kept as simple as possible. Make the detect, report the detect, nothing more.

The analyst console should contain the complexity. I love evolutions ability to manage objects (mail) - its all indexed, so manipulation is fast. You can define what objects (mails) you want to see, and how you see them. Replace "mails" with "packets" or "intrusions" and you have an idea of what an interface should be like. Don't impose order. Give the user as many tools as she needs to create her own order. Intrusion analysis is all about creating order from the jumble. The analyst should have all the tools she needs in one place, see the intrusion, view the full data to verify it, make the report, print it, send it to the CIRT/FIRST, mark it analysed, whatever.

Latest blog entries     Older blog entries

New Advogato Features

New HTML Parser: The long-awaited libxml2 based HTML parser code is live. It needs further work but already handles most markup better than the original parser.

Keep up with the latest Advogato features by reading the Advogato status blog.

If you're a C programmer with some spare time, take a look at the mod_virgule project page and help us with one of the tasks on the ToDo list!