MISP SSO and identity integration

Connecting MISP to an OpenID Connect identity provider so analysts sign in with corporate identities, roles follow IdP group membership, and accounts are linked safely.

On this page

Why MISP SSO needs more design than a login button

A threat intelligence team running MISP on local accounts can move to corporate sign-in with the OidcAuth plugin, which connects MISP to an OpenID Connect identity provider and maps identity provider roles to MISP roles. The login step is the easy part. The harder work is deciding which identity provider claims control access, because those claims determine who can publish events, share them outward and administer the instance. A mapping that grants a broad role by accident can expose sensitive indicators to partners, so the role mapping needs to be designed and tested before any user is switched over.

Account linking is the second design problem. When a user signs in through the provider, MISP has to decide whether that identity belongs to an existing local account. Matching on an email claim is convenient but unsafe if email addresses can change, be reassigned or be asserted without verification, because a new identity could be attached to an account that already holds privileges. The team should confirm which stable identifier the provider issues, how OidcAuth matches it to existing users, and how existing local accounts will be migrated or retired. The plugin's README is the natural starting point for these settings.

Sharing permissions add a third layer because MISP ties what a user can see and distribute to the organization that user belongs to. If the identity provider assigns organization membership incorrectly, a user can act for the wrong organization even with the right role. Before go-live, the team should map each identity provider group to a MISP role and organization, test each mapping with representative accounts, and confirm that removing a user at the provider also removes access in MISP. Those checks, rather than the sign-in screen, are what make the integration defensible to security and compliance reviewers.

Which components the SSO integration touches

An OIDC login for MISP involves more than one system. The MISP instance, the OidcAuth plugin, the identity provider, the claims it sends and the local user, role and organization records must agree, or logins fail or grant the wrong access. Check each component below before you test a sign-in.

MISP instance and CakePHP application

MISP is a PHP application built on CakePHP, backed by MySQL or MariaDB and Redis. SSO settings live in the application configuration, so the team must know which MISP version and PHP environment the plugin is installed into. Confirm the instance runs a 2.5 release, since the project recommends 2.5 for new deployments and 2.4 is end of life. Record the base URL exactly, because the redirect URI registered with the provider must match it.

MISP repository

OidcAuth plugin settings

The OidcAuth plugin handles the login flow, token validation and user provisioning. Its settings cover the provider URL, client ID and secret, scopes, and the role mapping. Review each setting against the plugin README for the branch you deploy, because option names change between releases. Keep the client secret out of version control and confirm the plugin behaves correctly when the provider is unreachable.

OidcAuth README

OpenID Connect provider and client registration

The identity provider holds the authoritative user directory and issues the tokens. You register MISP as a confidential client with a redirect URI, a set of allowed scopes and, where supported, a logout URI. Ask the provider team which signing algorithms and token lifetimes apply, and confirm that only the groups meant for MISP are included in tokens. Client registration is one-time work, but secret rotation and redirect changes recur.

Claims in the ID token and user info

The plugin reads claims such as the subject, email, name and group or role values from the ID token or the user info response. Which claim carries the stable user identifier and which carries roles depends on your provider configuration. Capture a sample token from a test account and confirm each claim the plugin relies on is present, correctly named and not empty for administrators and standard users alike.

MISP roles, organizations and sharing scope

MISP roles control what a user can do, and each user belongs to an organization that determines what data they see and share. The mapping from provider roles to MISP roles decides who becomes an administrator or publisher. Document which provider group maps to which MISP role and organization before go-live, and verify that no provider group grants administrative rights by default.

User accounts and the MISP database

MISP stores each local user record, including its role, organization and authentication identifiers, in the MySQL or MariaDB database. Provisioned accounts persist there after login, so changes to mapping rules do not always revoke existing access. Plan how disabled or departed users are removed, and confirm that the stored identifier links each account to the provider subject rather than to a mutable email address.

Decisions to make before configuring OidcAuth

This table compares the main identity design choices for MISP single sign-on, with the situations each one suits and the ongoing cost it creates. Read each row as a decision to settle with your identity and MISP administrators before any mapping rules are written, since most of them are hard to reverse after users have logged in.

DecisionOption and when it fitsOperational cost and risk
Role sourceGroup-based claims suit organizations where the IdP already models MISP-like roles as groups and the group list is stable.Each new MISP role needs a matching IdP group and a mapping entry; drift between the two is a common source of over-privileged or locked-out users.
Role sourceAttribute-based claims suit IdPs that carry a structured job or role attribute maintained by HR or identity governance.Attribute values must be confirmed for every user type, and a missing or renamed attribute can silently fall back to a lower role.
Organization modelOne IdP for all MISP organizations suits a single-operator instance where one team owns every organization record.Mapping rules grow with each organization, and administrators must review them whenever a partner joins or leaves.
Organization modelOrganization claims mapped per tenant suit community or ISAC-style deployments where member bodies manage their own identities.Each member needs its own claim contract and test users, which raises coordination effort and the chance of cross-organization access errors.
Break-glass accessKeeping local admin accounts as break-glass access suits any deployment where the IdP or its federation could fail during an incident.Break-glass credentials must be stored, rotated and tested, and their use should be logged and reviewed.
Break-glass accessFull SSO enforcement suits teams that can guarantee IdP availability and have a documented recovery path.An IdP outage, a broken claim mapping or an expired client secret can lock out every administrator at once.
ProvisioningProvisioning on first login suits teams that want fewer manual steps and trust the IdP group membership.Any user who can authenticate may receive an account, so the default role and allowed organizations must be set restrictively.
ProvisioningPre-created accounts suit high-sensitivity instances where every user must be approved before access.Administrators must create and retire accounts by hand, and offboarding depends on the process being followed.
Account linkingLinking existing local accounts by stable subject identifier suits migrations from password logins.Confirm the plugin's linking behavior in the release you run; linking by email claim alone can let an attacker take over an account.

How to configure OidcAuth step by step

This sequence takes a MISP instance from a confirmed version and plugin pair to a working OpenID Connect login in which identity provider roles set MISP roles and organizations predictably. Each step ends with a check you can run before moving on.

  1. Confirm MISP and plugin versions

    Record the MISP release running on the server and confirm that the OidcAuth plugin files come from the same 2.5 branch. The project recommends 2.5 for new deployments and marks 2.4 as end of life, so an instance on 2.4 should be upgraded before SSO is added. Check the installed version from the administration interface and compare the plugin README on the 2.5 branch with the files on disk. Done means both versions are written down and match the branch you are following, with no mixed plugin code from another release.

  2. Register MISP as a client at the identity provider

    In your identity provider, create an OpenID Connect client for MISP, usually a confidential client with an authorization code flow. Set the redirect URI to the callback path that the OidcAuth README gives for your MISP base URL, using the exact scheme and hostname users will type. Restrict the client to the users and groups who should reach MISP. Done means the provider shows a client ID and secret, and a browser test from the MISP hostname reaches the provider's sign-in page without a redirect error.

  3. Configure the plugin connection settings

    Enable the OidcAuth plugin and set the issuer URL, client ID and client secret in MISP. Use the setting names listed in the plugin README for your release rather than names from older guides, and store the secret in the way your team protects other service credentials. Confirm that the issuer's discovery document is reachable from the MISP server, since the server must fetch it during login. Done means the plugin loads without configuration errors in the administration logs and the MISP login page offers the single sign-on option.

  4. Test login with a non-admin account

    Sign in with a test user who has no administrator rights in MISP and who belongs to a group that should receive a normal analyst role. Use a separate test account rather than an administrator, so a misconfigured mapping cannot lock out the only privileged user. Watch the authentication log during the attempt. Done means the user reaches MISP and an account exists afterward, even if its role is still wrong. If login fails, correct the redirect URI or issuer before moving on, because later mapping checks depend on a working handshake.

  5. Define IdP roles and priority order

    List the identity provider groups or role claims that should map to MISP access, such as read-only, analyst, org admin and site admin. Assign each one a priority, because the plugin assigns the first matching role by priority, so a user who holds several groups gets the highest-priority match only. Write the list in a table with the owner of each group. Done means every group a test user can hold has exactly one intended MISP role, and no group grants more access than its owner has approved.

  6. Map roles and organizations

    Enter the role mapping and organization mapping settings described in the OidcAuth README, using the claim names your provider emits. Confirm that each MISP organization referenced in a mapping already exists, and that the mapping does not place users into an organization that controls sharing for sensitive events. Test with at least one user per mapped group. Done means each test user lands in the expected MISP role and organization, and the user's profile page shows those values after login.

  7. Decide and set linking behavior

    Decide how an incoming identity links to an existing MISP account. Linking by the stable subject identifier from the provider is the safer choice, while linking by an email address can let a user who controls a matching email claim take over an existing account. Set the linking option the README provides for your release, and document who approves changes to it. Done means a test that reuses an existing local account email with a different subject identifier does not attach to that account.

  8. Verify access and record the result

    Repeat the login tests for each mapped group, remove a group from a test user and confirm that the role drops on next login, and confirm that a disabled provider account cannot sign in. Review the MISP audit and authentication logs for the test sessions. Record the configuration, the test matrix and the approver in your change record. Done means every test case produces its expected role, organization and access result, and the signed record is stored where your security team keeps configuration evidence.

Why linking accounts by email claim is unsafe

Do not match an incoming OpenID Connect login to an existing MISP user by the email claim. An email address is a mutable attribute, not an identity. If the identity provider (IdP) allows users to register or change an address without proving they control it, an attacker can sign in as a new identity that carries the email of an existing analyst and inherit that person's MISP role, organization and sharing groups. The same risk appears when a mailbox is reassigned after someone leaves, or when a mail alias or distribution list is reused. In a threat intelligence platform, a taken-over account can read restricted events, publish false indicators to partners through sync, or alter distribution settings that other organizations trust.

Bind each MISP account to the stable subject identifier issued by the IdP, which is the sub claim, together with the issuer. Treat the email address as display data that can change without changing the account. Restrict first-login provisioning to members of approved IdP groups, so that a valid login alone does not create an account with a role. Before you enable SSO, export the list of existing MISP users, including their organizations and roles, and confirm that each one has a named owner and still needs access. Disable or remove accounts that belong to people who have left, and check for shared or generic mailboxes that should never map to a personal login. Confirm the exact mapping behavior with the OidcAuth plugin documentation for your release, because the plugin's account-matching options are the control point for this decision.

Ask the IdP team to confirm in writing whether the email claim is verified, how the IdP handles unverified addresses, whether users can change their own email, and how deprovisioned accounts are removed from the directory. Also confirm whether the IdP issues a stable, non-reassignable sub value for each user and whether group membership claims are signed into the token. If any answer is unclear, keep email-based matching disabled and test provisioning with a non-production identity before connecting real analysts. These checks are part of the scope a fixed-scope review should cover.

How role mapping differs by identity provider setup

When the identity provider emits a group claim, each group a user belongs to appears as a value in a list, and the OidcAuth plugin compares those values against the role mapping you configure. The plugin assigns the first matching role by priority, so a user who sits in several groups receives only one MISP role, the highest-priority one that matches. Group names are usually long directory identifiers, which makes them easy to mistype and hard to audit, so the mapping should use the exact values the provider emits rather than display names.

  • Exact group values: Copy the group identifiers from a real token for a test user, not from the directory's display names, because the comparison is literal.
  • Priority order: Place the most privileged role at the top only if your policy really wants a group member to receive it whenever they match; otherwise a broad group can override a narrower one.
  • Nested groups: Confirm whether your provider flattens nested memberships into the claim. Nested membership that is missing from the token will silently downgrade users.
  • Group removal: Test a user removed from a privileged group and confirm the next login assigns the lower role.
  • Claim size: Some providers truncate or omit group lists above a size limit, so test a user with many memberships.

Confirm with your identity team whether the group claim is included in the ID token or only returned by the user info endpoint, and which claim name your application registration uses.

Securing the SSO path and secrets

The OidcAuth login path touches the MISP web application, the identity provider, and the secrets that connect them. Each control below closes a gap that would let someone log in as the wrong person, keep access after leaving a group, or change the login settings themselves.

Client secret storage and rotation

The OpenID Connect client secret lets MISP exchange authorization codes with the identity provider, so anyone holding it can impersonate the application. Keep it out of the plugin settings you export or paste into tickets, store it in a secrets manager or a root-readable file, and record who can read it. Confirm with your identity provider how a new secret is issued and whether the old one can be revoked immediately, then rehearse the rotation on a test instance before production.

TLS on both endpoints

MISP and the identity provider both need valid TLS, and the redirect URI registered with the provider must match the MISP base URL exactly, including scheme and hostname. Check that the discovery endpoint and token endpoint are reached over HTTPS with certificates your MISP host trusts, and that no plaintext HTTP redirect can return a browser to MISP with an authorization code in the URL. Verify the certificate chain from the MISP server itself, not only from your workstation.

Restricting who can change plugin settings

The OidcAuth settings decide which IdP roles map to which MISP roles, so whoever edits them controls administrative access. Limit changes to a small named group of MISP administrators, route edits through change control, and keep the MISP audit log enabled so each settings change is attributable. Review the role mapping after every plugin or MISP upgrade, because a default value that changes during an upgrade can widen access.

Local break-glass administrator

If the identity provider is unreachable or its client secret is revoked, SSO-only accounts cannot sign in. Keep one local MISP administrator account for recovery, protected by a long unique password stored in a sealed custody process, with its use alerted and reviewed. Test the recovery path on a non-production instance so that the account, its password and its login procedure are known to work before an incident requires them.

Auditing role changes

Every change an IdP group makes should leave a trace in MISP. Record which IdP groups map to which MISP roles and organizations, and compare the MISP user list against that record on a fixed schedule. Pay attention to users whose role was upgraded by a claim change rather than by an administrator, because the MISP audit trail will show a login, not a deliberate decision. Confirm which events the OidcAuth plugin logs in your version.

Removing access when groups change

Removing a user from an IdP group only takes effect in MISP when the user next authenticates or when the mapping is re-evaluated, so an active session can keep its rights for longer than expected. Define how quickly MISP access must end after an offboarding or group change, set session lifetimes accordingly, and disable the MISP account directly for urgent cases. Test with a user who loses a group and confirm that their role and organization are updated as expected.

How to test that SSO grants the right access and fails safely

The first test to write is a role and organization check for each mapped group. For every IdP group that maps to a MISP role, create a test user in that group, log in through the OidcAuth flow, and confirm the MISP role and organization match the mapping you documented. Repeat this for users who belong to several groups, because the OidcAuth plugin assigns the first matching role by priority, so the test must prove that the highest-priority role wins and that no lower-privilege role is applied by accident. Run the same checks against a user with no matching group, who should be denied access or land with no privileges. Confirm the outcome in the MISP user list and in the audit log, not only on the login screen.

The most important negative test is email collision. Create a local MISP account with a known email address, then sign in through the IdP with an identity that presents the same email claim but a different subject identifier. The login must not attach to the existing account. Also test a case where the IdP changes a user's email claim after first login, since linking by email would silently move an existing account's permissions to a different person. Verify that the account is linked only by the stable subject identifier your configuration relies on. Confirm the exact claim and linking behavior against the MISP OidcAuth plugin README for your MISP version before writing the test expectation.

Then test revocation and outage. Remove a test user from its IdP group, then log in again and confirm the role is lost or the login is refused on that next sign-in, and check whether existing sessions or API keys remain valid until they expire. Finally, simulate an IdP outage by blocking the IdP endpoints, and confirm that the break-glass administrator account, which should be a local account with a strong credential stored offline, still signs in. Record evidence for a security review: the test plan, IdP group and claim configuration, MISP version and plugin version, the role mapping table, each test user's input and resulting role, timestamps, audit log excerpts, and the retest results after any fix. Ask the reviewer which format they need, since that determines how much raw log detail to keep.

What to monitor, back up and document after go-live

This table compares the recurring operational items for a MISP SSO setup, with the owner, what each item protects against and the recurring cost to expect. Read it as a steady-state checklist: the costs are mostly staff time for review, and the largest recurring driver is how often the identity provider and MISP change.

ItemWhat it coversRecurring cost driver
Failed login monitoringReview OIDC login failures and repeated rejections in MISP and web server logs, and alert on unusual patternsAnalyst time to triage alerts; rises with user count and IdP changes
Role and mapping change monitoringTrack changes to role mappings, admin users and organization assignments so unexpected privilege changes are caughtReview time per change; low volume, but every change needs a second reviewer
Configuration and user table backupBack up the MISP database, including the user table, and the OidcAuth plugin settings, on a schedule tested by restoreStorage and restore-test time; restore tests are the step most often skipped
Plugin and MISP version trackingKeep MISP and the OidcAuth plugin on current 2.5 releases so login code receives security fixesStaff time for release review and test upgrades; cost rises when plugin changes need custom fixes
Mapping retest after IdP changesRepeat login and role mapping tests after any change to the identity provider's claims, groups or client settingsTest effort per IdP change; ask the provider to notify you of claim or group changes in advance
Mapping matrix documentationMaintain a written matrix of IdP roles or groups, MISP roles, organizations and priority order, with the change historyOngoing upkeep; a quarterly owner review is a common starting point for a quote
Named owners and review cadenceAssign an owner for identity, MISP administration and sign-off on mapping changes, with a backup owner for eachRecurring management time; confirm who in your team pays for it before go-live

Questions teams ask before configuring MISP SSO

Can our in-house team configure MISP SSO without a partner?

Yes, if you have a team that already runs PHP and CakePHP applications, administers an OpenID Connect identity provider, and can test login flows safely. The OidcAuth plugin is documented in the MISP project, so the configuration itself is not the hard part. The effort usually sits in agreeing the role and organization mapping with the business owners, testing each path (new users, returning users, users who hold several roles), and rehearsing a rollback. Teams without that mix often choose a partner for the mapping design and testing, then keep the operation in-house. Ask your team to name who owns the IdP side, who owns MISP administration, and who signs off on access before deciding.

How long does MISP SSO integration take?

The duration depends mainly on how many IdP groups, MISP roles and organizations need to be mapped, and how many of those mappings have to be agreed before anyone writes configuration. A single organization with a few roles is a small piece of work. Many organizations sharing one instance, each with its own admin and sharing rules, adds design, review and test cycles. Your IdP team's change process and the availability of MISP administrators also set the pace. No fixed duration is given here, so ask any provider for a timeline tied to a written list of groups, organizations and test cases.

What do we need from the IdP administrator and MISP admins?

The IdP administrator needs to register MISP as an OpenID Connect client, supply the redirect URI, and decide which claims or groups will be sent to MISP. They also need to confirm that the claims used for role mapping are stable and cannot be edited by end users. MISP administrators need to set the plugin options, define the role and organization mapping, and confirm the default role for unmapped users. Both sides should agree on a test account set, an owner for each mapping rule, and a change window. Plan for a session with each team before work begins, not after the first failed login.

Should we remove local MISP accounts after enabling SSO?

Not automatically. Keep at least one local administrator account that is documented, tested and stored under your break-glass procedure, so that an IdP outage or a broken mapping does not lock every administrator out. Other local accounts, such as service or API accounts used by integrations, should be reviewed one by one. Disable accounts that belong to people who now sign in through the IdP, and confirm that automation does not depend on a password login. Record the decision in your access review so an auditor can see how the local accounts were handled.

How do we handle users who belong to several MISP organizations?

MISP ties each user to one home organization and assigns a role, so users who work across several organizations need a deliberate design rather than a default. Common approaches include a separate account per organization, a shared group mapping that places the user in one home organization, or a mapping rule that uses a priority order. The OidcAuth plugin assigns the first matching role by priority, so the order of your rules decides the outcome. Test each combination of group memberships before go-live, and document which organization a user receives when they belong to several groups.

Why must we avoid linking accounts by email claim?

Linking an existing MISP account to a login by matching the email claim lets anyone who controls that email address at the IdP take over the account, and email values can change or be reassigned. Link accounts on a stable identifier such as the subject claim from the IdP, and treat email as a display attribute. Check the OidcAuth plugin settings for the claim it uses to match users, and confirm with your IdP team that the chosen claim is immutable for each user. This is a configuration check that belongs in your acceptance tests.

What drives the cost of a fixed-scope MISP SSO quote?

A fixed-scope quote is driven by the number of identity groups and MISP roles to map, the number of organizations and their admin contacts, the number of IdP environments (for example, test and production), and the number of test cases required to prove each path. Add the work to document the rollback and the break-glass account, and any changes needed to integrations that rely on local credentials. Ask for the quote to list each mapping rule, each environment, each test case, the acceptance criteria, and what the client must provide, such as IdP access and named approvers. Ongoing costs are usually limited to periodic review of mappings when groups change and to MISP upgrades that touch the authentication plugin, so ask whether those are included or sold separately.

What should we confirm about the OidcAuth plugin before starting?

Confirm the plugin version that matches your MISP release, since the plugin is documented on the 2.5 branch of the MISP repository and its settings can change between versions. Check how the plugin reads roles from the token, which claim it uses for matching, how it handles a user who has no mapped role, and whether it can be configured without editing core files. Run the configuration in a non-production MISP instance first. Record the exact versions in your change record so that future upgrades can be tested against the same behavior.

How DeployOpen scopes and hands over MISP SSO work

DeployOpen plans and builds the OpenID Connect login for MISP inside your own infrastructure, so your identity provider controls who signs in and which MISP role and organization they receive. The work is agreed as a fixed-scope engagement with written deliverables, and the result is documented for your administrators and security team to review.

How we scope

  • Confirm the identity provider, its OpenID Connect settings and which claims carry group or role data.
  • Map identity provider groups to MISP roles and organizations, with the priority order agreed in writing.
  • Agree how accounts are linked, specifying that matching on email claims alone is excluded unless you approve a documented alternative.

How we build

  • Install and configure the OidcAuth plugin on your MISP instance, with settings kept in version-controlled configuration.
  • Test each role mapping with dedicated test accounts, including users with no matching group and users with several.
  • Verify login failure handling, session expiry and the local administrator fallback before any production cutover.

How we hand over

  • Deliver a written configuration record covering the IdP client setup, claim mappings, role priorities and linking rules.
  • Provide a test report with each scenario, its expected result and the observed result, plus any open findings.
  • Walk your identity, security and MISP administrators through the runbook for onboarding and offboarding users.

How we support

  • Ongoing support and upgrades are available as a retainer, including retesting SSO after MISP releases and plugin updates.
  • Re-review mappings when your identity provider groups or organizational structure change.
  • Confirm with your MISP and identity provider vendors which versions and features your environment depends on before each change.

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.