cybersecurity Request an audit

Threat feed / Open-source, Linux, BSD and host firewalls / Script or API

Block attackers on Suricata with the ACIDRIPP feed

A small scheduled script or an API call keeps the list up to date. The feature is called IP reputation (iprep keyword) and datasets.

The address to use

https://cybersecurity.acidripp.com/feed/block/strict.iprep

This is the strict list: addresses that got into our decoys, ran commands there or brought malware in the last 14 days. It is small and safe to block. For more coverage, replace strict in the address with standard (also addresses that tried passwords) or wide (also every scanner). What each list holds, and every format, is on the threat feed page.

Before you start

ProductSuricata
What it acceptsip, cidr, ipv6, domain, url
File formatReputation file: CSV "<ip>,<category>,<reputation score>"; IPv4 or IPv6, CIDR allowed, category = number from the categories file, score 1-127. Categories file: "<id>,<short name>,<description>". Datasets: one value per line; type ip / ipv4 as plain text, type string as base64.
LimitsCategory id maximum is 60; score 1-127. Entry counts: not documented (host table memcap and hash size may need raising).
NeedsSuricata with iprep (long-standing). Dataset type ip, "match subdomain" and the JSON dataset format are in the current (latest) docs; check your version.

Add the feed

# A) IP reputation (IP and CIDR, IPv4 and IPv6). We serve the feed as "<ip>,<category>,<score>" lines.
# /etc/suricata/iprep/categories.txt
1,ThreatFeed,Public threat feed
# suricata.yaml
reputation-categories-file: /etc/suricata/iprep/categories.txt
default-reputation-path: /etc/suricata/iprep
reputation-files:
 - threatfeed.list
# local rule (drop needs IPS/inline mode; use alert in IDS mode)
drop ip any any -> any any (msg:"Threat feed source"; iprep:src,ThreatFeed,>,0; sid:9000001; rev:1;)
drop ip any any -> any any (msg:"Threat feed destination"; iprep:dst,ThreatFeed,>,0; sid:9000002; rev:1;)

# update script (composed by us), cron */5:
#!/bin/sh
set -eu
T=$(mktemp /etc/suricata/iprep/.feed.XXXXXX); trap 'rm -f "$T"' EXIT
curl -fsS --max-time 60 -o "$T" "https://cybersecurity.acidripp.com/feed/block/strict.iprep"
[ -s "$T" ] || exit 1
chmod 644 "$T"; mv "$T" /etc/suricata/iprep/threatfeed.list
suricatasc -c ruleset-reload-nonblocking     # or: kill -USR2 $(pidof suricata)

# B) datasets (single addresses and domains; rule syntax from the Datasets page, rules composed by us)
drop ip any any -> any any (msg:"Threat feed IP"; ip.src; dataset:isset,feed-ips, type ip, load feed-ips.lst; sid:9000003; rev:1;)
reject dns any any -> any any (msg:"Threat feed domain"; dns.query; dotprefix; dataset:isset,feed-domains, type string, match subdomain, load feed-domains.lst; sid:9000004; rev:1;)

Block with it

  1. drop rules only block when Suricata runs inline (IPS mode); in IDS mode use alert.
  2. The iprep keyword is IP-only compatible, so it is checked once per flow direction.

Good to know

  • No built-in fetching: a script downloads the file and triggers a rule reload (USR2 or suricatasc), which also reloads reputation files.
  • The categories file is not reloaded; restart Suricata if categories change.
  • Datasets defined in rules with only load are reloaded from disk on rule reload.
  • Dataset string values (domains, URLs) must be base64 encoded in the file; we would have to serve that format.
  • From the docs: file formats, yaml keys, iprep syntax, dataset syntax, reload commands. The rules with sid 9000001-9000004 and the script are ours.

What we could not confirm

  • The dataset rule with ip.src and a plain (non-JSON) file is composed from the documented syntax; the docs' own ip example uses ip.dst with a JSON file.
  • Whether datasets of type ip accept CIDR: not stated; assume single addresses only.
  • Matching full malware URLs would need a rule on an HTTP buffer with a string dataset; not composed here.
  • Rules were not loaded into a running Suricata.

Sources

Most steps were checked against the vendor's documentation; the points above were not on 30 November 2026. They were not tested on a device: menus move between versions, so check against your own. Found a mistake? Write to audit@acidripp.com. The feed comes with no guarantee; test before you block production traffic.