Flux rss
 

Intrusion detection systems (IDS)

Introduction to intrusion detection systems

An IDS (Intrusion Detection System) is the term for a mechanism which quietly listens to network traffic in order to detect abnormal or suspicious activity, thereby reducing the risk of intrusion.

There are two distinct major families of IDSs:

  • The N-IDS group (Network Based Intrusion Detection System), which handle security at the network level.
  • The H-IDS group (Host Based Intrusion Detection System), which handle security at the host level.

An N-IDS needs dedicated hardware, and forms a system which can check packets travelling on one or more network lines, in order to find out if any malicious or abnormal activity has taken place. The N-IDS puts one or more of the dedicated system's network adapters into promiscuous mode. This is a sort of "stealth" mode in which they have no IP address. They no longer have a protocol stack assigned to them, either. It is common to find multiple IDSs on different parts of the network, and particularly to place a probe outside the network in order to study attempted attacks, as well as an internal probe to analyse requests which either passed through the firewall or were made from the inside.

Diagram of an N-IDS on a network

The H-IDS resides on a particular host, and its software therefore covers a broad range of operating systems, such as Windows, Solaris, Linux, HP-UX, Aix, etc.
The H-IDS acts as a daemon or standard service on a host system. Traditionally, the H-IDS analyses particular information stored in logs (such as syslogs, messages, lastlog, and wtmp) and also captures network packets entering/leaving the host in order to check for signs of intrusion (such as denial-of-service attacks, backdoors, Trojan horses, unauthorised access attempts, malicious code being run, or buffer overrun attacks).

Detection techniques

Network traffic is generally (over the Internet, in any case) made of IP datagrams. An N-IDS can capture packets as they travel over the physical connections to which it is attached. An N-IDS contains a TCP/IP stack which reassembles IP datagrams and TCP connections. It can apply the following techniques for recognising intrusions:

  1. Checking the protocol stack: Some forms of intrusion, such as "Ping-Of-Death" and "TCP Stealth Scanning" make use of IP, TCP, UDP, and ICMP protocol violations in order to attack a machine. A simple protocol check can reveal invalid packets and detect this commonly-used tactic.
  2. Checking application layer protocols: Some forms of intrusion employ invalid protocol behaviour, such as "WinNuke", which uses invalid NetBIOS data (adding out-of-band data). In order to effectively detect such intrusions, an N-IDS must have implemented a wide variety of application layer protocols, such as NetBIOS, TCP/IP, etc.

    This technique is fast (the N-IDS doesn't need to sift through the entire signature database for particular byte sequences) and eliminates some false alarms, and is therefore more efficient. For example, by analysing protocols, N-IDS can tell apart a "Back Orifice PING" (low danger) and a "Back Orifice COMPROMISE" (high danger).

  3. Recognising "pattern matching" attacks: This intrusion recognition technique is the oldest N-IDS analysis method, and still a common one.

    It involves identifying an intrusion just by examining a packet and recognising, within a series of bytes, a sequence which corresponds to a specific signature. For example, searching for the string of characters "cgi-bin/phf", which indicates an attempt at exploiting a hole in the CGI script "phf". This method is also used as a supplement to filters on IP addresses, destinations used by connections and source and/or destination ports. This recognition method can even be refined by combining it with a succession or combination of TCP flags.

    This tactic is widespread on "Network Grep" N-IDSs, which are based around capturing raw packets on a monitored connection, and comparing them using a "regular expression" parser, which will attempt to match sequences in the signature base byte-for-byte with the content of the captured packet.

    The primary advantage of this technique lies with how easy it is to update, and of course in the large quantity of signatures found in the N-IDS base. However, quantity doesn't necessarily mean quality. For example, the 8 bytes “CE63D1D2 16E713CF”, when placed at the start of a UDP data transfer, indicate Back Orifice traffic with a default password. Even if 80% of intrusions use the default password, 20% will use personalised passwords and won't necessarily be recognised by N-IDS. For example, if the password is changed to "evade", then the series of bytes will become "8E42A52C 0666BC4A", which automatically protects it from being caught by N-IDS. The technique also unavoidably leads to a large number of false alarms and false positives.

There are other methods for detecting and reporting intrusions, such as Stateful Pattern Matching, and/or auditing dangerous or abnormal network traffic.

In conclusion, a perfect N-IDS is a system which uses the best parts of all the techniques mentioned above.

What IDSs do

The primary methods used by N-IDSs to report and block intrusions are:

  • Reconfiguring third-party devices (firewall or ACLs on routers): Command sent by the N-IDS to a third-party device (like a packet filter or firewall) to immediately reconfigure itself so as to block an intrusion. This reconfiguration is made possible by sending data explaining the alert (in the packet header(s)).
  • Sending an SNMP trap to a third-party hypervisor: Sending an alert (and details on the data involved) in the form of an SNMP datagram to a third-party console like HP OpenView, Tivoli, Cabletron Spectrum, etc.
  • Sending an email to one or more users: Sending an email to one or more inboxes to report a serious intrusion.
  • Logging the attack: Saving the details of the alert in a central database, including such information as the timestamp, IP address of the intruder, IP address of the target, the protocol used, and the payload).
  • Saving suspicious packets: Saving all raw network packets captured, and/or only the packets which triggered an alert.
  • Opening an application: Launching an outside program to perform a specific action (such as sending an SMS text message, or playing a sound to indicate an alert)
  • Sending a "ResetKill": Constructing a TCP FIN packet to force a connection to end (only valid for intrusion techniques that use the TCP transport protocol).
  • Visual notification of an alert: Displaying an alert on one or more management console(s).

IDS challenges

The computing media is starting to use the term IPS (Intrusion Prevention System) more and more, as a replacement for "traditional" IDSs or to make a distinction between them.

The IPS is a prevention/protection system for guarding against intrusions, and not just recognising and reporting them like most IDSs do. There are two main characteristics which distinguish a (network) IDS from a (network) IPS:

  • The IPS sits inline on the IPS network, and does not just passively listen to the network like an IDS (traditionally placed as a sniffer on the network).
  • An IPS has the ability to immediately block intrusions, no matter what transport protocol is used and without reconfiguring a third-party device, which means that the IPS can filter and block packets in native mode (using techniques such as dropping a connection, dropping offending packets, or blocking an intruder).

Article written 29 January 2003 by Cyrille Larrieu.

Last update on Thursday October 16, 2008 02:43:19 PM.

This document entitled « Intrusion detection systems (IDS) » from Kioskea (en.kioskea.net) is made available under the Creative Commons license. You can copy, modify copies of this page, under the conditions stipulated by the licence, as this note appears clearly.

Results for

Security - Detecting Incidents In order to be comletely reliable, a secure information system must have measures that allow it to detect incidents. Thus, there are intrusion detection systems (or IDS) that monitor the network and are able to set off an alert when a request is... en.kioskea.net/secu/securite-detection.php3
IPS - Intrusion prevention systems The computing media is starting to use the term IPS (Intrusion Prevention System) more and more, as a replacement for "traditional" IDSs or to make a distinction between them. An IPS is a system for preventing intrusions and protect against them, not... en.kioskea.net/detection/ips.php3
Download Comodo Firewall Pro Comodo Firewall Pro secures your system : Complete protection from Hackers, Spyware, Trojans and Identity theft Host Intrusion Prevention System stops malware from being installed Clean PC Mode registers your current applications then will... en.kioskea.net/telecharger/telecharger-67-comodo-firewall-pro

Results for

How to detect the number of packages free/non-free installedHow to detect the number of packages free/non-free installed Under Debian –based system, with the help of a tool GNU, the tools VRMS is an application program that reports all of the packages whether it is free is non free which is... en.kioskea.net/faq/sujet-850-how-to-detect-the-number-of-packages-free-non-free-installed
Difference between disk free space and used spaceDifference between disk free space and used space Explanation How to reduce the loss During the verification of free space on your hard disk, you detect that the amount of space free mentioned by the computer system is very much... en.kioskea.net/faq/sujet-843-difference-between-disk-free-space-and-used-space
Command to detect your IP address!Command to detect your IP address! IP address (Internet Protocol) is a numerical identification to detect your computer on a network. It is used to communicate between nodes on a computer network. Find below the commands to execute and provide... en.kioskea.net/faq/sujet-553-command-to-detect-your-ip-address

Results for

Cd is not auto-detected while bootingcd drive is working ,but it is not auto detected whle booting . i want to formate my system & planned to reinstall windows XP. but while booting cd is not auto detected. pls help en.kioskea.net/forum/affich-9416-cd-is-not-auto-detected-while-booting
Removing a virus from systemhi i got a virus on my system and when i run scan with avg its not detecting the virus and my pc just keep shutting down with that.. what can i do to remove it from my system ???? en.kioskea.net/forum/affich-17399-removing-a-virus-from-system
Pen drive not detectingHello , my pen drive is detecting when it is inserted into port. When i tried to open, system displays an message "INSERT DISK INTO DRIVE ".. My keyboard and mouse are working properly which when connected through same port. I tried at different port... en.kioskea.net/forum/affich-33450-pen-drive-not-detecting

Results for

Download Spybot - Search & DestroySpybot - Search & Destroy is an adware, spyware, dialers, keyloggers, trojans detection and removal tool. It scans your computer hard disk and/or RAM for malicious software. It can also immunise your system against over 400 different spies and... en.kioskea.net/telecharger/telecharger-37-spybot-search-destroy

Results for

Attack detection - Monitoring event logs One of the best ways to detect intrusions is to monitor event logs (sometimes called logs for short). In general, servers store logs of their activity, and in particular any errors encountered, in files. Therefore, after a computer attack, it is rare... en.kioskea.net/detection/surveillance-journaux-logs.php3
Security - Intrusion Test Intrusion tests (abbreviated as pen tests) consist in testing an information system's protection methods by subjecting the system to a real situation. Two methods are generally used: The black box method that consists of trying to infiltrate the... en.kioskea.net/secu/tests-intrusion.php3
Attack detection - Analysing logs One of the best ways to detect intrusions is to monitor event logs (sometimes called logs for short). In general, servers store logs of their activity, and in particular any errors encountered, in files. Therefore, after a computer attack, it is rare... en.kioskea.net/detection/detection-attaques-reseau.php3