MISP SAML login with Shibboleth

Connect MISP to a SAML federation or ADFS through the Shibboleth service provider, with attribute mapping, group-to-role matching, logout and API exemptions planned before go-live.

On this page

MISP SAML login with Shibboleth for federations and ADFS

Choose the Shibboleth route when your security or identity team wants MISP users to sign in with the organisation's existing SAML federation or ADFS instead of local MISP passwords. In this model the Shibboleth Service Provider (SP) sits in front of MISP, completes the SAML exchange with your identity provider, and passes the user's attributes to the application, so the identity team keeps control of who can log in and what they are called. It fits organisations that already run a SAML federation, or ADFS as their Windows identity provider, and that want MISP to follow the same account lifecycle as other applications. If your directory is LDAP or Active Directory without SAML, or you use OpenID Connect or Entra ID, the sibling topics on LDAP and Active Directory login, Keycloak, and Microsoft Entra ID cover those protocols.

MISP authentication plugins are the integration point for this kind of external login. This topic covers the ShibbAuth approach: how the SP is installed, which SAML attribute names carry the user's email address, organisation and group membership, how those groups are matched to MISP roles, how logout is handled, and how API and sync requests are exempted from the browser-based SSO flow so that automation keeps working. Confirm with your MISP version and plugin documentation which ShibbAuth settings are available in the release you deploy, since configuration keys can differ between releases. Also confirm the attribute names your identity provider releases, because the SP can only map what the federation actually sends.

Before you start, agree on three decisions with the identity team: which SAML attribute is the stable unique identifier for each user, which federation groups grant MISP organisation admin or site admin rights, and how a break-glass administrator will sign in if the SAML path fails. Keep at least one local emergency account tested before enforcing SSO. Plan the work around the SP and the SAML metadata exchange, because most failures surface there, including certificate trust, clock skew and attribute release. Ask your integration partner or internal team to test each step in a non-production instance first.

Choosing between Shibboleth SAML, OIDC and directory login for MISP

Choose this route when your organisation already runs a SAML 2.0 identity provider, such as a university or research federation member or an ADFS server in a Windows estate. MISP sits behind a Shibboleth service provider (SP) that runs alongside the web server and hands the authenticated user's attributes to MISP. Your identity team controls authentication, multi-factor policy and account lifecycle, while the MISP team owns the SP configuration, the attribute mapping and the trust relationship with the identity provider.

  • Who manages it: the identity team owns the IdP, the metadata exchange and the released attributes; the MISP team owns the SP and its attribute names.
  • What users see: a redirect to the organisation's sign-in page, then a return to MISP with no separate MISP password.
  • How roles are assigned: group or attribute values from the IdP are matched to MISP roles on login, so the claim design must be agreed before build.
  • Logout: confirm whether the IdP session and the MISP session end together, because this depends on your SP and IdP settings.

Before committing, confirm with your identity team that the attributes you need for email, organisation and groups are actually released to the SP.

Shibboleth configuration options and when each fits

This table compares the main choices in a MISP Shibboleth deployment, from how the service provider is installed to how sessions end and whether local login stays available. Read each row for the conditions that favor it and the failure that follows if it is set wrong. Exact configuration keys should be checked against the ShibbAuth plugin version in use before any change reaches production.

OptionWhen it fitsWhat breaks if set wrong
SP installation methodDistribution package on the MISP host when the team already manages Apache and Shibboleth packages; a separate SP host when the platform team requires isolation of SAML keys.Version mismatch between the SP and the Apache module causes the handler to fail at startup, and MISP login returns errors with no clear cause.
Email attribute nameUse the attribute your federation or ADFS issuance rule actually releases as the user identifier, confirmed by inspecting a test assertion from a pilot account.MISP cannot match or create the user, so logins fail or create duplicate accounts if the email value differs in case or format from the existing user record.
Organisation attribute nameMap to the attribute carrying the home organisation or department when MISP organisations must follow the directory structure.Users land in the wrong MISP organisation, which changes what events and sharing groups they can see and publish.
Group attribute name and formatUse a group or role claim already maintained by the identity team, with a naming convention that matches the group to role rules you plan to write.Group values arrive with different delimiters, scopes or case than expected, so no role matches and users receive the default or no access.
Group to role matching rulesPrefer explicit mappings for org admin and site admin, with a default low-privilege role for everyone else.Overly broad matches grant administrator rights to a wide population, while a missing admin mapping locks out the people who must manage the instance.
Session and logout behaviourSet session lifetime to match your identity provider policy, and pick single logout only if the IdP and SP both support it in your version.Users stay signed in after leaving the directory, or logout clears the MISP session but not the federation session, so the next user on a shared workstation signs in silently.
Local login kept for emergency accessKeep a named break-glass local admin with MFA when the SAML provider or SP host may be unavailable during an incident.Without a local path, a federation outage or SP misconfiguration locks every administrator out of MISP until the host is repaired.
Exempting API and sync requestsRequired when automation, PyMISP scripts or sync partners call MISP and cannot complete a browser SAML redirect.Enforcing SSO on API paths breaks automation and sync jobs silently, so exemptions must be scoped tightly to the endpoints that need them.

Setup sequence for Shibboleth SP with MISP

This sequence takes a MISP instance from a confirmed 2.5 version to a working SAML login through Shibboleth, with attributes mapped, roles matched to groups, and logout tested. Each step ends with a check that the team can record before moving on.

  1. Confirm the MISP version on the 2.5 line

    Confirm the running MISP version and its install method before touching authentication. MISP 2.5 is the recommended line for new deployments, and MISP 2.4 is end of life with security fixes only, so an instance on 2.4 should be planned for upgrade before SAML work starts. Check the version in the web interface administration pages and on the server, and record the install method (official installer, Docker, Ansible, Puppet or RPM), because the web server and PHP configuration paths depend on it. Done means the version, install method and web server are written down and the team agrees the instance is on the 2.5 line.

  2. Register the MISP service provider with the IdP

    Register MISP as a service provider in the federation or in ADFS. The identity team needs the SP entity ID, the Assertion Consumer Service URL on your MISP hostname, and the SP metadata generated by the Shibboleth SP once it is installed, so this step often runs alongside step three. Agree which SAML attributes the identity provider will release for email, organization and group membership, and confirm the release policy with the identity team in writing. Done means the IdP shows the MISP SP as registered, the metadata has been exchanged, and the attribute release list is recorded.

  3. Install and configure the Shibboleth SP

    Install the Shibboleth service provider daemon on the same host as the web server that serves MISP, and configure its application settings for the MISP hostname, entity ID and session handling. Protect the MISP login path with the Shibboleth module so that unauthenticated requests are redirected to the identity provider, and leave API and sync paths outside this protection as described later in the page. Restart the web server and the SP daemon, then open the Shibboleth status handler. Done means the SP reports its metadata, the IdP login redirect works from a browser, and the SP status page loads without errors.

  4. Map SAML attributes to MISP fields

    Configure the attribute mapping so the SP exposes the email, organization and group attributes under the names that MISP's SAML authentication reads. Use the attribute names your identity provider actually sends, and confirm them against the SP's attribute handling rather than assuming defaults. Log in with a test account and inspect the attributes the SP receives, using the session or the attribute debug output in a non-production environment. Done means the email, organization and group values for the test user are visible exactly as MISP will receive them, and any missing or renamed attribute has been fixed at the IdP or the SP.

  5. Configure group to role matching

    Define which identity provider groups map to which MISP roles and organizations, and set a default for users who match no group. Keep the mapping table short, write down the group name for each role, and assign a deliberate default role rather than leaving new users with broad rights. Confirm with the MISP administrators which group grants site admin, which grants org admin, and which grants standard user access. Done means the mapping is saved in the MISP authentication settings, the table is documented, and a user in a single test group receives the expected role on login.

  6. Test a login with a non-admin account

    Sign in with a test account that belongs only to a standard user group, not with an administrator account. Check that the user is created or matched correctly, that the email and organization match the IdP values, and that the role in the MISP user profile is the one the mapping predicted. Then try an action that the role should not allow, such as opening an administration page, and confirm it is refused. Done means the non-admin user lands in MISP with the expected organization and role, and the restricted action is denied. Record the result with the attribute values so a later change can be compared.

  7. Test logout and the emergency admin path

    Log out of MISP and confirm the behavior at the identity provider. Decide with the identity team whether MISP logout should also end the IdP session, and document the answer, since a local session that remains valid can surprise users on shared workstations. Confirm that a local administrator account still exists and can sign in without SSO, so a misconfigured mapping does not lock everyone out. Done means logout ends the MISP session as designed, the behavior at the IdP is recorded, and the emergency admin login has been tested once and works.

How SAML attributes become MISP users, organisations and roles

The identity provider decides what MISP can know about a user, and the Shibboleth SP passes those values to MISP as request attributes. In practice, every account, organisation and role decision depends on three released attributes: the email address, the organisation and the group membership. Before writing any configuration, obtain the identity provider's attribute release policy for your federation or ADFS relying party, and record the exact attribute names and whether each one is single-valued or multi-valued. Confirm these with the identity provider team, because the names in the policy are the names the SP will see. An attribute name mismatch is one of the most common causes of failed mapping: the login succeeds, but MISP receives no email or no organisation and either rejects the user or falls back to defaults.

Missing and multi-valued attributes create the most serious risk. If the organisation attribute is absent, or if a user carries several affiliations, the mapping may pick a value you did not intend and place the user in another organisation with different sharing permissions. Decide in advance what happens when an attribute is empty or contains more than one value, and whether login should be refused in that case. Test with real federation metadata and with accounts that cover edge cases: a user with no group, a user with two organisational affiliations, a user whose email differs in case from the stored record, and a leaver whose access should end. Use test identities from your own identity provider and check the resulting MISP user, organisation and role in the administration interface before any production user signs in.

Treat the mapping as a reviewed control, not a one-time setup step. Keep a written table that links each identity provider attribute to its MISP field and to the group-to-role rule it feeds, and review it whenever the identity provider changes its release policy or your federation adds a new member. Ask your team to confirm how the SP handles attribute values from the identity provider and how MISP's SAML settings reference them, using the current documentation for the versions you deploy. The same table should drive your onboarding and leaver processes, so that a change in directory group membership produces the expected change in MISP access.

SAML login flow from browser through the Shibboleth SP to MISP

The flow starts when a user opens MISP in the browser and the web server hands the request to the Shibboleth SP, which redirects the user to the identity provider or ADFS. After the user authenticates, the assertion returns to the SP, which checks it and passes the mapped attributes for email, organisation and groups to MISP as request headers or environment variables. Check the trust boundary: MISP should accept those attributes only from the SP, never from the open network.

Login path from the browser through the Shibboleth SP to MISP, with the trust boundary at the SP.

Exempting API and sync requests from SSO without weakening the web login

Once SSO is enforced on the MISP web interface, API calls and synchronization traffic between instances will still arrive without a browser session. The exemptions for these requests need to be narrow, explicit and tested, so that the web login stays protected while automated access keeps working.

Identify the request types to exempt

Only two families of requests should bypass the browser SSO redirect: REST API calls that authenticate with a MISP API key, and synchronization traffic from partner MISP instances. Build a written inventory of every automated client, including PyMISP scripts, feed consumers, sync servers and any integration that polls the API. Each entry should name the path it calls and the authentication it uses, so that the exemption list is derived from real traffic rather than from assumptions about what might break.

MISP features

Restrict exemptions to explicit paths

Exempting a broad prefix, such as everything under the API root or a whole controller, can open routes that also accept session-based actions or administrative changes. List each exempt route or narrow pattern individually, and confirm that the web login pages, user management and settings screens fall outside every pattern. Review the list whenever the MISP version changes, because new routes can match an existing pattern without anyone noticing.

Keep API key authentication enforced

An exempt route must still validate the API key itself. Confirm that a request with no key, an invalid key and a key belonging to a disabled user are all rejected, and that the response for each is an authentication error rather than a page that returns data. Treat any route that answers without a key as a finding to fix before go-live, not as an acceptable side effect of the exemption.

Scope sync exemptions to known peers

Synchronization requests come from other MISP servers and usually authenticate with the sync user's API key over an agreed connection. Limit the exemption to the source addresses and sync users your partners have registered, and check that the sync user is a dedicated account with the minimum role needed. Ask each sharing partner to confirm their outbound addresses before the exemption goes live, because a changed address will otherwise cause silent sync failures.

Test that API keys work after enforcement

Before enforcing SSO, run a test set that calls each exempt route with a valid key and confirms the expected response. Repeat the same set after enforcement, then run a sync round trip with a test partner or staging peer. Keep the test scripts in version control so that they can be rerun after each upgrade, configuration change or Shibboleth SP update.

Confirm the web login is still enforced

After exemptions are in place, verify from a clean browser session that every web route redirects to the identity provider and that no exempt pattern exposes a page. Check the logout path and the login endpoints separately, because an exemption that matches a login or callback URL can weaken the whole flow. Record the results so an auditor or security reviewer can see both the exemptions and the proof that the web login is still protected.

Questions teams ask before setting up Shibboleth SAML for MISP

What drives the cost of setting up Shibboleth SAML login for MISP?

The cost follows the number of moving parts: how many identity providers and federations are involved, whether ADFS or a federation metadata feed is used, how many groups must map to MISP roles and organisations, and how much of the Shibboleth service provider and web server configuration is new to your environment. Work is usually split between a one-time build (metadata exchange, attribute mapping, role matching, logout and exemptions for API and sync traffic) and recurring effort for certificate renewal, metadata changes and MISP upgrades. Ask any provider for a quote that lists each of these items separately, and state who performs the identity provider changes and who owns the MISP side.

How long does a Shibboleth SAML integration for MISP take?

Duration depends mainly on federation complexity. A single identity provider with clean attributes and a simple group model moves quickly, while a multi-federation setup, ADFS claim rules that need rework, or group structures that must be redesigned will add review cycles with the identity team. Timing also depends on how fast the identity team can register the service provider, release test accounts and confirm attribute names. Ask for a timeline with named milestones and dependencies so that waiting on the identity team is visible rather than hidden inside the build phase.

What does the identity team and the MISP owner need to provide?

The identity team must supply the identity provider or federation metadata, confirm the entity ID and signing certificates, release the attribute names for email, organisation and groups, and agree the logout behaviour. The MISP owner must confirm the MISP base URL, the role and organisation model, which group values map to which roles, and who holds the emergency local administrator account. Both teams should agree the test users, the change window and the person who approves production cut-over. Missing any of these items is the most common cause of delay.

Can our own team set up Shibboleth SAML for MISP without outside help?

Yes, if your team already runs Apache or Nginx with a Shibboleth service provider, understands SAML metadata and can read the identity provider's attribute release policy. The harder parts are group to role matching, keeping API keys and sync traffic working while SSO is enforced, and debugging attribute problems that appear only for some users. A useful test is whether someone on your team can explain, without notes, which header or attribute decides a user's organisation and role. If not, a short review or a fixed-scope build may cost less than a long trial and error period.

How is testing handled before the SAML login goes live?

Testing should cover each identity provider path with test accounts from every group that maps to a MISP role, confirm the organisation assignment for each, and verify that a user with no matching group is refused or placed in a default role you have approved. It should also confirm that API keys, scheduled jobs and synchronisation with partner instances still authenticate after SSO is enforced. Ask for the written test plan and the results before cut-over, and confirm that test users are removed afterwards.

How is rollback handled if SAML login fails after go-live?

Rollback should be planned before cut-over. Keep the previous authentication configuration in version control, keep at least one local administrator account that works without SSO, and document how to disable the Shibboleth module or revert the Apache configuration without losing data. Confirm who can make the change out of hours and how long it takes to reach a working state. Ask any provider to show the rollback steps in the written scope and to rehearse them in a non-production instance.

What security checks should we require for SAML login on MISP?

Check that the service provider verifies signed assertions against the trusted identity provider certificate, that the MISP instance only accepts attributes from the Shibboleth session rather than from user-supplied headers, and that logout ends both the local MISP session and the identity provider session where your policy requires it. Review which API and sync paths are exempt from SSO and confirm they still require API keys. Your security team should also confirm how sessions expire and how access is removed when someone leaves. DeployOpen can test the setup as part of a security review, but independent auditors issue any formal assessment.

Does the MISP project or DeployOpen provide a guarantee on this work?

Guarantees and service levels should be stated only in the signed written scope, and this page does not promise any. Engagements are normally fixed-scope, so the scope, deliverables and timelines are agreed in writing before work starts. Ongoing support, upgrades and continuous testing are available as retainers. For the MISP project itself, the project offers paid support services and lists third-party providers, so confirm the support terms you need directly with the provider you choose.

How DeployOpen scopes and delivers MISP SAML login

DeployOpen plans and implements the Shibboleth SP integration for MISP inside your own infrastructure, so your identity team can review the attribute mapping, role matching and logout behavior before go-live. The work is fixed-scope, with the federation metadata, attribute names and API exemptions agreed in writing first.

How we scope

  • Written scope names the SAML federation or ADFS setup, the MISP instance and the Shibboleth SP host involved
  • Attribute names for email, organisation and groups are confirmed with your identity team before any build
  • Group to role matching rules and the default role for new users are agreed and documented in the scope
  • API, sync and automation paths that must bypass SSO are listed so they are tested separately

How we build

  • Shibboleth SP installation and configuration is done on hosts in your environment, using your metadata and certificates
  • MISP authentication settings are configured to match the agreed attribute and group mapping
  • Logout behavior and session handling are tested against the identity provider you run
  • Test accounts for each role are used to confirm that group membership produces the intended MISP permissions

How we hand over

  • Documentation covers the SP configuration, attribute mapping, role matching table and exemption rules
  • An emergency admin login path is documented and tested before SSO is enforced
  • Your team receives a walkthrough of how to add a group mapping or rotate SP certificates
  • Retest notes record what changed during build so later upgrades can be checked against them

How we support

  • Ongoing support, upgrades and continuous testing are available as a retainer after handover
  • Retainer scope can cover re-testing SSO after MISP upgrades and identity provider changes
  • Changes to attribute names or group structures can be scoped as separate written work
  • Your team keeps ownership of the identity provider, MISP instance and access decisions throughout

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.