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 --compressed 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:net
for ip in $(curl --compressed 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 -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 |
---|---|---|
89.234.157.254 | marylou.nos-oignons.net | 11 |
46.165.230.5 | tor-exit.dhalgren.org | 11 |
195.206.105.217 | zrh-exit.privateinternetaccess.com | 11 |
18.27.197.252 | wholesomeserver.media.mit.edu | 10 |
178.165.72.177 | 178-165-72-177-kh.maxnet.ua | 10 |
162.247.74.74 | - | 9 |
46.165.245.154 | - | 9 |
185.220.102.8 | - | 9 |
162.247.74.27 | turing.tor-exit.calyxinstitute.org | 9 |
77.247.181.163 | lumumba.torservers.net | 9 |
62.210.105.116 | 62-210-105-116.rev.poneytelecom.eu | 9 |
162.247.74.204 | billsf.tor-exit.calyxinstitute.org | 8 |
212.47.229.4 | - | 8 |
46.101.214.122 | - | 8 |
171.25.193.77 | tor-exit1-readme.dfri.se | 8 |
185.107.47.171 | tor-exit.r2.darknet.dev | 8 |
113.240.247.163 | - | 8 |
171.25.193.78 | tor-exit4-readme.dfri.se | 8 |
192.42.116.16 | tor-exit.hartvoorinternetvrijheid.nl | 8 |
92.63.194.104 | - | 8 |
185.220.102.7 | - | 8 |
209.141.35.177 | mx08.superbpipe.com | 8 |
66.230.230.230 | - | 8 |
165.227.121.230 | - | 8 |
159.89.181.213 | - | 8 |
222.124.18.155 | opted-out-dns2.telkom.net.id | 8 |
176.10.99.200 | accessnow.org | 8 |
144.217.255.89 | ns542132.ip-144-217-255.net | 8 |
128.199.175.116 | - | 8 |
158.174.122.199 | h-122-199.A357.priv.bahnhof.se | 8 |