How MISP API key security reduces risk for SIEM pulls and partner sync
An API key in MISP carries the same access as the account it belongs to. Many instances feed a SIEM, run scheduled PyMISP jobs and exchange data with partners through sync users, and each of those connections authenticates with a key created by a person or service account. Those keys often outlive the people who made them. When a former analyst's key still works, or a sync key was copied into a ticket years ago, the exposure is the full permission set of that account, not just the query the integration needs. The practical controls are scope, expiry, source restriction, rotation and regular review, and together they decide how much damage a leaked key can do.
MISP's REST API and PyMISP both authenticate by sending the key with each request, so the key is the credential for every automated pull, push and sync the instance performs. A SIEM poller that only reads indicators should not hold a key that can publish events or change organisation settings. Teams should inventory every key, record which integration uses it, which account owns it and whether it is tied to a sync or a human, and then decide which keys need a narrower role, an expiry date or an address restriction. Read-only access for SIEM pulls and separate keys for each partner or tool are the usual starting points, though the exact options depend on the MISP version and configuration.
Teams usually need this work once MISP feeds detection tooling or external communities, and again whenever staff or partners change. Confirm in your own environment which key options your MISP version exposes, how advanced authentication keys are enabled, what the key lifecycle looks like for sync users, and where key usage is logged, since those details determine the rotation plan. Check the MISP GitHub repository and your release notes before you change key handling on a production instance.
Which API key risks matter most on a MISP instance
A MISP API key carries the same permissions as the account it belongs to, so a leaked or misused key can read, publish or change intelligence without anyone logging in. The five risks below share a root cause: keys are created once, shared widely, and rarely reviewed. Each card names the first control that narrows the damage.
One key shared across integrations
When several tools, scripts and sync jobs use the same key, a leak exposes all of them and no log entry tells you which tool made a given call. An attacker holding the key could pull every event the account can see and push new events under that identity. The first control is one dedicated key per integration, so a single compromise can be revoked without breaking the others. Check how many distinct consumers each key in your instance serves.
Keys with no expiry date
A key without an expiry date stays valid until someone deletes it, which often never happens after the integration that needed it is forgotten. A key copied into a old ticket, a laptop or a CI variable can be used months later from an unexpected place. Set an expiry date on every key at creation, and record an owner who must renew it. Review the list of keys with no expiry and treat each one as a finding.
Keys tied to over-privileged accounts
A key inherits the role and organisation of the user who created it, so a SIEM pull key created by a site administrator can change settings, manage users and publish events. A mistaken script can then delete or overwrite data it was only meant to read. The first control is a dedicated automation user with the narrowest role that still works, and a key that is read-only where the job only reads. Confirm the role of every automation account against the job it runs.
Keys usable from any network address
A key that works from anywhere on the internet can be replayed by anyone who obtains it, including from a cloud host or a stolen laptop far from your own tooling. Pinning a key to the source addresses of the systems that use it limits replay to your network. Use the seen-IP records in MISP to confirm which addresses actually call the API before you write an allowlist, so you do not block a legitimate job.
Keys for former partners and retired tools
Keys issued to partner organisations, decommissioned scripts and departed staff often remain active long after the relationship or project ended. These keys are easy to forget because nobody owns them, and they can still pull or push data under a real organisation's identity. Keep an inventory that maps every key to an owner and a purpose, and revoke keys whose owner cannot be named. When a partner exchange ends, rotate the sync key as part of the offboarding steps.
Key settings to decide for each integration
This table compares the main decisions for each MISP API key: how many keys to issue, whether they expire, whether source IPs are pinned, read-only or read-write access, and which account role sits behind them. Read each row as a setting to decide before issuing the key, and weigh the operational effort against the exposure it removes. Confirm which of these options your MISP version exposes in the user interface and API before you write the procedure.
| Decision | Option | Trade-off in operational effort | When it fits |
|---|---|---|---|
| Key sharing | One key per integration | More keys to inventory, rotate and revoke, but a leaked key affects one integration only | SIEM pulls, PyMISP scripts, sync partners and admin tooling each get their own key |
| Key sharing | One key shared across integrations | Fewer keys to manage, but revoking one integration breaks all of them and the audit trail is unclear | Rarely appropriate; only for a single, tightly controlled automation account |
| Expiry | Key with an expiry date | Adds a renewal step and a calendar reminder, and a lapsed key can break a scheduled job | Keys for partners, contractors and any integration whose owner changes |
| Expiry | No expiry date | No renewal work, but the key stays valid until someone revokes it manually | Only where a documented review cycle revokes unused keys |
| Source IP restriction | Pinned to known source addresses | Needs updates when the integration's egress address changes, such as after a cloud or NAT change | SIEM collectors and sync servers with fixed addresses |
| Source IP restriction | Open access from any address | No allowlist maintenance, but a stolen key can be used from anywhere | Roaming analyst tools only, with compensating controls |
| Permission level | Read-only key | Some write actions fail until a separate key is issued, which can surprise automation owners | SIEM and detection pulls that only query events and attributes |
| Permission level | Read-write key | Broader blast radius if leaked, so it needs tighter expiry and IP pinning | Automation that creates or publishes events, confirmed per integration |
| Backing account role | Dedicated automation role with least privilege | Requires designing and maintaining a role separate from human users | Scripts and sync users that must act for one organisation only |
| Backing account role | Shared analyst or admin role | Keys inherit broad permissions, so any leak exposes more data and settings | Avoid for integrations; confirm how your version maps key permissions to roles |
How to set up scoped API keys step by step
This sequence replaces shared or open-ended MISP API keys with one scoped key per integration, each with an owner, an expiry date, a source address restriction and, where possible, read-only access. Each step closes with a check you can record.
Inventory every existing API key and its owner
Export or list the API keys attached to every MISP user account, including automation accounts, sync users and any keys created for scripts or SIEM connectors. For each key, record the integration it serves, the host or service that uses it, the account it belongs to and the named person responsible for it. Keys with no identifiable integration or owner are marked for review rather than left in place. The step is complete when every key appears on one register with an owner and a purpose, and no key is unaccounted for.
Map each integration to a dedicated account
For each integration on the register, assign a dedicated MISP user account rather than sharing an analyst or administrator account. Set the role to the lowest one that lets the integration do its job, and check the role's permission flags against what the integration actually calls. Sync users, PyMISP scripts and SIEM pullers usually need different roles. The step is complete when each integration has its own account and a written justification for the role it holds, reviewed by someone other than the person who set it up.
Create one key per integration with an expiry date
Generate a new API key for each dedicated account, using one key per integration so that a leak affects only one connection. Where your MISP version offers advanced authentication keys, use them and set an expiry date that matches the owner's review cycle, confirming the option and its behavior in your version's documentation. Store the key in the secrets manager of the integration host, not in scripts or tickets. The step is complete when each integration uses its own key and the expiry date is recorded against it.
Restrict each key to the integration's source addresses
Configure the IP allowlist for each key so that only the source addresses of its integration can use it. Confirm the source addresses with the team that runs each integration, including any NAT or egress gateway that will appear as the client address. Check how your load balancer or reverse proxy passes the client address to MISP, because a misconfigured proxy can make every request look like it comes from one place. The step is complete when the allowlist matches the documented egress path.
Test allowed and disallowed source addresses
From an allowed address, run a simple authenticated call such as a restSearch limited to a small result set, and confirm it returns data. Then run the same call from a host outside the allowlist, using the same key, and confirm it is refused. Keep both results with the time, the source host and the key identifier, so the evidence can be reproduced later. If the disallowed call succeeds, stop and correct the allowlist or the proxy configuration before the key is used in production. The step is complete when the allowed call passes and the disallowed call fails.
Move query-only SIEM pulls to read-only keys
Where an integration only queries MISP, such as a SIEM pulling indicators for detection, switch it to an account and key that cannot create, modify or publish events. Verify the role on the account and confirm that the integration's requests need no write permission by testing a read call and checking that a write attempt is refused. Keep sync and publishing integrations on separate accounts so that a read-only key is never asked to write. The step is complete when read-only integrations pass a write-refusal test and their keys are recorded as read-only.
Record the owner and renewal date for each key
Update the register with the final account, role, key identifier, source allowlist, expiry date and the named owner for every key. Set a reminder or ticket for each renewal date, and agree who approves a rotation and who installs the new key on the integration host. Rotate keys with partners on the schedule agreed in your sharing arrangements, and remove the old key once the new one is confirmed working. The step is complete when every key has an owner, a renewal date and a documented rotation path.
How a MISP API request passes the key checks
The diagram follows one request from an integration, such as a SIEM pull, a PyMISP script or a sync partner, across the trust boundary into the MISP application. The key is looked up, then checked for expiry, source address and role permissions before the request is allowed. A rejection and an allowed response both leave a log entry, so check that your audit and access logs record each stage. The exact order and available checks depend on your MISP version, so confirm them against your installed release.
Each check on an API request and where the log entry is written.
Rotating sync keys with partners without breaking sharing
Sync keys are the hardest API keys to rotate because a partner's instance depends on them. An analyst can change a personal key on their own schedule, but a sync user key sits in another organization's configuration, and a change on your side stops their pulls and pushes until they update their server. Treat rotation as a joint change with a named owner on each side, not a local task. Before you start, confirm which sync user account the key belongs to, which distribution levels and sharing groups that account can see, and which partner instance holds the matching server configuration. Record all three in your change ticket so the cut-over can be checked against them later.
The pattern is to issue the new key first and keep the old one valid for an agreed overlap window. Agree the cut-over date with the partner in writing, and agree what each side does on that date. Your side creates the new key on the sync user, and the partner updates the server entry for your instance and runs a test pull. Once the partner confirms a successful sync on the new key, revoke the old key, and record the revocation with the date, the approver, and the partner's confirmation. Confirm with the partner's administrator, not only your own logs, that sync jobs succeed in both directions, and check the sync user's seen IP history for any traffic still using the old key.
Plan for a partner who misses the window. Decide in advance whether the old key stays valid for a further agreed period or is revoked, and who has authority to extend it. Keep the escalation path and both technical contacts in the sharing agreement so a stalled change does not sit unowned. Do not revoke the old key while the partner's sync logs still show it in use, because the failure will look like a sharing outage and the partner may spend time on the wrong fault. If you must leave a key active past its planned date, document the reason, the owner, and the new revocation date, and review the expiry setting on that key again.
Read-only keys for SIEM pulls versus sync and automation keys
A SIEM or detection pipeline usually needs to query MISP and export indicators, not change them. Give the collector its own key with read-only permissions, so a stolen key cannot publish events, edit attributes or alter sharing groups. The collector typically runs from a fixed address, so pin the key to that address and let the key expire on a set date that matches your review cycle.
- Read-only role: Assign a role that allows search and export only. Confirm in your MISP version which permission flags the role carries, since flags differ between releases.
- Pinned collector address: Restrict the key to the collector's outbound address. If the collector sits behind NAT or a shared egress gateway, confirm that every host behind it should be allowed to use the key.
- Expiry date: Set an expiry on the key and record the renewal date in your change calendar.
- Export use only: Confirm which export formats the collector requests, such as Suricata, Snort, Zeek or CSV, and make sure the request path needs nothing beyond search and export.
- Usage review: Check the key's recent activity against the collector's expected pattern, so an unexpected source or volume spike stands out.
Before rollout, test that the key can read the events the collector needs and fails on any write attempt. Confirm the expected output with your SIEM team.
Automation jobs built on PyMISP often import, enrich, tag or publish intelligence, so they need more than read access. Run them under a dedicated automation account rather than a human analyst's account, and grant write permissions only for the actions the job performs. Pin the key to the host that runs the job so a copied key is useless elsewhere.
- Scoped account: Create a user for each automation job, with its own organization and role. Avoid site admin rights, which carry risks that go well beyond any single job.
- Write rights only where needed: A job that only tags or enriches should not hold publish rights. List each API call the script makes and map it to the minimum permission.
- Pinned automation host: Restrict the key to the server, container or runner that executes the script. Confirm how your job runner reports its egress address, particularly for cloud or container platforms.
- Separate key per job: Give each script its own key so a rotation or revocation affects one job, not all of them.
- Secret storage: Keep the key in your secrets manager and out of repository code, shell history and scheduler logs.
Ask the MISP administrator to confirm the role flags for your release and test each job against a non-production instance before granting publish rights.
Synchronization keys let a partner's MISP instance pull or push events with your instance. They carry the broadest reach of any key in this topic, because the partner receives data your sharing groups allow. Use a dedicated sync account per partner, restrict it to the partner's published address where that address is known, and agree the rotation schedule in writing before the connection goes live.
- Dedicated sync account: Create one account per partner so access can be revoked without affecting other connections or internal users.
- Distribution limits: Confirm the distribution levels and sharing groups the sync account can see. The key should not reach data the partner has no agreement to receive.
- Partner address pinning: Pin the key to the partner's published address only if the partner confirms it in writing and tells you when it changes.
- Written rotation schedule: Agree how often keys rotate, who initiates the change and how the new key is delivered, using a secure channel rather than email.
- Revocation path: Document how each side disables a sync key if a partner reports a compromise or leaves the community.
Confirm with the partner which MISP version they run, whether they use the same key format and how they handle pull and push separately. The rotation agreement should name a contact on each side.
Operational controls that keep API keys safe after go-live
Setting expiry dates and IP restrictions only works if someone checks them. The four controls below run in parallel after go-live: they reveal misuse, make key ownership visible, and give the team a predictable response when a key must be cut off. Each depends on logging that is configured and retained before the first review.
Reviewing seen IP addresses
On a fixed schedule, review the source addresses recorded against each API key in the MISP interface or in the access logs. The goal is to confirm that every key is still used from the addresses it was pinned to, and that no key appears from a host, network or country the owning team does not recognize. Reviews catch drift, such as an integration moved to a new server without an allowlist update. This control depends on access logging being enabled and retained long enough to compare periods, so confirm retention with your logging owner before you set the review interval.
MISP featuresAlerting on API access in the SIEM
Forward MISP API access and authentication events to your SIEM so unusual use raises an alert instead of waiting for a manual review. Useful rules include a key used outside its allowlist, a write action from a key that was designed for read-only pulls, a burst of searches far above the usual pattern, and a failed authentication followed by success. Alert quality depends on the fields that reach the SIEM, so check that the source address, key identifier and action are present in each event. Test the rules with a controlled, documented call before relying on them.
Maintaining a key inventory
Keep one record for every API key with its owner, purpose, scope, allowed addresses, expiry date and date of last rotation. The inventory is what makes the other controls work: a review cannot flag an unexpected key if nobody knows which keys should exist. Assign each key a named owner who is accountable for renewal, and include keys used by partner sync connections, SIEM pulls and automation jobs. Reconcile the inventory against the keys actually present in MISP at each review, because keys created by administrators outside the process are a common gap.
Running the revocation runbook
Write a short runbook that defines what happens when a key must be revoked: when an integration owner leaves, when a key appears in a shared script or ticket, or when unusual use is confirmed. The runbook should name who can disable a key, how the change is verified, which dependent integrations are paused, and how a replacement key is issued and recorded in the inventory. Rehearse it once against a test key so the steps are known before an incident. Expect the runbook to involve partners when a sync key is affected, so agree the contact path with them in advance.
Common questions about MISP API key security and outside help
What does an API key hardening engagement cost and what drives the price?
The price depends on the written scope, and DeployOpen does not publish a price list. The main drivers are the number of integrations that use API keys (SIEM pulls, sync users, automation scripts, ticketing connectors), how many partner communities the instance syncs with, and how many keys already exist and are undocumented. Each key has to be traced to an owner and a purpose before it can be expired, pinned or replaced, so key sprawl adds more effort than the key count alone suggests. Ask for the quote to split one-time work (inventory, configuration changes, testing, documentation) from any retainer for ongoing key reviews and rotation.
How long does a MISP API key hardening pass take?
Duration is set by the scope agreed in writing, and no fixed timeline applies to every instance. The biggest variables are how many keys and integrations must be mapped, whether each integration owner is reachable, and whether changes must be coordinated with partners who hold sync keys. An instance with a small, well-documented set of integrations moves faster than one where keys were created by former staff and nobody knows what depends on them. Ask for the timeline to be tied to milestones: inventory, change window per integration, partner notification and retest.
What does the client need to provide for a MISP key security review?
The work needs an administrator account with rights to view and change user and API key settings, read access to the MISP host and its logs, and a list of every system that calls the API. Useful inputs include the names of key owners, the IP ranges of SIEM collectors and automation hosts, and a contact at each partner that holds a sync key. Without partner contacts, sync keys cannot be rotated safely, so confirm those contacts before work starts. Ask the provider to list every input in the scope document so the dependency is visible to both sides.
Can our own team harden MISP API keys without outside help?
Yes, an internal team with MISP administration experience can do most of this work. The steps are documented in the MISP interface and API, and the skills needed are mainly administration, log analysis and change coordination. Outside help usually makes sense when the team lacks time, when many integrations must be inventoried at once, or when they want an independent test of the result. Decide early who owns each integration, because the technical change is often the smaller part of the effort.
Is outside help needed to rotate sync keys with partner organizations?
Not always, but rotation touches organizations outside your control, so coordination is the hard part. Each partner must accept the new key, update its own configuration and confirm sync works before the old key is retired. An outside team can prepare the runbook, schedule the change windows, run the verification checks and document the outcome. Your organization still has to approve the partner contacts and the change plan, and the partners must act on their side.
How do the number of integrations and key sprawl change the effort?
Effort grows with each integration because every one needs a named owner, a single purpose and a decision on whether it can use a read-only key or a restricted IP allowlist. Key sprawl means keys shared between several tools, keys with no expiry date and keys tied to accounts that no longer exist. Each of these must be resolved before the hardening settings can be applied without breaking a feed or a SIEM pull. Ask the reviewer to report how many keys are shared, how many lack an expiry and how many point at inactive accounts, since those counts shape the scope.
What should we confirm about MISP key settings before hiring a provider?
Confirm the MISP version you run, because key features and their menu locations can differ between releases in the 2.5 line, and check the vendor documentation for your version. Confirm whether advanced authentication keys are enabled, which accounts hold API access and whether your SIEM and automation tools support IP restrictions on their side. Also confirm your logging setup, since seen-IP review depends on the access logs you keep. Ask any provider to state which of these items it will verify in your environment rather than assume.
Limits to confirm in your MISP environment
Several MISP API key controls depend on the version your instance runs, how partners authenticate, and what sits in front of the application. Confirm each item below before you write key policy, because a control that exists in one release or deployment pattern may not exist in another.
Key options and expiry settings
Check which key options exist in your running MISP version, including whether advanced authentication keys, expiry dates, and source IP restrictions can be set per key. Confirm the exact field names and whether expiry is enforced for existing keys or only for new ones. Ask your MISP administrator to export a test key's settings from the user administration screen so you can see what is actually stored. Your upgrade path may change this, so re-check after each release.
MISP downloadRead-only permission for SIEM pulls
Confirm whether a read-only permission exists for the role a SIEM integration needs, and whether that role can run the search and export calls the SIEM uses. Test a key against the endpoints your pipeline calls and confirm that write and publish actions are refused. Ask the platform owner which role model governs keys, because a role that is read-only in name may still carry a flag that permits changes.
Partner sync authentication
Find out how partner synchronization authenticates: whether it uses the same API key mechanism as integrations, a separate sync user, or a different method. Confirm who holds each credential, how a sync key is rotated without breaking the partner connection, and whether the partner can restrict the source addresses it accepts. Ask the sync administrator at each partner before changing any key on your side.
Audit and access log coverage
Confirm how the audit and access logs record key use, including the key identity, the timestamp, and the source address. Check whether failed authentication attempts are logged separately and how long those records are kept. Ask your logging or SIEM team whether the fields arrive in the format your detection rules expect, and whether the logs are forwarded before the local copy rotates.
Proxy and load balancer source address
Confirm whether a reverse proxy, load balancer, or ingress controller sits in front of MISP, and whether it changes the source address that MISP records. If it does, IP allowlists and seen-IP reviews will show the proxy address instead of the client. Ask your network team which forwarding headers are set, and whether MISP is configured to trust them only from the proxy's own address.
How DeployOpen scopes and delivers MISP API key hardening
DeployOpen reviews how MISP API keys are issued, scoped and retired on your instance, then implements expiry, IP restrictions and read-only keys inside your own infrastructure. Each step is written into a fixed scope and handed over with documentation your team can run.
How we scope
- Inventory every API key, its owner, its purpose and the integration that uses it
- Agree in writing which keys move to advanced auth keys, expiry dates and IP pinning
- Confirm which SIEM pulls, sync partners and automation jobs can run on read-only keys
- Set the rotation calendar and the seen IP review cadence in the written scope before work starts
How we build
- Configure advanced authentication keys with one key per integration and no shared credentials
- Apply expiry dates and IP allowlists, then test each integration against the restricted key
- Create read-only keys for SIEM pulls and confirm write actions are refused with them
- Review seen IP records and document any integration that breaks under the new restrictions
How we hand over
- Deliver a key register listing owner, scope, expiry date, allowed addresses and rotation owner
- Document the rotation procedure for sync keys with each partner, including the cutover steps
- Provide test results showing each key's permitted and refused actions on your instance
- Train the administrators who will review seen IPs and renew keys before they expire
How we support
- Engagements are fixed-scope, with scope, deliverables and timelines agreed in writing first
- Ongoing support, upgrades and continuous testing are available as a retainer
- Re-check key scopes after MISP upgrades, since release changes can affect authentication behavior
- Confirm each control against your own environment and your partners' requirements before go-live

