MISP ZeroMQ and Kafka event streaming

MISP can publish events, sightings and tag changes to downstream consumers over ZeroMQ or Kafka, and each transport has its own enablement, security and operating requirements. This page explains what to choose and what to plan before switching either on.

On this page

MISP ZeroMQ and Kafka event streaming: when teams need live publishing

Streaming is the mechanism to use when a SOC or platform team wants new MISP events, sightings and tag changes pushed to consumers as they happen, so that SIEM pipelines, enrichment services and the live misp-dashboard do not wait for the next poll. Each consumer subscribes to the messages MISP publishes when an event is created or changed, when a sighting is recorded, and when a tag is attached or removed. Before you write any consumer, confirm the exact topic names, message bodies and enablement steps for your MISP version in the MISP documentation, because these details change between releases.

Streaming is not a replacement for sync partners. Synchronization carries events to other organizations under distribution levels and sharing groups, and it is where trust decisions about who receives what are enforced. The stream serves consumers inside your organization that already hold what your instance holds. Decide early which consumers truly need push delivery and which can call the API on a schedule, because every push consumer adds a permanent dependency on the broker and on the team that runs it. If you choose Kafka, the Apache Kafka downloads page lists the supported release lines, and the broker is licensed under Apache-2.0 with no paid edition from the project, so the cost is your own infrastructure and staff time.

Treat the broker as a production service with its own access controls. For Kafka, confirm the release you will run, since Kafka 4.x supports only KRaft mode and requires Java 17 for brokers. Enable SSL or SASL for clients and brokers, and remember that in KRaft clusters resources without ACLs are restricted to super users unless allow.everyone.if.no.acl.found is set to true, so grant each consumer group explicit read access to its topic. Event payloads can carry sensitive indicators and context, so check the distribution and TLP markings of what you publish before opening a topic to consumers outside the SOC.

Choosing between ZeroMQ and Kafka for MISP streaming

ZeroMQ fits a single MISP instance that feeds a small number of consumers close to it, such as one live dashboard and a few local scripts. The MISP administrators operate the publisher, and each consumer subscribes to it directly. Nothing sits between publisher and subscriber, so the estate gains no broker cluster to patch, size or monitor, and troubleshooting starts and ends with the MISP host.

  • Operator footprint: The MISP team owns the publisher, and no separate messaging platform is added to the estate.
  • Consumer count: Keep subscribers few and local. Each added consumer is another client to configure, test and reconnect after a MISP restart.
  • Network placement: Place subscribers on the same network segment or a tightly controlled path, because the channel is not designed as a shared bus for many parties.
  • Missed messages: Confirm in the MISP documentation how messages are handled for subscribers that are offline when an event is published, and plan a catch-up path through the API if you need one.

Confirm the expected subscriber count and the reconnect behavior of each consumer before you commit to this model.

How MISP events reach consumers and the misp-dashboard

The diagram starts in the MISP core, which publishes events, sightings and tag changes. Two paths leave the instance. The ZeroMQ publisher socket sends messages directly to subscribers and the misp-dashboard, so anything reading that socket depends on how MISP is exposed. The Kafka producer path writes records to a topic on a broker you operate, and other consumers read from that topic. Mark where data leaves MISP and where it enters the broker's network. Before go-live, confirm which publishers are enabled in your MISP settings, whether the broker uses TLS and authentication, and which consumers hold read access to the topic.

Event, sighting and tag flow from MISP to consumers and the dashboard.

Configuration options and when each fits

This table compares the main decisions for a MISP streaming deployment: transport, message types, consumers and broker security. Read each row for when the option fits and what it adds to operations. The main takeaway is that Kafka adds a broker cluster to run, while the security level should match how many parties can reach the stream.

DecisionWhen it fitsWhat it costs to operate
ZeroMQ transportOne or a few consumers on the same network, such as a live dashboard or a local toolLowest moving parts. Consumers connect directly to MISP, so you manage each subscriber and its availability. Confirm the ZeroMQ settings for your MISP version.
Kafka transportSeveral downstream consumers that need a buffered stream they can read againA broker cluster to run in KRaft mode, Java 17 for brokers, and upgrades within Apache Kafka's supported releases. Apache Kafka is Apache-2.0 licensed with no paid edition from the project.
Event messagesSIEM, SOAR or enrichment consumers that act on new or changed eventsHighest volume of the three message types. Consumers need filters for distribution level, tags and org to avoid ingesting data they should not hold.
Sighting messagesFeedback loops where detections and false positives must reach other consumersVolume depends on how often analysts or sensors report. Confirm the visibility and anonymisation behavior your MISP version publishes.
Tag change messagesConsumers that enforce classification, such as TLP-driven routing or access decisionsConsumers must handle updates to events they already stored, not only new items. Test how they treat a tag removed after publication.
Unsecured Kafka listenerIsolated lab or test cluster with no untrusted network pathLowest setup effort, but anyone who can reach the broker can read or publish. Not suitable where intelligence carries sharing restrictions.
Kafka over SSL/TLSBrokers reached across hosts or networks, with data in transit that must be encryptedCertificate issuance, rotation and trust distribution to every client. TLS is optional in Kafka, so enable it on every listener that carries MISP traffic.
Kafka SASL authenticationPer-client identity so each consumer and the MISP publisher have separate credentialsCredential storage and rotation. SCRAM-SHA-256 or SCRAM-SHA-512 need no directory service. GSSAPI needs a Kerberos realm. OAUTHBEARER needs an identity provider.
Kafka ACLsLimiting which client may read or write each topicUnder the StandardAuthorizer, resources without ACLs are limited to super users unless allow.everyone.if.no.acl.found is true, so write ACLs for every topic before go-live.

Setting up ZeroMQ or Kafka publishing in MISP

This sequence takes a MISP instance from a confirmed version to a verified stream of events, sightings and tag changes for downstream consumers and the live dashboard. Each step ends with a check, so the team can confirm publishing works before any consumer depends on it. Run the first pass on a non-production instance.

  1. Confirm MISP version and platform

    The MISP administrator, working with the platform team, records the running MISP version and the host operating system. Confirm the instance is on the 2.5 line, which the project recommends for new deployments on Ubuntu 24.04 with the provided installer. If the instance runs 2.4, plan the upgrade before enabling streaming, because 2.4 is end of life and receives security fixes only. Confirm the streaming options available in your exact version against the MISP documentation, since setting names and supporting services can change between releases. Done when the version record is written down and each publishing channel has a named owner.

  2. Enable the publishing mechanism

    The MISP administrator turns on ZeroMQ or Kafka publishing in the instance's administration settings and selects the message types to publish: events, sightings and tag changes. Enable one mechanism for the first test so that faults are easy to trace. Confirm the required background services for your version and start them. Check: after saving, the publishing service shows as running in the instance's diagnostics view, and a test event created on the non-production instance produces a publish entry in the logs.

  3. Provision the broker or socket endpoint

    The platform team provisions the endpoint. For ZeroMQ, choose the bind address and port on the MISP host. For Kafka, deploy a cluster in KRaft mode, since Kafka 4.0 supports only KRaft and ZooKeeper mode has been removed. Brokers require Java 17 under the 4.x line. Create the topic MISP will publish to. The Kafka downloads page lists the currently supported releases; choose one of them. Check: the MISP host can reach the broker or socket port, and the topic appears in a listing run with the Kafka command-line tools from a second host.

  4. Configure authentication and TLS

    The security owner sets the access model before any consumer connects. For Kafka, pick an authentication mechanism from SSL or the documented SASL mechanisms, and enable TLS so traffic between MISP, brokers and consumers is encrypted. Kafka security is optional by default, so do not leave a listener unsecured. Keep the authorizer's default behavior that denies resources without ACLs, then grant the MISP producer write access and each consumer read access explicitly. Review the Kafka security overview for the details. For ZeroMQ, the socket has no built-in user model, so confirm how your version restricts access and limit it with firewall rules or a tunnel. Check: a client with valid credentials connects over TLS, and a client without them is refused.

  5. Connect a test subscriber

    A consumer engineer connects a test subscriber on a separate, non-production consumer group or subscription. Use the same security settings that production consumers will use, so the test covers the real access path. Subscribe to the MISP topic or socket feed and leave the subscriber running while the next checks are performed. Check: the subscriber receives at least one message after a test publish from MISP, and for Kafka the consumer group offsets advance as messages arrive.

  6. Verify delivery for each change type

    The MISP administrator creates test data on the non-production instance: an event with a test tag and an attribute, a sighting on that attribute, and then a change to the event's tag. Watch the subscriber after each action. Compare each message's identifiers, such as the event UUID, the action type and the tag name, with what was changed in MISP. Also confirm that an event with restricted distribution behaves as your sharing policy requires, and ask the instance administrator to confirm how your version applies distribution to published messages. Check: each of the three actions produces one matching message, and no message appears for the restricted event.

  7. Connect the misp-dashboard

    The platform team points the misp-dashboard at the publishing endpoint and confirms the dashboard reads the feed type that is enabled. The dashboard is a separate component, so confirm its version and the transport it supports before you configure it, and use ZeroMQ if your version's dashboard depends on it. Restart the dashboard service and open its live view. Check: the test event created in the previous step appears in the live view, the test sighting is shown, and the tag change is reflected within the dashboard's update cycle.

Securing the event stream

Every MISP event that leaves the instance over ZeroMQ or Kafka carries its distribution and TLP context with it, so the transport becomes part of your sharing policy. The cards below cover the places where that policy can break: who can subscribe, how traffic is protected, what topics consumers can read, and how broker credentials are handled.

Unauthenticated subscribers

A ZeroMQ publisher bound to a network interface can be read by anything that reaches that port, and MISP's ZMQ feed does not replace network controls. Confirm which interface the publisher binds to and restrict it to the consumer hosts. On Kafka, the broker decides who may connect: an unsecured listener accepts any client that can reach it, so check that each listener exposed to consumers requires SSL or SASL.

Kafka security overview

Plaintext event traffic

Kafka encrypts client, broker and tool traffic with SSL/TLS, but security is optional, so a cluster can run with unsecured or mixed listeners. Event payloads include indicators, comments and organization context, so any unencrypted listener carries that data across the network in clear text. Make TLS a required listener setting for consumers and brokers, and verify it with a test client before go-live.

Over-broad topic access

A consumer that needs one feed should not be able to read every topic on the broker. In KRaft clusters, the StandardAuthorizer keeps ACLs in the cluster metadata log, and resources without an ACL are limited to super users unless allow.everyone.if.no.acl.found is set to true. Keep that setting false, grant read rights per topic and consumer group, and review ACLs whenever a downstream system is added or retired.

Kafka authorization docs

TLP-marked data reaching outsiders

MISP distribution levels and sharing groups govern which organizations may receive an event, but a stream publisher emits data for the whole instance unless the export is scoped. Confirm which events, tags and distribution levels are published to each topic, and decide whether TLP:RED or sharing-group events may leave the MISP host at all. Consumers outside the originating community should receive only data they are permitted to hold.

Broker credential handling

SASL mechanisms such as SCRAM-SHA-512 or OAUTHBEARER need credentials that MISP and the consumer hosts must store. Keep broker secrets out of MISP configuration exports and shell history, restrict file permissions on the host, and rotate credentials when staff or systems change. Separate producer and consumer identities so that a compromised reader cannot publish events back into MISP.

Consumer identity and audit

Each downstream consumer should have its own principal, so that broker logs show which system read which topic and when. Record consumer identities in your MISP and broker documentation, and review them with the same cadence as user accounts. Without per-consumer identities, an investigation into a leaked indicator cannot tell which subscriber exposed it.

What a Kafka cluster needs before MISP can publish to it

Before MISP can publish to Kafka, the Kafka side has to be a KRaft-mode cluster on a supported release. The Kafka downloads page lists 4.3.1, 4.2.2 and 4.1.2 as supported, so a new cluster should start on one of those. Apache Kafka 4.0 removed ZooKeeper mode entirely, so any cluster still on ZooKeeper must migrate to KRaft before it can move to 4.x. The upgrade notes also recommend that KRaft clusters older than 3.3.x first move to 3.9.x. Brokers, Kafka Connect and tools require Java 17 from Kafka 4.0 onward, and clients need at least Java 11. Confirm the Java runtime on every broker host and every machine that runs tooling before you install anything, because a mismatch is easy to miss until a broker fails to start. The Apache Kafka downloads page is the reference for the current supported list.

Access control is the step most likely to block a working setup. In KRaft clusters, the StandardAuthorizer keeps ACLs in the cluster metadata log, and any resource without an ACL is limited to super users unless allow.everyone.if.no.acl.found is set to true. Leave that setting at its default for a shared environment, then write explicit ACLs for the MISP producer identity on the specific topics it will publish to, and test the publish with that identity before you go live. Decide the authentication mechanism early, whether SASL with SCRAM or OAUTHBEARER, or SSL, because the MISP side needs matching client settings.

If the organization already runs Kafka, the cluster is probably owned by another team. Agree in writing who owns the cluster, who creates topics, who holds the super user accounts, who approves ACL changes, and who pays for retention and storage on the topics MISP will fill. Confirm which Kafka release the cluster runs and whether it has a planned upgrade window, because a broker upgrade during a MISP rollout creates a second change to diagnose. Agreeing these owners before the first publish avoids delays when an ACL or topic change is needed.

Limits to confirm in your environment

Streaming is only as dependable as the release, transport and consumer behavior you have actually tested. The cards below list what the team should confirm with the MISP documentation and its own test before treating the ZeroMQ or Kafka feed as a production dependency.

Message types per release

Confirm which message types each MISP release publishes over each transport, including events, attributes, objects, sightings and tag changes. Coverage can differ between versions and between ZeroMQ and Kafka, so a consumer built against one release can miss messages after an upgrade. Check the MISP documentation for the exact release you plan to run, then subscribe a test consumer and trigger each action type yourself.

MISP repository

Message schema and topic naming

Confirm the payload structure and the topic or channel names each transport uses, and whether they are stable across minor releases. Downstream parsers that assume a field layout break silently when a field is renamed or nested differently. Record a sample message per type in your test environment and pin your consumer parsers to those samples.

Behavior under high event volume

Confirm how the publisher and your consumers behave when many events, attributes or sightings arrive in a short window. Measure whether messages queue, drop or slow MISP's own background work, and whether your consumer keeps up with the peak rate you expect from sync partners. Run a load test that replays realistic batch sizes before the feed goes live.

Delivery guarantees on restart

Confirm what happens to messages published while a consumer, the broker or MISP itself is down. ZeroMQ publish and subscribe does not by itself replay missed messages, so a restarted subscriber may have gaps. Kafka retains messages for consumers to read by offset, but its durability depends on your topic retention and replication settings. Test a planned restart of each component and reconcile the results against the MISP database.

Kafka broker and client versions

If you use Kafka, confirm that your broker version is supported and that your consumer libraries meet the Java requirements for that release. Kafka 4.0 removed ZooKeeper mode and requires Java 17 for brokers, so a legacy cluster needs a migration plan first. Check the supported release list before choosing a version for the event topic.

Kafka upgrade notes

Dashboard and release compatibility

Confirm that the misp-dashboard version you plan to run is compatible with your chosen MISP release and its message formats. A dashboard built for an older release may not parse newer message types, and the dashboard and MISP upgrade on different schedules. Pin both versions in your change record and test the dashboard after every MISP upgrade before enabling it for analysts.

Questions buyers ask about MISP streaming

What does MISP streaming setup cost and what drives the effort?

Most of the cost is people time, not software, because MISP's ZeroMQ publisher and Kafka publishing are part of the platform and Kafka itself is free under the Apache License 2.0. Effort rises with the number of brokers you run, the security model you require (TLS only, or SASL plus ACLs), the number of downstream consumers, and whether a Kafka platform already exists. A one-time build covers configuration, consumer design and testing, and recurring work covers broker upkeep, certificate rotation and consumer changes. Ask any quote to itemize these components separately and to state which Kafka version and security mechanism it assumes.

How long does MISP streaming take to set up?

Duration depends on your environment, so no fixed figure applies. The main variables are whether you already operate a Kafka cluster that meets current requirements, how quickly broker and network owners can open the required paths, how many consumers need separate topics or access rules, and how much testing your change process requires. A greenfield ZeroMQ setup for a single consumer is far shorter than a multi-consumer Kafka deployment with mutual TLS and ACLs. Ask for a written timeline tied to the scope and the dependencies it lists.

What does our internal team need to provide?

Three groups of people are needed. Broker owners provide the Kafka cluster or confirm an existing one, including its version, listeners and authorization model. Network and security staff open the connections from the MISP server to brokers or to the ZeroMQ port, and approve certificates or SASL credentials. Consumer owners describe what they need to receive, in what format and at what volume, and they test their side. Without named owners for each group, most delays come from waiting for approvals rather than from configuration.

Can our team set up MISP streaming in-house?

Yes, if your team already runs MISP and operates messaging infrastructure. The MISP side is a set of server settings and a background worker, and Kafka work is standard cluster administration. The harder parts are sizing, securing the listeners, enforcing ACLs in KRaft mode and handling consumer failures without losing events. Teams without Kafka experience usually benefit from a short design review before building. Decide early whether a simpler ZeroMQ feed for one consumer is enough, since it avoids running a broker.

Do we need a Kafka cluster, or is ZeroMQ enough?

ZeroMQ is enough when one or two consumers read MISP directly and you do not need replay, durable buffering or many independent readers. Kafka fits when several systems consume the same events, you need retention so a consumer can catch up after an outage, or you already run Kafka for other data. Kafka adds operational load: brokers, controllers, storage and upgrades. Check current upgrade requirements before choosing, because Apache Kafka 4.0 supports only KRaft mode and ZooKeeper mode has been removed. Confirm the exact enablement steps for each option against the MISP documentation for your release.

What does the MISP project charge, and does Kafka cost anything?

The MISP project is open source under the GNU AGPL version 3, and it offers paid support services. A number of third-party providers also offer commercial support, so you can compare them. Apache Kafka is an Apache Software Foundation project under the Apache License 2.0, and the project itself has no paid edition. Any Kafka vendor or managed service you choose will charge separately, so ask a managed-service provider which costs apply. Your own costs will mostly be infrastructure and staff time.

What goes wrong most often with MISP Kafka streaming?

The common failures are connection and authentication errors, such as a broker listener that does not match the advertised address or a missing ACL that blocks the publisher from writing to its topic. In KRaft clusters, resources without ACLs are restricted to super users unless allow.everyone.if.no.acl.found is set to true, which surprises teams that expect open access. Other issues include consumers that fall behind, topics without retention that match consumer outages, and certificate expiry. Test failure modes in a non-production environment before connecting production consumers.

How the work is scoped and handed over

DeployOpen scopes streaming work in writing before any configuration changes are made. The first step is an inventory of consumers: which downstream systems subscribe to MISP events, sightings and tag changes, whether the live misp-dashboard is in scope, who owns each consumer, and what each one does with the messages. For each consumer we record the event types it needs, the expected message volume, and the failure behavior the owning team requires. This inventory drives the transport decision. A ZeroMQ publisher suits a small number of closely coupled consumers on the same trusted network, while Kafka suits consumers that need durable, replayable streams and independent scaling. The written scope should state which choice is made and why, and it should name who confirms the consumer list before the build starts.

The security review comes next and covers both sides of the connection. For a Kafka path, we check the listener configuration, the SSL or SASL mechanism chosen, the ACLs that will be stored in the cluster metadata log, and the handling of resources without ACLs, so that no topic is open by default. For a ZeroMQ path, we check which interfaces the publisher binds to, who can reach them, and how the connection is restricted. Operators should confirm which Kafka version and cluster mode the organization already runs, since the supported upgrade paths and Java requirements are set by the Kafka project. The build phase then configures MISP, the publisher and any Kafka topics or subscriptions, and each consumer is tested with sample events, sightings and tag changes, including a deliberate interruption to confirm recovery behavior.

Handover is written, not verbal. The deliverables we agree on include a runbook for enabling and disabling each publisher, the topic or socket map, the ACL and credential ownership record, the consumer test results, and the steps to restart a subscriber and replay missed messages where the transport allows it. Each deliverable is listed in the written scope, along with the people who receive it and the support arrangement that follows. Organizations that want ongoing upgrades or continuous testing of the streaming path can arrange that as a separate retainer. Before signing, ask for the exact deliverable list, the acceptance tests, and which items are one-time and which need recurring effort from your own team.

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.