[Day 10] 2. IDS (Intrusion Detection System)
Intrusion
An intrusion is an unauthorized attempt to access, manipulate, or disable a computer system or network. IDS helps to monitor and detect such activities.
Types of IDS
Based on Behavior
-
Passive IDS:
-
Monitors network traffic and logs data.
-
Example: Snort (logs traffic without taking direct actions).
-
-
Active IDS (IPS - Intrusion Prevention System):
-
Detects intrusions and prevents unauthorized access.
-
Takes actions such as stopping the traffic or alerting administrators.
-
Based on Installation
-
Host-based IDS (HIDS):
- Monitors activities on a specific host (e.g., file changes, system logs).
-
Network-based IDS (NIDS):
- Monitors network traffic for suspicious activities.
-
Hybrid IDS:
- Combines features of HIDS and NIDS.
Analysis Scheme
-
Preprocessing:
- Breaks packets into smaller pieces for easier processing.
-
Analysis:
- Inspects packets based on predefined rules.
-
Response:
- Takes appropriate actions based on the analysis (e.g., logging, alerting).
-
Refinement:
- Adjusts IDS configurations to improve its effectiveness.
Intrusion Detection Methodologies
-
Signature-based Detection:
-
Uses predefined rules or signatures to detect intrusions.
-
Example:
in Snort.local.rules
-
-
Misuse Detection:
-
Identifies known attack patterns.
-
Example:
monitors for repeated login failures.fail2ban
-
-
Machine Learning-Based Detection:
- Utilizes machine learning models to identify anomalies or new attack patterns.
IDS Architecture
-
Single-tiered Architecture:
-
Single-layer IDS setup.
-
Example: Snort Lab.
-
-
Multi-tiered Architecture:
-
Contains three components:
-
Sensors: Collect data.
-
Analyzer: Processes data.
-
Manager: Centralized control and alerting.
-
-
Centralized communication ensures all systems are informed.
-
-
Peer-to-peer Architecture:
- Decentralized architecture where components communicate directly with each other.
IDS Evasion Techniques (Bypassing an IDS)
-
Payload Obfuscation:
- Encodes payload to make it difficult for IDS to interpret.
-
Fragmentation:
- Splits payload into smaller packets to bypass detection.
-
Denial of Service (DoS):
- Overloads the IDS with excessive traffic to make it ineffective.
Intrusion Prevention System (IPS) Types
-
Host-based IPS (HIPS):
- Protects individual hosts by monitoring and controlling activities.
-
Wireless IPS (WIPS):
- Monitors and prevents attacks on wireless networks.
-
Network-based IPS (NIPS):
- Monitors network traffic to prevent intrusions.
Read Next
[Day 10] 3. NFQueue and the IPS mode of Suricata
### **NFQueue**: NFQueue is a feature of Linux's Netfilter framework that allows packets to move from the kernel to user space. This lets applicati...
[Day 10] 4. Elasticsearch Logstash Kibana (ELK)
### **What is ELK?** ELK stands for **Elasticsearch, Logstash, and Kibana**. It is a set of tools used for searching, analyzing, and visualizing la...