Pcornel
Security · IDS / IPS

IDS/IPS Troubleshooting

Cheat sheet · https://pcornel.dk/topic.php?topic=4619

Back to the Topic

Answer

Troubleshoot IDS/IPS by checking the sensor sees the traffic (SPAN or tap placement, packet drops), rule sets are loaded and current, decryption covers encrypted flows, and alert thresholds and suppressions are correct.

Remember

  • Placement and SPAN config decide visibility.
  • Dropped packets mean blind spots.
  • Encrypted traffic is invisible.

First checks

  • suricata -T -c /etc/suricata/suricata.yaml — config test
  • suricatasc -c iface-stat <if> — drops
  • tail -f /var/log/suricata/suricata.log — engine log

Commands

journalctl --since "-30 min" | grep -Ei "ids|ips|alert|drop|deny"
Read-only/validation observation for time-bounded alert/drop/deny events around the affected flow.

Verify in this order

traffic → capture → engine → rules → output

Where it usually breaks

First mismatch in endpoint/identity → path/reachability → policy selection → enforcement/session → protected flow → telemetry/detection; preserve identity/policy/pre-state before mutation.

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=4619

Confirmation

Confirm action

Continue?