TheHive and Shuffle integration for case management

Connecting TheHive 4 to Shuffle uses two documented paths: the AnyEvent webhook notifier for inbound events and the TheHive app for creating and updating cases, alerts and observables. This page covers both, the setup order, and where it breaks.

On this page

How TheHive and Shuffle integration works for case management

A SOC team that wants TheHive events to start Shuffle playbooks, and playbooks that write results back into the same cases, needs two separate paths. The first is inbound: TheHive 4 sends events to a Shuffle webhook through its AnyEvent webhook notifier. The second is outbound: a Shuffle workflow calls TheHive through the Shuffle TheHive app, which authenticates with an API key and the instance URL. Neither path is a custom connector. Both are set up from documented steps in Shuffle's extensions documentation and the TheHive app documentation, so the work is configuration, testing and access control rather than new code. This page covers the TheHive 4 path only, because Shuffle's webhook guide is written for TheHive 4 and notes that TheHive 3 and TheHive 4 are configured differently.

The inbound path depends on three things that must line up. TheHive reads a notification.webhook.endpoints entry in application.conf that points at the Shuffle webhook URL, TheHive is restarted to load it, and an API call activates the AnyEvent webhook notifier for the organisation. Each step can fail silently, so confirm that events arrive in Shuffle before building any playbook on top of them. The outbound path depends on the API key belonging to a TheHive user whose profile and organisation roles allow the actions your playbooks take. Confirm the exact fields and actions the app exposes in your Shuffle version, since app versions change independently of the platform.

Decide early which party owns each piece: who holds the TheHive API key, which Shuffle workflow receives which event types, and where the webhook endpoint is reachable from. The API key is an authority over your cases, so store it in Shuffle's credential store or an external key management system, not in workflow text. Also confirm with your TheHive administrator that the organisation used for automation is the one your analysts work in, because cases created under the wrong organisation are hard to find later. Test each direction with a non-production case before connecting live alerts.

What you need before connecting TheHive 4 to Shuffle

The integration touches three places: TheHive's configuration, a Shuffle workflow that receives events, and the network paths between them. Confirm each card below before you edit application.conf, because a missing restart right or a blocked route is the most common reason the first event never arrives.

A running TheHive 4 instance

Confirm you operate TheHive 4, not TheHive 3, because the Shuffle webhook guide is written for TheHive 4 and the two versions are configured differently. Check that you can read and edit application.conf on the TheHive host and that someone on your team has the rights to restart the service. Note the instance URL and the organisation that will emit events, since the webhook notifier is activated per organisation.

Shuffle extensions docs

A Shuffle version you can support

Record the exact Shuffle version you run before you start. Versions older than v2.1.1 are unsupported, and the Shuffle docs recommend the latest Docker tag for stable releases and the nightly tag only for experimental changes. Pin the tag you test against so that a later pull does not change the webhook or app behavior under your workflow. Check the release notes for the version you plan to run.

Shuffle releases

A reachable Shuffle webhook URL

Create the workflow with a webhook trigger first and copy its URL, because that value goes into the notification.webhook.endpoints entry in TheHive. The URL must resolve and be reachable from the TheHive host, including over TLS if your Shuffle frontend uses it. Ask your team whether the Shuffle endpoint is internal only, and whether a reverse proxy or load balancer sits in front of the backend on port 5001.

A TheHive service account with an API key

Create a dedicated TheHive user for Shuffle rather than reusing a personal analyst account. Give it only the profile and organisation access the workflow needs, then generate an API key for it. The same key pattern is used by the Shuffle TheHive app, which authenticates with an API key and the instance URL. Store the key in Shuffle's encrypted credential store, not in workflow comments or exported JSON.

Shuffle TheHive app docs

Network paths between systems

Map three paths before you configure anything: TheHive to the Shuffle webhook endpoint, Shuffle's Orborus runtime to the TheHive API, and Shuffle's runtime to any app containers that call back into TheHive. Each path can cross a different firewall or proxy. Confirm the required ports with your network team, and if Shuffle runs in the hybrid model with a local Orborus, confirm that the runtime needs no inbound firewall ports.

Shuffle architecture docs

A restart and change window

Enabling the notifier requires editing application.conf, restarting TheHive, and then calling the API to activate the AnyEvent webhook notifier for the organisation. Agree a change window with the TheHive owner and plan a rollback copy of the original configuration file. Ask the TheHive team how they handle configuration management, because a hand-edited file can be overwritten by an automated deployment.

Configure the TheHive 4 webhook notifier and the Shuffle TheHive app

This sequence connects TheHive 4 to a Shuffle workflow in both directions: TheHive pushes events into Shuffle through the webhook notifier, and Shuffle reads and writes cases, alerts and observables through the TheHive app.

  1. Confirm the TheHive 4 and Shuffle endpoints

    Before editing any configuration, record the TheHive 4 base URL, the organisation that will send events, and the Shuffle webhook URL for the workflow that will receive them. Confirm that TheHive 4 is the version you run, because the documented webhook steps are written for TheHive 4 and TheHive 3 is configured differently. Confirm that the Shuffle server can reach TheHive, and that TheHive can reach the Shuffle webhook address, over the network paths your firewall policy allows. You are done when you have written down all three values and checked each path with a basic connection test.

  2. Add the webhook endpoint to application.conf

    Open the TheHive application.conf file on the TheHive server and add a notification.webhook.endpoints entry that points at the Shuffle webhook URL for the target workflow. Keep the file under change control and back it up before editing, since a malformed HOCON block will stop TheHive from starting. Use a dedicated endpoint for each workflow so that one failing receiver does not affect others. You are done when the file parses and the endpoint value matches the webhook URL copied from Shuffle exactly.

  3. Restart TheHive to load the endpoint

    Restart the TheHive service so it reads the updated application.conf. Watch the startup log for configuration errors and confirm that the service reports a healthy state and serves its API. If the service fails to start, roll back to the backed-up file, fix the syntax, and restart again. You are done when TheHive is running with the new configuration and the API responds to a status request.

  4. Activate the AnyEvent webhook notifier for the organisation

    Call the TheHive API endpoint that activates the AnyEvent webhook notifier for your organisation, using an account with the rights to change organisation settings. Send the request to the TheHive instance URL with a valid credential, and record the response. Because this call is per organisation, repeat it for each organisation that should send events to Shuffle. You are done when the API returns a success response and the notifier shows as active for the organisation.

  5. Verify a test event reaches the Shuffle workflow

    Create or update a test case or alert in the organisation that has the notifier active, then open the Shuffle workflow execution history. Confirm that a new execution started with the event payload, and inspect the fields so you know the paths later steps will reference. Keep the test event labelled so it is easy to filter out of production reporting. You are done when the workflow records the test event with the expected case or alert fields.

  6. Add the TheHive app in Shuffle

    In Shuffle, open the Apps section and add the TheHive app, then create an authentication entry that holds the TheHive instance URL and an API key. Create the API key in TheHive under a service account with only the permissions the workflows need, and store it in Shuffle's credential store rather than in workflow text. Shuffle encrypts saved credentials with its encryption modifier, so record that value securely because losing it breaks saved authentications. You are done when the authentication entry saves without error.

  7. Confirm a read call returns a case or alert

    Add a TheHive app action in a test workflow that reads a known case or alert by its identifier, then run the workflow manually. Check that the output contains the expected record, including its title, status and observables. If the call fails, check the instance URL, the API key scope and the network path from the Shuffle runtime that executes the action. You are done when the read action returns the record and the workflow completes without errors.

What changes between TheHive 3 and TheHive 4 for this integration

Teams on TheHive 3 cannot reuse the TheHive 4 steps as written. Shuffle's extensions documentation describes the webhook setup against TheHive 4 and notes that TheHive 3 and TheHive 4 are configured differently. Before you touch any file, confirm the exact TheHive version running in production and in your test environment, then read the matching Shuffle documentation for that version. Do not assume the application.conf layout, the notifier configuration or the API calls carry over from one major version to the other.

Work through three checks before building the workflow. First, confirm where your TheHive instance reads its configuration and whether the notification.webhook.endpoints key and the AnyEvent webhook notifier exist in your version. Second, list the API calls your Shuffle TheHive app will make, such as reading or creating cases, alerts and observables, and confirm your TheHive instance accepts them with the API key you plan to issue. Third, record which authentication method and API key scope your organization requires, since a key that works on one major version may need different permissions or setup on another. Document the answers so the build team and the on-call team work from the same facts.

Run the full sequence on a non-production TheHive instance first, with a Shuffle workflow that only logs the received events and performs one read and one write against a test case. Confirm that events arrive, that the notifier survives a TheHive restart, and that a rejected or expired API key produces a visible failure in Shuffle rather than a silent drop. Only after those checks pass should you repeat the change on production, during a window your change process approves. For version-specific details, the Shuffle extensions documentation and the Shuffle TheHive app documentation are the starting points, and TheHive's own release notes should be checked for any changes to the API your version exposes.

How events, cases, alerts and observables map between the systems

TheHive 4 sends notifications through its AnyEvent webhook notifier once it is configured to post to your Shuffle webhook URL, as described in the Shuffle extensions documentation. The first workflow step receives the raw event, so mapping starts with deciding which parts of the payload identify an alert and which parts describe it. Treat the body as untrusted input until the workflow has parsed and validated it.

  • Event type filter: Branch on the event type early so alert creation and alert updates follow different paths. Confirm the event names your TheHive version emits before writing conditions against them.
  • Identifier to carry: Extract the alert's own identifier from the payload and keep it as a workflow variable or execution argument, since later steps use it to find the same alert again.
  • Field reads: Read title, severity, source and tags only where a step needs them, and check each path against a sample event captured from your own instance rather than against documentation alone.
  • Duplicate events: Plan for repeated deliveries, because retries and restarts can replay an event. Look up the alert by its identifier before creating anything, and stop the run when a match already exists.

Capture several sample events from your instance and confirm each field path against the TheHive version you run before you enable the workflow.

Object and identity mapping between TheHive and Shuffle

This table compares the main TheHive objects, the direction data moves between TheHive and Shuffle, the workflow step that handles each one, and the key used to match records across runs. Use it to design lookups before you build playbooks, and confirm each key against your own TheHive instance and Shuffle TheHive app version.

TheHive objectDirection and triggerShuffle step that handles itMatch key to confirm
AlertTheHive to Shuffle through the AnyEvent webhook notifier, then Shuffle may create or update alerts in TheHiveWebhook trigger receives the event, then a TheHive app action creates or updates the alertAlert ID returned by TheHive, plus your source system reference stored in a custom field (confirm field availability)
CaseCreated or updated from Shuffle through the TheHive app, and events about case changes can flow back through the webhookTheHive app case actions, with the case ID saved in workflow variables for later stepsCase ID returned by TheHive; confirm whether your playbook also stores a case reference from the originating alert
ObservableShuffle adds observables to alerts or cases from enrichment results, and reads them back when neededTheHive app observable actions, usually run in a loop over indicators extracted from the alertObservable value and data type together, since the same value can appear under different types; confirm duplicate handling in your version
User or organisationUsed by TheHive to scope data; Shuffle authenticates with an API key tied to a TheHive userNot a direct workflow object in the topic facts; set once in the TheHive app authentication settingsThe API key owner's TheHive user and organisation; confirm which organisation the key can access before writing cases
Webhook event payloadSent from TheHive 4 to the Shuffle webhook URL after the notifier is activatedWebhook trigger parses the JSON body and routes by object typeObject type and ID fields in the payload; confirm field names against a test event from your instance

Securing the TheHive and Shuffle link

The TheHive to Shuffle path carries case data in both directions and holds a TheHive API key inside Shuffle. Each card below covers one control on that path, from the account behind the key to the logs that show who used it. Check each one in your own environment before the integration goes into production.

Scope the TheHive API key

The Shuffle TheHive app authenticates with an API key and the instance URL, so the key defines what every workflow can do. Create a dedicated TheHive service account for Shuffle rather than reusing an analyst's key. Confirm with your TheHive administrator which organisation the account belongs to and which actions it needs, such as reading and creating cases, alerts and observables. Record who owns the account and which workflows depend on it.

Shuffle TheHive app docs

Rotate the service account key

A key that never changes stays valid long after the person who created it has left. Set a rotation schedule that your security policy requires and test the rotation before it is due. Shuffle stores the key in its own database, so a rotation means updating the saved authentication in Shuffle and confirming that the workflows still run. Keep a short written procedure so the rotation does not depend on one engineer.

Protect the Shuffle encryption modifier

Shuffle encrypts saved app credentials and API keys in OpenSearch with AES-256 using the SHUFFLE_ENCRYPTION_MODIFIER value. Store that value in your secrets manager, back it up with the same care as the database, and never change it casually. Losing or changing it breaks every saved app authentication, including the TheHive key, so a restore from backup also needs the matching value. Confirm the procedure with your Shuffle administrator before the first rotation.

Shuffle configuration docs

Restrict the webhook to TheHive

The webhook notifier sends events from TheHive to a Shuffle webhook URL, which means the Shuffle endpoint accepts traffic from TheHive. Limit inbound access at the firewall or load balancer so that only the TheHive host can reach that path. Confirm the exact outbound source address with your network team, since NAT and proxies can change it. Test that an unlisted host is refused before you rely on the restriction.

Encrypt both directions with TLS

Events, case content and the API key travel between TheHive and Shuffle, so both hops need transport encryption. Use a certificate that TheHive trusts for the Shuffle URL and that Shuffle presents to TheHive. Decide whether TheHive validates the certificate chain or only accepts a pinned internal authority, and document the choice. Check that no step falls back to plain HTTP, including redirects from a reverse proxy.

Limit the account's organisation and profile

TheHive grants access through organisations and profiles, so the service account should belong only to the organisation whose cases Shuffle handles. Choose a profile that allows the case, alert and observable actions the workflows use and nothing else, such as administrative functions. Review the profile whenever a new workflow is added. Ask your TheHive administrator to confirm how profiles map to these actions in your version, because the names differ between releases.

Log actions on both sides

When a case changes, you need to know whether an analyst or a workflow made the change. TheHive records audit events for the service account, so review them for unexpected calls from that user. Shuffle keeps execution history for each workflow run, which shows the trigger, the actions taken and the results. Forward both sets of logs to your central log platform and set alerts for failed authentication and for changes outside normal hours.

Common TheHive and Shuffle integration failures and fixes

This table pairs each common failure in the TheHive to Shuffle path with its likely cause and the fix to try first. Work down the rows in the order the events flow: TheHive configuration, the webhook notifier, network reachability, the TheHive app, then Shuffle's own stored state. Where a row names a setting, confirm the exact key and version against the Shuffle extensions docs and your TheHive release before you change production.

FailureLikely causeFix
Webhook not firing after restartThe notification.webhook.endpoints entry was edited but TheHive was not restarted, or the entry has a syntax error that stops the service from loading it.Restart TheHive after every change to application.conf, then check the TheHive logs for configuration errors and confirm the endpoint is loaded.
Notifier not activated for the organisationThe AnyEvent webhook notifier was never enabled through the API call for the organisation that owns the cases, so events from that organisation are not sent.Run the documented activation call for the correct organisation, then trigger a test event such as creating a test alert and confirm it reaches the Shuffle workflow.
Shuffle webhook URL unreachable from TheHiveThe URL in the endpoint entry uses a hostname or port TheHive cannot resolve or reach, often because Shuffle sits behind a proxy, TLS terminator or separate network segment.Test connectivity from the TheHive host to the exact Shuffle webhook URL, then correct DNS, firewall rules or the proxy route. Use the URL copied from the workflow trigger, not a guessed address.
API key rejected or wrong instance URLThe TheHive app in Shuffle has a mistyped or expired API key, or the instance URL points at a different TheHive server, proxy path or port than the one holding the cases.Generate a fresh API key for a dedicated TheHive user with the needed profile, paste it into the app authentication, and verify the URL resolves to the same instance that produces the webhook events.
TheHive 3 steps applied to TheHive 4Configuration was copied from a TheHive 3 guide, so the webhook settings and activation steps do not match how TheHive 4 is configured.Follow the Shuffle guide written for TheHive 4 and confirm your TheHive version before editing. Check the exact configuration keys against that version's documentation rather than reusing older snippets.
Duplicate cases from repeated eventsThe same alert is delivered more than once, for example after a retry, a re-run of a workflow, or two notifiers or workflows listening to the same events, and each run creates a new case.Store the TheHive alert or case identifier and check for an existing case before creating one. Keep one trigger per event source and use the update path for follow-up events.
Saved app authentication broken after the encryption modifier changedSHUFFLE_ENCRYPTION_MODIFIER was changed or lost, so the saved TheHive API key and other app credentials in OpenSearch can no longer be decrypted.Restore the original modifier value from your secrets record and restart Shuffle. If it cannot be recovered, re-enter each app credential after confirming the new modifier is stored securely and backed up.

Questions buyers ask about TheHive and Shuffle integration

How long does a TheHive and Shuffle integration take to set up?

No supplied fact gives a duration, so treat any timeline as something to agree in writing rather than assume. The setup itself is short in steps: add a notification.webhook.endpoints entry in application.conf pointing at the Shuffle webhook URL, restart TheHive, then call the API that activates the AnyEvent webhook notifier for the organisation. What drives the real duration is everything around those steps: whether you already run a current Shuffle release, how many TheHive organisations need forwarding, how many event types you want to map into workflows, and how long your change process takes to approve a restart. Ask for the steps, the test events used to prove each one, and the change windows assumed in any quote. The Shuffle extensions docs list the webhook steps you can check against your own plan.

Can our internal team set up the TheHive and Shuffle integration without a partner?

Yes, if your team already runs TheHive and Shuffle and has someone who can edit TheHive configuration and call its API. The webhook path is documented in three steps, so the configuration itself is not the hard part. Teams usually struggle with the parts that surround it: building the Shuffle workflow that reads TheHive events, deciding which fields become cases, alerts or observables, handling duplicates, storing the TheHive API key securely, and testing failure paths such as a Shuffle outage. Ask yourself who will own the workflow after go-live, who can review changes to application.conf, and whether you have a non-production TheHive instance to test against. If those answers are unclear, a fixed-scope engagement can cover the build and handover, with the scope agreed in writing before work starts.

What does the integration need from our side before work starts?

Three things are needed early: access to the TheHive server's application.conf, a window for a TheHive restart, and a named owner for the TheHive API key used by the Shuffle TheHive app. The app authenticates with an API key and the instance URL, so the key's owner and its permissions determine what the workflow can create, update or read. Use a dedicated service account rather than a personal login, and confirm with your TheHive administrators which organisation the key belongs to. Also confirm where the Shuffle webhook URL will resolve from the TheHive host, because a network path that works from your laptop may not work from the server. Restart timing matters because the webhook configuration only takes effect after TheHive restarts, so agree a window with the teams that depend on TheHive.

What changes when we run the integration on TheHive 3 instead of TheHive 4?

The setup differs, so a TheHive 4 guide cannot be followed step by step on TheHive 3. Shuffle notes that TheHive 3 and TheHive 4 are configured differently and that its webhook guide refers to TheHive 4. If you run TheHive 3, plan the webhook configuration separately, confirm the event delivery method your version supports, and test it against a non-production instance before touching production. The Shuffle TheHive app's documented capabilities for cases, alerts and observables should also be checked against your version rather than assumed. Many teams running TheHive 3 also plan a TheHive upgrade, which changes the integration work, so ask for both paths to be scoped and priced separately. Confirm the exact version compatibility with the Shuffle app documentation and your TheHive release notes before you commit to a design.

What does ongoing maintenance look like across Shuffle and TheHive upgrades?

Maintenance covers three moving parts: the Shuffle release, the TheHive release, and the TheHive app version that Shuffle uses. Each upgrade can change the webhook payload, the API behavior the app depends on, or the configuration keys in application.conf, so every upgrade needs a regression test of the forwarding and case-creation paths. Shuffle recommends the latest Docker tag for stable releases, and the Shuffle upgrade guidance covers keeping a supported version. Ask for a written process that pins versions, names who approves each upgrade, and lists the test events that must pass before go-live. Ongoing support and scheduled testing can be handled through a retainer, which is priced from the agreed scope rather than a standard rate.

What is the cost of the integration, and what drives it?

No supplied fact gives a price, and DeployOpen does not publish a price list, so the cost follows from a written scope. The main cost drivers are the number of TheHive organisations and event types to forward, the complexity of the mapping from TheHive fields to case, alert and observable records, the number of downstream actions in the workflow, the testing effort across failure paths, and the number of TheHive versions involved. Shuffle's own licensing is separate: its pricing article says it is priced on app runs, meaning actions that execute in a workflow, while triggers and skipped actions are not counted. Ask any vendor or partner to split the quote into one-time build, testing, handover, and recurring upgrade or support costs, and confirm which licensing applies to your Shuffle edition.

Does the webhook path expose TheHive or our data to risk?

The risk depends on how the webhook and API key are handled, not on the webhook pattern alone. Restrict the Shuffle webhook endpoint to the network paths TheHive actually needs, and use TLS between the systems if your policy requires it. Store the TheHive API key in Shuffle's credential storage, which the Shuffle configuration docs describe as encrypted with AES-256 using the SHUFFLE_ENCRYPTION_MODIFIER secret, and keep a secure backup of that modifier because changing or losing it breaks saved app authentications. Use a least-privilege TheHive account for the workflow, and log which events the workflow accepts. Confirm these controls with your security team, since DeployOpen does not issue audit reports or certifications for your environment.

How alerts flow from TheHive to Shuffle and back

The flow starts in TheHive 4, where the AnyEvent webhook notifier sends events to the Shuffle webhook URL configured in application.conf. Shuffle's backend hands the workflow to Orborus, which starts a worker and the app containers that run it. The TheHive app then calls the TheHive API with an API key and the instance URL to create or update cases, alerts and observables. The trust boundary between the two networks is where you check reachability, the webhook path and which API key the app holds.

Events flow from TheHive to Shuffle and API calls return to TheHive across the trust boundary.

How DeployOpen scopes and delivers the TheHive and Shuffle integration

DeployOpen plans, implements, tests and documents the TheHive and Shuffle integration for case management inside your own infrastructure. Engagements are fixed-scope, so the systems, webhook paths, app connections and acceptance tests are agreed in writing before any build work starts.

How we scope

  • Confirm the TheHive version in use, since the webhook setup differs between TheHive 3 and TheHive 4.
  • Map which TheHive events, alerts, cases and observables Shuffle must receive, read and update.
  • Agree in writing the Shuffle deployment, network paths, API key ownership and acceptance tests before build begins.

How we build

  • Configure the TheHive webhook notifier and the Shuffle webhook trigger, then verify event delivery end to end.
  • Build workflows that create and update cases, alerts and observables using the Shuffle TheHive app.
  • Store the TheHive API key in Shuffle's encrypted credential store and test failure handling for rejected calls.

How we hand over

  • Document configuration keys, webhook endpoints, workflow logic and the test cases used for acceptance.
  • Record the secrets the integration depends on, including the Shuffle encryption value, so the client can rotate them safely.
  • Walk your operations team through the runbook for restarting TheHive, reconnecting webhooks and reviewing failed executions.

How we support

  • Ongoing support, upgrades and continuous testing are available as retainers after handover.
  • Retainers can cover retesting after TheHive or Shuffle version changes, including the Shuffle release you pin.
  • Support scope and response expectations are set in the retainer agreement, so confirm them with DeployOpen before signing.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.