Duaer

Integrations

Start a Duaer workflow with TheHive 5 Trigger

In Duaer, TheHive 5 Trigger starts a workflow when a request reaches its URL. It can listen for 20 events, such as Alert Created, Alert Deleted, Alert Updated, and 17 more.

Start a Duaer workflow with TheHive 5 Trigger

  1. On the Duaer canvas, open the node panel, search for TheHive 5 Trigger, and add it as the first node.
  2. Pick the events that should start a run, for example Alert Created or Alert Deleted.
  3. Check Filters on the node.
  4. If needed, select Add Option for the optional settings listed below.
  5. Select Execute step and send a test request to the node's Test URL. Publish the workflow so its Production URL starts a run for every request.

Events that start a Duaer workflow with TheHive 5 Trigger

Alert Created, Alert Deleted, Alert Updated, Case Created, Case Deleted, Case Updated, Comment Created, Comment Deleted, Comment Updated, Observable Created, Observable Deleted, Observable Updated, Page Created, Page Deleted, Page Updated, Task Created, Task Updated, Task Log Created, Task Log Deleted, Task Log Updated.

TheHive 5 Trigger parameters in Duaer

  • Filters: Filter any incoming events based on their fields.

TheHive 5 Trigger options in Duaer

Under Add Option, TheHive 5 Trigger offers Output Only Data.

Configure a webhook in TheHive

  1. Copy the test and production URLs from the Duaer node.
  2. Add this to application.conf, the TheHive configuration file:
notification.webhook.endpoints = [
  { name: DUAER_TEST, url: "<test URL>", version: 1, wsConfig: {}, includedTheHiveOrganisations: ["<organization>"], excludedTheHiveOrganisations: [] },
  { name: DUAER_PROD, url: "<production URL>", version: 1, wsConfig: {}, includedTheHiveOrganisations: ["<organization>"], excludedTheHiveOrganisations: [] }
]

Restart TheHive, then turn on notifications for the organization through the TheHive API:

curl -XPUT -u<username>:<password> -H 'Content-type: application/json' <TheHive URL>/api/config/organisation/notification -d '{"value":[{"delegate":false,"trigger":{"name":"AnyEvent"},"notifier":{"name":"webhook","endpoint":"DUAER_TEST"}},{"delegate":false,"trigger":{"name":"AnyEvent"},"notifier":{"name":"webhook","endpoint":"DUAER_PROD"}}]}'

Choose the events to handle under Events in the node.

Questions

Which TheHive 5 Trigger events can start a Duaer workflow?

Duaer's TheHive 5 Trigger can listen for 20 events, including Alert Created, Alert Deleted, Alert Updated, Case Created, Case Deleted, and 15 more. Pick one or more on the node.

Does TheHive 5 Trigger run before the Duaer workflow is published?

Only the Test URL works while you test with Execute step. The Production URL starts runs after you publish the Duaer workflow.

In this section