suricata-offline-evejson
Runs Suricata analysis on offline packet captures and parses eve.json outputs for result validation.
Install
mkdir -p .claude/skills/suricata-offline-evejson && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/6187" && unzip -o skill.zip -d .claude/skills/suricata-offline-evejson && rm skill.zipInstalls to .claude/skills/suricata-offline-evejson
Activation
This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.
Running Suricata against PCAPs offline and validating results via eve.jsonKey capabilities
- →Run Suricata offline against PCAP files
- →Validate threat detection rules
- →Inspect structured alerts in eve.json
- →Automate rule testing with positive and negative traffic
How it works
The skill invokes the Suricata engine in offline mode using the -r flag to process PCAP files and generates structured logs in a specified directory.
Inputs & outputs
When to use suricata-offline-evejson
- →Analyze network PCAP files
- →Validate threat detection rules
- →Review security event logs
- →Audit network traffic patterns
About this skill
Suricata Offline Mode + EVE JSON
This skill covers running Suricata against PCAPs offline and validating results via eve.json.
Run Suricata on a PCAP
Typical offline invocation:
suricata -c /root/suricata.yaml -S /root/local.rules -k none -r /root/sample.pcap -l /tmp/suri
Flags:
-r <pcap>: replay a PCAP offline-S <rules>: load only the specified rules file-l <dir>: log directory (will containeve.json)-k none: ignore checksum issues
Inspect alerts in EVE JSON
Count alerts:
jq -r 'select(.event_type=="alert") | .alert.signature_id' /tmp/suri/eve.json | wc -l
See alert ids and messages:
jq -r 'select(.event_type=="alert") | [.alert.signature_id,.alert.signature] | @tsv' /tmp/suri/eve.json
Practical tips
- Always check Suricata exits cleanly (no rule parse errors).
- Use a fresh
-ldirectory per run to avoid mixing logs. - Ensure your rule triggers only on the intended traffic by testing positive and negative PCAPs.
Tight feedback loop (recommended)
When iterating on /root/local.rules, use this loop:
# 1) Validate rule syntax
suricata -T -c /root/suricata.yaml -S /root/local.rules
# 2) Run on known-positive traffic
suricata -c /root/suricata.yaml -S /root/local.rules -k none -r /root/pcaps/train_pos.pcap -l /tmp/suri-pos
jq -r 'select(.event_type=="alert") | .alert.signature_id' /tmp/suri-pos/eve.json | sort -n | uniq -c
# 3) Run on known-negative traffic
suricata -c /root/suricata.yaml -S /root/local.rules -k none -r /root/pcaps/train_neg.pcap -l /tmp/suri-neg
jq -r 'select(.event_type=="alert") | .alert.signature_id' /tmp/suri-neg/eve.json | sort -n | uniq -c
If you prefer a one-command summary, see scripts/run_suricata_offline.sh in this skill folder.
When not to use it
- →Real-time network traffic monitoring
- →Live intrusion detection system deployment
Prerequisites
Limitations
- →Depends on clean exit of Suricata for log integrity
How it compares
It automates the manual process of replaying traffic and parsing JSON logs, providing a structured feedback loop for rule development.
Compared to similar skills
suricata-offline-evejson side by side with the closest alternatives in the catalog.
| Skill | Installs | Updated | Safety | Difficulty |
|---|---|---|---|---|
| suricata-offline-evejson (this skill) | 1 | 6mo | Review | Intermediate |
| protocol-reverse-engineering | 9 | 6mo | Review | Advanced |
| equilateral-agents | 5 | 9mo | No flags | Intermediate |
| secops-triage | 4 | 7mo | No flags | Intermediate |
Try saying
Example prompts that trigger this skill in your AI assistant.
More by benchflow-ai
View all by benchflow-ai →You might also like
protocol-reverse-engineering
wshobson
Master network protocol reverse engineering including packet analysis, protocol dissection, and custom protocol documentation. Use when analyzing network traffic, understanding proprietary protocols, or debugging network communication.
equilateral-agents
Equilateral-AI
22 production-ready AI agents with database-driven orchestration for security reviews, code quality analysis, deployment validation, infrastructure checks, and compliance. Auto-activates for security concerns, deployment tasks, code reviews, quality checks, and compliance questions. Includes upgrade paths to enterprise features (GDPR, HIPAA, multi-account AWS, ML-based optimization).
secops-triage
Expert guidance for security alert triage. Use this when the user asks to "triage" an alert or case.
netflows
BrownFineSecurity
Network flow extractor that analyzes pcap/pcapng files to identify outbound connections with automatic DNS hostname resolution. Use when you need to enumerate network destinations, identify what hosts a device communicates with, or map IP addresses to hostnames from packet captures.
azure-bgp
benchflow-ai
Analyze and resolve BGP oscillation and BGP route leaks in Azure Virtual WAN–style hub-and-spoke topologies (and similar cloud-managed BGP environments). Detect preference cycles, identify valley-free violations, and propose allowed policy-level mitigations while rejecting prohibited fixes.
secops-investigate
Expert guidance for deep security investigations. Use this when the user asks to "investigate" a case, entity, or incident.