SlideShare a Scribd company logo
2
Most read
10
Most read
12
Most read
Intrusion Detection System/Intrusion Prevention System (Snort):Intro (Part 1)ByMahendra Pratap SinghTeam: WhitehatPeople
IntroductionIntrusion: the act of thrusting in, or of entering into a place or state without invitation, right, or welcome.Intrusion detection is an act of detecting an unauthorized intrusion by a computer on a network. This unauthorized access, or intrusion, is an attempt to compromise, or otherwise do harm, to other network devices.IDS: An IDS is the high-tech equivalent of a burglar alarm, one that is configured to monitor information gateways, hostile activities, and known intruders.
IDSAn IDS is a specialized tool that knows how to parse and interpret network traffic and/or host activities. This data can range from network packet analysis to the contents of log files from routers, firewalls, and servers, local system logs and access calls, network flow data, and more.Furthermore, an IDS often stores a database of known attack signatures and can compare patterns of activity, traffic, or behavior it sees in the data it’s monitoring against those signatures to recognize when a close match between a signature and current or recent behavior occurs.
Types of IDSNetwork based IDS: IDSes that monitor network links and backbones looking for attack signatures are called network-based IDSes.Host based IDS: IDS that operate on hosts and defend and monitor the operating and file systems for signs of intrusion and are called host based IDSes.Distributed IDS: Groups of IDSes functioning as remote sensors and reporting to a central management station are known as distributed IDSes (DIDSes).A gateway IDS is a network IDS deployed at the gateway between your network and another network, whereas Application IDS understand and parse application specific traffic and underlying protocol
How does an IDS work?    IDSes uses different  approaches for event  analysis. Signature Detection is the same approach used by an antivirus software to detect infected file or any virus. In these IDSes attack signatures are stored in database and detects intrusion by matching these attack signature with network traffic.    Anomaly Detection (Heuristics) technique, uses predefined rules about normal and abnormal activity. Most effective solutions  combine network- and host-based IDS implementations. Likewise, the majority of implementations are primarily signature-based, with only limited anomaly-based detection capabilities present in certain specific products or solutions.
Snort: An Open Source IDSSnort is an open source IDS it can perform real time packet analysis on IP networks. Snort can detect verity of attacks such as buffer overflows, stealth port scans, Common Gateway Interface (CGI) attacks, Server Message Block (SMB) probes, operating system fingerprinting attempts, and much more.Snort can be configured in three modes:     A) Sniffer Mode     B) Packet Logger     C) Network Intrusion Detection
     Some predefined signatures (community signatures) and SourceFire VDB signatures provided with Snort, also you can write your own Signature based on your own need. Signatures can be written for scanning behavior of attacks or for the exploit attempts.     IDSes can be used when patches for newly discovered vulnerabilities are not announced yet, but still those vulnerabilities needs to be monitored till official solution is available.      Some questions needs to be answered before considering IDS, Should your IDS be inline, sitting at the choke point(s) between your network and the world, or not? Does it make sense to drop traffic actively, or do you just want to generate alerts for analysis without touching the network.
     Snort is a packet sniffer/packet logger/network IDS.     Rule types for Snort can be downloaded from Snort site. Rules are organized by rule type, include P2P, backdoor, DDOS attacks, web attacks, viruses and many others.     Rules are mapped to a number that is recognized as a type of attack known as a Sensor ID (SID).Hardware/Software Requirement  for Snort:	Fast Hard Drive to process and store Data, logs.      Fast Network Interface Card(NIC) to process packets.      Large RAM for faster processing
Snort ArchitectureThere are four basic components of Snort’s architecture:The SnifferThe PreprocessorThe Detection EngineThe Output.     Snort is designed to take packets and process them through preprocessor and then check those packets against a series of rules. The preprocessor, the detection engine, and the alert components of Snort are all plug-ins. Plug-ins are programs that are written to conform to Snort’s plug-in API.
Snort Architecture
Part 1 - Packet SnifferA network sniffer allows an application or a hardware device to eavesdrop on data network traffic. Sniffer are used for Network analysis and troubleshooting, performance analysis etc. If network traffic is encrypted it can prevent people to sniff network.As a sniffer, Snort can save the packets to be processed and viewed later as a packet logger.
Part 2 – Preprocessor	Preprocessor takes the packets and check them against set plug-ins like RPC plug-in, HTTP plug-in, port scanner plug-in.     These plug-ins check for a certain type of behavior from the packet. On that particular behavior  plug-in send that packet  to Detection engine.      Plug-ins can be enabled and disabled on need basis.	Snort support many kind of preprocessors and their attendant plug-ins, covering many commonly used protocols.
Part 3 – Detection Engine 	Once packets are checked by preprocessor they are passed to Detection engine. 	Detection engine takes that data and checks through set of rules. 	If rules match the data in the packet, they are sent to the alert processor.	Snort has a particular syntax that it uses with its rules. Rule syntax can involve the type of protocol, the content, the length, the header, and other various elements, including garbage characters for defining butter overflow rules.
Part 4 – Output Component     Once Snort data processed in Detection engine, if data matches a rule, an alert is triggered. 	Alert can be sent to log file through network connection, through UNIX sockets or Windows Popup (SMB) or SNMP traps. 	The alerts can also be stored in an SQL database such as MySQL. 	Logs can also be used on Web interface. 	Through Syslog tool (ex. Swatch), Snort alerts can be sent via e-mail to notify system admin in real time.
Thanks for your time.More in next PartByMahendra Pratap Singh | Team Whitehat People(Source: Snort IDS and IPS Toolkit by Jay Beale’s Open Source Security Series)

More Related Content

PPTX
Web application security
PPTX
Intrusion detection and prevention system
PPT
Intrusion Detection System
PPT
intrusion detection system (IDS)
PPTX
Introduction to Snort
PPTX
Intrusion detection system
PDF
Computer Security and Intrusion Detection(IDS/IPS)
PDF
Nessus Software
Web application security
Intrusion detection and prevention system
Intrusion Detection System
intrusion detection system (IDS)
Introduction to Snort
Intrusion detection system
Computer Security and Intrusion Detection(IDS/IPS)
Nessus Software

What's hot (20)

PPTX
Denial of Service Attacks (DoS/DDoS)
PPT
PPTX
Snort IDS/IPS Basics
PPTX
Intrusion detection system
PPTX
Intrusion detection system
PPTX
WTF is Penetration Testing v.2
PPTX
Intrusion prevention system(ips)
PPT
Introduction To OWASP
PPTX
Intrusion detection
 
PPTX
Introduction to penetration testing
PPT
Intrusion Detection Systems and Intrusion Prevention Systems
PPTX
Intrusion detection system
PPTX
Introduction to Malware Analysis
PDF
Snort IPS
PPTX
Intrusion detection
PPT
Intrusion detection system ppt
PPT
Snort
PDF
IPS (intrusion prevention system)
PDF
Breach and attack simulation tools
PPT
Intrusion Detection And Prevention
Denial of Service Attacks (DoS/DDoS)
Snort IDS/IPS Basics
Intrusion detection system
Intrusion detection system
WTF is Penetration Testing v.2
Intrusion prevention system(ips)
Introduction To OWASP
Intrusion detection
 
Introduction to penetration testing
Intrusion Detection Systems and Intrusion Prevention Systems
Intrusion detection system
Introduction to Malware Analysis
Snort IPS
Intrusion detection
Intrusion detection system ppt
Snort
IPS (intrusion prevention system)
Breach and attack simulation tools
Intrusion Detection And Prevention
Ad

Similar to Introduction to IDS & IPS - Part 1 (20)

PDF
Intrusion_Detection_By_loay_elbasyouni
PDF
Bro Policy Assignment
PPTX
Intrusion Detection in WLANs
DOCX
Describe firewalls
PDF
Exploring the Insights of Intrusion Detection Systems in Cybercrime.pdf
PPTX
Intrusion detection system
PPSX
Security measures for networking
PDF
An analysis of Network Intrusion Detection System using SNORT
PDF
Efficient String Matching Algorithm for Intrusion Detection
PPT
Network Intrusion Detection System Using Snort
PDF
IDS (intrusion detection system)
PDF
Signature-Based or Anomaly-Based Intrusion Detection: The Merits and Demerits
DOCX
Internet of Things (IoT)
PDF
Detect Network Threat Using SNORT Intrusion Detection System
PPSX
Intrusion detection system
PDF
Report on SNORT Intrusion Detection System.pdf
PPT
AN INTRUSION DETECTION SYSTEM
PPT
Detection of Idle Stealth Port Scan Attack in Network Intrusion Detection Sys...
PPT
Detection of Idle Stealth Port Scan Attack in Network Intrusion Detection Sys...
PDF
DYNAMIC IDP SIGNATURE PROCESSING BY FAST ELIMINATION USING DFA
Intrusion_Detection_By_loay_elbasyouni
Bro Policy Assignment
Intrusion Detection in WLANs
Describe firewalls
Exploring the Insights of Intrusion Detection Systems in Cybercrime.pdf
Intrusion detection system
Security measures for networking
An analysis of Network Intrusion Detection System using SNORT
Efficient String Matching Algorithm for Intrusion Detection
Network Intrusion Detection System Using Snort
IDS (intrusion detection system)
Signature-Based or Anomaly-Based Intrusion Detection: The Merits and Demerits
Internet of Things (IoT)
Detect Network Threat Using SNORT Intrusion Detection System
Intrusion detection system
Report on SNORT Intrusion Detection System.pdf
AN INTRUSION DETECTION SYSTEM
Detection of Idle Stealth Port Scan Attack in Network Intrusion Detection Sys...
Detection of Idle Stealth Port Scan Attack in Network Intrusion Detection Sys...
DYNAMIC IDP SIGNATURE PROCESSING BY FAST ELIMINATION USING DFA
Ad

Introduction to IDS & IPS - Part 1

  • 1. Intrusion Detection System/Intrusion Prevention System (Snort):Intro (Part 1)ByMahendra Pratap SinghTeam: WhitehatPeople
  • 2. IntroductionIntrusion: the act of thrusting in, or of entering into a place or state without invitation, right, or welcome.Intrusion detection is an act of detecting an unauthorized intrusion by a computer on a network. This unauthorized access, or intrusion, is an attempt to compromise, or otherwise do harm, to other network devices.IDS: An IDS is the high-tech equivalent of a burglar alarm, one that is configured to monitor information gateways, hostile activities, and known intruders.
  • 3. IDSAn IDS is a specialized tool that knows how to parse and interpret network traffic and/or host activities. This data can range from network packet analysis to the contents of log files from routers, firewalls, and servers, local system logs and access calls, network flow data, and more.Furthermore, an IDS often stores a database of known attack signatures and can compare patterns of activity, traffic, or behavior it sees in the data it’s monitoring against those signatures to recognize when a close match between a signature and current or recent behavior occurs.
  • 4. Types of IDSNetwork based IDS: IDSes that monitor network links and backbones looking for attack signatures are called network-based IDSes.Host based IDS: IDS that operate on hosts and defend and monitor the operating and file systems for signs of intrusion and are called host based IDSes.Distributed IDS: Groups of IDSes functioning as remote sensors and reporting to a central management station are known as distributed IDSes (DIDSes).A gateway IDS is a network IDS deployed at the gateway between your network and another network, whereas Application IDS understand and parse application specific traffic and underlying protocol
  • 5. How does an IDS work? IDSes uses different approaches for event analysis. Signature Detection is the same approach used by an antivirus software to detect infected file or any virus. In these IDSes attack signatures are stored in database and detects intrusion by matching these attack signature with network traffic. Anomaly Detection (Heuristics) technique, uses predefined rules about normal and abnormal activity. Most effective solutions combine network- and host-based IDS implementations. Likewise, the majority of implementations are primarily signature-based, with only limited anomaly-based detection capabilities present in certain specific products or solutions.
  • 6. Snort: An Open Source IDSSnort is an open source IDS it can perform real time packet analysis on IP networks. Snort can detect verity of attacks such as buffer overflows, stealth port scans, Common Gateway Interface (CGI) attacks, Server Message Block (SMB) probes, operating system fingerprinting attempts, and much more.Snort can be configured in three modes: A) Sniffer Mode B) Packet Logger C) Network Intrusion Detection
  • 7. Some predefined signatures (community signatures) and SourceFire VDB signatures provided with Snort, also you can write your own Signature based on your own need. Signatures can be written for scanning behavior of attacks or for the exploit attempts. IDSes can be used when patches for newly discovered vulnerabilities are not announced yet, but still those vulnerabilities needs to be monitored till official solution is available. Some questions needs to be answered before considering IDS, Should your IDS be inline, sitting at the choke point(s) between your network and the world, or not? Does it make sense to drop traffic actively, or do you just want to generate alerts for analysis without touching the network.
  • 8. Snort is a packet sniffer/packet logger/network IDS. Rule types for Snort can be downloaded from Snort site. Rules are organized by rule type, include P2P, backdoor, DDOS attacks, web attacks, viruses and many others. Rules are mapped to a number that is recognized as a type of attack known as a Sensor ID (SID).Hardware/Software Requirement for Snort: Fast Hard Drive to process and store Data, logs. Fast Network Interface Card(NIC) to process packets. Large RAM for faster processing
  • 9. Snort ArchitectureThere are four basic components of Snort’s architecture:The SnifferThe PreprocessorThe Detection EngineThe Output. Snort is designed to take packets and process them through preprocessor and then check those packets against a series of rules. The preprocessor, the detection engine, and the alert components of Snort are all plug-ins. Plug-ins are programs that are written to conform to Snort’s plug-in API.
  • 11. Part 1 - Packet SnifferA network sniffer allows an application or a hardware device to eavesdrop on data network traffic. Sniffer are used for Network analysis and troubleshooting, performance analysis etc. If network traffic is encrypted it can prevent people to sniff network.As a sniffer, Snort can save the packets to be processed and viewed later as a packet logger.
  • 12. Part 2 – Preprocessor Preprocessor takes the packets and check them against set plug-ins like RPC plug-in, HTTP plug-in, port scanner plug-in. These plug-ins check for a certain type of behavior from the packet. On that particular behavior plug-in send that packet to Detection engine. Plug-ins can be enabled and disabled on need basis. Snort support many kind of preprocessors and their attendant plug-ins, covering many commonly used protocols.
  • 13. Part 3 – Detection Engine Once packets are checked by preprocessor they are passed to Detection engine. Detection engine takes that data and checks through set of rules. If rules match the data in the packet, they are sent to the alert processor. Snort has a particular syntax that it uses with its rules. Rule syntax can involve the type of protocol, the content, the length, the header, and other various elements, including garbage characters for defining butter overflow rules.
  • 14. Part 4 – Output Component Once Snort data processed in Detection engine, if data matches a rule, an alert is triggered. Alert can be sent to log file through network connection, through UNIX sockets or Windows Popup (SMB) or SNMP traps. The alerts can also be stored in an SQL database such as MySQL. Logs can also be used on Web interface. Through Syslog tool (ex. Swatch), Snort alerts can be sent via e-mail to notify system admin in real time.
  • 15. Thanks for your time.More in next PartByMahendra Pratap Singh | Team Whitehat People(Source: Snort IDS and IPS Toolkit by Jay Beale’s Open Source Security Series)