When MISP authentication through a reverse proxy header fits
An organization that already signs users in at a reverse proxy or access gateway may want MISP to accept that identity instead of asking people to log in a second time. The CustomAuth plugin in MISP supports this pattern: the proxy authenticates the user, passes the verified identity to MISP in an HTTP header, and MISP creates or matches the local user from that value. This suits teams that run a single, well-governed front door for internal web applications, have a proxy vendor or platform team that owns authentication policy, and want MISP access governed by the same rules as their other tools. It is a good fit when MISP is reached only through that proxy and the proxy is the only path to the login page.
The decision is a trust decision, not just a configuration change. MISP will believe whatever value arrives in the trusted header, so anyone who can reach MISP directly or send a forged header can become any user, including an administrator. Before you enable anything, confirm that the MISP application cannot be reached except through the proxy, that the proxy strips any client-supplied copy of the header, and that the header name and accepted source addresses are fixed in configuration that only platform administrators can change. Check the exact CustomAuth settings and their behavior against the MISP documentation for your release, since the plugin's options are not something to assume from memory.
This approach is a poor fit if your identity provider already speaks OpenID Connect or SAML and you can use a dedicated MISP plugin, which gives MISP a verified token or assertion rather than a bare header. It also fits poorly when you need strong role mapping from groups, because the header carries only what the proxy chooses to send. Ask your security team to decide whether they accept that residual risk, and document who owns the proxy configuration, since a change there can silently change who gets into MISP.
How the proxy identity reaches MISP
The request starts in the user's browser and reaches the authenticating proxy first, which performs the sign-in and then adds the identity header before forwarding the request. MISP's CustomAuth component reads that header and, if it is accepted, starts a normal MISP session for the matching user. The critical hand-off is the proxy-to-MISP link: MISP must only accept the header from that path, so direct client access to MISP must be blocked and the proxy's source address checked. Confirm the exact header name and accepted source settings in your CustomAuth configuration before go-live.
Identity flows from the proxy to MISP through a single trusted header.
CustomAuth settings and when each fits
This table lists the CustomAuth settings that control which header is trusted, which sources may set it, where users go on logout and password reset, and how accounts are created. Read each row as a decision: use the setting when your proxy and directory behave as described, and check the loose-state column before go-live. Confirm every key name against the CustomAuth settings for your MISP 2.5 release, because names can change between versions.
| Setting | When it fits | What goes wrong if left loose |
|---|---|---|
| Plugin.CustomAuth_header | Names the header your proxy sets with the authenticated username. Fits when the proxy overwrites this header on every request. | Any client that can send the header can sign in as any user. |
| Plugin.CustomAuth_only_allow_source | Limits header trust to the proxy's address or subnet. Fits when one fixed proxy tier fronts MISP. | The header is trusted from any address that can reach MISP directly. |
| Plugin.CustomAuth_use_header_namespace and header namespace key | Handles proxies that send identity in a namespaced format. Fits when the directory format is known and tested. | Users fail to match existing accounts, or match the wrong account. |
| Plugin.CustomAuth_custom_logout | Sends users to the proxy's logout endpoint. Fits when sessions must end at the identity layer. | Users sign out of MISP but remain signed in at the proxy. |
| Plugin.CustomAuth_custom_password_reset | Points password changes to the directory or identity system. Fits when passwords are managed only upstream. | Local password forms stay usable, and local passwords drift from the directory. |
| User creation and default role settings (confirm key names) | Controls whether first-login users are created and which role they receive. Fits when onboarding is driven by the directory. | Unknown users may receive a default role with broader access than intended. |
| Fallback to local login | Keeps a local admin path for recovery. Fits when an emergency account is documented and monitored. | Local password login stays open beside the proxy, weakening the control. |
How to set up CustomAuth behind a proxy
This sequence moves MISP login to an authenticating proxy in an order that keeps the trust boundary closed at each stage. It ends with a tested setup in which only the proxy can assert a user identity to MISP.
Confirm the MISP 2.5 release
Record the exact MISP 2.5 patch release running on your staging instance and compare it with the current 2.5 release notes before changing anything. MISP 2.4 is end of life, so an instance still on that line should be upgraded first. The check: the version shown in the administration interface matches the release you plan to support, and the team agrees in writing which proxy and MISP versions form the tested pair.
Enable the CustomAuth plugin
An administrator enables the CustomAuth authentication plugin on the staging instance and selects it as the authentication method, while keeping the existing local login available for an emergency administrator. Confirm the exact plugin setting names against the documentation for your release before copying them from older guides. The check: a browser session without the header still reaches the login path, and CustomAuth appears as the active authentication method in the server settings.
Configure the proxy to strip and set the header
The proxy team configures the authenticating proxy to remove any incoming copy of the identity header from client requests, then set the header only after successful authentication, using the verified username or email. Stripping comes first because a proxy that only appends can pass through a value the client supplied. The check: a request sent through the proxy with a client-supplied header value reaches MISP carrying only the value the proxy set, which you confirm in the MISP logs or on a test endpoint.
Restrict accepted source addresses
Limit MISP so it accepts the trusted header only from the proxy's addresses, using the CustomAuth source restriction setting and a host firewall rule on the MISP server. Ask the network team to confirm every egress address the proxy uses, including any load balancer in front of it. The check: a connection from a host outside the proxy tier cannot log in with the header, even when it sends a correct username value.
Set logout and password reset URLs
Point the logout and password reset settings at the pages your identity provider or proxy provides, so users are not sent to a local password form they cannot use. Confirm each URL with the identity team and check that it is reachable from a user's browser. The check: signing out of MISP ends the proxy session, and the reset link opens the identity provider's recovery page without an error.
Test login with a normal user
Sign in as a standard test user through the proxy and confirm the account maps to the expected MISP user and organisation with the role you assigned. Check that the user can open the events they should see and cannot reach administration pages. The check: the account in the MISP user list matches the directory entry, and the MISP log records the login.
Test login with a locked user
Disable the test account in the directory, then attempt a login through the proxy. Confirm that the proxy refuses the session and that MISP does not create or keep a usable session from the stale header. Also observe what happens to a session that was already open when the account was disabled, and write down the behaviour you see. The check: the new login is refused and the existing-session result is recorded for the change file.
Send a forged header directly to MISP
From a host outside the proxy tier, send requests straight to the MISP application with the identity header set to an administrator's username, both with and without the proxy's own header present. This shows whether source restriction and header stripping still hold when the proxy is bypassed. The check: every forged request is refused, no administrator session is created, and the request and response records are kept with the change record.
What happens if the trusted header can be forged
CustomAuth trusts whatever identity arrives in the configured header, so the proxy-to-MISP path is the security boundary. The cards below cover the four ways that boundary usually fails, and each one ends with the control that keeps an attacker from becoming an administrator.
Direct client access to MISP
If the MISP web server accepts connections from anywhere, a client can skip the proxy and send the identity header itself. The header then decides who is logged in, so any user who can reach the port can claim to be a site admin. Check that the web server listens only on an internal address or that the firewall drops traffic from clients to it. Test by sending a request straight to MISP with a forged header and confirming it is refused.
Proxy passing client headers through
Many proxies forward headers supplied by the client unless told otherwise, so a user can send a header with an admin email and the proxy will relay it alongside its own. Whether MISP reads the first or last instance of a repeated header then becomes a question of server behaviour. The proxy must strip the identity header from incoming requests before setting its own value. Confirm this by sending the header from outside and inspecting what MISP receives.
Shared network segment
If other services, tenants or hosts share the network segment with MISP and the proxy, any compromised machine on that segment can send requests that look like they came from the proxy. Source address restrictions then protect nothing, because the address is shared. Place MISP and its proxy on a segment that only they use, and restrict access to the MISP port at the host or network level. Ask your network team to list every host that can reach the MISP port.
Misconfigured source address lists
The accepted source address list is the only check that tells MISP the header came from the proxy. A list that is too broad, such as a large internal subnet, or one that lists a load balancer address incorrectly, either admits untrusted hosts or blocks legitimate logins. Keep the list to the exact proxy addresses, review it after every network change, and remember that address trust depends on the proxy not being bypassed. Document who owns the list so changes go through review.
Admin accounts as the main target
A forged header on an account with the site admin role gives an attacker control of users, organisations, sync settings and sharing rules, and that access can be used to exfiltrate intelligence or poison feeds. Limit which identities the proxy can assert, keep a separate local admin account that does not depend on the header, and log every login with its source. Review admin role assignments regularly and confirm that a forged identity cannot reach the admin area.
Reverse proxy patterns for MISP
A common pattern places Apache or Nginx in front of MISP and uses an authentication module, such as a SAML, OIDC or directory module, to establish the user's identity before the request reaches PHP. The web server then passes the verified username to MISP in a request header that CustomAuth reads. The trust boundary sits at the web server, so MISP only trusts the header when the request has come through that server and never directly from a client.
- Header population: Confirm which module variable or directive writes the username into the header, and that the header name matches the CustomAuth setting exactly.
- Header stripping: Configure the server to remove any incoming copy of the header from client requests before the authentication step runs.
- Direct access paths: Check whether MISP's application port or a second virtual host can be reached without passing through the authenticated location.
- Module behavior on API paths: Confirm whether API requests with keys are routed through the same authentication location, since a rule that applies only to the web interface can leave API calls unprotected or broken.
- Logout handling: Verify which URL the module uses to end the session at the proxy so it matches the logout URL configured in MISP.
Confirm each of these on your exact web server version and module build, because directive names and behavior differ between releases.
An access gateway or reverse proxy product sits in front of several applications, checks the user against a central identity provider and policy engine, and forwards identity attributes to the upstream application. The trust boundary is the gateway's network position: MISP must be reachable only from the gateway, and the gateway must be the only component allowed to set the identity header. Policy, session lifetime and group checks often live in the gateway, so the MISP side may hold less information about why a user was allowed in.
- Network restriction: Limit the MISP listener to the gateway's addresses so that no client can present the header directly.
- Attribute mapping: Confirm which claim or attribute the gateway places in the header, and whether it is the account email or a username that MISP expects to match.
- Header overwrite behavior: Test that the gateway replaces, rather than appends to, any identity header a client supplies.
- Group and role data: Decide whether roles stay in MISP or are passed through a second header, and confirm the product can send that data reliably.
- Session and timeout settings: Check that the gateway's session expiry and MISP's session settings do not leave a user signed in after removal from the directory.
Verify these against the gateway vendor's current documentation and your own test users, since header names and forwarding options vary by product.
An identity-aware proxy authenticates each request against the organization's identity platform, often using device or context signals, and then forwards a signed or plain identity assertion to the application. The security of the pattern depends on whether the forwarded identity is cryptographically verifiable or only a plain header. A plain header is trusted only because of network placement, while some products can attach a signed token that MISP or a small check layer can validate. Confirm which of the two your product provides before designing the trust boundary.
- Signed or unsigned identity: Establish whether the forwarded value carries a signature or other proof that the proxy issued it.
- Ingress points: List every route to MISP, including hostnames used for sync and automation, and confirm each one passes through the proxy.
- Token lifetime: Check how long a forwarded identity remains valid and whether MISP caches the session beyond that period.
- Fallback login: Decide how an administrator signs in if the proxy or identity provider is unavailable, and keep that path separate from the proxy.
- Audit detail: Confirm the proxy logs the user, the decision and the request, so investigators can correlate with MISP's own logs.
Treat any product claim about signed assertions as something to test in a lab before relying on it in production.
When MISP runs on Kubernetes, the ingress controller or a gateway API implementation usually performs the authentication step. Forwarding decisions depend on the ingress class, annotations and any external authentication subrequest configured for the MISP host. The trust boundary is the ingress layer, but pods in the cluster can often reach the MISP service directly, so network policy becomes part of the control. Ingress annotations also vary between controller implementations, so the exact settings must be checked against the controller in use.
- Service exposure: Confirm that the MISP service is not exposed through a second ingress, NodePort or load balancer that skips authentication.
- Network policy: Restrict ingress to the MISP pods so that only the ingress controller's pods can send traffic to them.
- Header sanitization: Verify the controller removes client-supplied identity headers before it applies its own, using a test request with a forged value.
- Multiple replicas and paths: Check that every path used by the web interface, API and background callbacks goes through the same authentication rule.
- Configuration drift: Store annotations in version-controlled manifests and review them on every upgrade of the controller.
Before go-live, run a forged-header test from a pod inside the cluster and from outside it, since both paths must fail.
Whichever proxy type you choose, the boundary is only as strong as its weakest route, so the design should be verified from the outside in. Testing should confirm that a request reaching MISP without the proxy is refused, that a forged header from an unauthenticated client never produces a session, and that API traffic and sync jobs behave as designed. Document each test result so the security team can reproduce it after upgrades or infrastructure changes.
- Direct request test: Send requests to the MISP origin, bypassing the proxy, and confirm they are refused or redirected.
- Forged header test: Include the identity header in a request from an unauthenticated client and confirm no session is created.
- API key test: Confirm that API calls with a valid key still work, and that the proxy does not return a login page to automation.
- Logout test: Sign out at the proxy and in MISP, then confirm the session cannot be reused.
- Change control: Re-run these tests after each MISP upgrade and each proxy configuration change.
Keep the results with the configuration in your change records, because they are the evidence that the trust boundary was checked.
Security and operational controls for header-based login
Once MISP trusts a proxy header for login, the proxy becomes part of the authentication path for every browser session. The controls below keep access recoverable, auditable and limited to people who should hold admin rights, and they cover the parts of the setup that the proxy login does not reach.
Keep a local emergency administrator
Keep at least one local MISP administrator account that does not depend on the proxy, the identity provider or the header. If the proxy, its certificate or the directory fails, this account is the only way to change CustomAuth settings or recover other accounts. Store its credentials in your privileged access vault, test the login during go-live, and confirm that it is excluded from any forced redirect to the proxy.
Log proxy and MISP authentication events
Record authentication events on both sides: the proxy's login, session and denial logs, and MISP's own audit entries for logins and role changes. Correlate them by username and time so you can tell whether a MISP session came from a valid proxy login. Confirm with your proxy vendor which fields are logged and where they are retained, and forward both sources to the log platform you already operate.
Review who holds admin roles
Header-based login maps the username from the proxy to a MISP account, so anyone the directory admits can reach the account that already exists in MISP. Review site admin and org admin roles on a fixed schedule, and check which accounts were created automatically on first login. Remove roles that were granted for a project that has ended, and confirm that no account carries admin rights through a default role you did not intend.
Align proxy and MISP session lifetimes
The proxy and MISP each keep their own session. An expired proxy session does not automatically end an active MISP session, so a user can keep working after access was withdrawn at the proxy. Set session timeouts on both layers, document which one governs logout, and test that disabling a user in the directory removes access in MISP within a time you have agreed with your security team.
Protect API keys outside the proxy
API keys bypass the proxy login entirely. Automation, PyMISP scripts and sync jobs authenticate with keys stored in MISP, so the proxy's access controls do not apply to them. Review which keys exist, who owns them, and whether they belong to accounts that are still active. Rotate keys when staff change roles, and restrict where API traffic can originate. The MISP security hardening topic covers key handling and MFA in more detail.
Questions teams ask before delegating MISP login to a proxy
How much effort does MISP login through a reverse proxy header take?
The configuration itself is small: a CustomAuth setting that names the trusted header, the accepted source addresses, and logout and password reset URLs. The effort sits in the surrounding work: the proxy's authentication flow, testing every login path, and confirming that no route bypasses the proxy. No figure is given here because effort depends on the proxy, the number of entry points and how much review your security team requires. Ask any provider for a written list of the tasks and the environments they will test in before agreeing a fixed scope.
What drives the effort up or down?
Effort rises with the number of ways users and systems reach MISP, the complexity of the proxy's login flow, and how many roles and organisations must map from identity attributes. It also rises if the proxy is shared with other applications or if you need separate handling for API and sync traffic. It falls when the proxy already enforces single sign-on, MFA and session handling for other applications, and when the MISP instance has a single entry point with a documented hostname. Ask for the quote to list each of these factors separately.
What does the identity and network team need to provide?
- The authenticating proxy and its configuration, including the header it sets and how it strips client-supplied copies of that header.
- The fixed list of proxy source addresses that MISP should trust, owned and kept current by the network team.
- The logout and password reset URLs of the identity provider or portal.
- Test accounts, group or attribute values, and a decision on which role each group receives.
The network team also needs to confirm that MISP is reachable only through the proxy, because a direct path would let a client set the header itself.
Can our internal team set this up without outside help?
Yes, if your team already runs the reverse proxy, understands its header handling, and has a test environment where a forged header can be tried safely. The risk is that a missed detail, such as an untrusted source address or a header the proxy does not overwrite, lets someone log in as any user. Teams without that experience usually benefit from an outside review of the proxy rules and a penetration test of the login path. Check your internal skills against these points before deciding.
How does reverse proxy header login compare with OIDC or LDAP?
Header delegation moves trust to the proxy, while OidcAuth and LdapAuth let MISP verify the user directly with an identity provider or directory. OIDC gives signed tokens and mapped roles, and LDAP gives direct directory checks, so MISP has less to trust in its own network path. Header login is useful when the proxy already performs strong authentication for many applications and a native plugin is not feasible. Compare the MISP-side controls, failure modes and logout behaviour of each option before choosing. The sibling guides on Keycloak SSO and LDAP login cover those options in detail.
What goes wrong if the trusted header can be forged?
If an attacker can send the header directly to MISP, or the proxy passes through a value the client supplied, the attacker can log in as any account the header names, including administrators. This is the main risk of this method. Mitigate it by restricting accepted source addresses to the proxy only, stripping the header at the edge, and testing with a forged request before go-live. Confirm these controls with your security team and retest after every proxy change.
Is this method suitable for API and automated sync traffic?
Usually not without a separate path. Scripts, PyMISP clients and synchronization jobs typically authenticate with API keys and do not pass through an interactive login flow, so the proxy header may not be present. Decide early which traffic goes through the proxy, which uses API keys, and how each is logged and restricted. Confirm the behaviour of your MISP version against the MISP documentation before you plan the rollout.
How DeployOpen scopes and delivers MISP header authentication
DeployOpen scopes header authentication as a fixed-scope engagement, with the scope, deliverables and timeline agreed in writing before any work starts. For this topic, the written scope should name the reverse proxy product and its version, the MISP instance and version, the header names and values the proxy will set, the accepted source addresses, the logout and password reset URLs, and the user roles that the proxy-supplied identity will map to. Because the proxy and the MISP CustomAuth settings depend on each other, DeployOpen treats both as one change set rather than two separate tasks. The client receives a quote that follows from that written scope, and DeployOpen does not publish a price list.
Delivery takes place inside the client's own infrastructure, whether that is their cloud accounts, data centers or air-gapped network, so the proxy, the MISP host and the identity provider behind the proxy stay under the client's control. DeployOpen configures the proxy to strip any client-supplied copy of the trusted header and to set it only from the authenticated session, then configures MISP to accept that header only from the proxy's address. Acceptance includes forged-header testing: requests that carry the header from untrusted sources, requests with spoofed or duplicated headers, and direct connections that bypass the proxy. The findings are delivered with fixes and a retest. Clients should confirm that the acceptance criteria in the written scope name these tests explicitly.
After go-live, ongoing support, upgrades and continuous testing are available as an optional retainer, which is useful because proxy and MISP upgrades can change how headers are handled and which source addresses reach MISP. Before agreeing the scope, the client's team should confirm which proxy versions they run, who owns the identity provider, whether an emergency local administrator account will remain available, and how the MISP upgrade path will be tested against this configuration. Those answers determine the effort, and they belong in the written scope rather than in an informal handover.

