Skip to main content
DanieleS99
Explorer
March 9, 2022
Solved

Fortigate Check malicious IP list

  • March 9, 2022
  • 4 replies
  • 18691 views

Hello,
i am looking for a fast and efficient way to check if 800 or so ip addresses are contained in the fortigate blacklists.
Can you help me?

Thank you

Best answer by AlexC-FTNT

I don't think there is a possibility to run this check for multiple IPs.

You can list the entire internet-service database:

#diag firewall internet-service list

and run a script on the IPs in the list, but many of those IPs are listed as a range, so that will be problematic.

 

You can also use the API to retrieve this list:

 

https://fortigate.IP/api/v2/monitor/firewall/internet-service-details?city_id=0&count=5000&country_id=0&id=11337935&region_id=0&start=0

4 replies

AlexC-FTNT
Staff
Staff
March 9, 2022

Hello Daniele,
What feature exactly do you refer to? There are no blacklists dowloaded in the FortiGate.

The services used in the FortiGate are available here: https://www.fortiguard.com/ (scroll down). You can check the ISDB (not a blacklist) but can't check botnet IP reputation.
You can check the blacklisted IPs in any online tool - for example https://mxtoolbox.com/blacklists.aspx

DanieleS99
Explorer
March 9, 2022

Hi Alex,

sorry if I explained myself wrong. I mean that I would like to check if these ip are contained in the malicious lists reported on the Fortigate, such as in the Internet Service Database -> Malicious-Malicious.Server section, or Botnet-C & C. Server without having to check one ip address at a time but giving the whole list.

AlexC-FTNT
Staff
Staff
March 9, 2022

I don't think there is a possibility to run this check for multiple IPs.

You can list the entire internet-service database:

#diag firewall internet-service list

and run a script on the IPs in the list, but many of those IPs are listed as a range, so that will be problematic.

 

You can also use the API to retrieve this list:

 

https://fortigate.IP/api/v2/monitor/firewall/internet-service-details?city_id=0&count=5000&country_id=0&id=11337935&region_id=0&start=0

Thought Leadership Security Summit. Outpace New Threats with AI - enhanced defense. Tuesday, Septmeber 15, 8:30 AM - 2:30 PM PT. The Golf Club at Newcastle, WA.
Virtual event | September 2026. SASE summit. The age of autonomous trust. Register here!