Splunk Enterprise Security

How to create an alert that works with Fortigate Active Response?

lukedunzweiler
Engager

Having a hard time getting an alert that works with FortigateAR. We want to use FortigateAR to block SourceIP based on an IDS alert. I get data from Firewall and it's visible using the Fortinet FortiGate App for Splunk and Fortinet FortiGate Add-on for Splunk. Need an alert that is triggered from IDS that uses AR to block Source IP.

0 Karma

jerryzhao
Contributor

the required fields devid, srcip, dstip, user are extracted or transformed from the fortigate log by the add-on, so if your fortigate FOS version is 5.0 and later, you will be able to get those fields from fortigate logs.
can you share the query string for the alert your created? and the matching result?
what problem do you have with the fortigate alert action? No firewall policy is created on fortigate?
if you could share $SPLUNK_HOME/var/logs/splunk/FortiGateActions_modalert.log, it would be most helpful.

0 Karma

kchamplin_splun
Splunk Employee
Splunk Employee

It looks like the AR action that Fortinet wrote (https://splunkbase.splunk.com/app/3444/) requires the resulting events from your search contains a "devid" field. The devid field is used to retrieve the specific Fortigate device you want to send the commands to. From there if you set the action to block the "source ip" ensure that your events also contain the field name "srcip" as the AR action is looking for any of the following fields:
srcip
dstip
user

You may need to use eval to massage the field names.

0 Karma
Get Updates on the Splunk Community!

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...

Routing logs with Splunk OTel Collector for Kubernetes

The Splunk Distribution of the OpenTelemetry (OTel) Collector is a product that provides a way to ingest ...

Welcome to the Splunk Community!

(view in My Videos) We're so glad you're here! The Splunk Community is place to connect, learn, give back, and ...