Flux rss
 

Intrusion detection systems (IDS)

IPS
Bookmark Bookmark & Share
Intrusion Detection System (IDS) Sistemas de deteção de intrusão (IDS) Systeme zur Erkennung von Intrusionen (IDS) Systèmes de détection d'intrusion (IDS) Sistema de detección de intrusiones (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.

Detecting Security Incidents Incident Detection Phase 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... en.kioskea.net/contents/secu/securite-detection.php3
Intrusion prevention systems (IPS) IPS 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... en.kioskea.net/contents/detection/ips.php3
My pendrive is not detected in pc Hello, i have a 4gb transcend pen drive and before everything was alright but since a few my pc is not detecting it when i plug it in and i dont know what to do pleeeaaaassssssssssssse help me out en.kioskea.net/forum/affich-32416-my-pendrive-is-not-detected-in-pc
Why Windows is not detecting the 4 GB of RAM installed?Why Windows is not detecting the 4 GB of RAM installed? What can be done? Conclusion Windows XP or Vista 32-bit edition can not use 4 GB, there is nothing to do, it is a mathematical limit. 32-bit system can address: 2 to the... en.kioskea.net/faq/sujet-1571-why-windows-is-not-detecting-the-4-gb-of-ram-installed
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
Detect the type of fileDetect the type of file Under the system Unix and Linux, the file extension does not have any importance, i.e a file named file.jpg can even be an HTML page like a sound file under format WAV which can be accessed with the existing... en.kioskea.net/faq/sujet-1406-detect-the-type-of-file
Operating system not foundHello, I got a Compaq presario Laptop, when I boot up it said "operating system not detected" I Cannot access the Bios as I do not have the admin password. When I tried to use the recovey console, and enter a command after C:\ it said invalid path or... en.kioskea.net/forum/affich-61941-operating-system-not-found
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
Warning! Windows Has Detected Spyware... (Solved)Hello, Im facing the problem of the "Warning! Windows has detected spyware..." problem. I tried downloading a bunch of different programs but it WONT let me install anything or run programs. i have to run progams through the "Run" application which is... en.kioskea.net/forum/affich-35453-warning-windows-has-detected-spyware
Download Universal Point Of Sale SystemUniversal Point Of Sale System is an accounting software free designed for small and medium enterprises. It provides billing, sales, reporting and data management. In addition, the application can be used on a network, includes a security system,... en.kioskea.net/telecharger/telecharger-1245-universal-point-of-sale-system
Download System protectSystem protect is an easy-to use application, which allows you to stabilize your operating system and avoid losing important files or programs becauses of viruses or clumsiness. The tool protects all Windows system files from any attempt of... en.kioskea.net/telecharger/telecharger-2395-system-protect
Download Advanced SystemCareAdvanced SystemCare is ideal to prevent your computer will train crashes or has a malfunctioning system. It helps you to protect, repair, optimize and maintain your computer. It offers a powerful disk defragmenter and high-speed. Safely Clean Registry... en.kioskea.net/telecharger/telecharger-3653-advanced-systemcare
Norton from Symantec Norton System Works 11 Basic Edition, Upgrade Version (PC)Enhance your computers performance with Norton SystemWorks Basic Edition.Note: This product is not intended for installation or use on any computer system on which a RAID (Redundant Array of Independent Disk) array or enclosure is present.Main... en.kioskea.net/guide/529539735-norton-from-symantec-norton-system-works-11-basic-edition-upgrade-version-pc
Symantec Backup Exec System Recovery Desktop Edition - ( v. 8.5 ) - complete package - 1 desktop/lapv ., Symantec Backup Exec System Recovery 8.5 Desktop Edition enables you to restore complete Windows desktop/laptops in minutes, even to dissimilar hardware or virtual environments with functionality to automate physical to virtual conversions for... en.kioskea.net/guide/650808072-symantec-backup-exec-system-recovery-desktop-edition-v-8-5-complete-package-1-desktop-laptop-symantec-buying-programs-business-pack-cd-win-multi
Operating Systems - MS-DOS - TipsSetting the CD-ROM drive The CD-ROM drive is configured in the config.sys and autoexec.bat system files. The CD-ROM drive device driver must be configured in the config.sys file (even if the device is automatically detected in Windows). To do... en.kioskea.net/contents/dos/dosast.php3
Intrusion TestIntrusion 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... en.kioskea.net/contents/secu/tests-intrusion.php3
Operating systemDescription of the operating system For a computer to be able to operate a computer programme (sometimes known as application or software), the machine must be able to perform a certain number of preparatory operations to ensure exchange between... en.kioskea.net/contents/systemes/sysintro.php3