Skip to main content

WebHook

The WebHook connector sends a web request to an address you choose. It is the connector that an Action Rule runs automatically when a Detection Rule adds an alert to a Case. Use it to call a ticketing system, a chat service or any other service that accepts a web request.

Role needed: SOAR permission to open the integrations page, and Settings access with Connectors: Set to add, change or test the connector. Creating the Action Rule that uses it needs an Admin or Super Admin account. Admin and Super Admin accounts have all of these. See Add and test an integration and Action Rules.

Add the connector​

  1. Open the integrations page and add a WebHook (ThreatVIS) integration.
  2. Enter a Name.
  3. Fill in the fields in the table below.
  4. Select Test connection, then Save.
FieldWhat to enter
Web Hook UrlThe address that receives the request. Required.
Headers JsonOptional. Headers to send with every request, as a JSON object, for example {"Authorization": "Bearer example-token"}. The value is stored as a secret. See Headers and the destination.
Payload JsonOptional. The body to send, as JSON. See the next section. When empty, {} is sent.
Insecure Skip VerifyWhen ticked, the receiver's certificate is not checked. It is unticked when you first open the form. Leave it unticked for production. Tick it only for a test receiver with a self-signed certificate.

The test checks that Web Hook Url is filled in and that its address is allowed (see below). It does not call the address, so a successful test does not prove the receiver is reachable.

Headers and the destination​

  • Headers. The headers in Headers Json are sent with every request. Headers that change how a request is routed, such as Host, are refused. If Headers Json is not a JSON object, the action fails with the reason webhook configuration.
  • Destination. The address must start with http:// or https://. Addresses on the appliance itself and addresses reserved for internal use are refused. The action then fails with the reason webhook destination refused, and the test and save of the connector report it. Receivers on your own private networks are allowed.
  • Certificates. The receiver’s certificate is checked unless Insecure Skip Verify is ticked.
  • Redirects. A redirect is not followed. The action fails with the reason webhook HTTP followed by the status, for example webhook HTTP 301. Enter the final address in Web Hook Url.
  • Outbound proxy. If an outbound proxy is configured under Interfaces & Proxy, requests go through it. See Interfaces, proxy and DNS.

Build the payload​

The payload is sent as a POST with a JSON body. Write placeholders where you want values from the alert filled in. A placeholder has the form $GET['TriggeredAlert.Name'], written inside a JSON string.

PlaceholderValue
$GET['TriggeredAlert.Alert.Info']The Detection Rule's description.
$GET['TriggeredAlert.Alert.AlertUID']The Detection Rule's identifier.
$GET['TriggeredAlert.Alert.Severity']The Detection Rule's severity.
$GET['TriggeredAlert.Action.Object']The value the action is about.
$GET['TriggeredAlert.Case.ID']The Case's identifier.
$GET['TriggeredAlert.Case.URL']A link to the Case in the console.
$GET['TriggeredAlert.<field>']Any field of the event that triggered the alert, for example source.ip.

For example:

{
"text": "Alert: $GET['TriggeredAlert.Alert.Info'] ($GET['TriggeredAlert.Alert.Severity']). Case: $GET['TriggeredAlert.Case.URL']"
}

A field the event does not have gives an empty value. Values are escaped so that they cannot break the JSON. The payload must be valid JSON after the placeholders are filled in. If it is not, the action is recorded as failed and nothing is sent.

The link in Case.URL is absolute only when the appliance has a public address configured. Without one, it is a path on the console.

What the receiver gets​

Each request is a POST that waits up to 10 seconds for an answer. It carries an Idempotency-Key header with a unique identifier for the action. A receiver that honours the key can ignore a repeat.

What happens after the request, including retries and how the outcome appears on the Case, is described in Action Rules.

Next steps​