LOGBOOK

HELP

Quiz Entry - updated: 2026.11.26

How is IP reputation configured in Suricata?

Three pieces: a categories file (id,short name,description), a reputation list (ip,category id,score), and rules that query it with the iprep keyword; all are enabled in suricata.yaml.

How Suricata IP reputation fits together

* The lists are data, the rule is logic: a lookup decides whether the destination's score crosses the threshold. *

  1. Enable it in suricata.yaml:
    reputation-categories-file: /etc/suricata/iprep/categories.txt
    default-reputation-path: /etc/suricata/iprep
    reputation-files:
      - reputation.list
    
  2. Categories file: one line per group, at most 60 categories:
    1,hslu,HSLU network
    2,cnc,Known command-and-control servers
    
  3. Reputation list: one line per IP (or CIDR) and category, with a score up to 127:
    10.0.0.5,1,30
    
    The same IP can appear once per category with a different score. Lookups stay fast even with hundreds of thousands of entries.
  4. A rule that uses it: iprep:dst,hslu,>,20; (see the next card).

The design separates data from logic. The list can be updated centrally from a threat-intelligence feed and pushed to every sensor without touching a single rule.

Go deeper:

From Quiz: ISLAB / Network Security Monitoring | Updated: Nov 26, 2026