Cyberstudy
4.5 In progress

Intrusion Detection and Prevention Systems (IDS/IPS)

15 flashcards

Summary

Intrusion detection and prevention systems watch for malicious activity on networks and hosts. Host-based systems see inside a single machine, network-based systems see traffic across many, and the two complement each other. Open-source engines such as Snort, Suricata and Zeek are widely used.

In plain words

An IDS alerts; an IPS acts. Host-based systems (HIDS/HIPS, such as OSSEC) run on individual machines and watch logs, file integrity and system behaviour. That's good for insider threats and host-specific activity. Network-based systems (NIDS/NIPS) watch traffic across many hosts, which is good for network-wide anomalies such as DDoS. Using both gives the best coverage. Common tools are Snort, Suricata and Security Onion (a platform bundling several tools).

Detailed explanation

  • IDS: Detects and alerts on suspicious activity.
  • IPS: Detects and actively blocks suspicious activity inline.
  • Host-based IDS/IPS (HIDS/HIPS): Installed on a host; monitors files, logs, registry, processes and local traffic, and can see decrypted data.
  • Network-based IDS/IPS (NIDS/NIPS): Monitors traffic on network segments; sees many hosts but can't read encrypted payloads without decryption.
  • File integrity monitoring (FIM): A HIDS feature that alerts when critical files change.

Tools

  • Snort: A long-established open-source IDS/IPS using signature rules.
  • Suricata: A multithreaded open-source IDS/IPS and network security monitoring engine.
  • Zeek: A network analysis framework that produces detailed connection and protocol logs.
  • Security Onion: A Linux distribution that bundles network monitoring tools such as Suricata and Zeek with log analysis.

Important terms

taken from the text above
IDS
Detects and alerts on suspicious activity.
IPS
Detects and actively blocks suspicious activity inline.
Host-based IDS/IPS (HIDS/HIPS)
Installed on a host; monitors files, logs, registry, processes and local traffic, and can see decrypted data.
Network-based IDS/IPS (NIDS/NIPS)
Monitors traffic on network segments; sees many hosts but can't read encrypted payloads without decryption.
File integrity monitoring (FIM)
A HIDS feature that alerts when critical files change.
Snort
A long-established open-source IDS/IPS using signature rules.
Suricata
A multithreaded open-source IDS/IPS and network security monitoring engine.
Zeek
A network analysis framework that produces detailed connection and protocol logs.
Security Onion
A Linux distribution that bundles network monitoring tools such as Suricata and Zeek with log analysis.

Examples & real-world scenarios

  • OSSEC alerting when a system file changes.
  • Suricata inspecting traffic at the network edge.
  • Security Onion running in a home lab to monitor your own traffic.

Scenario

An insider copies files from a server using valid credentials. A NIDS sees normal-looking traffic, but the HIDS on the server flags unusual file access. That's why host and network sensors complement each other.

Common mistakes

  • Assuming a NIDS sees activity inside encrypted sessions or on the host itself.
  • Mixing up HIDS (on the host) and NIDS (on the network).

Practical skills

  • Choose HIDS or NIDS placement for a scenario.
  • Set up Security Onion in an isolated lab to watch your own lab traffic.

What I should remember

  • HIDS: Watches a single host from inside.
  • NIDS: Watches traffic across the network.
  • Complementary use: Host and network sensors cover each other's blind spots.
  • FIM: Alerts when critical files change.