Why securing MISP's Redis and database matters for a shared threat intelligence platform
This section explains why the services behind MISP need their own hardening work, even when the web interface is locked down. MISP is built on PHP with CakePHP, MySQL or MariaDB, and Redis. The database holds the events, attributes, sharing groups, users and API keys that make up your intelligence, and Redis holds session, cache and background job state. Anyone who can reach those services directly can often read or change data without ever passing MISP's login page. For an organization holding unpublished indicators from incidents or from sharing partners, that exposure matters as much as the application itself.
Teams usually need this work at three points. The first is initial deployment, when default service settings, open listening ports and shared credentials are easiest to fix before data accumulates. The second is after a sync, feed or integration expands network paths, for example when a SIEM, a sensor or a partner's host is given a route to the MISP host. The third is before an audit, when someone will ask who can reach the database and cache, how their access is authenticated and whether that access is logged. Confirm your MISP version and packaging against the MISP download page before you plan changes, since the installer and service layout shape where each setting lives.
The ZeroMQ channel also needs attention in this context. MISP's ZeroMQ publish and subscribe feed uses TCP port 50000 by default and binds to localhost, so it is not reachable from other hosts unless someone changes that binding. Changing it is a routine request during integration work, and it is easy to do without reviewing what the port then exposes. Before any binding change, check whether optional username and password settings are enabled and who will hold them.
How MISP's core services and their network paths fit together
The diagram starts at the users and external consumers on the left, who reach the MISP web and worker tier on the application host. From there, the web tier and workers talk to MariaDB and Redis inside a private data tier, and misp-modules runs alongside the application host. The ZeroMQ publisher is shown on the application host, bound to localhost by default, so only local consumers reach it. Check that the data tier accepts connections only from the application host and that the only path crossing the trust boundary is the one you intend to expose.
Internal service paths and the one boundary that external consumers cross.
Which hardening option fits each MISP service
This table compares the main hardening control for each service behind MISP, when it fits and what it complicates. Read each row against your topology: a single host, a split-host layout, or containers on a shared Docker network. The main takeaway is that the ZeroMQ port needs explicit firewalling once you change its binding, and that Redis and MariaDB controls must be set in both MISP and the service itself.
| Service and control | When it fits | What it breaks or complicates |
|---|---|---|
| Redis password | Redis runs on the same host as MISP and is still reachable by other local processes or containers | MISP's configuration must carry the same secret, so every change needs a coordinated restart; confirm the exact setting names against your MISP version |
| Redis TLS wrapping | Redis is reached over a network link, such as a split-host layout or a sidecar on another node | Certificates must be issued, distributed and renewed; clients that do not negotiate TLS will fail to connect, so confirm MISP's Redis client support first |
| Redis bind address | Redis serves only the local MISP process or a private subnet shared with the application | A bind change that is too narrow breaks split-host or Docker networking; a bind to all interfaces exposes the service unless a firewall covers it |
| MariaDB dedicated account and grants | MISP's database user should hold only the privileges its schema needs, separated from administrative accounts | Upgrades and database migrations may need broader rights for a period; plan a temporary grant and a documented revert |
| MariaDB encrypted connections | MySQL or MariaDB runs on a separate host from the MISP application | Certificate handling adds work to the client and server, and mismatched settings produce connection errors that look like authentication faults |
| MariaDB at-rest encryption | Your data classification or compliance scope requires encryption of stored database files and backups | Support depends on the MariaDB build and storage engine; confirm availability with your distribution and plan key custody before enabling it |
| ZeroMQ localhost binding | MISP and its ZeroMQ subscribers run on the same host and no remote consumer needs the feed | Remote subscribers cannot connect, so each one needs a deliberate binding change and a rule in your firewall |
| ZeroMQ optional username and password and TCP port 50000 firewall rule | A remote subscriber must reach the channel on the default TCP port 50000 from known addresses | An open port on a wider network exposes intelligence to any reachable client; restrict source addresses and confirm the credential options in the ZeroMQ user guide |
How to secure Redis, MariaDB and ZeroMQ in sequence
This sequence moves from mapping what MISP connects to, through private binding, authentication and account scoping, to locking the ZeroMQ port and proving the instance still works. Each step ends with a check so the team knows the control is in place before moving on.
Inventory every connection MISP makes
Before changing anything, the platform team lists each service MISP talks to: the web and worker processes, the Redis instance used for background jobs and caching, the MariaDB server, the ZeroMQ publisher, misp-modules, and any outbound sync or SIEM connections. For each one, record the host, port, protocol, the account it uses and which machines need to reach it. Confirm the list with the MISP administrator, because some connections only appear under load, such as scheduled jobs or sync pulls. Done means you have a written map that shows which connections are local to the MISP host and which cross a network boundary. Use the MISP installation documentation and your own configuration files as the source of truth, not memory.
Bind Redis and MariaDB to private interfaces
Configure Redis and MariaDB to listen only on a private address or the loopback interface when all MISP components run on one host, or on a dedicated private interface when they run on separate hosts. In Redis, check the bind directive and whether protected mode is active. In MariaDB, check bind-address in the server configuration. Restart each service in a maintenance window. Done means that a connection attempt to the service's port from a host outside the MISP trust zone is refused, and that MISP's own web and worker processes still connect. If MISP and its database run on different hosts, confirm that the firewall allows only the MISP application hosts to reach the database port.
Set Redis authentication and TLS where supported
Set a strong password with the requirepass directive or the ACL system, depending on your Redis version, and store it in the MISP configuration file that the platform uses for its Redis connection settings. If your deployment uses Redis across a network link rather than on the same host, check whether your Redis build supports TLS and whether MISP's configuration can point at a TLS endpoint, and confirm this with your vendor or Redis version documentation rather than assuming it. Restrict the password file's permissions so only the MISP service user can read it. Done means an unauthenticated connection to Redis is rejected, while MISP's background workers and web processes can still read and write cache and job data after a restart.
Create a least-privilege MariaDB account for MISP
Create a dedicated MariaDB user for the MISP application, separate from the administrative root account and from any reporting or backup account. Grant it only the privileges MISP needs on its own schema, and host-restrict the account to the MISP application host or subnet rather than a wildcard. Do not grant global privileges. Store the password in a file readable only by the MISP service user. If you need encryption for connections, enable TLS on the server and require it for this account. Done means that a login as the new user from an unapproved host fails, that a query against another database on the server is denied, and that MISP still loads its pages and runs its scheduled jobs.
Restrict the ZeroMQ port and keep localhost binding
The MISP ZeroMQ publish channel uses TCP port 50000 by default and listens on localhost only unless the binding is changed. Leave that default in place unless a named consumer on another host needs to subscribe. If a consumer does need it, change the binding to a specific private address, enable the optional username and password settings, and allow only that consumer's address through the host firewall. Document who the consumer is and why the binding changed. Done means that port 50000 is not reachable from outside the trust zone, and that any approved subscriber can connect and receive messages using its credentials.
Verify from outside the trust zone and confirm MISP runs
Run a port scan of the MISP host and its database and cache hosts from a machine outside the trust zone, and check that only the intended web ports respond. Repeat the scan from an approved internal host to confirm the expected ports are open there. Then confirm MISP still functions: log in through the web interface, run a background job, execute a correlation or cache operation, and confirm that an approved sync partner can still pull or push an event. Record scan results, the configuration diffs and the test outcomes as evidence. Done means that the scan output matches the port map from step one and that each functional test passes. Re-run the scan after any future change to these services.
How the ZeroMQ channel is exposed and when to change its binding
The ZeroMQ publish/subscribe channel listens on TCP port 50000 by default, and it is bound to localhost only. That default is safe for a single-host install where nothing outside the machine needs live event notifications. It stops being sufficient the moment a SIEM collector, a sensor or a partner's MISP instance has to subscribe from another host. Before you change anything, list every subscriber that needs the channel, its source address and whether it runs inside or outside your trust boundary. That list defines the only addresses that should ever reach port 50000.
Changing the binding is a deliberate step with two parts. First, you adjust the ZeroMQ bind setting in MISP so the listener accepts connections on a specific private interface rather than on localhost alone. Second, you restrict that port at the host firewall and at any network device between the subscribers and MISP, allowing only the approved source addresses. The channel also has optional username and password settings, but whether they are enforced, how they are passed by subscribers and what they protect against depend on your MISP version. Confirm the exact configuration keys, the default values and the authentication behavior in the MISP user guide for ZeroMQ against the release you are running before you write the change into your configuration management.
Test the exposure from outside the approved network, not only from the MISP host. A port that answers from one subnet should be refused from every other subnet, and an unauthenticated connection attempt should not return event data if you have enabled credentials. Record the approved subscribers, the firewall rules and the authentication settings in your change record so that a later upgrade or a new integration does not reopen the port silently.
Security and operational risks in Redis and database hardening
Redis, MariaDB, the ZeroMQ channel and backups all hold MISP data or control access to it, so each one needs its own control. The cards below pair each risk with the setting to apply and the check to repeat after installs, upgrades and restores. Confirm exact configuration keys against the MISP and vendor documentation for your installed version.
Redis reachable without authentication
MISP uses Redis for background job queues and cache, so anyone who can reach an open Redis port can read or change that state. Set a Redis password, bind the service to a private interface or loopback address, and block the port at the host firewall. The operational check is to run a connection test from a host outside the MISP application tier and confirm it is refused. Repeat the test after any change to the Redis configuration file or service unit.
Database accounts with excess grants
The account MISP uses to reach MariaDB should hold only the privileges the application needs on its own schema, not global or administrative rights. Broad grants let a compromised web process or a stolen credential alter other databases or create accounts. Confirm the grant set with a privilege query for the MISP user after installation and after every upgrade, since upgrade steps can add grants. Keep administrative accounts separate and used only for maintenance.
Plaintext connections between hosts
When MISP, its database and Redis run on separate hosts, traffic between them can cross networks in clear text unless TLS is configured on each connection. Enable TLS for MariaDB client connections and for Redis where your deployment supports it, and restrict those ports to the MISP hosts. The check is to capture traffic on the link during a test sync or page load and confirm no credentials or record content appear in clear text.
Unencrypted database backups
Database dumps contain event data, user records and API key material, so a backup file copied to shared storage without encryption exposes everything MISP holds. Encrypt backups at rest, restrict who can read the backup location, and keep the decryption keys separate from the backup files. Test a restore into an isolated host on a schedule and confirm the restored instance does not reuse production credentials or keys.
ZeroMQ exposed beyond consumers
The MISP ZeroMQ channel uses TCP port 50000 by default and listens on localhost only unless the binding is changed. If someone widens the binding for a single consumer, every host that can reach the port can subscribe to the event stream. Keep the binding on localhost or a dedicated private address, allow only the known consumer host through the firewall, and enable the optional username and password settings. Verify with a port scan from an unapproved host.
ZeroMQ user guideSettings reset during upgrades
Upgrades and installer re-runs can overwrite configuration files, restore default bindings, or recreate service units without the hardening you applied. A Redis password or a ZeroMQ binding change may silently disappear after a version move. Keep a written baseline of the Redis, database and ZeroMQ settings, compare it against the live configuration after each upgrade, and rerun the connection and port checks before returning the instance to users.
Questions teams ask before securing MISP's Redis and database
How much effort does hardening MISP's Redis and database take?
The effort depends mostly on how many hosts MISP runs across, how much of the network design already exists, and whether the stack runs in Docker or on bare metal. A single-host instance with Redis and MariaDB on the same machine is a small change. A split deployment, with separate database and Redis hosts, needs firewall rules, service configuration and connection tests on each host. Ask any partner to size the work from a written inventory of hosts, services, ports and network zones, not from a generic estimate. Ask for the effort split between discovery, configuration, testing and handover so you can see what each part costs.
Can our internal team secure MISP's Redis and database without a partner?
Yes, if the team already administers Linux servers, MariaDB, Redis and host firewalls, and has a non-production MISP instance to test against. The steps are well defined: set a Redis password and wrap its connections in TLS where your deployment supports it, bind services to private interfaces, create least-privilege MariaDB accounts, and confirm the ZeroMQ port stays on localhost or behind a restricted rule. Teams without that experience usually need a partner for the configuration review and the verification pass. Check each step against the MISP installation documentation for your version before you change production.
What do we need to provide before hardening starts?
Prepare four inputs before any change is made:
- A network diagram showing MISP, its database and Redis hosts, sync partners, SIEM collectors and administrative access paths.
- A list of firewall change windows and the people who approve them.
- A test instance built from the same MISP version and packaging as production, so changes can be proven before rollout.
- Named owners for MISP, the database, the network and the firewall, who can answer questions during testing.
Without a test instance, every change lands in production first, which is where most avoidable outages begin.
Does MISP's ZeroMQ port need hardening, and how do we check it?
MISP's ZeroMQ channel uses TCP port 50000 by default and is available to localhost only unless its binding is changed. Hardening should confirm the binding is still local, and if other hosts must subscribe, restrict that port to specific source addresses and consider the optional username and password settings. Check the result from outside the MISP host with a port scan from an approved location, and confirm that the listener's bind address matches your intent. Repeat the check after every upgrade, because a changed default or a new configuration file can reopen the port.
Do these settings need to be reapplied after MISP upgrades?
Often, yes. Upgrades can rewrite configuration files, regenerate service units, or change the installer's defaults, so settings made by hand may be overwritten. The MISP 2.5 line also has changes that need planning, including a new database migration system introduced in 2.5.47. Keep your hardening as a documented, version-controlled configuration, record each change in a runbook, and rerun the verification checks after every upgrade. Ask a partner whether the upgrade test is part of the written scope or a separate retainer.
How does hardening interact with the MISP installer?
The official installer on Ubuntu sets up MISP, its database and Redis with its own defaults, so hardening is a change layered on top of a working install. Plan for the installer's configuration files to be reviewed rather than replaced blindly, and document which settings you changed so the next install or rebuild reproduces them. Docker, Ansible, Puppet and RPM installations each store these settings in different places, so the locations you change depend on how MISP was deployed. Confirm the installation method and file locations before scoping the work.
What should a partner's written scope include for this work?
A written scope should name the MISP version, the deployment method and each host in scope. It should list the services covered (Redis, MariaDB and the ZeroMQ binding), the network zones and firewall rules to change, the test environment used, and the verification steps with evidence delivered at the end. Include who holds administrative credentials during the work, how changes are rolled back, the change windows you must approve, and what happens if an upgrade is planned later. Ask for the handover format, such as a runbook and configuration files, and whether retesting after upgrades is included or quoted separately. DeployOpen plans and delivers this work as fixed-scope engagements, with scope, deliverables and timelines agreed in writing before work starts.
What a written scope for this hardening work should cover
A written scope for hardening the Redis and database layers behind MISP should name each deliverable in advance. The core items are a service inventory listing every component that touches MISP (the MISP web and worker hosts, the Redis instance, the MariaDB server, the misp-modules service if it runs, and the ZeroMQ publisher), the network path between them, and the config file or setting each one depends on. Ask for the target network diagram to show which interfaces Redis and MariaDB listen on, which subnets may reach them, and where the ZeroMQ port (TCP 50000 by default, bound to localhost unless changed) sits relative to any consumer. Each change should appear as a per-service configuration record: the file, the key, the old value, the new value and the reason. Confirm with the vendor or your own environment which Redis and MariaDB settings your installed MISP version reads, because defaults differ between installer, Docker and Ansible builds.
Verification evidence and a rollback plan are the items reviewers ask for most often. Verification should include before and after scans of listening ports, a test showing that an unauthenticated connection to Redis or MariaDB is refused, a confirmation that MISP still starts and synchronizes after the Redis password or TLS change, and captured database account grants that match the least-privilege list. The rollback plan should record the exact revert steps per service, the order in which to restart them, and the maintenance window your team needs. Operational notes then close the loop: who rotates the Redis password and MariaDB credentials, where they are stored, how a new account is added, and which alerts should fire if a port opens again.
These items also serve as the evidence internal reviewers and external auditors request when they test access control, encryption in transit and configuration management. A single package with the diagram, change records, test output and runbook lets a reviewer trace a control from its objective to the setting that enforces it. DeployOpen prepares this evidence, but it does not issue audit reports or certifications, and the scope should say so. Ask the partner to state which controls the evidence maps to, and confirm with your auditor which format they accept before work begins.
How DeployOpen scopes and delivers MISP service hardening
DeployOpen treats the Redis and database hardening of a MISP instance as a written, fixed-scope piece of work inside infrastructure you control. We agree the services, network paths and evidence in advance, then build and verify the changes on your environment before handing over the configuration and runbooks.
How we scope
- Inventory every Redis, MariaDB and ZeroMQ listener on the MISP host and the network paths that reach each one.
- Agree which MISP components connect to Redis and the database, and which hosts must keep access.
- Record the scope, deliverables and timeline in writing before any configuration changes begin.
How we build
- Set Redis authentication and TLS wrapping, and confirm MISP connects with the updated settings.
- Bind Redis, MariaDB and ZeroMQ to private interfaces, and restrict the ZeroMQ port with host and network rules.
- Create separate MariaDB accounts for MISP with least privilege, and review encryption options for data at rest and in transit.
How we hand over
- Deliver a configuration record listing every changed setting, file, account and listening port.
- Provide a verification checklist that your team can rerun after upgrades, restores or host changes.
- Walk your operations staff through the runbook, including password rotation and how to reopen access safely.
How we support
- Retest the listeners and access rules after each MISP release, since upgrades can change service defaults.
- Offer ongoing support, upgrades and continuous testing as a retainer if your team wants them after handover.
- Ask any provider, including us, to confirm in writing how Redis and MariaDB settings will be checked after upgrades.

