run_pcap
Runs Snort rules against a registered PCAP to return alert totals, SID counts, first alerts, and stream caveats for offline detection validation.
Instructions
Run rules against a registered pcap. Returns the run id, total alerts, counts by SID with msg, the first alerts, and stream_caveats (flows where Snort cannot inspect un-ACKed data). home_net is an IP/CIDR or list like '[10.0.0.0/8,192.168.0.0/16]'; no raw Lua is accepted. Example: run_pcap(pcap_id="e-0001", rules_id="e-0002", home_net="10.0.0.0/8")
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"pcap_id": "<pcap_id>"
},
"name": "run_pcap"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pcap_id | Yes | ||
| profile | No | ||
| home_net | No | ||
| rules_id | No | ||
| rules_text | No | ||
| external_net | No | ||
| flush_one_sided | No |