Back to Blog
Product

Query your MISP live from Huntbase, in MispQL

Tyler Oliver November 30, 2026 ~4 mins

The MISP connection that feeds your private intel can now be queried live, in place, in MispQL. Scout checks indicators against your MISP and cites the event and TLP, hunts can carry MispQL steps, and STIX-pattern hunts run on MISP too. MISP 3.0 gets the full language; 2.4 and 2.5 get the part that maps exactly, and Huntbase never silently widens a query.

TL;DR — If your MISP is connected to Huntbase, you can now query it live in MispQL, the SQL-like language from the MISP project. MISP answers in place, as the user your key belongs to, and nothing is written back. Scout, our investigation partner, checks indicators against your MISP during an investigation and tells you which event they came from and their TLP. Hunts can carry MispQL steps, and STIX-pattern hunts run against MISP too. It works with the MISP you run today: MISP 3.0 gets the full language, and MISP 2.4 and 2.5 get the part that maps exactly to classic search.

→ Query MISP from Huntbase: setup guide


One connection, two jobs

Huntbase already ingests MISP: attributes become indicators in your organisation's private intel store, events become reports, and tlp:* tags set the TLP.

Ingestion runs on a schedule. During an investigation the question is narrower and more urgent: "is this domain in our MISP, and who put it there?" You shouldn't have to wait for the next poll, or switch tools, to find out.

So the same MISP connection, with the same API key, now answers queries too. If you connect in API mode, there is nothing new to set up. A published feed has no API to ask, so feed-mode connections keep ingesting but cannot be queried.

MispQL

MispQL is written by the MISP project at CIRCL and published as open source at github.com/MISP/MispQL. You query records, not endpoints and their parameters:

SELECT event_id, type, value, Event.info, Tag
FROM attributes
WHERE value = 'update-check.example.net'

That returns one row per matching attribute: its event, type and value, the event's title, and its tags as one cell, with a tlp column beside them giving the most restrictive TLP. If the statement has no condition on timestamp, the time range you picked in Huntbase is added for you.

MISP applies its own access rules to the key's user, and only the matching records come back.

Scout checks your MISP

When Scout finds an IP, domain, URL or hash in your telemetry, it asks your MISP about it straight away and cites what it found. Ask about 193.32.162.12 and Scout answers that your MISP has it in the event "SSH brute-force infrastructure", attributed to TeamTNT, at tlp:amber. A match is reported as intelligence context, not as a sighting on your estate. Values marked TLP:RED stay inside Huntbase: Scout's outbound tools refuse to send them.

In hunts

A hunt.md playbook can now include a mispql step, bound to your MISP connection. The format also lets that step fill a list for later steps, so a hunt can pull the addresses your MISP community has tagged, with the events they came from, and sweep your SIEM or lake for them:

```mispql target=misp out=$brute_force_ips provenance=event_id
SELECT value, event_id FROM attributes
WHERE type IN ('ip-src', 'ip-dst')
  AND tags = 'circl:incident-classification="brute-force"'
  AND to_ids = TRUE
```

STIX-pattern hunts, intel sweeps and Scout's "search every connected tool" run against MISP as well. Huntbase translates each pattern into MispQL, searches the MISP attribute types that the MISP project's own STIX converter uses, and returns each match with its event, tags and TLP. The guide lists every supported STIX type.

Works with the MISP you run today

Most MISP servers in production run 2.4 or 2.5. MISP 3.0 adds complex queries. Huntbase supports both:

Huntbase never silently widens a query. A classic MISP that receives a condition it cannot express doesn't refuse it. It drops the condition and returns more than you asked for. So when a statement can't be mapped exactly, Huntbase stops before sending it and points at the part that needs MISP 3.0, such as an OR across two fields. You get the reason, not a misleading result.

The connection check tells you which mode you are in and why: the server version, or that the key's role lacks the Complex query permission.

Get started

Open your MISP connection in Connections and run the check. If it connects in API mode, you can query it now. New to Huntbase? Sign up here.

→ Read the setup guide


MispQL is developed by the MISP project at CIRCL and released under the MIT licence. Huntbase is not affiliated with or endorsed by CIRCL or the MISP project.

#Threat Intel #Platform Update #AI
More Articles