cybersecurity Request an audit

Threat feed / Cloud and SASE firewalls / Script or API

Block attackers on AWS Network Firewall with the ACIDRIPP feed

A small scheduled script or an API call keeps the list up to date. The feature is called Stateful rule group: Suricata compatible rule string, Domain list (RulesSourceList), or IP set reference (ReferenceSets.IPSetReferences) to an Amazon VPC managed prefix list.

The address to use

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

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

ProductAWS Network Firewall
What it acceptsip, cidr, ipv6, domain, suricata
File formatNetwork Firewall does not fetch a URL. Three documented ways for a scheduled job: (1) keep the IPs in a customer-managed VPC prefix list and reference it from a rule group as an IP set reference; the rule uses the variable with an @ prefix, e.g. 'drop tcp @BETA any -> any any (sid:1;)'. When the prefix list changes, Network Firewall updates the rules automatically. (2) Replace the rule group's RulesString with Suricata rules (our Suricata format fits here) via update-rule-group. (3) Domain list rule group: Targets = domains ('.example.com' with a leading dot also matches subdomains), TargetTypes = HTTP_HOST, TLS_SNI (and AWS_ROUTE_53_RESOLVED_DOMAIN), GeneratedRulesType = DENYLIST. A prefix list is IPv4 or IPv6 (address family chosen at creation); the docs example says the IP set variable represents an IPv4 prefix list.
LimitsIP set references: max 5 per rule group; max 1,000,000 CIDRs across all IP set references in one firewall (extra CIDRs are ignored). Prefix list: default max 1,000 entries per prefix list (adjustable only through a support case), 100 prefix lists per Region, modify-managed-prefix-list accepts at most 100 entries in --add-entries and 100 in --remove-entries per call. Stateful rule group capacity max 30,000 (fixed at creation, one unit per rule); Suricata rules string max 2,000,000 bytes; one Suricata rule max 8,192 characters; 50 stateful rule groups per account per Region (adjustable); 20 stateful rule groups per firewall policy; 30,000 stateful rules per firewall policy (adjustable).
NeedsAWS Network Firewall with a firewall policy; IAM permissions for network-firewall and ec2 prefix list calls. No extra licence. A scheduler such as EventBridge + Lambda or cron with the AWS CLI.

Add the feed

  1. Open the Amazon VPC console; in the navigation pane choose Managed Prefix Lists, then Create prefix list.
  2. Enter Prefix list name, Max entries, Address family (IPv4 or IPv6), add entries, choose Create prefix list.
  3. In the navigation pane under Network Firewall choose Network Firewall rule groups, then Create Network Firewall rule group.
  4. Rule group version: Classic. Rule group type: Stateful rule group. Rule group format: Text rule builder (Suricata) or Domain list.
  5. On Rule group variables, under IP set references choose Add IP set reference, enter a variable name and select the prefix list.
  6. On Configure rules enter the Suricata rule that uses @variable (or paste domain names, one per line, with Action Deny), set Capacity, then Create.
  7. Add the rule group to the firewall policy.

Commands

# IPs: sync https://cybersecurity.acidripp.com/feed/block/strict.plain into a prefix list (max 100 entries per call)
curl -s https://cybersecurity.acidripp.com/feed/block/strict.plain -o feed.txt
aws ec2 modify-managed-prefix-list \
    --prefix-list-id pl-0123456abcabcabc1 \
    --add-entries Cidr=198.51.100.7/32,Description=feed \
    --current-version 1

# rule group JSON referencing the prefix list (rulegroup.json)
{"ReferenceSets":{"IPSetReferences":{"FEED":{"ReferenceArn":"arn:aws:ec2:us-east-1:111122223333:prefix-list/pl-0123456abcabcabc1"}}},
 "RulesSource":{"RulesString":"drop ip @FEED any -> any any (sid:1;)"}}
aws network-firewall create-rule-group --rule-group-name feed-block --type STATEFUL --rule-group file://rulegroup.json --capacity 100

# Domains: deny list rule group (domainblock.json), replaced on each run
{"RulesSource":{"RulesSourceList":{"Targets":["evil.com"],"TargetTypes":["TLS_SNI","HTTP_HOST"],"GeneratedRulesType":"DENYLIST"}}}
aws network-firewall describe-rule-group --type STATEFUL --rule-group-name feed-domains   # read UpdateToken
aws network-firewall update-rule-group --rule-group-arn <arn> --update-token <token> --rule-group file://domainblock.json

Block with it

  1. Reference the feed prefix list in a stateful rule group and write a drop (or reject) rule on @VARIABLE as source and a second one as destination.
  2. For domains, use a Domain list rule group with action Deny for HTTP and HTTPS.
  3. Attach the rule group(s) to the firewall policy used by the firewall; with strict order place them before pass rules.

Good to know

  • Default prefix list size is 1,000 entries and 5 references per rule group, so about 5,000 CIDRs per rule group unless AWS Support raises the prefix list quota; a larger feed must be aggregated or put in Suricata rules instead.
  • modify-managed-prefix-list fails if --current-version does not match; entries cannot be modified and the list resized in the same call.
  • Rule group capacity cannot be changed after creation; size it for growth.
  • Domain list rules inspect only the HTTP Host header and TLS SNI; they do no DNS lookup and do not cover other protocols (unless AWS_ROUTE_53_RESOLVED_DOMAIN is used).
  • Domain list inspection only applies to sources inside HOME_NET, which defaults to the firewall VPC CIDR; set HOME_NET for traffic from other VPCs.
  • The quotas page says maximum stateful rule group capacity is 30,000 while the console procedure text mentions a maximum of 50,000; the quotas page was used here.
  • URL-path entries cannot be matched without TLS inspection; plain URL lists are not a supported rule source.

What we could not confirm

  • The docs now also list 'Address lists' as an IP set reference type; no page describing how to create or fill an address list was found, so it is not used here.
  • Whether an IPv6 prefix list works as an IP set reference (the example text speaks of an IPv4 prefix list).
  • How many domains one Domain list rule group can hold and how its capacity is counted was not found on the pages read.
  • 'drop ip @FEED ...' is adapted from the documented 'drop tcp @BETA any -> any any (sid:1;)' example.

Sources

The steps were checked against the vendor's documentation 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.