Cyberstudy
3.2 4.4 4.5 In progress

Intrusion Detection Systems

16 flashcards

Summary

An intrusion detection system (IDS) watches traffic or host activity for signs of attack and raises alerts. An intrusion prevention system (IPS) sits inline and can also block. Both use signatures for known threats and behavior analysis for unknown ones.

In plain words

An IDS watches traffic (fed by a sensor on a SPAN or TAP) and matches it against signatures or behaviour patterns. It raises alerts and logs but doesn't block. An IPS sits inline and can respond automatically: shunning (blocking the source), resetting the connection, or redirecting traffic to a honeypot. Common tools are Snort, Suricata and Zeek.

Detailed explanation

  • Intrusion detection system (IDS): Monitors and alerts on suspicious activity; passive.
  • Intrusion prevention system (IPS): Inline and active; can drop traffic, reset connections or block sources.
  • Network-based (NIDS/NIPS): Analyzes network traffic from sensors on taps, SPAN ports or inline.
  • Host-based (HIDS/HIPS): Runs on a host and monitors its files, logs and processes.

Detection methods

  • Signature-based: Matches known attack patterns; accurate for known threats but misses new ones.
  • Anomaly-based: Compares activity with a baseline of normal behavior; can find new attacks but produces more false positives.
  • Heuristic or behavioral: Looks for suspicious actions rather than exact patterns.

Responses

  • Shunning: Temporarily blocking the source address.
  • Connection reset: Sending TCP resets to end the session.
  • Tools: Snort, Suricata and Zeek are common open-source engines.

Important terms

taken from the text above
Intrusion detection system (IDS)
Monitors and alerts on suspicious activity; passive.
Intrusion prevention system (IPS)
Inline and active; can drop traffic, reset connections or block sources.
Network-based (NIDS/NIPS)
Analyzes network traffic from sensors on taps, SPAN ports or inline.
Host-based (HIDS/HIPS)
Runs on a host and monitors its files, logs and processes.
Signature-based
Matches known attack patterns; accurate for known threats but misses new ones.
Anomaly-based
Compares activity with a baseline of normal behavior; can find new attacks but produces more false positives.
Heuristic or behavioral
Looks for suspicious actions rather than exact patterns.
Shunning
Temporarily blocking the source address.
Connection reset
Sending TCP resets to end the session.

Examples & real-world scenarios

  • Snort raising an alert on a known malicious pattern.
  • An IPS resetting a suspicious session.
  • An IPS updating a firewall rule through an API.

Scenario

An organization is worried that false positives could block real customers. It starts with IDS (alert-only) mode, tunes the rules, and only then switches to IPS blocking.

Common mistakes

  • Saying an IDS blocks traffic. Only an IPS responds automatically.
  • Placing sensors everywhere. Sensors are usually limited to key assets and paths.

Practical skills

  • Compare IDS and IPS responses.
  • Decide where to place a sensor.

What I should remember

  • IDS: Detects and alerts; doesn't block.
  • IPS: Inline and can block.
  • Signature-based: Finds known attacks.
  • Anomaly-based: Finds deviations from a baseline; more false positives.