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 -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 |
|---|---|---|
| 69.40.195.236 | h236.195.40.69.dynamic.ip.windstream.net | 8 |
| 193.142.146.35 | - | 8 |
| 176.31.240.226 | ns386190.ip-176-31-240.eu | 8 |
| 195.219.212.151 | - | 8 |
| 147.185.254.17 | - | 8 |
| 157.230.244.66 | - | 8 |
| 185.129.62.62 | tor01.zencurity.com | 8 |
| 80.82.77.33 | sky.census.shodan.io | 7 |
| 125.17.153.207 | - | 7 |
| 141.94.110.90 | ns3199579.ip-141-94-110.eu | 7 |
| 185.220.101.4 | berlin01.tor-exit.artikel10.org | 7 |
| 185.220.101.1 | berlin01.tor-exit.artikel10.org | 7 |
| 149.202.74.37 | ns3013144.ip-149-202-74.eu | 7 |
| 80.82.77.139 | dojo.census.shodan.io | 7 |
| 157.230.225.231 | - | 7 |
| 162.247.72.199 | jaffer.tor-exit.calyxinstitute.org | 7 |
| 192.42.116.16 | tor-exit.hartvoorinternetvrijheid.nl | 7 |
| 194.26.229.35 | ds-0d981f900019.aeza.network | 7 |
| 86.107.209.152 | - | 7 |
| 166.70.207.2 | this.is.a.tor.node.xmission.com | 7 |
| 185.220.102.4 | communityexit.torservers.net | 7 |
| 179.60.147.101 | - | 7 |
| 185.246.188.67 | - | 7 |
| 204.85.191.9 | tor01.telenet.unc.edu | 7 |
| 185.100.86.74 | - | 7 |
| 223.240.83.206 | - | 7 |
| 221.2.93.118 | - | 7 |
| 20.220.96.40 | - | 7 |
| 179.43.140.246 | hostedby.privatealps.net | 7 |
| 37.221.92.82 | tube-hosting.com | 7 |
| 62.102.148.69 | - | 7 |
| 197.26.19.254 | - | 7 |
| 165.232.69.156 | - | 7 |
| 13.82.236.85 | - | 7 |
| 179.43.163.105 | hostedby.privatealps.net | 7 |
