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 |
---|---|---|
193.32.162.157 | - | 9 |
50.7.40.241 | - | 9 |
92.118.39.61 | - | 8 |
185.93.89.118 | - | 8 |
193.32.162.84 | - | 8 |
196.251.83.136 | undefined.hostname.localhost | 8 |
193.32.162.97 | - | 8 |
223.130.11.165 | - | 8 |
92.118.39.97 | - | 8 |
103.39.93.93 | - | 8 |
80.82.77.33 | sky.census.shodan.io | 7 |
93.174.95.106 | battery.census.shodan.io | 7 |
3.137.73.221 | scan.cypex.ai | 7 |
45.148.10.67 | - | 7 |
80.82.77.202 | rnd.group-ib.com | 7 |
92.118.39.57 | - | 7 |
92.118.39.90 | - | 7 |
141.98.11.128 | srv-141-98-11-128.serveroffer.net | 7 |
167.94.146.48 | - | 7 |
192.112.63.23 | - | 7 |
103.176.78.193 | ip103-176-78-193.cloudhost.web.id | 7 |
103.191.92.173 | ip103-191-92-173.cloudhost.web.id | 7 |
113.193.234.210 | - | 7 |
124.220.11.234 | - | 7 |
136.232.203.134 | - | 7 |
159.203.128.174 | - | 7 |
181.116.220.12 | - | 7 |
185.165.191.27 | red.census.shodan.io | 7 |
193.32.162.89 | - | 7 |
198.199.71.30 | - | 7 |
200.189.192.3 | spo.dts.gemalto.com.br | 7 |
27.254.137.144 | - | 7 |
45.119.87.58 | - | 7 |
81.133.106.57 | host81-133-106-57.in-addr.btopenworld.com | 7 |
89.248.172.16 | house.census.shodan.io | 7 |
92.118.39.65 | - | 7 |
96.67.59.65 | - | 7 |
45.55.189.179 | - | 7 |
180.178.94.73 | - | 7 |