knowledge

Overview

An Intrusion Detection System (IDS) monitors network traffic and host activity to detect malicious or suspicious behavior. Operating similarly to a security camera, an IDS generates alerts based on signature-based and anomaly-based detection — but does not actively block traffic. Example: an attacker bypassing a firewall through a legitimate-looking connection would still be flagged by an IDS.


Terminology

TermDefinition
IDSIntrusion Detection System; monitors and alerts on suspicious activity
HIDSHost Intrusion Detection System; installed on individual hosts
NIDSNetwork Intrusion Detection System; monitors traffic across the entire network
SignatureKnown pattern of malicious activity used to identify threats
AnomalyDeviation from established baseline behavior flagged as a potential threat
BaselineProfile of normal network or system behavior used for anomaly detection
False PositiveAlert triggered by legitimate activity incorrectly flagged as malicious
Zero-DayPreviously unknown vulnerability or attack with no existing signature

Core Concepts

Deployment Modes

NIDS vs HIDS

TypeScopeAdvantagesLimitations
HIDSIndividual hostDetailed host-level visibilityResource-intensive; hard to scale
NIDSEntire networkCentralized network-wide detectionLess visibility into individual host activity

Detection Methods

Signature-Based Detection

  • Matches traffic against a database of known attack patterns
  • Fast and accurate for known threats
  • Cannot detect zero-day attacks without an existing signature
  • Ideal for environments with smaller, well-defined threat surfaces

Anomaly-Based Detection

  • Establishes a baseline of normal behavior
  • Flags deviations from baseline as potential threats
  • Can detect zero-day attacks and novel techniques
  • May produce false positives — requires fine-tuning to reduce noise

Hybrid Detection

  • Combines signature and anomaly-based detection
  • Uses signatures for known threats; anomaly analysis for unknown threats
  • Provides broader coverage with reduced blind spots

IDS vs Firewall

Both are defensive tools but serve different functions:

  • Firewall — actively blocks or allows traffic based on rules
  • IDS — passively monitors and alerts but does not block traffic

See Firewalls for firewall detail.



References / Images

  • NIDS vs HIDS
  • Snort IDS documentation