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.
* The lists are data, the rule is logic: a lookup decides whether the destination's score crosses the threshold. *
- Enable it in
suricata.yaml:reputation-categories-file: /etc/suricata/iprep/categories.txt default-reputation-path: /etc/suricata/iprep reputation-files: - reputation.list - Categories file: one line per group, at most 60 categories:
1,hslu,HSLU network 2,cnc,Known command-and-control servers - Reputation list: one line per IP (or CIDR) and category, with a score up to 127:
The same IP can appear once per category with a different score. Lookups stay fast even with hundreds of thousands of entries.10.0.0.5,1,30 - 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:
Suricata: IP Reputation Config — the three suricata.yaml directives.
Suricata: IP Reputation Format — the exact line formats of the categories and reputation files.