IPsum is a threat intelligence feed based on 30+ different publicly available lists of suspicious and/or malicious IP addresses. All lists are automatically retrieved and parsed on a daily (24h) basis and the final result is pushed to this repository. List is made of IP addresses together with a total number of (black)list occurrence (for each). Greater the number, lesser the chance of false positive detection and/or dropping in (inbound) monitored traffic. Also, list is sorted from most (problematic) to least occurent IP addresses.
As an example, to get a fresh and ready-to-deploy auto-ban list of "bad IPs" that appear on at least 3 (black)lists you can run:
curl https://raw.githubusercontent.com/stamparm/ipsum/master/ipsum.txt 2>/dev/null | grep -v "#" | grep -v -E "\s[1-2]$" | cut -f 1
If you want to try it with ipset
, you can do the following:
sudo su
apt-get -qq install iptables ipset
ipset -q flush ipsum
ipset -q create ipsum hash:ip
for ip in $(curl https://raw.githubusercontent.com/stamparm/ipsum/master/ipsum.txt 2>/dev/null | grep -v "#" | grep -v -E "\s[1-2]$" | cut -f 1); do ipset add ipsum $ip; done
iptables -D INPUT -m set --match-set ipsum src -j DROP 2>/dev/null
iptables -I INPUT -m set --match-set ipsum src -j DROP
In directory levels you can find preprocessed raw IP lists based on number of blacklist occurrences (e.g. levels/3.txt holds IP addresses that can be found on 3 or more blacklists).
IP | DNS lookup | Number of (black)lists |
---|---|---|
134.209.120.69 | - | 8 |
195.178.110.31 | - | 8 |
195.178.110.207 | - | 8 |
218.92.0.103 | - | 8 |
218.92.0.226 | - | 8 |
218.92.0.229 | - | 8 |
218.92.0.230 | - | 8 |
185.213.173.44 | - | 8 |
80.82.77.33 | sky.census.shodan.io | 7 |
80.82.77.139 | dojo.census.shodan.io | 7 |
45.148.10.131 | - | 7 |
103.197.184.162 | - | 7 |
111.23.122.227 | - | 7 |
111.67.196.52 | - | 7 |
167.94.145.99 | - | 7 |
185.165.191.27 | red.census.shodan.io | 7 |
195.178.110.26 | - | 7 |
196.251.67.42 | - | 7 |
199.45.155.90 | scanner-204.hk2.censys-scanner.com | 7 |
218.92.0.111 | - | 7 |
218.92.0.112 | - | 7 |
218.92.0.198 | - | 7 |
218.92.0.216 | - | 7 |
218.92.0.217 | - | 7 |
218.92.0.218 | - | 7 |
218.92.0.219 | - | 7 |
218.92.0.220 | - | 7 |
218.92.0.221 | - | 7 |
218.92.0.222 | - | 7 |
218.92.0.223 | - | 7 |
218.92.0.225 | - | 7 |
218.92.0.227 | - | 7 |
218.92.0.228 | - | 7 |
218.92.0.231 | - | 7 |
218.92.0.232 | - | 7 |
218.92.0.233 | - | 7 |
218.92.0.235 | - | 7 |
218.92.0.236 | - | 7 |
218.92.0.237 | - | 7 |
137.220.134.234 | - | 7 |
185.213.173.51 | - | 7 |
34.122.91.120 | 120.91.122.34.bc.googleusercontent.com | 7 |