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:ip
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 -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 |
---|---|---|
141.98.10.125 | imp-moment.trumpbuyer.com | 9 |
87.128.104.138 | p5780688a.dip0.t-ipconnect.de | 8 |
93.240.175.138 | - | 8 |
211.221.43.144 | - | 8 |
68.235.39.225 | static-68-235-39-225.cust.tzulo.com | 8 |
80.82.77.33 | sky.census.shodan.io | 7 |
121.159.163.6 | - | 7 |
193.32.162.79 | - | 7 |
80.82.77.139 | dojo.census.shodan.io | 7 |
45.10.163.165 | vmi1901210.contaboserver.net | 7 |
71.6.146.186 | inspire.census.shodan.io | 7 |
213.109.202.127 | - | 7 |
161.35.166.150 | - | 7 |
20.118.69.180 | azpdss46.stretchoid.com | 7 |
199.45.154.25 | scanner-201.hk2.censys-scanner.com | 7 |
183.81.169.238 | - | 7 |
195.144.21.56 | red3.census.shodan.io | 7 |
85.209.11.227 | - | 7 |
93.174.95.106 | battery.census.shodan.io | 7 |
87.251.19.4 | - | 7 |
36.110.228.254 | - | 7 |
193.32.162.65 | - | 7 |
194.169.175.36 | - | 7 |
194.169.175.35 | - | 7 |
112.164.236.13 | - | 7 |
170.64.172.114 | - | 7 |
192.42.116.208 | 11.tor-exit.nothingtohide.nl | 7 |
211.43.80.245 | - | 7 |
71.6.158.166 | ninja.census.shodan.io | 7 |
141.98.10.106 | - | 7 |