Suricata IDS/IPS: Custom Detection Rules
Hands-on deployment and configuration of a Suricata IDS/IPS, from setting up the capture environment to writing and validating custom detection rules against real malicious traffic.
Context
A solo lab turning theoretical coursework into a working deployment: installing Suricata,
configuring suricata.yaml to run in IDS, IPS, or IDPS mode via
af-packet capture, then writing tailored detection rules.
What was built
- Suricata configured in af-packet mode for inline capture, switchable between IDS (passive detection) and IPS (active blocking).
- A custom rule set (
final_local.rules) covering: ICMP ping detection, shellcode, access to sensitive paths (/admin,/wp-admin), SSH brute force, SQL injection, XSS, and Nmap-style scans. - Rules validated by replaying a real pcap containing EternalBlue exploitation traffic, confirming the expected alerts fired.
- Additional hardening of remote access to the capture host (secured SSH) so the monitoring box itself would not be the weak link.
Stack
Status
Lab completed and validated, rules tested against real traffic.