Configuring Suricata for Network Monitoring
When to Use
- Deploying a high-performance IDS/IPS capable of multi-threaded packet processing for 10+ Gbps network links
- Monitoring network traffic with protocol-aware inspection for HTTP, TLS, DNS, SMB, and other protocols
- Generating structured EVE JSON logs for direct SIEM ingestion without custom parsers
- Running in inline (IPS) mode to actively block malicious traffic at network choke points
- Combining signature-based detection with protocol anomaly detection and file extraction
Do not use as a standalone security solution without complementary controls, for encrypted traffic inspection without TLS decryption capabilities, or on systems with insufficient CPU/memory for the expected traffic volume.
Prerequisites
- Suricata 7.0+ installed from PPA or source (
suricata --build-info)
- Network interface on a span port, tap, or inline bridge for traffic capture
- AF_PACKET or DPDK support for high-performance packet capture
- Emerging Threats Open or Pro ruleset subscription (or Snort Talos rules via oinkcode)
- suricata-update tool for automated rule management
- Elasticsearch/Kibana or Splunk for log analysis and visualization
Workflow
Step 1: Install Suricata and Dependencies
# Install from PPA (Ubuntu/Debian)
sudo add-apt-repository ppa:oisf/suricata-stable
sudo apt update
sudo apt install -y suricata suricata-update jq
# Verify installation
suricata --build-info | grep -E "Version|AF_PACKET|NFQueue"
# Or install from source for latest features
sudo apt install -y libpcre2-dev build-essential autoconf automake libtool \
libpcap-dev libnet1-dev libyaml-dev libjansson-dev libcap-ng-dev \
libmagic-dev libnetfilter-queue-dev libhiredis-dev rustc cargo cbindgen
git clone https://github.com/OISF/suricata.git
cd suricata && git clone https://github.com/OISF/libhtp.git -b 0.5.x
./autogen.sh && ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \
--enable-nfqueue --enable-af-packet
make -j$(nproc) && sudo make install install-conf
Step 2: Configure Network Interfaces
# Disable NIC offloading features
sudo ethtool -K eth1 gro off lro off tso off gso off rx off tx off sg off
# Set interface to promiscuous mode
sudo ip link set eth1 promisc on
# For high-performance deployments, configure AF_PACKET with multiple threads
# Edit /etc/suricata/suricata.yaml
Step 3: Configure suricata.yaml
# /etc/suricata/suricata.yaml (key sections)
# Network variables
vars:
address-groups:
HOME_NET: "[10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16]"
EXTERNAL_NET: "!$HOME_NET"
HTTP_SERVERS: "$HOME_NET"
DNS_SERVERS: "$HOME_NET"
SMTP_SERVERS: "$HOME_NET"
# Default rule path
default-rule-path: /var/lib/suricata/rules
rule-files:
- suricata.rules
# AF_PACKET configuration for high performance
af-packet:
- interface: eth1
threads: auto
cluster-id: 99
cluster-type: cluster_flow
defrag: yes
use-mmap: yes
ring-size: 200000
buffer-size: 262144
# EVE JSON logging (primary output format)
outputs:
- eve-log:
enabled: yes
filetype: regular
filename: eve.json
pcap-file: false
community-id: true
types:
- alert:
tagged-packets: yes
payload: yes
payload-printable: yes
http-body: yes
http-body-printable: yes
- http:
extended: yes
- dns:
query: yes
answer: yes
- tls:
extended: yes
- files:
force-magic: yes
force-hash: [md5, sha256]
- smtp:
extended: yes
- flow
- netflow
- anomaly:
enabled: yes
- stats:
totals: yes
threads: yes
# PCAP logging for captured packets that trigger alerts
- pcap-log:
enabled: yes
filename: alert-%n.pcap
limit: 100mb
max-files: 50
mode: normal
use-stream-depth: no
honor-pass-rules: no
# Stream engine settings
stream:
memcap: 512mb
checksum-validation: no
reassembly:
memcap: 1gb
depth: 1mb
toserver-chunk-size: 2560
toclient-chunk-size: 2560
# Detection engine
detect:
profile: high
custom-values:
toclient-groups: 200
toserver-groups: 200
sgh-mpm-context: auto
inspection-recursion-limit: 3000
# Protocol detection and parsing
app-layer:
protocols:
http:
enabled: yes
memcap: 64mb
tls:
enabled: yes
detection-ports:
dp: 443, 8443
ja3-fingerprints: yes
dns:
enabled: yes
tcp:
enabled: yes
udp:
enabled: yes
smb:
enabled: yes
detection-ports:
dp: 139, 445
ssh:
enabled: yes
hassh: yes
Step 4: Download and Manage Rulesets
# Update Suricata rules using suricata-update
sudo suricata-update
# Enable additional rule sources
sudo suricata-update list-sources
sudo suricata-update enable-source et/open
sudo suricata-update enable-source oisf/trafficid
sudo suricata-update enable-source ptresearch/attackdetection
# Update with all enabled sources
sudo suricata-update
# Check rule statistics
sudo suricata-update list-sources --enabled
wc -l /var/lib/suricata/rules/suricata.rules
# Disable noisy rules
sudo tee /etc/suricata/disable.conf << 'EOF'
# Disable overly broad rules
2100498
2013028
2210000-2210050
group:emerging-policy.rules
EOF
# Create custom local rules
sudo tee /etc/suricata/rules/local.rules << 'EOF'
# Detect reverse shell connections
alert tcp $HOME_NET any -> $EXTERNAL_NET 4444 (msg:"LOCAL Reverse Shell Port 4444"; flow:established,to_server; content:"|2f 62 69 6e 2f|"; sid:9000001; rev:1; classtype:trojan-activity; priority:1;)
# Detect DNS tunneling by query length
alert dns $HOME_NET any -> any any (msg:"LOCAL DNS Tunneling Long Query"; dns.query; content:"."; offset:50; sid:9000002; rev:1; classtype:policy-violation; priority:2;)
# Detect TLS to suspicious JA3 hash (Cobalt Strike default)
alert tls $HOME_NET any -> $EXTERNAL_NET any (msg:"LOCAL Cobalt Strike JA3 Hash"; ja3.hash; content:"72a589da586844d7f0818ce684948eea"; sid:9000003; rev:1; classtype:trojan-activity; priority:1;)
# Detect SSH brute force
alert ssh $EXTERNAL_NET any -> $HOME_NET 22 (msg:"LOCAL SSH Brute Force Attempt"; flow:to_server; threshold:type both, track by_src, count 10, seconds 60; sid:9000004; rev:1; classtype:attempted-admin; priority:2;)
# Detect data exfiltration via HTTP POST (large uploads)
alert http $HOME_NET any -> $EXTERNAL_NET any (msg:"LOCAL Large HTTP POST Upload"; flow:to_server,established; http.method; content:"POST"; http.content_len; content:">"; byte_test:8,>,10000000,0,string; sid:9000005; rev:1; classtype:policy-violation; priority:2;)
EOF
# Add local rules to configuration
echo " - local.rules" | sudo tee -a /etc/suricata/suricata.yaml
Step 5: Deploy and Validate
# Validate configuration
sudo suricata -T -c /etc/suricata/suricata.yaml -v
# Run Suricata in IDS mode
sudo suricata -c /etc/suricata/suricata.yaml --af-packet=eth1 -D
# Or run in IPS mode (inline with NFQueue)
# First configure iptables to send traffic to NFQueue
# sudo iptables -I FORWARD -j NFQUEUE --queue-num 0
# sudo suricata -c /etc/suricata/suricata.yaml -q 0 -D
# Create systemd service
sudo tee /etc/systemd/system/suricata.service << 'EOF'
[Unit]
Description=Suricata IDS/IPS
After=network.target
Requires=network.target
[Service]
Type=simple
ExecStartPre=/usr/bin/suricata -T -c /etc/suricata/suricata.yaml
ExecStart=/usr/bin/suricata -c /etc/suricata/suricata.yaml --af-packet=eth1 --pidfile /var/run/suricata.pid
ExecReload=/bin/kill -USR2 $MAINPID
Restart=on-failure
[Install]
WantedBy=multi-user.target
EOF
sudo systemctl enable --now suricata
# Test with a known signature
curl http://testmynids.org/uid/index.html
# Should trigger ET GPL rule for uid.
# Verify alerts are generated
sudo tail -f /var/log/suricata/eve.json | jq 'select(.event_type=="alert")'
Step 6: Integrate with SIEM and Monitor
# Parse EVE JSON with jq for quick analysis
# Top 10 alerts
cat /var/log/suricata/eve.json | jq -r 'select(.event_type=="alert") | .alert.signature' | sort | uniq -c | sort -rn | head -10
# Extract IOCs from alerts
cat /var/log/suricata/eve.json | jq -r 'select(.event_type=="alert") | [.timestamp, .src_ip, .dest_ip, .alert.signature, .alert.severity] | @csv' > alert_summary.csv
# JA3 fingerprint analysis
cat /var/log/suricata/eve.json | jq -r 'select(.event_type=="tls") | [.src_ip, .tls.ja3.hash, .tls.sni] | @csv' | sort | uniq -c | sort -rn
# DNS query analysis
cat /var/log/suricata/eve.json | jq -r 'select(.event_type=="dns" and .dns.type=="query") | [.src_ip, .dns.rrname, .dns.rrtype] | @csv' | sort | uniq -c | sort -rn | head -20
# Configure Filebeat for Elastic integration
sudo tee /etc/filebeat/modules.d/suricata.yml << 'EOF'
- module: suricata
eve:
enabled: true
var.paths: ["/var/log/suricata/eve.json"]
EOF
sudo filebeat modules enable suricata
sudo systemctl restart filebeat
# Monitor Suricata performance
cat /var/log/suricata/eve.json | jq 'select(.event_type=="stats") | .stats.capture' | tail -1
# Check for packet drops: kernel_drops should be 0
Key Concepts
| Term |
Definition |
| EVE JSON |
Suricata's primary logging format producing structured JSON events for alerts, protocol metadata, flow records, and statistics |
| AF_PACKET |
Linux kernel packet capture mechanism used by Suricata for high-performance traffic capture with kernel-bypass capabilities |
| JA3/JA3S |
TLS fingerprinting method that creates hash values from TLS Client Hello and Server Hello parameters for identifying applications and malware |
| HASSH |
SSH fingerprinting method similar to JA3 that creates hashes from SSH key exchange parameters to identify SSH client and server implementations |
| Community ID |
Standardized flow identifier hash that enables correlation of the same network flow across different monitoring tools (Suricata, Zeek, Wireshark) |
| suricata-update |
Official rule management tool that downloads, merges, and manages multiple rulesets with enable/disable controls |
Tools & Systems
- Suricata 7.0+: Open-source multi-threaded IDS/IPS/NSM engine with protocol detection, file extraction, and JA3/HASSH fingerprinting
- suricata-update: Ruleset management tool supporting ET Open, ET Pro, Snort rules, and custom rule sources
- Elastic Stack (ELK): Log aggregation and visualization platform with native Suricata module in Filebeat for dashboards and alerting
- Scirius: Web-based Suricata rule management interface for editing, enabling/disabling, and monitoring rule performance
- Evebox: Lightweight event viewer for Suricata EVE JSON logs with alert management and escalation capabilities
Common Scenarios
Scenario: Deploying Suricata IDS on a 10 Gbps Enterprise Network Perimeter
Context: A technology company needs to deploy IDS at their internet egress point handling 10 Gbps of traffic. They require protocol-level metadata logging for threat hunting, signature-based alerting for known threats, and JA3 fingerprinting for detecting malware C2 communications. Alerts must feed into their Elastic SIEM.
Approach:
- Deploy Suricata on a server with 16 CPU cores, 64 GB RAM, and dual 10G NICs using AF_PACKET with 14 worker threads
- Enable ET Open and ptresearch/attackdetection rulesets via suricata-update, totaling approximately 35,000 active rules
- Configure EVE JSON logging with community-id, extended HTTP/TLS/DNS metadata, and file hashing (MD5 + SHA256)
- Enable JA3 and HASSH fingerprinting for TLS and SSH traffic profiling
- Write custom rules for organization-specific threats: known bad JA3 hashes, DNS queries to DGA domains, large data uploads to uncommon destinations
- Integrate with Elastic via Filebeat's Suricata module, deploying pre-built Kibana dashboards for real-time visibility
- Tune rules over a 2-week baseline period, disabling false-positive generators and adjusting thresholds
Pitfalls:
- Not allocating sufficient CPU threads, causing packet drops at peak traffic volumes
- Enabling all available rules without tuning, overwhelming analysts with false positives
- Forgetting to disable NIC offloading, resulting in incorrect checksums and missed detections
- Not enabling community-id, making it difficult to correlate Suricata events with Zeek or other tools
Output Format
## Suricata IDS Deployment Report
**Sensor**: suricata-gw-01 (10.10.1.251)
**Interface**: eth1 (span from border router)
**Configuration**: /etc/suricata/suricata.yaml
**Worker Threads**: 14 AF_PACKET threads
**Active Rules**: 35,247 (ET Open + Custom)
### Performance Metrics (24-hour)
| Metric | Value |
|--------|-------|
| Packets Processed | 847,293,421 |
| Kernel Drops | 0 (0.000%) |
| Alerts Generated | 1,247 |
| Unique Signatures Fired | 89 |
| JA3 Fingerprints Observed | 342 unique |
| Files Extracted | 2,847 |
### Top 10 Alert Signatures
| Count | SID | Signature | Severity |
|-------|-----|-----------|----------|
| 312 | 2024897 | ET POLICY curl User-Agent Outbound | 3 |
| 189 | 9000003 | LOCAL Cobalt Strike JA3 Hash | 1 |
| 145 | 2028765 | ET SCAN Nmap SYN Scan | 2 |
| 98 | 9000002 | LOCAL DNS Tunneling Long Query | 2 |
### Critical Alerts Requiring Immediate Triage
1. SID 9000003: Cobalt Strike JA3 from 10.10.5.12 to 203.0.113.50 (189 alerts)
2. SID 9000002: DNS tunneling from 10.10.3.45 to suspect-domain.xyz (98 alerts)
1---2name: configuring-suricata-for-network-monitoring3description: >4 Deploys and configures Suricata IDS/IPS with Emerging Threats rulesets, EVE JSON5 logging, and custom rules for real-time network traffic inspection, threat detection,6 and integration with SIEM platforms for centralized security monitoring.7domain: cybersecurity8subdomain: network-security9tags: [network-security, suricata, ids, ips, network-monitoring]10version: "1.0"11author: mahipal12license: MIT13metadata:14 source: https://skillmd.com/skills/njones17/configuring-suricata-for-network-monitoring15---1617# Configuring Suricata for Network Monitoring1819## When to Use2021- Deploying a high-performance IDS/IPS capable of multi-threaded packet processing for 10+ Gbps network links22- Monitoring network traffic with protocol-aware inspection for HTTP, TLS, DNS, SMB, and other protocols23- Generating structured EVE JSON logs for direct SIEM ingestion without custom parsers24- Running in inline (IPS) mode to actively block malicious traffic at network choke points25- Combining signature-based detection with protocol anomaly detection and file extraction2627**Do not use** as a standalone security solution without complementary controls, for encrypted traffic inspection without TLS decryption capabilities, or on systems with insufficient CPU/memory for the expected traffic volume.2829## Prerequisites3031- Suricata 7.0+ installed from PPA or source (`suricata --build-info`)32- Network interface on a span port, tap, or inline bridge for traffic capture33- AF_PACKET or DPDK support for high-performance packet capture34- Emerging Threats Open or Pro ruleset subscription (or Snort Talos rules via oinkcode)35- suricata-update tool for automated rule management36- Elasticsearch/Kibana or Splunk for log analysis and visualization3738## Workflow3940### Step 1: Install Suricata and Dependencies4142```bash43# Install from PPA (Ubuntu/Debian)44sudo add-apt-repository ppa:oisf/suricata-stable45sudo apt update46sudo apt install -y suricata suricata-update jq4748# Verify installation49suricata --build-info | grep -E "Version|AF_PACKET|NFQueue"5051# Or install from source for latest features52sudo apt install -y libpcre2-dev build-essential autoconf automake libtool \53 libpcap-dev libnet1-dev libyaml-dev libjansson-dev libcap-ng-dev \54 libmagic-dev libnetfilter-queue-dev libhiredis-dev rustc cargo cbindgen55git clone https://github.com/OISF/suricata.git56cd suricata && git clone https://github.com/OISF/libhtp.git -b 0.5.x57./autogen.sh && ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \58 --enable-nfqueue --enable-af-packet59make -j$(nproc) && sudo make install install-conf60```6162### Step 2: Configure Network Interfaces6364```bash65# Disable NIC offloading features66sudo ethtool -K eth1 gro off lro off tso off gso off rx off tx off sg off6768# Set interface to promiscuous mode69sudo ip link set eth1 promisc on7071# For high-performance deployments, configure AF_PACKET with multiple threads72# Edit /etc/suricata/suricata.yaml73```7475### Step 3: Configure suricata.yaml7677```yaml78# /etc/suricata/suricata.yaml (key sections)7980# Network variables81vars:82 address-groups:83 HOME_NET: "[10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16]"84 EXTERNAL_NET: "!$HOME_NET"85 HTTP_SERVERS: "$HOME_NET"86 DNS_SERVERS: "$HOME_NET"87 SMTP_SERVERS: "$HOME_NET"8889# Default rule path90default-rule-path: /var/lib/suricata/rules91rule-files:92 - suricata.rules9394# AF_PACKET configuration for high performance95af-packet:96 - interface: eth197 threads: auto98 cluster-id: 9999 cluster-type: cluster_flow100 defrag: yes101 use-mmap: yes102 ring-size: 200000103 buffer-size: 262144104105# EVE JSON logging (primary output format)106outputs:107 - eve-log:108 enabled: yes109 filetype: regular110 filename: eve.json111 pcap-file: false112 community-id: true113 types:114 - alert:115 tagged-packets: yes116 payload: yes117 payload-printable: yes118 http-body: yes119 http-body-printable: yes120 - http:121 extended: yes122 - dns:123 query: yes124 answer: yes125 - tls:126 extended: yes127 - files:128 force-magic: yes129 force-hash: [md5, sha256]130 - smtp:131 extended: yes132 - flow133 - netflow134 - anomaly:135 enabled: yes136 - stats:137 totals: yes138 threads: yes139140 # PCAP logging for captured packets that trigger alerts141 - pcap-log:142 enabled: yes143 filename: alert-%n.pcap144 limit: 100mb145 max-files: 50146 mode: normal147 use-stream-depth: no148 honor-pass-rules: no149150# Stream engine settings151stream:152 memcap: 512mb153 checksum-validation: no154 reassembly:155 memcap: 1gb156 depth: 1mb157 toserver-chunk-size: 2560158 toclient-chunk-size: 2560159160# Detection engine161detect:162 profile: high163 custom-values:164 toclient-groups: 200165 toserver-groups: 200166 sgh-mpm-context: auto167 inspection-recursion-limit: 3000168169# Protocol detection and parsing170app-layer:171 protocols:172 http:173 enabled: yes174 memcap: 64mb175 tls:176 enabled: yes177 detection-ports:178 dp: 443, 8443179 ja3-fingerprints: yes180 dns:181 enabled: yes182 tcp:183 enabled: yes184 udp:185 enabled: yes186 smb:187 enabled: yes188 detection-ports:189 dp: 139, 445190 ssh:191 enabled: yes192 hassh: yes193```194195### Step 4: Download and Manage Rulesets196197```bash198# Update Suricata rules using suricata-update199sudo suricata-update200201# Enable additional rule sources202sudo suricata-update list-sources203sudo suricata-update enable-source et/open204sudo suricata-update enable-source oisf/trafficid205sudo suricata-update enable-source ptresearch/attackdetection206207# Update with all enabled sources208sudo suricata-update209210# Check rule statistics211sudo suricata-update list-sources --enabled212wc -l /var/lib/suricata/rules/suricata.rules213214# Disable noisy rules215sudo tee /etc/suricata/disable.conf << 'EOF'216# Disable overly broad rules217210049821820130282192210000-2210050220group:emerging-policy.rules221EOF222223# Create custom local rules224sudo tee /etc/suricata/rules/local.rules << 'EOF'225# Detect reverse shell connections226alert tcp $HOME_NET any -> $EXTERNAL_NET 4444 (msg:"LOCAL Reverse Shell Port 4444"; flow:established,to_server; content:"|2f 62 69 6e 2f|"; sid:9000001; rev:1; classtype:trojan-activity; priority:1;)227228# Detect DNS tunneling by query length229alert dns $HOME_NET any -> any any (msg:"LOCAL DNS Tunneling Long Query"; dns.query; content:"."; offset:50; sid:9000002; rev:1; classtype:policy-violation; priority:2;)230231# Detect TLS to suspicious JA3 hash (Cobalt Strike default)232alert tls $HOME_NET any -> $EXTERNAL_NET any (msg:"LOCAL Cobalt Strike JA3 Hash"; ja3.hash; content:"72a589da586844d7f0818ce684948eea"; sid:9000003; rev:1; classtype:trojan-activity; priority:1;)233234# Detect SSH brute force235alert ssh $EXTERNAL_NET any -> $HOME_NET 22 (msg:"LOCAL SSH Brute Force Attempt"; flow:to_server; threshold:type both, track by_src, count 10, seconds 60; sid:9000004; rev:1; classtype:attempted-admin; priority:2;)236237# Detect data exfiltration via HTTP POST (large uploads)238alert http $HOME_NET any -> $EXTERNAL_NET any (msg:"LOCAL Large HTTP POST Upload"; flow:to_server,established; http.method; content:"POST"; http.content_len; content:">"; byte_test:8,>,10000000,0,string; sid:9000005; rev:1; classtype:policy-violation; priority:2;)239EOF240241# Add local rules to configuration242echo " - local.rules" | sudo tee -a /etc/suricata/suricata.yaml243```244245### Step 5: Deploy and Validate246247```bash248# Validate configuration249sudo suricata -T -c /etc/suricata/suricata.yaml -v250251# Run Suricata in IDS mode252sudo suricata -c /etc/suricata/suricata.yaml --af-packet=eth1 -D253254# Or run in IPS mode (inline with NFQueue)255# First configure iptables to send traffic to NFQueue256# sudo iptables -I FORWARD -j NFQUEUE --queue-num 0257# sudo suricata -c /etc/suricata/suricata.yaml -q 0 -D258259# Create systemd service260sudo tee /etc/systemd/system/suricata.service << 'EOF'261[Unit]262Description=Suricata IDS/IPS263After=network.target264Requires=network.target265266[Service]267Type=simple268ExecStartPre=/usr/bin/suricata -T -c /etc/suricata/suricata.yaml269ExecStart=/usr/bin/suricata -c /etc/suricata/suricata.yaml --af-packet=eth1 --pidfile /var/run/suricata.pid270ExecReload=/bin/kill -USR2 $MAINPID271Restart=on-failure272273[Install]274WantedBy=multi-user.target275EOF276277sudo systemctl enable --now suricata278279# Test with a known signature280curl http://testmynids.org/uid/index.html281# Should trigger ET GPL rule for uid.282283# Verify alerts are generated284sudo tail -f /var/log/suricata/eve.json | jq 'select(.event_type=="alert")'285```286287### Step 6: Integrate with SIEM and Monitor288289```bash290# Parse EVE JSON with jq for quick analysis291# Top 10 alerts292cat /var/log/suricata/eve.json | jq -r 'select(.event_type=="alert") | .alert.signature' | sort | uniq -c | sort -rn | head -10293294# Extract IOCs from alerts295cat /var/log/suricata/eve.json | jq -r 'select(.event_type=="alert") | [.timestamp, .src_ip, .dest_ip, .alert.signature, .alert.severity] | @csv' > alert_summary.csv296297# JA3 fingerprint analysis298cat /var/log/suricata/eve.json | jq -r 'select(.event_type=="tls") | [.src_ip, .tls.ja3.hash, .tls.sni] | @csv' | sort | uniq -c | sort -rn299300# DNS query analysis301cat /var/log/suricata/eve.json | jq -r 'select(.event_type=="dns" and .dns.type=="query") | [.src_ip, .dns.rrname, .dns.rrtype] | @csv' | sort | uniq -c | sort -rn | head -20302303# Configure Filebeat for Elastic integration304sudo tee /etc/filebeat/modules.d/suricata.yml << 'EOF'305- module: suricata306 eve:307 enabled: true308 var.paths: ["/var/log/suricata/eve.json"]309EOF310311sudo filebeat modules enable suricata312sudo systemctl restart filebeat313314# Monitor Suricata performance315cat /var/log/suricata/eve.json | jq 'select(.event_type=="stats") | .stats.capture' | tail -1316# Check for packet drops: kernel_drops should be 0317```318319## Key Concepts320321| Term | Definition |322|------|------------|323| **EVE JSON** | Suricata's primary logging format producing structured JSON events for alerts, protocol metadata, flow records, and statistics |324| **AF_PACKET** | Linux kernel packet capture mechanism used by Suricata for high-performance traffic capture with kernel-bypass capabilities |325| **JA3/JA3S** | TLS fingerprinting method that creates hash values from TLS Client Hello and Server Hello parameters for identifying applications and malware |326| **HASSH** | SSH fingerprinting method similar to JA3 that creates hashes from SSH key exchange parameters to identify SSH client and server implementations |327| **Community ID** | Standardized flow identifier hash that enables correlation of the same network flow across different monitoring tools (Suricata, Zeek, Wireshark) |328| **suricata-update** | Official rule management tool that downloads, merges, and manages multiple rulesets with enable/disable controls |329330## Tools & Systems331332- **Suricata 7.0+**: Open-source multi-threaded IDS/IPS/NSM engine with protocol detection, file extraction, and JA3/HASSH fingerprinting333- **suricata-update**: Ruleset management tool supporting ET Open, ET Pro, Snort rules, and custom rule sources334- **Elastic Stack (ELK)**: Log aggregation and visualization platform with native Suricata module in Filebeat for dashboards and alerting335- **Scirius**: Web-based Suricata rule management interface for editing, enabling/disabling, and monitoring rule performance336- **Evebox**: Lightweight event viewer for Suricata EVE JSON logs with alert management and escalation capabilities337338## Common Scenarios339340### Scenario: Deploying Suricata IDS on a 10 Gbps Enterprise Network Perimeter341342**Context**: A technology company needs to deploy IDS at their internet egress point handling 10 Gbps of traffic. They require protocol-level metadata logging for threat hunting, signature-based alerting for known threats, and JA3 fingerprinting for detecting malware C2 communications. Alerts must feed into their Elastic SIEM.343344**Approach**:3451. Deploy Suricata on a server with 16 CPU cores, 64 GB RAM, and dual 10G NICs using AF_PACKET with 14 worker threads3462. Enable ET Open and ptresearch/attackdetection rulesets via suricata-update, totaling approximately 35,000 active rules3473. Configure EVE JSON logging with community-id, extended HTTP/TLS/DNS metadata, and file hashing (MD5 + SHA256)3484. Enable JA3 and HASSH fingerprinting for TLS and SSH traffic profiling3495. Write custom rules for organization-specific threats: known bad JA3 hashes, DNS queries to DGA domains, large data uploads to uncommon destinations3506. Integrate with Elastic via Filebeat's Suricata module, deploying pre-built Kibana dashboards for real-time visibility3517. Tune rules over a 2-week baseline period, disabling false-positive generators and adjusting thresholds352353**Pitfalls**:354- Not allocating sufficient CPU threads, causing packet drops at peak traffic volumes355- Enabling all available rules without tuning, overwhelming analysts with false positives356- Forgetting to disable NIC offloading, resulting in incorrect checksums and missed detections357- Not enabling community-id, making it difficult to correlate Suricata events with Zeek or other tools358359## Output Format360361```362## Suricata IDS Deployment Report363364**Sensor**: suricata-gw-01 (10.10.1.251)365**Interface**: eth1 (span from border router)366**Configuration**: /etc/suricata/suricata.yaml367**Worker Threads**: 14 AF_PACKET threads368**Active Rules**: 35,247 (ET Open + Custom)369370### Performance Metrics (24-hour)371372| Metric | Value |373|--------|-------|374| Packets Processed | 847,293,421 |375| Kernel Drops | 0 (0.000%) |376| Alerts Generated | 1,247 |377| Unique Signatures Fired | 89 |378| JA3 Fingerprints Observed | 342 unique |379| Files Extracted | 2,847 |380381### Top 10 Alert Signatures382383| Count | SID | Signature | Severity |384|-------|-----|-----------|----------|385| 312 | 2024897 | ET POLICY curl User-Agent Outbound | 3 |386| 189 | 9000003 | LOCAL Cobalt Strike JA3 Hash | 1 |387| 145 | 2028765 | ET SCAN Nmap SYN Scan | 2 |388| 98 | 9000002 | LOCAL DNS Tunneling Long Query | 2 |389390### Critical Alerts Requiring Immediate Triage3911. SID 9000003: Cobalt Strike JA3 from 10.10.5.12 to 203.0.113.50 (189 alerts)3922. SID 9000002: DNS tunneling from 10.10.3.45 to suspect-domain.xyz (98 alerts)393```