MISP as a Cortex analyzer for observable lookups

Use the Cortex MISP analyzer so analysts can check observables in TheHive and Cortex against one or more MISP instances during an investigation. This page covers the method, setup sequence, key scoping and failure points.

On this page

How the MISP Cortex analyzer answers observable lookups during an investigation

When an observable in a TheHive case needs a quick check against shared intelligence, the Cortex MISP analyzer is the route the MISP project documents for that job. The MISP tools page lists a Cortex MISP analyzer that looks up observables in MISP from Cortex analysis workflows, and it notes that current TheHive versions are distributed by StrangeBee. The analyst runs the analyzer against an observable such as a hash, domain, IP address or URL, and the result comes back as an analysis report attached to the case. That report tells the analyst whether MISP holds matching attributes and which events they belong to, so the analyst can decide whether to escalate, enrich the case or close the lead. The analyzer is a lookup, not a sync or import route. Nothing is copied from MISP into TheHive or Cortex, and no MISP event is created or changed by the lookup. Teams that expect indicators to appear in TheHive automatically should look at the separate TheHive integration instead of relying on this analyzer.

Before rollout, confirm which TheHive and Cortex versions your environment runs, because the analyzer's setup depends on how your Cortex deployment loads analyzers and what the StrangeBee distribution of TheHive supports. Check the analyzer's own configuration and the MISP tools page for the current version requirements, and confirm with StrangeBee which TheHive release your organization will run. Each analyzer configuration needs a MISP base URL and an API key, and the key determines what the analyst can see. A key with a broad role may return events and attributes that the analyst's own team should not be exposed to, so plan the key owner, the role and the distribution levels that a lookup can reach before the analyzer goes live. If you connect more than one MISP instance, each one needs its own configuration entry, and you should test each entry separately with a known indicator so you know which instance produced a given hit.

Observable lookup flow from TheHive to MISP

The flow starts with an analyst who runs an analyzer against an observable in a TheHive case. TheHive hands the observable to Cortex, which runs the MISP analyzer, and that analyzer queries one or more MISP instances over their API using a key scoped for the analyst's team. Each MISP instance sits behind its own trust boundary, so check that every API key can see only the events it should, and that results from one instance do not leak into another analysis context.

Observable lookups crossing the analysis network into each MISP instance.

What you need before configuring the MISP analyzer

The analyzer sits between three systems: Cortex runs the lookup, TheHive gives analysts the workflow, and each MISP instance holds the intelligence. Confirm each component below before touching configuration, because a gap in any one of them usually shows up as a failed analyzer job rather than a clear error.

A working MISP instance

Confirm that each MISP instance you want to query is installed, reachable and holding the events your analysts expect to find. Check the MISP version against the analyzer's own documentation, since the MISP project recommends MISP 2.5 for new deployments and MISP 2.4 is end of life. Record which instance is the primary source and which are secondary, because the analyzer config will name each one separately.

MISP download page

A Cortex deployment

Cortex runs the analyzers and must be installed, licensed for your use and able to load the MISP analyzer package. Confirm which Cortex release you run and whether the MISP analyzer appears in the version you deploy. Keep the Cortex host and its analyzer dependencies in the same change-controlled environment as the rest of your analysis stack.

A TheHive version from StrangeBee

The MISP tools page notes that current TheHive versions are distributed by StrangeBee, so confirm your TheHive source and release with StrangeBee before planning the integration. Check that your TheHive and Cortex versions work together and that the analyzer's documentation covers both. Do not assume an older TheHive build will accept the analyzer configuration.

MISP tools page

A dedicated MISP API key

Create a separate MISP user and API key for the analyzer instead of reusing an analyst's key. Scope the user's role and organization so it can search the intelligence it needs and nothing more, and confirm that the key can be rotated without changing analyst accounts. Record who owns the key, when it expires and where it is stored in Cortex.

Network reachability and TLS trust

Confirm that the Cortex host can reach each MISP URL on the port you publish, including through any firewall, proxy or load balancer on the path. Install the internal certificate authority or certificate chain on the Cortex side so TLS verification passes without disabling checks. Test from the Cortex host itself, because a browser test from a workstation does not prove the analyzer can connect.

Version compatibility checks

Confirm version compatibility between the analyzer, Cortex, TheHive and each MISP instance using the analyzer's own documentation and release notes, not assumptions from this page. Mixed MISP versions across several instances are a common source of unexpected results, so list each instance's version in your change record. Retest the lookup after any upgrade on either side.

Configuring the Cortex MISP analyzer step by step

This sequence takes a team from a scoped MISP key to a working lookup inside a TheHive analysis workflow. Each step ends with a check so that a failure is caught before analysts depend on the analyzer.

  1. Create a scoped MISP user and API key

    A MISP administrator creates a dedicated user for Cortex with the narrowest role that still allows searches, and generates an API key for that user. Confirm which organizations and distribution levels the user can see, because search results are limited to what the account is permitted to read. Record the key in your secrets store rather than in a shared document. The step is done when the account exists, its role and visibility are documented, and the key is stored under a name that identifies the Cortex host.

  2. Confirm the MISP instance answers API search

    From the Cortex host, not from an analyst workstation, send an authenticated search request to the MISP REST API using the new key. Use an attribute search for a value you know exists in your instance and a value you know does not. Run the request over the same network path and TLS trust chain that Cortex will use. The step is done when the known value returns the expected event and the unknown value returns an empty result, which shows that both connectivity and key permissions work.

  3. Install or enable the MISP analyzer in Cortex

    A Cortex administrator adds the MISP analyzer to the Cortex installation, using the packaging method your team uses for analyzers. The MISP tools page describes the Cortex MISP analyzer as the component that looks up observables in MISP from Cortex analysis workflows, so confirm the version you install against the analyzer's own documentation. Enable it for the organization or analyzer set that will run investigations. The step is done when Cortex lists the MISP analyzer as enabled and it appears in the analyzer catalog for the target organization.

  4. Add the MISP connection details

    In the Cortex analyzer configuration, enter the MISP base URL, the API key from the first step, and any TLS or certificate settings your internal certificate authority requires. If you plan to query more than one MISP instance, add each instance as a separate named connection so that results can be attributed to the instance that returned them. Check the analyzer documentation for the exact configuration keys in your version. The step is done when the configuration saves without error and Cortex shows each connection as reachable.

  5. Run a test lookup on a known observable

    Start an analysis in Cortex on an observable that you know appears in MISP, such as a domain or file hash from a closed test event, and select the MISP analyzer. Review the job output for the event identifier, the attribute match and the instance name. Then run the same analyzer on an observable with no MISP match. The step is done when the first job reports the expected event and the second job reports no match, without errors in the Cortex job log.

  6. Wire the analyzer into a TheHive analysis workflow

    In TheHive, confirm which TheHive and Cortex versions your environment runs, since the MISP tools page notes that current TheHive versions are distributed by StrangeBee. Then connect the Cortex server to TheHive and add the MISP analyzer to the analyzers that run on case observables. Decide whether lookups run automatically when observables are added or only when an analyst requests them. The step is done when a test case with a known observable shows the MISP analyzer report attached to that observable inside TheHive.

  7. Review the analyzer after the first real cases

    After analysts have used the analyzer on live cases, review the Cortex job history for errors, timeouts and unexpected empty results. Check that the MISP user still has only the visibility it needs and that the key rotation process is documented. Confirm with your MISP administrator how lookups affect search load on the instance. The step is done when the review finds no unexplained failures, the key owner and rotation procedure are recorded, and analysts know which MISP instance each result came from.

Setting up lookups against more than one MISP instance

The first decision is whether to run one analyzer configuration per MISP instance or to rely on a single configuration that points at several instances. Separate configurations are easier to reason about, because each one carries its own name, URL and API key, and an analyst can see at a glance which MISP instance produced a hit. A single shared configuration keeps the Cortex side tidier, but it makes it harder to tell which server a result came from, and it couples the availability of every instance to one definition. Make this choice before rollout, because changing it later means revisiting every analyzer job, playbook and TheHive reference that depends on the old naming.

Naming and ordering carry more risk than most teams expect. Give each configuration a name that states the instance's role and its trust level, such as an internal production instance or a sector community instance, and avoid generic labels that look the same in a dropdown. Check how Cortex and TheHive display and order results from each source, and confirm that an analyst can tell which report belongs to which instance without opening raw output. Where two instances share overlapping data, a hit on both can look like corroboration when it is really one feed copied twice, so document that relationship for analysts.

The exact multi-instance configuration method depends on the analyzer's documentation for the version you run, and it can change between releases. Confirm the configuration keys, how the analyzer is enabled per instance, and how each API key is scoped and rotated against the MISP tools page, which lists the Cortex MISP analyzer, and against the analyzer's own repository documentation. Test each configuration with a known indicator before relying on it, and record which instance answered so the setup can be reviewed later.

Scoping MISP API keys for analyzer lookups

A dedicated analyzer user is a MISP account created only for Cortex lookups. Its role grants search and read access and nothing that creates, edits or publishes events. Because the account belongs to the analyzer, its visibility is set deliberately: it can see only the organizations, distribution levels and sharing groups the lookup team has agreed to expose to automated enrichment. Its API key is stored in the Cortex configuration and is not shared with people.

  • Read-only role: Assign a role without publish, edit or sync permissions so a leaked key cannot change intelligence.
  • Explicit sharing group access: Add only the sharing groups needed for enrichment, so results are predictable.
  • Clear audit trail: Actions appear under one identity, which makes lookup activity easy to separate from analyst work.
  • Scheduled rotation: Set a rotation date, update the Cortex analyzer configuration, and confirm lookups still succeed before the old key is removed.
  • Separate key per instance: When Cortex queries several MISP instances, give each instance its own analyzer user.

Confirm with your MISP administrator which role names and permissions your version provides, and check the current key handling steps in the MISP security documentation before you create the account.

Mapping TheHive observable types to MISP attribute types

This table pairs common TheHive observable data types with the MISP attribute types an analyzer search would typically query. Read each row as a starting point, since the exact pairing depends on the analyzer version and its configured data types. Confirm every pairing against the analyzer's supported data types and the MISP attribute type list before you publish the mapping.

Observable typeLikely MISP attribute typesWhat to confirm before publishing
IP addressip-src, ip-dst, ip-src|port, ip-dst|portWhether the analyzer searches source, destination or both, and whether port combinations are included
Domaindomain, hostnameWhether subdomains and hostnames are matched or only exact domain values
URLurl, uriWhether the analyzer normalizes scheme, path and query before searching
File hashmd5, sha1, sha256, filename|sha256Which hash lengths are accepted and whether composite filename and hash attributes are searched
Email addressemail-src, email-dstWhether sender and recipient fields are both searched and how they map to TheHive observable types
Filenamefilename, filename|md5, filename|sha256Whether standalone filenames are queried or only composite values with hashes
Fuzzy hashssdeep, imphashWhether the analyzer supports these types at all, since many observable lookups skip them
Hostname or user agenthostname, user-agentWhether the observable type exists in your TheHive data model and whether the analyzer queries these attributes

Security controls for the analyzer connection

A Cortex analyzer turns every observable an analyst submits into a request against MISP, so the connection carries both data and credentials. The controls below limit what the key can do, protect it in transit and at rest, record what was asked, and keep both ends patched.

Scope each API key to lookups

Create a dedicated MISP user for the analyzer and give it the narrowest role that still returns the search results analysts need. Confirm which sharing groups and distribution levels that user can see, since the analyzer can only return what the key is allowed to read. Keep write permissions off this key, and use a separate key for any export or sighting submission. Confirm the role's permissions in your own MISP before rollout.

Verify TLS to every MISP

Each MISP instance the analyzer queries should be reached over HTTPS with certificate verification enabled. Check that the analyzer configuration does not disable verification, and that each instance's certificate chains to an authority your Cortex workers trust. Multi-instance setups multiply this risk, so review every URL entry individually.

Keep keys out of plain config

Analyzer configuration files often sit readable by anyone with access to the Cortex host. Store MISP keys in a secrets store or restricted environment variables, and confirm which mechanism your Cortex deployment supports. Limit who can read the Cortex configuration and rotate the key when staff with access change roles.

Log analyzer queries in MISP

Enable audit logging on each MISP instance so lookups made with the analyzer key are recorded with a timestamp and the requesting user. Review whether the log captures searched values, since observables can reveal investigation targets. Confirm retention and who can read the audit trail.

Restrict which workers reach MISP

Only the Cortex workers that run the MISP analyzer should have network routes to MISP. Use firewall rules or network segmentation to block other hosts, and confirm that the analyzer runs on a dedicated worker pool if your deployment allows it. Document the allowed source addresses so changes are reviewed.

Track advisories for both ends

Subscribe to security announcements for MISP and for the Cortex and TheHive components that call the analyzer, and track the MISP release notes on the project's GitHub releases page. Plan patch windows that cover both ends of the connection, because a fix on one side may change how the other behaves.

MISP releases

Testing lookups before analysts depend on them

Run a fixed set of lookup tests against the Cortex MISP analyzer before any analyst relies on it during an investigation. The goal is to confirm that each MISP instance answers correctly, that failures show up as failures, and that the evidence can be shown to a security reviewer. Start with a known-good indicator taken from a published event on the target instance. The analyzer job should return a hit, and the report should name the event and show the attribute's tags and distribution as MISP holds them. Then run an unknown indicator that exists nowhere in the instance. The expected result is a clean no-match, not an error, and an empty result must not look like a successful check that found nothing wrong by default.

Test the access boundary next. Create or reuse an API key whose user has restricted visibility, then look up an indicator that exists only in events that user cannot see. The result should match what that role is allowed to see, and nothing more. Repeat the check with the key you plan to give analysts, because the key's organization and role decide what the analyzer can return. Also test an unreachable instance by pointing a configuration at a closed port or a wrong hostname. The job should fail visibly in Cortex with a connection error, and the failure should not be reported as a no-match. Confirm the exact error text and timing with your own configuration, since the analyzer's behavior on timeouts is something to verify in your environment rather than assume.

For the multi-instance case, query the same known-good indicator against each configured MISP instance and record which instance returned each result. A hit on one instance and a failure on another should stay distinct in the analyst's view. Keep the full test set in a dated record: the indicator values, instance names, key identifiers (never the key value), the Cortex and analyzer versions, and the raw output for each run. Store the record alongside the change ticket for the configuration so a reviewer can trace what was tested and when. Repeat the suite after any upgrade of Cortex, the analyzer, or the MISP instance, and confirm the current analyzer behavior against the MISP tools page and the release notes for the versions you run.

Common MISP analyzer failures and their fixes

This table pairs each common failure of the MISP analyzer in Cortex with its likely cause and fix. Read it when a lookup returns an error or an empty result, and check the items marked for confirmation against the current analyzer documentation and your TheHive version before changing production settings.

FailureLikely causeFix
Authentication rejectedThe MISP API key is wrong, was copied with extra characters, has been revoked, or has expired.Generate a new key for a dedicated automation user, paste it into the analyzer configuration without spaces, and confirm the key works with a direct API call from the Cortex host.
Empty results for known indicatorsThe API key belongs to a user whose role or organization cannot see the events that hold the indicator.Check the key owner's role and organization in MISP. Use a key with read access to the sharing groups you need, then rerun a lookup on an indicator you know exists.
TLS certificate trust errorMISP uses a certificate issued by an internal or private CA that the Cortex host does not trust, or the hostname does not match the certificate.Install the CA certificate in the trust store used by the Cortex runtime, use the hostname on the certificate, and avoid disabling verification in production. Confirm the exact setting name with the analyzer documentation.
Connection timeout or refusedFirewall rules, proxies or DNS on the path from the Cortex host to MISP block the request, or the MISP base URL is wrong.Test reachability from the Cortex host itself, not from an analyst workstation. Open the required port in the network path and verify the base URL, including the scheme.
Observable type not handledThe analyzer only queries certain MISP attribute types, so the observable type in the case may not match what it can search.Confirm which observable data types the analyzer supports in your version. Map unsupported observables to a supported type where that is accurate, or look them up in MISP manually.
Errors after a TheHive upgradeThe analyzer was built against one TheHive or Cortex version and the installed release expects a different analyzer packaging or configuration format.Check the analyzer release against your Cortex version, and confirm with StrangeBee which TheHive releases are current, since the MISP tools page notes that StrangeBee distributes current TheHive versions. Test in a non-production Cortex first.
Multiple MISP instances return inconsistent resultsEach configured instance uses a different key, role or version, so one instance may not hold the same data as another.Document which instance each analyst path queries, verify each key separately, and confirm the analyzer's multi-instance configuration in your version before relying on combined results.

Questions buyers ask about the MISP Cortex analyzer

Is there a supported MISP analyzer for Cortex and where is it listed?

Yes, the MISP tools page lists a Cortex MISP analyzer that looks up observables in MISP from Cortex analysis workflows. Check that listing before you plan, and confirm the analyzer version you intend to run against your Cortex release and your MISP version. Because the analyzer depends on the MISP API, confirm that your MISP instance is on a version the project still supports, since MISP 2.4 is end of life with security fixes only. The MISP tools page is the place to start.

How much effort does in-house Cortex and MISP analyzer setup take?

The effort depends less on the analyzer configuration itself and more on the surrounding environment: whether MISP is already running, whether Cortex and TheHive are already deployed, and whether your team has someone who knows the MISP API. A single-instance lookup setup on existing platforms is usually a small change, while a new MISP deployment, a new Cortex cluster or a TheHive upgrade adds substantial work. Ask any partner for a written scope that separates analyzer setup, MISP work and TheHive work, so you can compare it with your own estimate.

What does the client team need to provide for the analyzer work?

Your team needs to provide access to the Cortex administration console, a MISP instance with an API key for a dedicated service user, and a test environment where analyzers can be run safely. You also need to name who owns the MISP instance, who approves changes to its data sharing rules, and who will review analyzer output during investigations. Confirm early whether MISP is hosted by you or by a sharing community, because that determines who can change key scopes and distribution settings.

How does multi-instance MISP setup change the effort?

Each MISP instance you add means another API endpoint, another key, another set of permissions and another set of results to interpret in the analyst's view. Effort grows with the number of instances, with differences in MISP versions, with differing tag and distribution policies, and with how you label results so analysts know which instance answered. Plan for a test lookup against each instance, and record which instance each configuration key points to so that a later rotation does not break one of them silently.

Can our own team run and maintain the Cortex MISP analyzer?

A team with working knowledge of Cortex analyzers, the MISP API and API key management can run a single-instance setup alone. The harder part to staff is ongoing ownership: rotating keys, reviewing which API key scopes each analyst's lookups use, and checking the analyzer after Cortex or TheHive upgrades. If nobody on your team owns those tasks, a retainer or a fixed-scope handover is a practical way to cover them. Decide that ownership question before the build, not after the first upgrade.

Which licensing and TheHive version questions should we confirm first?

Confirm two things before you commit to a design. First, confirm which TheHive version you run and who distributes it, because the MISP tools page notes that current TheHive versions are distributed by StrangeBee. Second, confirm the licensing terms that apply to your TheHive and MISP integration, including any paid license needed for connecting more than one MISP server, since the sibling integration guidance covers that point. Ask the vendor for those terms in writing rather than relying on the analyzer listing alone.

What API key scoping should we use for analyzer lookups?

Create a dedicated MISP user for the analyzer with the narrowest role that still allows observable searches, and give it its own API key rather than reusing an analyst's key. Limit what that user can see by distribution and organization, so lookups return only the intelligence your analysts are cleared to use. Store the key in your secrets manager, record its owner and expiry date, and test that a revoked key stops the analyzer without disrupting other integrations.

How DeployOpen works on this

DeployOpen plans and deploys the Cortex MISP analyzer as part of a self-hosted MISP and Cortex setup in infrastructure you control. We start from the analyst workflows that need observable lookups, then agree the MISP instances, API keys and analyzer configuration in writing before any build begins. The work is delivered as a fixed-scope engagement with documented results.

How we scope

  • Inventory which TheHive and Cortex users need observable lookups, and which MISP instances they should query.
  • Record each MISP instance, its API key owner, the key visibility and the analyzer roles agreed for each team.
  • Confirm the TheHive version and its distribution source before choosing the analyzer and licensing path.

How we build

  • Install and configure the Cortex MISP analyzer with one entry per MISP instance, using documented configuration keys.
  • Scope each API key to the minimum access the analyst workflow needs, and test lookups from a Cortex job.
  • Test failure paths, including an unreachable MISP instance, an expired key and a lookup that returns no matches.

How we hand over

  • Deliver a written configuration record covering instances, keys, analyzer settings and the rotation steps.
  • Provide a runbook for adding a MISP instance, rotating an API key and checking analyzer job logs.
  • Walk through the verification results with the analysts and platform team who will operate the setup.

How we support

  • Engagements are fixed-scope, with scope, deliverables and timelines agreed in writing before work starts.
  • Ongoing support, upgrades and continuous testing are available as a retainer for the analyzer and MISP instances.
  • Ask for a quote based on the written scope, which should list each MISP instance, the TheHive and Cortex versions and the test cases.

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.