Defensive cybersecurity technologies
This section focuses on popular open source defensive cybersecurity tools used for firewalls, IDS/IPS, and SIEM/EDR
Learning objectives
Become familiar with popular open source host and network firewalls, their key features, and their common use cases
Understand the difference between Web Application Firewalls (WAFs) and packet-filtering firewalls
Become familiar with popular open source host- and network-based IDS, their key features, and their common use cases
Become familiar with popular open source security event management technologies (SIEM/EDR), their key features, and their common use cases
This section explores major defensive cybersecurity technologies, including firewalls, IDS/IPS, and SIEM/EDR (Security Information and Event Management/Endpoint Detection and Response). The discussion focuses on popular open-source tools used to implement these technologies, exploring their key features and deployment (use cases). Key categories of defensive cybersecurity technologies discussed include host and network firewalls (e.g., UFW, iptables, nftables, PF, OPNsense, and pfSense), IDS/IPS (e.g., Suricata and Snort), and network security monitoring/SIEM (e.g., Wazuh and OSSEC).
Note that many powerful open source security tools have overlapping capabilities and can span multiple functional categories. A tool primarily classified as a Network Intrusion Detection System (NIDS), like Suricata, might also provide critical log data for a Security Information and Event Management (SIEM) system. This discussion categorizes tools by their primary function, but their real-world value often lies in how they are integrated into a broader security architecture.
Topics covered in this section
Firewalls
IDS/IPS
SIEM/EDR
Firewalls
Popular open source host and network firewalls include UFW (Uncomplicated Firewall), iptables, nftables, PF (pfilter or packet filter), ipfw, OPNsense, and pfSense (Community Edition). Key firewall concepts discussed in this section include packet filtering firewalls, BSD (Berkeley Software Distribution) firewalls, stateful vs stateless firewalls, and Next-Generation Firewalls (NGFWs). Key firewall technologies elaborated in this section include nftables and OPNsense.
At its most basic, a firewall is a gatekeeper for network traffic. The simplest and oldest type is the packet filtering firewall. Packet-filtering firewall technologies operate at the network level (Layer 3/4). They allow network administrators to define rules for allowing, blocking, or modifying traffic based on IPs, ports, protocols, and connection states. Packet filtering firewalls can be contrasted with stateful inspection firewalls, application-level gateways (proxy firewalls), and Next-Generation Firewalls (NGFWs).
A critical evolution in firewall technology was the shift from stateless to stateful inspection. A stateless firewall treats each network packet in isolation, with no memory of previous packets. A rule like "allow TCP port 80" would permit all traffic to that port, regardless of whether it is a legitimate new connection or a random, malicious packet.
Proxy firewalls operate as an intermediary between two end systems. Instead of allowing direct communication, the proxy firewall establishes two separate connections: one from the client to the proxy and another from the proxy to the server. This allows it to perform deep inspection of the application-layer traffic (like HTTP or FTP), filter specific content, and hide the internal client's IP address, providing a high level of security at the cost of increased latency and processing overhead.
NGFWs represent the modern evolution of firewall technologies, incorporating the capabilities of all previous types and adding advanced security integrations. NGFWs can perform stateful and Application layer packet filtering, in addition to more advanced inspection capabilities such as Deep Packet Inspection (DPI) and Intrusion Prevention Systems (IPS).
Packet filtering firewalls
UFW, iptables, nftables, PF, ipfw, OPNsense, and pfSense (CE) all have their foundation in packet filtering.
Underlying Systems of Common Packet-Filtering Firewalls (Summary Table)
iptables
Netfilter (Linux)
Linux
Legacy, replaced by nftables.
nftables
Netfilter (Linux)
Linux
Unifies IPv4/IPv6, better syntax.
PF
BSD Kernel
OpenBSD/FreeBSD
Powers OPNsense/pfSense.
ipfw
BSD Kernel
FreeBSD/macOS
Older, simpler than PF.
WFP (Windows Filtering Platform)
Windows Kernel
Windows
Native firewall for Windows.
BSD-Based Firewalls
BSD-based firewalls use networking and security tools native to BSD systems. BSD stands for Berkeley Software Distribution, a family of Unix-like operating systems derived from the original Berkeley Unix (developed at UC Berkeley).
Key BSD Variants in Firewalling
OpenBSD
PF (Packet Filter)
Famously secure/the gold standard for BSD firewalls (used in OPNsense/pfSense).
FreeBSD
PF or ipfw
Supports both, but PF is more modern.
NetBSD
NPF or IPFilter
Less common in firewalls.
macOS (Darwin)
ipfw (legacy) / PF (partially)
macOS inherited some BSD firewall tools.
Stateless vs stateful firewalls
A stateless firewall performs packet filtering based solely on the static rule set and the headers of the individual packet in question, with no memory of prior packets. This necessitates explicit, bidirectional rules for any permitted communication. For example, to allow outbound HTTP, you would need one rule permitting TCP from an internal network to port 80 on any host, and a corresponding rule permitting TCP from any host on port 80 back to the internal network. This model cannot distinguish a legitimate HTTP response from an unsolicited incoming connection attempt, creating a larger attack surface. While stateless filtering is computationally cheaper and thus persists in high-throughput core routing (e.g., basic ACLs on Cisco IOS) or specific DDoS mitigation layers, its inherent limitations in security and administrative overhead have relegated it to niche roles.
In comparison, a stateful firewall maintains a dynamic state table, often implemented within the kernel's connection tracking subsystem (conntrack in Linux, pfstate in OpenBSD). This table holds entries for each active session (e.g., source/destination IP, source/destination port, and protocol) and the TCP state (e.g., SYN_SENT, ESTABLISHED, and FIN_WAIT). For a TCP handshake, the firewall inspects the initial SYN packet, creates a state, and then validates the returning SYN-ACK against that state before permitting it. This allows for a fundamental rule simplification: a single pass out rule for an outgoing connection implicitly creates a temporary, dynamic pass in rule for the return traffic. Stateful inspection is the de facto standard in modern firewalls like PF (where keep state is the default on pass rules) and nftables (which leverages the ct expression for state matching).
Stateless vs Stateful Firewalls
A stateful firewall can tell the difference between an outgoing request to a web server and the returning traffic, and it can automatically allow the return traffic for an established session. This is a fundamental security improvement.
While all modern firewalls are used in a stateful manner, their implementation differs. Some, like nftables, PF, ipfw, OPNsense, and pfSense are inherently stateful, with connection tracking as a core feature. Others like the Linux iptables framework achieve statefulness through the addition of the conntrack module and specific rules, which is considered a standard practice (statefulness comes from its connection tracking module, not the iptables command itself). Tools like UFW configure their underlying engines to be stateful by default.
How Statefulness is Implemented in Common Tools
nftables, PF, ipfw
Inherently
Stateful tracking is a built-in, core feature. (e.g., PF uses pass in proto tcp to port 22 keep state)
OPNsense / pfSense
Inherently
As distributions built on PF, statefulness is a fundamental, non-optional feature.
iptables
By Configuration
Relies on the conntrack module. A rule like -A INPUT -m conntrack --ctstate ESTABLISHED,RELATED -j ACCEPT enables statefulness.
UFW
By Default
As a front-end, it configures the underlying engine (iptables/nftables) to be stateful by default for ease of use.
Common States in conntrack
NEW
First packet of a new connection (e.g., TCP SYN).
ESTABLISHED
Packets belonging to an already-seen connection (e.g., TCP handshake completed).
RELATED
Packets related to an existing connection (e.g., FTP data connection).
INVALID
Malformed or suspicious packets (e.g., TCP RST without prior connection).
Stateless vs. Stateful Firewalls: A Summary
Context-Aware Traffic Filtering
None. Examines each packet in isolation with no memory of previous packets.
Full. Tracks the state of active connections (e.g., ESTABLISHED, RELATED) to make dynamic decisions.
Security Against Attacks
Limited. Cannot detect or block protocol-based attacks like TCP SYN floods or session hijacking.
Advanced. Can identify and block malicious traffic that abuses protocol states and unauthorized packets not part of a valid session.
Protection Against Spoofing & DoS
Basic. Can only block based on static IP/port rules, offering minimal protection against spoofing or flooding.
Robust. Recognizes abnormal traffic patterns (e.g., unexpected RST packets) and can enforce rate limiting per connection.
Granular Control Over Sessions
Static. Rules are fixed; cannot dynamically adjust for multi-stage protocols.
Dynamic. Can enforce policies based on connection state (e.g., allow only "established" or "related" traffic) and temporarily open ports for related sessions (e.g., FTP).
Support of Complex Protocols
Poor. Cannot handle protocols like FTP, SIP, or VoIP that require dynamic port negotiation.
Excellent. Tracks control sessions to automatically manage the data channels for complex protocols.
Performance
Lower resource usage per packet, making it suitable for very high-speed, simple filtering tasks.
Higher initial resource overhead for connection tracking, but more efficient for managing traffic within established sessions.
Advanced firewall types
Proxy Firewalls
A proxy firewall is the most secure type of firewall, acting as a dedicated gateway or intermediary between an internal network and the internet. Unlike traditional firewalls, it operates at the Application layer, filtering messages for specific protocols like HTTP, FTP, and SMTP. Its core security principle is preventing direct contact between internal systems and external servers; every connection is brokered by the proxy, which has its own IP address, effectively isolating the internal network. Instead of simply forwarding packets, the proxy firewall terminates client connections and initiates new ones to the server. This allows the proxy firewall to inspect the actual content of the traffic, such as specific HTTP commands, SQL queries or malicious URLs, which a Layer 3/4 packet filter is blind to.
The high level of security is achieved through deep inspection techniques. The proxy firewall doesn't just look at packet headers; it performs deep packet inspection (DPI) to analyze the actual contents of every packet flowing in and out. This allows it to assess threats, detect malware, validate data, and enforce corporate security policies at the application level. By centralizing all application activity through a single point, it provides a comprehensive view and control over network traffic that simpler firewalls cannot.
The connection process illustrates this intermediary role. When a user requests an external resource, their computer connects only to the proxy, not the final destination. The proxy then establishes a separate, independent connection to the external server on the user's behalf. It continuously analyzes all communication passing through these two connections, ensuring compliance and security before any data is relayed. This meticulous, application-aware process makes proxy firewalls extremely effective at preventing unauthorized access and advanced cyberattacks, though it can impact network speed and functionality due to the intensive inspection.
Web Application Firewalls (WAFs)
A Web Application Firewall (WAF) is a specialized security tool designed to protect web applications and APIs by inspecting Hypertext Transfer Protocol (HTTP/HTTPS) traffic. Its primary focus is on the application layer (Layer 7) of the OSI model, where it performs deep packet inspection to understand the actual content and intent of web requests. This allows it to identify and block sophisticated attack patterns that target application vulnerabilities, such as SQL Injection (SQLi), cross-site scripting (XSS), and other zero-day threats, before they reach the web server or users.
In contrast, a traditional network firewall operates at a broader level, typically controlling traffic between network segments based on IP addresses, ports, and protocols (Layers 3 and 4). Its main function is to establish a barrier between a trusted internal network and untrusted external networks, like the internet, by enforcing access control policies. It acts as a gatekeeper for all network traffic but lacks the granularity to inspect the contents of web traffic for application-specific attacks.
The need for a WAF has grown with the adoption of modern IT practices, including cloud services, SaaS, and BYOD policies, which expand the attack surface for web applications. While a network firewall is essential for foundational network perimeter security, it is not designed to understand the structure of web communications and therefore cannot defend against attacks embedded within legitimate web traffic. Consequently, these two firewalls are not replacements for each other but are complementary, layered defenses.
In summary, a network firewall secures the network infrastructure by controlling which traffic can enter or leave, whereas a WAF specifically secures business-critical web applications by analyzing the behavior and payload of web requests. For comprehensive protection, organizations require both: the network firewall to guard the network perimeter and the WAF to protect the applications exposed to the internet from targeted layer-7 attacks.
Host-Based WAF
ModSecurity (Apache/Nginx plugin)
Runs directly on the web server itself (e.g., as a module).
Network-Based WAF
Cloudflare WAF, HAProxy + ModSecurity
Deployed as a standalone appliance or cloud service, protecting multiple backend servers.
Next-Generation Firewalls (NGFWs)
The modern evolution is the Next-Generation Firewall (NGFW), which incorporates and expands upon all previous capabilities. NGFWs provide a more comprehensive, intelligent, and application-aware security posture for modern networks. NGFWs can perform stateful and Application layer packet filtering, in addition to more advanced inspection capabilities such as:
Deep Packet Inspection (DPI) & Application Awareness: Unlike basic firewalls that only inspect packet headers, DPI examines the actual data within the packet payload. This allows the NGFW to identify and control traffic based on the specific application (e.g., Facebook, Spotify) or service, regardless of the port it uses, and to classify and block malicious content.
Integrated Intrusion Prevention System (IPS): This feature actively scans for, blocks, and prevents known attack patterns, exploits, and vulnerabilities within the network traffic flow in real-time.
User & Group Identity Integration: Rules can be created to allow or block traffic based on a user's or group's identity (e.g., from Active Directory), moving beyond simple IP address-based filtering for more precise access control.
Threat Intelligence Feeds: NGFWs leverage dynamic, cloud-based threat intelligence to automatically block traffic to and from known malicious IP addresses, domains, and botnets.
The key differences between a traditional packet filtering firewall and an NGFW can be summarized as follows:
Primary OSI Layer
Layers 3 & 4 (Network & Transport)
Layers 3-7 (Network to Application)
Decision Basis
IP Address, Port, Protocol
IP, Port, Protocol, Application, User, Content
Connection Awareness
Stateless or Stateful
Stateful by default
Traffic Inspection
Header-only
Deep Packet Inspection (DPI) of payload
Additional Features
Basic NAT, basic logging
IPS, Anti-Virus, Threat Intelligence, Identity Awareness
UFW, iptables, nftables, PF, ipfw, OPNsense, and pfSense (CE) all have their foundation in packet filtering, and they can all be considered stateful packet filtering firewalls, but some have evolved into more sophisticated frameworks. For example, pfSense and OPNsense are complete, GUI-based firewall distributions (operating systems). They use PF (Packet Filter) as their core packet filtering engine. However, the systems themselves are full-featured NGFWs) because they include many features beyond simple packet filtering.
Firewalls key features
1. UFW (Uncomplicated Firewall)
Type: Host-based firewall (frontend for
iptables/nftables).Platform: Linux (Ubuntu default).
Key Features:
Simplified CLI for managing firewall rules (easier than raw
iptables).Supports IPv4 and IPv6.
Predefined application profiles (e.g., allow SSH, HTTP).
Integrates with
iptablesornftablesas the backend.Designed for simplicity, ideal for desktop users and beginners.
Use Case: Best for Linux beginners who need a simple, no-fuss host firewall.
2. iptables
Type: Host/network firewall (kernel-level).
Platform: Linux.
Key Features:
Traditional Linux firewall using Netfilter framework.
Rule-based system (chains: INPUT, OUTPUT, FORWARD).
Supports NAT, packet filtering, and stateful inspection.
Complex syntax (requires expertise).
Being replaced by
nftablesbut still widely used.
Use Case: Legacy Linux firewall for experts needing granular control. Predecessor to nftables. Part of the Linux kernel (Netfilter project), licensed under GPL.
3. nftables
Type: Host/network firewall (successor to
iptables).Platform: Linux (kernel ≥ 3.13).
Key Features:
Unified framework replacing
iptables,ip6tables,arptables, etc.Simplified syntax with JSON support.
Faster rule processing and better scalability (than iptables).
Supports sets and maps for dynamic rules.
Backward-compatible with
iptablesvia translation tools.
Use Case: Modern Linux firewall unifying and simplifying
iptablesrules. Modern successor to iptables, more flexible syntax. Also part of Linux (Netfilter), GPL-licensed.
4. PF (Packet Filter) / pfilter
Type: Host/network firewall.
Platform: BSD (OpenBSD default, also FreeBSD, macOS).
Key Features:
Stateful firewall with advanced features (NAT, QoS, traffic shaping).
Clean, readable rule syntax (e.g.,
pass in on eth0 proto tcp to port 22).Handles high traffic efficiently (better than iptables in some cases).
Supports logging, SYN proxy, and scrubbing.
Integrated in OpenBSD (security-focused).
Use Case: Powerful BSD firewall with clean syntax for servers/networks. More advanced than iptables, used in BSD-based firewalls. Originally from OpenBSD, now also in FreeBSD and others, BSD license. CLI based macOS built-in Unix firewall.
5. ipfw
Type: Host/network firewall.
Platform: FreeBSD (legacy), macOS (legacy, pre-macOS Sierra).
Key Features:
Traditional, stateful packet filter for BSD-based systems.
Uses a sequential rule numbering system and a consistent, predictable syntax.
Integrated with
dummynetfor advanced traffic shaping, bandwidth management, and network emulation.Provides a robust set of features for packet filtering, NAT, and logging.
Largely superseded by PF (
pfilter) on modern FreeBSD and macOS.
Use Case: Managing firewalls on legacy FreeBSD systems or older macOS versions, or for leveraging its integrated
dummynettraffic-shaping capabilities. Older BSD firewall, mostly replaced by PF. Found in FreeBSD (and older macOS versions), BSD license. OS/platform: FreeBSD, macOS (legacy)
6. OPNsense
Type: Network firewall/router (open-source fork of pfSense).
Platform: FreeBSD-based (dedicated appliance/VM).
Key Features:
Web GUI for easy management.
Supports VPN (OpenVPN, WireGuard), IDS/IPS (Suricata), and traffic shaping.
Regular updates with a focus on security and usability.
Plugins for extended functionality (e.g., Nginx, CrowdSec).
Community and commercial support options.
Use Case: Feature-rich open-source firewall with frequent updates for SMBs/enterprises.
7. pfSense (Community Edition)
Type: Network firewall/router.
Platform: FreeBSD-based (dedicated appliance/VM).
Key Features:
Fork of m0n0wall, widely used in enterprises.
Web GUI with advanced features (VPN, captive portal, CARP for HA).
Supports packages (Snort, Squid, HAProxy).
Stateful firewall, NAT, and traffic shaping.
Large community but slower updates than OPNsense.
Use Case: Reliable FreeBSD-based network firewall with a large support community.
Firewall Comparison Table
UFW
Host
Linux
No (CLI)
Very Easy
Yes
Yes
Limited
No
No
Yes
iptables
Host/Network
Linux
No (CLI)
Complex
Yes
Yes
Manual
No (add-ons)
Yes
Yes
nftables
Host/Network
Linux
No (CLI)
Moderate
Yes
Yes
Manual
No (add-ons)
Yes
Yes
ipfw
Host/Network
FreeBSD, macOS (legacy)
No (CLI)
Complex
Yes
Yes
Manual
No (add-ons)
Yes (via dummynet)
Yes
PF (pfilter)
Host/Network
OpenBSD, FreeBSD, macOS
No (CLI)
Moderate
Yes
Yes
Manual
No (add-ons)
Yes
Yes
OPNsense
Network
FreeBSD
Yes (Web)
Easy
Yes
Yes
OpenVPN/WireGuard
Suricata
Yes
Yes
pfSense CE
Network
FreeBSD
Yes (Web)
Easy
Yes
Yes
OpenVPN/IPsec
Snort
Yes
Yes
Firewall Selection Guide
A simple host firewall for a Linux desktop/server
UFW
Uncomplicated CLI, pre-configured profiles, and user-friendly.
Granular, expert-level control on a Linux system
iptables or nftables
Kernel-level power; choose nftables for a modern, unified syntax.
A powerful firewall for a BSD-based system or macOS
PF (Packet Filter)
Clean syntax, stateful filtering, and integrated into the OS.
A full network security appliance with a web GUI
OPNsense or pfSense
All-in-one solution (VPN, IDS/IPS, traffic shaping). Choose OPNsense for frequent updates and a modern approach, or pfSense for a vast, established community.
Summary
UFW: Best for Linux beginners needing simplicity.
iptables/nftables: For advanced Linux users (legacy vs. modern).
PF: Preferred on BSD for its clean syntax and power.
OPNsense/pfSense: Feature-rich network firewalls; OPNsense has faster updates, pfSense has a larger legacy user base.
IDS/IPS
Popular open source NIDS (Network IDS) and HIDS (Host IDS) include Suricata, Snort, Wazuh, OSSEC, Fail2Ban, Zeek (formerly Bro), Security Onion, and OpenWIPS-NG.
Technology focus: Suricata and Zeek (Bro).
IDS/IPS key features
1. Suricata
Type: NIDS/NIPS (Network Intrusion Detection/Prevention System).
Key Features:
High-performance, multi-threaded engine.
Supports real-time traffic analysis, automatic protocol detection (HTTP, DNS, TLS).
Rule-based detection (compatible with Snort rules).
File extraction (e.g., malware detection via YARA).
Supports EVE JSON for structured logging.
Can act as an IPS (inline blocking).
Use Case: Enterprise networks, high-speed traffic analysis.
2. Snort
Type: NIDS/NIPS.
Key Features:
The oldest and most widely used NIDS (since 1998).
Signature-based detection (custom/snort community rules).
Lightweight but single-threaded (lower throughput than Suricata).
Supports PCAP analysis for forensics.
Can be used as an IPS with inline mode.
Use Case: Small to medium networks, basic threat detection.
3. Wazuh
Type: HIDS + SIEM + Compliance.
Key Features:
Fork of OSSEC with added cloud/SIEM features.
Log analysis, file integrity monitoring (FIM), rootkit detection.
Supports MITRE ATT&CK mapping.
Centralized management via web UI.
Integrates with Elasticsearch for log storage.
Use Case: Endpoint security, compliance (PCI DSS, GDPR), and threat detection.
4. OSSEC
Type: HIDS.
Key Features:
Lightweight host-based monitoring.
Log analysis, file integrity checks, rootkit detection.
Active response (e.g., block IPs after brute-force attempts).
No native GUI (CLI-based, but Wazuh adds one).
Use Case: Server security, compliance monitoring, and log-based intrusion detection.
5. Fail2Ban
Type: HIDS (focused on log-based intrusion prevention).
Key Features:
Scans log files (e.g., SSH, Apache) for brute-force attacks.
Automatically bans malicious IPs (via iptables/nftables).
Lightweight, easy to configure.
Limited to log-based attacks (not full HIDS).
Use Case: Protecting servers from brute-force attacks.
6. Zeek (formerly Bro)
Type: NIDS + Network Traffic Analysis (NTA).
Key Features:
Protocol-aware traffic analysis (e.g., HTTP, DNS, SSL).
Generates detailed logs (
.logfiles) for forensic analysis.Behavioral detection (e.g., detecting C2 traffic).
No built-in IPS (passive monitoring only).
Use Case: Best for network monitoring, forensics, and anomaly detection (deep traffic analysis).
7. Security Onion
Type: NIDS/HIDS + SIEM + Network Monitoring.
Key Features:
All-in-one distro (includes Suricata, Zeek, Wazuh, Elasticsearch).
Full packet capture (via Stenographer).
SOC-friendly with dashboards (Kibana, Grafana).
Heavy resource requirements (best for dedicated hardware).
Use Case: Enterprise-grade network security monitoring.
8. OpenWIPS-NG
Type: Wireless IDS/IPS (specialized for Wi-Fi).
Key Features:
Detects rogue APs, evil twin attacks, deauthentication floods.
Supports RFMON mode for wireless monitoring.
Less maintained than others (but unique for Wi-Fi security).
Use Case: Wireless network security.
IDS/IPS Comparison Table
Suricata
NIDS/NIPS
Signature/Anomaly
High-speed, multi-threaded, file extraction
Yes (inline)
Web (e.g., Arkime)
EVE JSON, PCAP
Enterprise networks
Snort
NIDS/NIPS
Signature-based
Lightweight, widely supported
Yes (inline)
No (CLI)
PCAP, alerts
Legacy networks
Wazuh
HIDS/SIEM
Log/FIM/rootkit
MITRE ATT&CK, cloud integration
No (HIDS)
Yes
Elasticsearch
Compliance, cloud monitoring
OSSEC
HIDS
Log/FIM/rootkit
Lightweight, active response
No (HIDS)
No (CLI)
Text logs
Servers, endpoint security
Fail2Ban
HIDS (log)
Log parsing
Simple brute-force protection
Yes (via firewall)
No (CLI)
Syslog
SSH/web server protection
Zeek (Bro)
NIDS/NTA
Behavioral/protocol
Deep traffic analysis, forensics
No
No (CLI)
.log files
Research, network forensics
Security Onion
NIDS/HIDS/SIEM
Multiple engines
All-in-one SOC platform
Via Suricata
Yes (Kibana)
Elasticsearch, PCAP
Security Operations Centers
OpenWIPS-NG
Wireless IDS
Wi-Fi-specific attacks
Rogue AP detection
Limited
No (CLI)
Text logs
Wi-Fi security monitoring
IDS/IPS Selection Guide
High-speed network intrusion detection/prevention (NIDS/NIPS)
Suricata
Multi-threaded, high performance, and compatible with Snort rules.
A lightweight, well-known NIDS for smaller networks
Snort
The industry standard for decades, with extensive community support.
Deep network traffic analysis and forensics
Zeek (Bro)
Generates rich, structured logs of network protocols for behavioral analysis.
Host-based monitoring (HIDS) and compliance
Wazuh
Combines log analysis, FIM, vulnerability detection, and a central dashboard.
A lightweight HIDS for servers with active response
OSSEC
Lightweight, efficient, and can trigger actions like blocking IPs.
Protection against brute-force attacks on services
Fail2Ban
Scans logs and automatically blocks malicious IPs via the local firewall.
An all-in-one distributed security monitoring platform
Security Onion
Bundles Suricata, Zeek, Wazuh, and Elasticsearch for a complete SOC experience.
Summary
For Networks: Suricata (best performance), Snort (legacy), Zeek (deep analysis).
For Hosts: Wazuh (full SIEM), OSSEC (lightweight), Fail2Ban (log-based).
For SOCs: Security Onion (all-in-one).
For Wi-Fi: OpenWIPS-NG (specialized).
SIEM/EDR
Popular open source SIEM/EDR (Security Information and Event Management/Endpoint Detection and Response) technologies include Wazuh, TheHive, Zeek, OSSEC, Suricata, and Velociraptor.
Technology focus: Wazuh (SIEM/XDR).
SIEM/EDR key features
1. Wazuh
Type: SIEM + HIDS + Compliance
Key Features:
Log analysis, file integrity monitoring (FIM), vulnerability detection.
MITRE ATT&CK mapping for threat detection.
Endpoint protection (Linux, Windows, macOS).
Cloud/SaaS integration (AWS, Azure, GCP).
Centralized dashboard (Elastic Stack/Kibana).
Active response (e.g., blocking malicious IPs).
Use Case: Unified SIEM + endpoint security with compliance monitoring and threat detection.
2. TheHive
Type: Incident Response + Case Management (Not a SIEM/EDR, but complementary)
Key Features:
Collaborative platform for SOC teams.
Integrates with MISP (threat intelligence).
Automated workflows for incident handling.
No detection capabilities (relies on other tools like Wazuh/Suricata).
Use Case: Collaborative incident response platform for SOC teams.
3. Zeek (formerly Bro)
Type: Network Security Monitoring (NSM) + NTA
Key Features:
Protocol-aware traffic analysis (HTTP, DNS, SSL).
Behavioral detection (e.g., C2 traffic, anomalies).
Detailed logs (
.logfiles) for forensics.No built-in SIEM/EDR (passive monitoring).
Use Case: Network traffic analysis and behavioral threat detection via protocol logs.
4. OSSEC
Type: HIDS (Host-based IDS)
Key Features:
Log analysis, file integrity checks, rootkit detection.
Active response (e.g., block IPs after brute-force attempts).
No native GUI (CLI-based, but Wazuh extends it).
Lightweight, best for endpoint monitoring.
Use Case: Lightweight HIDS for log analysis, file integrity, and active response.
5. Suricata
Type: NIDS/NIPS (Network IDS/IPS)
Key Features:
Real-time traffic inspection (supports Snort rules).
File extraction (YARA for malware detection).
EVE JSON logs for structured data.
Can act as IPS (inline blocking).
Not an EDR (focused on network traffic).
Use Case: High-performance NIDS/NIPS with file extraction and IPS capabilities.
6. Velociraptor
Type: EDR + Digital Forensics
Key Features:
Endpoint visibility (Windows, Linux, macOS).
Hunt for threats (live query endpoints with VQL).
Memory forensics, artifact collection.
No built-in SIEM (but integrates with other tools).
Use Case: Endpoint hunting and forensic investigation with live querying.
SIEM/EDR Comparison Table
Wazuh
SIEM + HIDS
Log/FIM/vulnerability detection
MITRE ATT&CK, cloud support, Kibana
Yes (Elastic)
Basic EDR
Compliance, centralized monitoring
TheHive
Incident Response
None (case management)
SOC collaboration, MISP integration
Via APIs
No
Incident handling, teamwork
Zeek
Network Monitoring
Behavioral/protocol analysis
Deep traffic forensics
Via logs
No
Network forensics, research
OSSEC
HIDS
Log/FIM/rootkit detection
Lightweight, active response
Via Wazuh
No
Endpoint security
Suricata
NIDS/NIPS
Signature/anomaly detection
High-speed, file extraction, IPS mode
Via logs
No
Network traffic analysis
Velociraptor
EDR
Endpoint forensics, hunting
Live querying, memory analysis
Via APIs
Yes
Threat hunting, IR
SIEM/EDR Selection Guide
A unified SIEM with HIDS, compliance, and a dashboard
Wazuh
All-in-one open-source SIEM/XDR platform with strong integration capabilities.
Endpoint hunting, forensics, and live response
Velociraptor
Powerful query language (VQL) for deep investigation and artifact collection on endpoints.
Collaborative incident response and case management
TheHive
Manages security incidents, integrates with MISP, and streamlines SOC workflows.
To feed network traffic logs into your SIEM
Zeek or Suricata
Both generate structured logs (e.g., EVE JSON) that can be ingested by SIEMs like Wazuh.
Summary
SIEM: Wazuh (best all-in-one), OSSEC (lightweight HIDS).
EDR: Velociraptor (advanced forensics), Wazuh (basic endpoint protection).
Network Analysis: Zeek (deep inspection), Suricata (real-time IPS).
Incident Response: TheHive (case management).
Key takeaways
Popular open source host-based firewalls include nftables and pf.
Popular open source network-based firewalls include OPNsense and pfSense (CE).
Packet-filtering firewall technologies such as iptables and pfilter (PF) operate at the network level (Layer 3/4).
Firewall Roots: Linux uses Netfilter (iptables/nftables), BSD uses PF/ipfw, Windows uses WFP.
Use stateful firewalls when you need stronger security, session awareness, and protection against modern threats.
Use stateless firewalls for raw speed or when dealing with simple, static filtering.
WAFs operate at the Application level (L7) and can be host-based (ModSecurity) or network-based (Cloudflare WAF). Host WAF: Protects a single service (e.g., one NGINX instance). Network WAF: Protects all traffic before it reaches servers (e.g., a reverse proxy).
Popular open source HIDS include Wazuh and OSSEC.
Popular open source NIDS include Suricata and Snort.
Popular open source SIEM include Wazuh and TheHive.
References
Bejtlich, R. (2013). The practice of network security monitoring: Understanding incident detection and response. No Starch Press.
Chapple, M., Seidl, D., & Stewart, J. M. (2022). CISSP (ISC)2 certified information systems security professional official study guide (9th ed.). Sybex.
Last updated