Bitzu

312-50 ยท Evading IDS, firewalls and honeypots

IDS/firewall solutions and Snort rules

Snort, Suricata, Zeek, rule structure (action, protocol, direction, options), logging modes, and pfSense/iptables basics.

Key points

  • Snort, Suricata: signature-driven IDS/IPS engines.
  • Zeek: network analysis framework, rich protocol logs, scripted detections.
  • Snort header: action, protocol, source address and port, direction operator, destination address and port.
  • Body in parentheses: options such as msg, content, sid.
  • Example: alert tcp $EXTERNAL_NET 80 -> $HOME_NET any
  • pfSense, iptables: firewalls, rules evaluated in order.

Source: https://docs.snort.org/rules/headers/

Practice questions

Single choice

In a Snort rule, what does the part inside the parentheses contain?

  1. The rule options such as msg, content and sid
  2. Only the source and destination IP addresses
  3. The name of the log file to write
  4. The firewall zone the sensor belongs to
Show answer

Answer: A. The rule options such as msg, content and sid

The parentheses hold the rule options (msg, content, sid and so on). The header, before the first parenthesis, holds action, protocol, addresses, ports and direction.

Select all that apply

Which of these are intrusion detection/prevention engines or network analysers?

  1. Snort
  2. Suricata
  3. Zeek
  4. A DHCP server
  5. A load balancer
Show answer

Answer: A. Snort, B. Suricata, C. Zeek

Snort, Suricata and Zeek all inspect network traffic for security purposes. pfSense is a firewall/router platform and Wireshark is a manual protocol analyser, not a detection engine.

True or false

A Snort rule fires its action as soon as the header matches, regardless of the rule options.

Show answer

Answer: False

False. The action is taken only when the header and all of the rule's options evaluate to true.

Practice 8 questions on this topic in Bitzu

Short lessons, instant explanations and spaced review of what you get wrong. Free on iOS and Android.

Download on the App StoreGet it on Google Play

More 312-50 topics in this module