This project contains scripts to fetch and process data related to bad Autonomous System Numbers (ASNs) most used in phishing attacks or abused by attackers. The data is fetched from multiple sources . This folders includes scripts to automatically update the list of bad ASNs and retrieve their corresponding IP ranges.
This script automatically fetches the latest list of bad ASNs most used in phishing attacks from www.cybercrimeinfocenter.org and saves the output in a file named latest_bad_asn_phishing_list.csv
- This script performs the following steps:
- Fetches the main page that lists all the quarterly reports.
- Parses the HTML to find the latest URL for the "bad ASN" report.
- Fetches the data from the latest URL.
- Extracts the table and saves it to a CSV file named latest_bad_asn_phishing_list.csv.
This script fetches the updated IP ranges of each bad ASN listed in the consolidated list of ASNs and saves the IP ranges of each ASN in the current folder. Reads the lists of ASNs from:
- latest_bad_asn_phishing_list.csv (Cybercrime Info Center).
- bad_asn_static_list.csv (my static List of ASNs).
- evild3ad-ASN-BlackList.csv (mostly VPN ASNs from https://github.com/evild3ad/Microsoft-Analyzer-Suite/blob/main/Blacklists/ASN-Blacklist.csv)
- spamhaus_asn_list.csv (Spamhaus ASN Drop List).
This script performs the following steps:
- Fetches the ASN lists from the sources above.
- Combines all ASNs into a single deduplicated list.
- Execute the get_ip_range.py script with the AS numbers as arguments. It will fetch the IP ranges of the listed ASNs and saves the results in the current folder.
For correlation the folder correlation_maxmind_geo_db contains a script that automatically downloads, extracts, and updates the latest MaxMind GeoLite2 databases (ASN, City, and Country).
All the BAD ASNs ip ranges in one file: _ALL_BAD_ASN_IP_Ranges_List.csv
- AS141039
- AS147049
- AS207137
- AS6167
- AS7018
- AS8447
- AS9009
- AS10174
- AS11427
- AS12876
- AS14244
- AS20278
- AS20473
- AS24940
- AS25369
- AS33182
- AS33876
- AS36352
- AS39486
- AS40676
- AS41564
- AS41704
- AS42831
- AS43289
- AS43317
- AS46805
- AS47943
- AS49453
- AS49770
- AS49981
- AS50340
- AS51430
- AS51747
- AS57172
- AS58325
- AS60068
- AS60304
- AS61493
- AS62240
- AS63119
- AS64200
- AS64245
- AS131199
- AS136557
- AS136787
- AS137409
- AS198890
- AS199524
- AS200698
- AS205119
- AS207990
- AS212238
- AS262287
- AS263702
- AS396356
- AS174
- AS834
- AS1257
- AS1299
- AS1421
- AS2914
- AS3223
- AS3257
- AS3356
- AS3491
- AS3549
- AS3741
- AS4637
- AS6424
- AS6762
- AS6939
- AS7040
- AS7195
- AS8285
- AS8447
- AS8452
- AS8529
- AS8717
- AS9002
- AS9009
- AS9121
- AS12179
- AS12182
- AS13194
- AS13213
- AS14061
- AS15169
- AS15830
- AS16276
- AS16302
- AS16724
- AS18779
- AS20473
- AS20860
- AS21859
- AS23033
- AS28886
- AS29076
- AS32489
- AS35758
- AS36231
- AS36351
- AS36352
- AS37468
- AS37684
- AS38001
- AS38182
- AS39324
- AS40676
- AS42831
- AS44477
- AS45671
- AS45899
- AS45996
- AS46475
- AS50613
- AS51430
- AS51765
- AS52423
- AS53356
- AS54527
- AS55286
- AS56153
- AS56655
- AS56910
- AS57814
- AS58955
- AS60117
- AS61098
- AS62240
- AS63018
- AS63956
- AS132372
- AS133159
- AS133480
- AS134451
- AS137409
- AS138915
- AS151106
- AS197071
- AS197328
- AS197706
- AS199524
- AS202053
- AS202656
- AS203020
- AS206264
- AS209378
- AS210756
- AS212238
- AS262287
- AS263812
- AS270172
- AS327813
- AS394256
- AS396356
- AS396362
- AS396982
fixme..
- AS15557 (exclude it if necessary)
- ...