Threat feed / Web application firewalls and web servers / Script or API
Block attackers on AWS WAF with the ACIDRIPP feed
A small scheduled script or an API call keeps the list up to date. The feature is called IP set (IPSet) referenced by an IP set match rule statement (IPSetReferenceStatement).
The address to use
https://cybersecurity.acidripp.com/feed/block/strict-v4.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
| Product | AWS WAF (WAFV2) |
|---|---|
| What it accepts | cidr, ipv6-cidr |
| File format | Every address must be in CIDR notation: a single IPv4 address is 192.0.2.44/32, a single IPv6 address ends in /128. All IPv4 and IPv6 CIDR ranges are supported except /0. One IP set holds one IP version (IPAddressVersion IPV4 or IPV6), so use two IP sets for a mixed feed. Console: one address or range per line. |
| Limits | Max 10,000 IP addresses in CIDR notation per IP set (fixed quota). Max 100 IP sets per account per Region (default, can be raised). IP set match statement costs 1 WCU (plus 4 if forwarded IP with position ANY is used). Max 5,000 WCU per web ACL. Max 50 reference statements per web ACL. Create/Put/Update calls: one request per second. |
| Needs | AWS WAF (WAFV2) web ACL / protection pack attached to CloudFront, ALB, API Gateway or another supported resource. For CloudFront use scope CLOUDFRONT and Region us-east-1. |
Add the feed
- Open the AWS WAF console: https://console.aws.amazon.com/wafv2/homev2
- Navigation pane: IP sets > Create IP set.
- Enter a name and description (the name cannot be changed later).
- Region: choose Global (CloudFront) or the Region of the protected resource.
- IP version: select IPv4 or IPv6.
- IP addresses box: one address or range per line, in CIDR notation.
- Choose Create IP set.
Commands
# 1. Read the current lock token
aws wafv2 get-ip-set \
--name testip \
--scope REGIONAL \
--id a1b2c3d4-5678-90ab-cdef-EXAMPLE11111
# 2. Replace the whole address list (the feed must be turned into CIDR form: add /32 to single IPv4)
aws wafv2 update-ip-set \
--name testip \
--scope REGIONAL \
--id a1b2c3d4-5678-90ab-cdef-EXAMPLE11111 \
--addresses $(curl -s https://cybersecurity.acidripp.com/feed/block/strict-v4.plain | grep -v '^#' | sed 's#^\([0-9.]*\)$#\1/32#') \
--lock-token a1b2c3d4-5678-90ab-cdef-EXAMPLE22222
Block with it
- Edit the web ACL (protection pack) and add your own rule.
- Rule builder: Request option = 'Originates from an IP address in', or choose the 'IP set' option.
- Select the IP set.
- Set the rule action to Block and save.
Good to know
- AWS WAF does not fetch an outside URL; a scheduled script (or Lambda) must call UpdateIPSet.
- update-ip-set completely replaces the address list; send the full list each time.
- The lock token comes from get-ip-set or list-ip-sets; a stale token fails with WAFOptimisticLockException. The update returns NextLockToken.
- Changes take from a few seconds to a number of minutes to propagate.
- A feed above 10,000 entries must be split over several IP sets, each with its own rule (1 WCU each).
- By default the rule matches the request origin address; a forwarded header such as X-Forwarded-For can be configured instead.
- The two aws commands are the official examples; the curl/sed part that fills --addresses is ours.
What we could not confirm
- Exact button names for adding the rule in the new AWS WAF console experience were not read step by step; the policy steps use the wording of the rule statement page.
Sources
- https://docs.aws.amazon.com/waf/latest/developerguide/limits.html
- https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-type-ipset-match.html
- https://docs.aws.amazon.com/waf/latest/developerguide/waf-ip-set-managing.html
- https://docs.aws.amazon.com/cli/latest/reference/wafv2/update-ip-set.html
- https://docs.aws.amazon.com/cli/latest/reference/wafv2/get-ip-set.html
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.