IBM Security QRadar SOAR

 View Only
  • 1.  Fortigate Ban IP Playbook

    Posted Fri February 23, 2024 02:10 AM

    Hello experts,

    I have integrated my Fortigate Firewall to QRadar SOAR successfully. I have also tested few playbooks and they work fine. However,  the Fortigate Ban IP is not working.

    I tested using the following approach:

    I created an artifact of type IP address, and triggered the playbook "Fortigate Ban IP". The Playbook completes without any error, but gives the below message in the Note tab

    FortiGate failed with reason: "Status Code: 403, {'http_method': 'POST', 'status': 'error', 'http_status': 403, 'vdom': 'root', 'path': 'user', 'name': 'banned', 'action': 'add_users', 'serial': '****', 'version': v***, 'build': ***}"

    I have a concern here, reviewing the playbook "Fortigate Ban IPs", it shows that the Fortigate_addresses (as shown in the screen shot) should be of text artifact type, but when you create a "String" artifact type , the Playbook "Fortigate Ban IPs" is not available to be selected.

    I will appreciate if someone can help me on how to test the "Fortigate Ban IPs" playbook.

    Regards,



    ------------------------------
    benlinux
    ------------------------------


  • 2.  RE: Fortigate Ban IP Playbook

    Posted Fri February 23, 2024 09:48 AM

    When the playbooks input script gets the value from an artifact of type "IP Address" it will return a string value.

    Is the IP address that you are using as input when running this playbook present on your Fortigate server? If the IP address is not present on your Fortigate server, then running this playbook will result in an error.



    ------------------------------
    Richard Swierk
    ------------------------------



  • 3.  RE: Fortigate Ban IP Playbook

    Posted Fri February 23, 2024 10:55 AM

    Hello Richard,

    Thank you for your response. I have used another playbook "Fortigate Create address" to create an address with I(P address/subnet mask). eg 10.10.10.8/32.

    After confirming that this address exists on the Fortigate, I created an Artifact (type IP address) with this value "10.10.10.8", and I got the same error.


    Note the artifact type ip address does not accept ip/subnet mask.eg 10.10.10.8/32
    Regards,



    ------------------------------
    benlinux
    ------------------------------



  • 4.  RE: Fortigate Ban IP Playbook

    Posted Mon February 26, 2024 03:08 AM

    Hello expert,

    I will appreciate any help here.

    Regards,



    ------------------------------
    benlinux
    ------------------------------



  • 5.  RE: Fortigate Ban IP Playbook

    Posted Mon February 26, 2024 07:40 AM

    Hello, could you please try creating a new IP address on Fortigate that does not have a subnet mask and then run the playbook using that IP address.



    ------------------------------
    Richard Swierk
    ------------------------------



  • 6.  RE: Fortigate Ban IP Playbook

    Posted Mon February 26, 2024 09:42 AM

    Hello Richard,

    Thank you for your response. I dont think it makes sense to manually create an IP address on fortigate before initiating this playbook. Because if an incident occurs that contains a malicious IP address, would a soc analyst be telling the fortigate admin to create the IP address before they can initiate the playbook "Fortigate Ban IPs"



    ------------------------------
    benlinux
    ------------------------------



  • 7.  RE: Fortigate Ban IP Playbook

    Posted Mon February 26, 2024 01:35 PM

    I was asking you to do it as a test. I was looking to see if it works when the IP address does not have a subnet mask attached to it.

    To your point, if an incident occurs that contains a malicious IP address, it would be just an IP address and not an IP address/subnet mask. Your test was with an IP address/subnet mask and not just an IP address.



    ------------------------------
    Richard Swierk
    ------------------------------



  • 8.  RE: Fortigate Ban IP Playbook

    Posted Tue February 27, 2024 03:34 AM

    Error 403 means Forbidden (you can read more about the error here). Which suggests that there might be something wrong with your config file or other settings. Basically the query isn't allowed to make changes on the firewall. 



    ------------------------------
    Maria Czapkowska
    ------------------------------



  • 9.  RE: Fortigate Ban IP Playbook

    Posted Tue February 27, 2024 09:44 AM
    Edited by benlinux Tue February 27, 2024 10:01 AM

    Hello Maria,

    Thank you for the feedback. issue resolved. It was a permission issue.

    Regards,



    ------------------------------
    benlinux
    ------------------------------