---
name: "snort-network-intrusion-detection"
description: "Inspect real-time network traffic and author custom signature rules with Snort 3."
metadata:
  author: "Cisco Talos"
  version: "1.0.0"
  runtime_compatibility:
    - "codex"
    - "claude-code"
    - "cursor"
    - "windsurf"
triggers:
  - "write snort 3 rule"
  - "configure snort 3 daq"
  - "run snort network inspection"
permissions:
  fs_read: true
  fs_write: "workspace"
  shell_exec: false
  net_access: false
---

# Snort 3 Packet Inspection & Rule Authoring

Configures Snort 3 network intrusion detection: multi-threaded DAQ packet acquisition, rule syntax (alert, drop, content, pcre), OpenAppID application detection, and protocol inspectors.

## When to Invoke
Invoke this skill whenever you need to:
- write snort 3 rule
- configure snort 3 daq
- run snort network inspection

## Execution SOP & Rules
1. Write rules using Snort 3 syntax: alert tcp any any -> $HOME_NET 80 (msg:"Exploit attempt"; content:"malicious"; sid:1000001;).
2. Configure snort.lua with network interfaces and enabled rule paths.
3. Run snort against offline pcaps: snort -c /etc/snort/snort.lua -r capture.pcap.
4. Validate rule syntax with snort -c /etc/snort/snort.lua --warn-all.

## Verification Checklist
- Run local linting, syntax validation, and type-checks before reporting completion.
- Ensure all created or modified files adhere to workspace boundaries and avoid uncommitted secrets.
- Verify tests or build commands exit cleanly with return code 0.
