Intrusion Detection and Prevention Systems

The Gap a Firewall Leaves Open

A firewall decides whether traffic is allowed based on addresses and ports, but it doesn't examine traffic for actual attack patterns hidden inside otherwise-permitted connections. IDS and IPS systems fill exactly this gap.

IDS: Intrusion Detection System

An IDS monitors network traffic, compares it against known attack signatures or unusual behavior patterns, and raises an alert when something suspicious is found - but it does not block anything itself. It's a passive observer, sitting alongside the traffic flow rather than directly in its path.

IPS: Intrusion Prevention System

An IPS does everything an IDS does, but sits directly in the traffic's path and can actively block or drop malicious traffic the moment it's detected - turning detection into an immediate, automatic response.

IDS:  Traffic ---> [monitored copy] ---> alert only, traffic still passes through
IPS:  Traffic ---> [inline inspection] ---> blocked if malicious, otherwise passes

Two Common Detection Approaches

MethodHow it worksTrade-off
Signature-basedMatches traffic against a database of known attack patternsVery accurate for known threats, blind to brand-new ones
Anomaly-basedFlags traffic that deviates from a learned "normal" baselineCan catch novel attacks, but prone to more false alarms

Why Both Approaches Still Coexist

An IDS carries no risk of blocking legitimate traffic by mistake, since it only alerts. An IPS actively protects in real time, but a false positive means it could mistakenly block genuine traffic. Many organizations run both: an IPS for well-understood, high-confidence threats, and an IDS layered on top for broader visibility and investigation.

Written by Lorens Mishra

Software Engineer Notes Management System Administrator

Discussion

0 comments
Sign in to join the discussion.

No comments yet. Be the first to say something.