๐ Intrusion Detection and Prevention Systems (IDS/IPS) โ Exam Notes (Network Security)
๐ 1. Definition
๐น Intrusion Detection System (IDS)
An IDS is a security system that monitors network or system activities to detect suspicious or malicious behavior and generates alerts.
๐น Intrusion Prevention System (IPS)
An IPS not only detects threats but also takes action to block or prevent attacks automatically.
๐ Simple idea:
- IDS = Detects & alerts
- IPS = Detects + blocks
๐ฏ 2. Objectives of IDS/IPS
- Detect unauthorized access
- Identify network attacks
- Protect systems from threats
- Reduce damage and response time
- Support security monitoring and analysis
๐งฑ 3. Types of IDS/IPS
๐ธ Based on Deployment
1. Network-Based (NIDS/NIPS)
- Monitors entire network traffic
- Installed at key network points
โ Covers multiple devices
2. Host-Based (HIDS/HIPS)
- Installed on individual systems
- Monitors system logs, files, processes
โ Detects internal attacks
๐ธ Based on Detection Method
1. Signature-Based Detection
- Uses known attack patterns (signatures)
โ Fast and accurate for known attacks
โ Cannot detect new attacks
2. Anomaly-Based Detection
- Detects unusual behavior compared to normal patterns
โ Can detect new attacks
โ May produce false alarms
3. Hybrid Detection
โ More effective
๐ 4. How IDS/IPS Works
-
Monitor traffic or system activity
-
Compare with rules/signatures
-
Detect suspicious activity
-
Take action:
- IDS โ Alert
- IPS โ Block attack
โ ๏ธ 5. Common Attacks Detected
- DoS/DDoS attacks
- Malware activity
- Port scanning
- Brute force attacks
- Unauthorized access
๐ก๏ธ 6. IDS vs IPS (Comparison)
| Feature |
IDS |
IPS |
| Function |
Detection |
Detection + Prevention |
| Action |
Alert only |
Blocks attack |
| Placement |
Passive |
Inline (active) |
| Impact |
No delay |
May affect performance |
๐ 7. Benefits of IDS/IPS
- Real-time monitoring
- Early detection of threats
- Automatic attack prevention (IPS)
- Improves network security
โ 8. Limitations
- False positives (wrong alerts)
- Cannot detect all new attacks
- Requires regular updates
- High cost (advanced systems)
๐ง 9. Best Practices
- Regularly update signatures
- Combine IDS and IPS with firewalls
- Monitor alerts continuously
- Tune system to reduce false positives
๐ 10. Important Concept
๐ธ Detection Rule Concept
If Activity โ Normal Behavior โ Possible Intrusion
๐ผ๏ธ 11. Diagram Descriptions
๐ IDS Placement
- Network โ IDS (monitoring) โ No blocking
๐ IPS Placement
- Network โ IPS โ Blocks malicious traffic
๐ Detection Flow
- Traffic โ Analysis โ Detection โ Alert/Block
๐งพ 12. Real-Life Examples
- ๐ข Companies use IDS to monitor network traffic
- ๐ก๏ธ IPS blocks suspicious login attempts
- ๐ Websites protected from DDoS attacks
- ๐ป HIDS monitors file changes on servers
๐ Likely Exam Questions
- Define IDS and IPS.
- Differentiate between IDS and IPS.
- Explain types of IDS/IPS.
- Describe signature-based vs anomaly-based detection.
- How does an IDS/IPS work?
- What are advantages and limitations of IDS/IPS?
- Explain NIDS vs HIDS.
- What attacks can IDS detect?
- What is false positive?
- Write short notes on:
- IPS
- Anomaly detection
- Hybrid systems
๐ Quick Summary / Conclusion
- IDS detects threats; IPS detects and prevents them.
- Types include network-based and host-based systems.
- Detection methods include signature and anomaly-based.
- IDS/IPS provide real-time monitoring and protection.
- Best security is achieved by combining IDS/IPS with other tools.
๐ In short:
IDS and IPS are essential tools for identifying and stopping network attacks, improving overall system security.