How to Configure Wazuh SAML Authentication

As organizations adopt zero trust security models and expand their use of cloud-based identity platforms, managing separate usernames and passwords for every security tool becomes increasingly difficult. Security analysts, SOC engineers, incident responders, and administrators often need quick access to multiple platforms throughout the day, making centralized authentication an essential part of modern security operations. Wazuh supports enterprise authentication through Security Assertion Markup Language (SAML), allowing organizations to authenticate users using an existing Identity Provider (IdP) instead of maintaining local Wazuh accounts.

By integrating with services such as Microsoft Entra ID, Okta, Keycloak, Ping Identity, or ADFS, organizations can enforce consistent authentication policies, require multi-factor authentication (MFA), simplify user provisioning, and centralize access management.

Beyond improving the user experience, SAML authentication helps organizations meet security and compliance requirements by reducing password sprawl, eliminating duplicate user accounts, and providing centralized auditing of authentication events.

In this guide, you’ll learn:

  • What Wazuh SAML authentication is
  • How the SAML authentication flow works
  • Prerequisites before configuration
  • How to configure Wazuh with a SAML Identity Provider
  • How to map users and groups to Wazuh roles
  • Security best practices
  • Troubleshooting common SAML authentication problems

By the end of this tutorial, you’ll have a secure, centralized authentication system for your Wazuh deployment that scales across enterprise environments.


What Is Wazuh SAML Authentication?

Wazuh SAML authentication enables users to sign in to the Wazuh Dashboard using an external Identity Provider (IdP) instead of authenticating with locally stored usernames and passwords.

The Wazuh Dashboard acts as a Service Provider (SP), while the external identity platform handles user authentication and sends trusted identity information back to Wazuh.

SAML (Security Assertion Markup Language) is an XML-based open standard developed by OASIS for exchanging authentication and authorization information between identity providers and service providers.

It has become one of the most widely adopted standards for enterprise Single Sign-On (SSO), especially in environments that rely on centralized identity management.

Unlike local authentication, where user credentials are stored and managed directly within Wazuh, SAML delegates authentication entirely to the organization’s identity infrastructure.

Users log in once through the Identity Provider and can securely access Wazuh without entering separate credentials.

Overview of SAML (Security Assertion Markup Language)

SAML is designed to provide secure authentication across multiple applications without requiring each application to store user passwords.

The protocol exchanges digitally signed XML documents called assertions, which contain identity information such as:

  • User identity
  • Authentication status
  • Authentication method
  • User groups
  • Roles
  • Attributes
  • Session information

These assertions are cryptographically signed by the Identity Provider, allowing Wazuh to verify their authenticity before granting access.

Because the authentication occurs entirely at the Identity Provider, password policies, MFA enforcement, account lockouts, and conditional access rules remain centralized.

The official OASIS SAML 2.0 Standard defines the protocol and remains the authoritative specification used by enterprise identity providers worldwide.

How SAML Works in Wazuh

When SAML authentication is enabled, the login process changes significantly compared to local authentication.

Instead of validating usernames and passwords itself, the Wazuh Dashboard redirects users to the configured Identity Provider.

After the user successfully authenticates, the Identity Provider returns a signed SAML assertion containing the user’s identity and optional attributes such as group memberships.

The Wazuh Dashboard validates the assertion, creates a secure session, and grants permissions based on configured role mappings.

In most deployments, the authentication sequence consists of:

  1. User accesses the Wazuh Dashboard.
  2. Wazuh redirects the user to the Identity Provider.
  3. User authenticates using enterprise credentials.
  4. MFA or conditional access policies are enforced by the IdP.
  5. The IdP returns a signed SAML assertion.
  6. Wazuh validates the assertion.
  7. User roles are mapped.
  8. Dashboard access is granted.

Benefits of Centralized Authentication

Using SAML provides numerous operational and security advantages over maintaining local accounts.

Major benefits include:

  • Single Sign-On (SSO) across multiple applications
  • Centralized identity management
  • Reduced password fatigue
  • Consistent MFA enforcement
  • Faster onboarding and offboarding
  • Reduced administrative overhead
  • Centralized audit logging
  • Improved compliance with regulatory requirements
  • Simplified access reviews
  • Lower risk of orphaned accounts

Organizations with hundreds or thousands of analysts particularly benefit from centralized lifecycle management because disabling a user account in the Identity Provider immediately removes access across integrated applications.

According to the Cybersecurity and Infrastructure Security Agency (CISA), implementing phishing-resistant MFA and centralized identity management significantly reduces the risk of credential-based attacks.

SAML vs Local Authentication

FeatureSAML AuthenticationLocal Authentication
Credential storageExternal IdPWazuh
Password managementCentralizedPer application
MFA supportManaged by IdPLimited
User provisioningAutomaticManual
Group synchronizationSupportedManual
Single Sign-OnYesNo
Central auditingYesLimited
Enterprise scalabilityExcellentModerate

For production enterprise deployments, SAML authentication is generally preferred because it integrates with existing identity infrastructure while reducing administrative complexity.

Common Enterprise Use Cases

SAML authentication is commonly deployed in organizations that already use centralized identity management for other business-critical applications.

Typical deployments include:

  • Enterprise Security Operations Centers (SOCs)
  • Managed Security Service Providers (MSSPs)
  • Government agencies
  • Healthcare organizations
  • Financial institutions
  • Universities
  • Large multinational companies
  • Hybrid cloud environments
  • Multi-tenant security platforms
  • Organizations enforcing enterprise SSO

Many organizations also integrate SAML with centralized role management, ensuring that security analysts, incident responders, auditors, and administrators automatically receive the correct permissions based on their enterprise group memberships.


How Wazuh SAML Authentication Works

Understanding the authentication workflow helps simplify deployment and troubleshooting when configuring SAML within Wazuh.

Rather than authenticating users directly, Wazuh delegates authentication to a trusted Identity Provider while validating cryptographically signed authentication assertions before granting dashboard access.

Authentication Flow Overview

A typical authentication sequence follows these steps:

  1. User browses to the Wazuh Dashboard.
  2. Wazuh redirects the browser to the Identity Provider.
  3. The Identity Provider authenticates the user.
  4. MFA and conditional access policies are enforced.
  5. The Identity Provider generates a signed SAML assertion.
  6. The browser sends the assertion back to Wazuh.
  7. Wazuh validates the signature and assertion contents.
  8. User attributes and groups are extracted.
  9. RBAC roles are assigned.
  10. A secure authenticated session is established.

This workflow ensures that passwords never pass through or reside within the Wazuh Dashboard.

Identity Provider (IdP)

The Identity Provider is responsible for authenticating users and issuing trusted SAML assertions.

Common Identity Providers include:

  • Microsoft Entra ID
  • Keycloak
  • Okta
  • Ping Identity
  • ADFS
  • OneLogin

The IdP performs tasks such as:

  • Password verification
  • Multi-factor authentication
  • Conditional access evaluation
  • Group lookup
  • User attribute retrieval
  • Session management

Service Provider (SP)

Within a SAML deployment, the Wazuh Dashboard functions as the Service Provider.

Its responsibilities include:

  • Redirecting users to the IdP
  • Receiving SAML responses
  • Verifying XML signatures
  • Validating assertion timestamps
  • Creating authenticated sessions
  • Applying RBAC permissions

The Service Provider never validates passwords directly, relying entirely on the trusted Identity Provider.

Authentication Assertions

A SAML assertion is an XML document that securely communicates the authenticated user’s identity.

Typical assertion attributes include:

  • Username
  • Email address
  • Display name
  • User groups
  • Authentication timestamp
  • Session expiration
  • Audience restrictions
  • Authentication context

Assertions are digitally signed to prevent tampering and replay attacks.

User Sessions

After validating a SAML assertion, Wazuh creates an authenticated user session.

Session management typically includes:

  • Secure session cookies
  • Configurable session timeouts
  • Automatic expiration
  • Idle session termination
  • Optional Single Logout support

Organizations often align session timeout values with broader corporate identity policies to maintain a consistent user experience.

Role and Group Mapping

Once authentication succeeds, Wazuh maps user attributes received from the Identity Provider to internal RBAC roles.

Examples include:

Identity GroupAssigned Wazuh Role
SOC AnalystsRead-only analyst
Incident ResponseSecurity analyst
Security EngineeringAdministrator
Compliance TeamAuditor
Infrastructure TeamDashboard viewer

Proper group mapping eliminates manual permission assignment and simplifies onboarding.

For a deeper understanding of role-based permissions, see Troubleshooting Wazuh RBAC.

Single Logout (SLO) Overview

Single Logout (SLO) allows users to terminate authenticated sessions across multiple SAML-enabled applications simultaneously.

When configured:

  • Logging out of Wazuh can terminate the IdP session.
  • Logging out of the IdP can invalidate Wazuh sessions.
  • Active authentication tokens are revoked.
  • Users are required to authenticate again before accessing protected resources.

While SLO improves session consistency, not every Identity Provider implements it identically, so behavior may vary depending on the platform.


Prerequisites

Before configuring Wazuh SAML authentication, verify that your environment meets the following requirements.

Supported Wazuh Versions

Ensure your Wazuh deployment supports the authentication features required for your Identity Provider and OpenSearch Dashboard integration.

Review the release notes before deployment to verify compatibility between:

  • Wazuh Manager
  • Wazuh Dashboard
  • Wazuh Indexer
  • OpenSearch Security components

Wazuh Dashboard Access

Confirm that the Wazuh Dashboard is functioning normally before enabling SAML.

Verify that:

  • Dashboard loads correctly
  • Administrative login works
  • Indexer connectivity is healthy
  • Existing authentication functions properly

If the Dashboard is already experiencing issues, resolve them first using Wazuh Dashboard Not Loading? Complete Troubleshooting Guide.

Administrative Privileges

You’ll need administrative access to:

  • Wazuh Dashboard
  • Wazuh server
  • OpenSearch Security configuration
  • Identity Provider administration console

Without sufficient privileges, metadata exchange and authentication configuration cannot be completed.

HTTPS/TLS Certificates

SAML relies on secure HTTPS communication between the Identity Provider and Service Provider.

Verify that:

  • Valid TLS certificates are installed
  • Certificate chains are trusted
  • Hostnames match certificates
  • HTTPS redirects function correctly

If certificate issues exist, see How to Fix Wazuh Certificate Errors.

Reachable Identity Provider

The Wazuh Dashboard must be able to communicate with the Identity Provider endpoints.

Confirm access to:

  • Metadata URL
  • Login endpoint
  • Logout endpoint (optional)
  • Certificate endpoint (if applicable)

Firewall rules, proxies, and reverse proxies should not block these connections.

Time Synchronization (NTP)

SAML assertions contain strict validity periods.

Even small clock differences between systems can cause authentication failures.

Synchronize:

  • Wazuh server
  • Dashboard host
  • Identity Provider
  • Domain controllers
  • Virtual machines

Using NTP across all participating systems helps prevent assertion expiration and “NotBefore” validation errors.

Firewall and Network Connectivity

Verify that all required communication paths are open.

This typically includes:

  • HTTPS (TCP 443)
  • DNS resolution
  • NTP (UDP 123)
  • Internal communication between Wazuh components

If your deployment uses reverse proxies, ensure they correctly forward authentication requests. See How to Configure a Wazuh Proxy.

Backup Current Authentication Configuration

Before modifying authentication settings:

  • Export the existing security configuration.
  • Back up OpenSearch Security configuration files.
  • Save Wazuh Dashboard configuration files.
  • Record existing authentication providers.
  • Document current RBAC mappings.

Having a rollback plan allows you to quickly restore local authentication if SAML configuration fails during testing.


Identity Providers Supported by Wazuh

Wazuh supports authentication through any Identity Provider (IdP) that implements the SAML 2.0 standard.

This allows organizations to integrate Wazuh with their existing enterprise identity infrastructure rather than maintaining a separate user database.

Although the configuration details vary between providers, the overall process remains the same:

  1. Create a new SAML application.
  2. Configure the Service Provider (Wazuh Dashboard).
  3. Exchange metadata.
  4. Configure attribute mappings.
  5. Map user groups to Wazuh roles.
  6. Test authentication.

Below are some of the most commonly used Identity Providers.

Microsoft Entra ID (Azure AD)

Microsoft Entra ID (formerly Azure Active Directory) is one of the most popular Identity Providers for enterprise Wazuh deployments.

It provides:

  • Single Sign-On (SSO)
  • Multi-factor authentication (MFA)
  • Conditional Access policies
  • Dynamic security groups
  • Lifecycle management
  • Identity Protection
  • Enterprise auditing

Many organizations already use Microsoft Entra ID for Microsoft 365, making Wazuh integration straightforward.

Okta

Okta is a cloud-native identity platform widely used by enterprises that need centralized authentication across thousands of SaaS applications.

Key features include:

  • SAML 2.0 support
  • Adaptive MFA
  • Universal Directory
  • Lifecycle Management
  • Group synchronization
  • Risk-based authentication

Okta’s extensive SAML documentation and application templates make deployment relatively simple.

Keycloak

Keycloak is an open-source Identity and Access Management (IAM) platform that is especially popular among organizations hosting their own infrastructure.

It supports:

  • SAML 2.0
  • OpenID Connect
  • LDAP integration
  • Active Directory federation
  • Identity brokering
  • User federation
  • Built-in MFA

Keycloak is frequently selected by organizations seeking a fully self-hosted authentication solution that integrates well with open-source software such as Wazuh.

Google Workspace

Organizations using Google Workspace can configure Google as a SAML Identity Provider for Wazuh.

This enables:

  • Google account authentication
  • Centralized account management
  • Workspace group synchronization
  • MFA enforcement
  • Security policy integration

Google Workspace is commonly used by educational institutions, startups, and cloud-first organizations.

Ping Identity

Ping Identity provides enterprise-grade identity federation with advanced authentication capabilities.

Its SAML implementation includes:

  • Single Sign-On
  • Adaptive authentication
  • Risk-based policies
  • Identity federation
  • MFA integration
  • Fine-grained access control

Large enterprises often deploy Ping Identity in hybrid cloud environments requiring extensive federation capabilities.

OneLogin

OneLogin is another enterprise Identity Provider supporting SAML authentication.

Features include:

  • Centralized identity management
  • Automated user provisioning
  • MFA
  • Directory synchronization
  • Access policies
  • Cloud application integration

Deployment is similar to other commercial Identity Providers.

Generic SAML 2.0 Providers

Because Wazuh supports the SAML 2.0 standard, virtually any standards-compliant Identity Provider can be used.

Examples include:

  • ADFS
  • Shibboleth
  • ForgeRock AM
  • Auth0
  • IBM Security Verify
  • Oracle Identity Cloud Service
  • VMware Workspace ONE Access

As long as the provider can exchange standard SAML metadata and issue signed assertions, it can generally authenticate users into Wazuh.


Information You’ll Need Before Configuration

Before configuring SAML authentication, gather all required information from your Identity Provider.

Having these details available beforehand helps prevent configuration errors and simplifies troubleshooting.

Identity Provider Metadata

Every SAML Identity Provider publishes metadata describing its configuration.

Metadata typically contains:

  • Entity ID
  • Login URL
  • Logout URL
  • X.509 certificates
  • Supported bindings
  • Signing information

Most providers allow metadata to be exported as either:

  • An XML metadata file
  • A metadata URL

Wazuh imports this metadata to establish trust with the Identity Provider.

Service Provider Entity ID

The Entity ID uniquely identifies the Wazuh Dashboard as a Service Provider.

Examples include:

https://wazuh.company.com

or

https://security.company.com/wazuh

The Entity ID configured in Wazuh must exactly match the value configured within the Identity Provider.

Assertion Consumer Service (ACS) URL

The ACS endpoint is where the Identity Provider sends authenticated SAML responses.

During login:

  1. User authenticates with the IdP.
  2. The IdP generates a SAML assertion.
  3. The browser submits the assertion to the ACS endpoint.
  4. Wazuh validates the response.

Any mismatch between configured ACS URLs commonly results in failed logins.

Single Logout URL

If your deployment supports Single Logout (SLO), you’ll also configure a logout endpoint.

This URL allows:

  • Session termination
  • Logout propagation
  • Session invalidation across applications

Although optional, SLO provides a better user experience in enterprise environments.

X.509 Signing Certificate

The Identity Provider digitally signs every SAML assertion.

Wazuh uses the IdP’s public X.509 certificate to verify:

  • Assertion integrity
  • Assertion authenticity
  • Trusted issuer
  • Signature validity

Expired or incorrect certificates are among the most common causes of SAML authentication failures.

NameID Format

The NameID identifies the authenticated user.

Common formats include:

  • Email address
  • Persistent identifier
  • Username
  • Transient identifier

Most organizations choose either:

  • Email Address
  • Persistent

The chosen NameID format should align with your user directory and account naming conventions.

Required User Attributes

Besides authentication, Wazuh often requires additional user attributes for RBAC mapping.

Common attributes include:

  • Username
  • Email
  • Display name
  • First name
  • Last name
  • Department
  • Organization

The exact attributes depend on your organization’s identity schema.

Group Attribute Names

Group membership is typically used to assign Wazuh roles automatically.

Examples include:

groups
memberOf
roles
securityGroups

Verify the exact attribute name used by your Identity Provider before configuring role mappings.


Step-by-Step: Configure Wazuh SAML Authentication

Once your Identity Provider has been prepared and the required information has been collected, you can begin configuring SAML authentication for Wazuh.

Although interface layouts differ between providers, the overall workflow remains largely the same.

Prepare Your Identity Provider

The first step is creating a dedicated SAML application representing your Wazuh Dashboard.

Most Identity Providers require administrators to specify:

  • Application name
  • Service Provider metadata
  • ACS URL
  • Entity ID
  • User attributes
  • Group mappings

After the application is created, users or security groups can be assigned access.

Create a New SAML Application

Within your Identity Provider’s administration portal:

  1. Navigate to Enterprise Applications or Applications.
  2. Create a new SAML application.
  3. Select SAML 2.0 as the authentication protocol.
  4. Assign an application name such as Wazuh Dashboard.
  5. Save the initial configuration.

The application now represents Wazuh within your identity platform.

Configure Redirect URLs

Configure the URLs that users will be redirected to after authentication.

These generally include:

  • Assertion Consumer Service (ACS) URL
  • Reply URL
  • Redirect URL
  • Login endpoint

Use HTTPS endpoints only.

Incorrect URLs are one of the most common causes of login failures.

Configure Entity ID

Specify the Service Provider Entity ID that uniquely identifies your Wazuh deployment.

The configured Entity ID must match exactly between:

  • Identity Provider
  • Wazuh Dashboard

Even small differences in protocol, hostname, or trailing slashes can cause assertion validation failures.

Export IdP Metadata

After completing the Identity Provider configuration:

  • Export the metadata XML file, or
  • Copy the metadata URL.

This metadata will later be imported into Wazuh.

Configure Wazuh Dashboard

After the Identity Provider has been configured, configure the Wazuh Dashboard to trust the external authentication service.

Enable SAML Authentication

Modify the Wazuh Dashboard authentication configuration to enable SAML as an authentication provider.

Typical configuration tasks include:

  • Enabling SAML authentication
  • Disabling local authentication (optional)
  • Specifying metadata location
  • Configuring Service Provider information
  • Defining attribute mappings

Always back up the current authentication configuration before making changes.

Import IdP Metadata

Import the Identity Provider metadata into the Wazuh Dashboard.

This establishes trust by importing:

  • Login endpoint
  • Logout endpoint
  • Entity ID
  • Signing certificate
  • Supported bindings

Avoid manually copying certificates whenever metadata import is available, as this reduces configuration errors.

Configure Service Provider Settings

Next, configure the Service Provider information presented to the Identity Provider.

Typical settings include:

  • Entity ID
  • ACS URL
  • Logout URL
  • Signing options
  • Encryption settings

Verify every URL carefully before proceeding.

Install Signing Certificates

If your deployment requires manually installing certificates:

  • Import the IdP signing certificate.
  • Verify certificate fingerprints.
  • Confirm expiration dates.
  • Validate the certificate chain.

Regularly rotate certificates before expiration to avoid authentication outages.

Restart Required Services

Once configuration changes are complete, restart the necessary services so the new authentication settings take effect.

Depending on your deployment, this may include:

  • Wazuh Dashboard
  • OpenSearch Security components
  • Reverse proxy (if applicable)

If your dashboard fails to start afterward, refer to How to Fix “Wazuh Dashboard Server Is Not Ready Yet” (Step-by-Step).

Configure User Attribute Mapping

After establishing trust between Wazuh and the Identity Provider, map SAML attributes to user information recognized by Wazuh.

Username Mapping

Select the attribute representing the user’s unique username.

Common choices include:

  • username
  • uid
  • userPrincipalName
  • email

Choose an attribute that remains stable over time.

Email Mapping

Configure the email attribute.

Typical mappings include:

  • mail
  • email
  • user.email

Email addresses are often used for auditing and user identification.

Display Name

Map a display name so users appear with friendly names within the dashboard.

Examples:

  • displayName
  • name
  • fullName

Group Attributes

Specify which SAML attribute contains group memberships.

Examples:

  • groups
  • memberOf
  • roles

This attribute will later be used for RBAC role assignment.

Role Attributes

Some Identity Providers expose explicit role attributes in addition to groups.

If available, these can simplify authorization by mapping enterprise roles directly to Wazuh permissions.

Configure Role Mapping

Role mapping determines what authenticated users are allowed to do after logging into Wazuh.

Rather than manually creating local accounts, administrators can assign permissions automatically based on IdP groups.

For more information about Wazuh permissions, see Troubleshooting Wazuh RBAC.

Map IdP Groups to Wazuh Roles

Create mappings between enterprise groups and Wazuh RBAC roles.

For example:

Identity Provider GroupWazuh Role
Wazuh-AdminsAdministrator
SOC-Level2Security Analyst
SOC-Level1Analyst
ComplianceAuditor
ExecutivesRead-only

Automating these assignments simplifies user provisioning and ensures consistent access control.

Administrator Role

Administrator groups should have permissions such as:

  • Full dashboard administration
  • User management
  • Cluster configuration
  • Rule management
  • Index management
  • API access

Restrict administrator membership to trusted personnel following the principle of least privilege.

SOC Analyst Role

SOC analysts typically require:

  • Alert investigation
  • Dashboard access
  • Search capabilities
  • Rule testing
  • Incident triage

These users generally do not need administrative configuration privileges.

Read-Only Users

Read-only users may require visibility into dashboards without the ability to modify configurations.

Common examples include:

  • Executives
  • Compliance teams
  • Auditors
  • Management

Granting view-only permissions reduces the risk of accidental changes.

Custom RBAC Roles

Organizations often create custom roles tailored to operational responsibilities.

Examples include:

  • Threat hunters
  • Vulnerability management
  • Incident response
  • Tier-1 SOC
  • Tier-2 SOC
  • Security engineering

Custom roles help enforce least-privilege access while aligning permissions with job functions.

Validate the Configuration

Before rolling SAML authentication into production, thoroughly verify that authentication, authorization, and session management function as expected.

Test Administrator Login

Authenticate using an administrator account and verify:

  • Successful login
  • MFA enforcement
  • Administrative permissions
  • Dashboard access
  • Cluster visibility

Test Standard User Login

Repeat the process using a standard analyst account.

Confirm that:

  • Authentication succeeds.
  • The correct dashboard loads.
  • Administrative functions are unavailable.
  • Alerts and searches work as expected.

Verify Role Assignments

Compare the assigned Wazuh roles with the user’s Identity Provider group memberships.

Verify that:

  • Group mappings are correct.
  • No unexpected privileges are granted.
  • RBAC restrictions are enforced.

If permissions are incorrect, review your mappings and consult Troubleshooting Wazuh RBAC.

Test Logout Functionality

Finally, verify session termination by:

  • Logging out of Wazuh.
  • Confirming the session is destroyed.
  • Testing Single Logout (if enabled).
  • Attempting to access protected pages after logout.
  • Confirming reauthentication is required.

Completing these validation steps before production deployment helps ensure a secure and reliable SAML integration while minimizing user disruption.


Example SAML Authentication Flow

Understanding the complete authentication sequence makes it much easier to troubleshoot login problems and verify that each component is functioning correctly.

While individual Identity Providers may implement minor variations, the overall SAML authentication workflow remains largely the same.

User Requests Wazuh Dashboard

The authentication process begins when a user navigates to the Wazuh Dashboard.

At this point, Wazuh checks whether the user already has a valid authenticated session.

  • If an active session exists, the dashboard loads immediately.
  • If no session exists, Wazuh initiates the SAML authentication process by redirecting the user’s browser to the configured Identity Provider.

No credentials are entered into Wazuh itself.

Redirect to Identity Provider

Instead of displaying a local login page, the Wazuh Dashboard sends an authentication request (AuthnRequest) to the Identity Provider.

This request typically contains:

  • Service Provider Entity ID
  • Assertion Consumer Service (ACS) URL
  • Requested authentication context
  • Request ID
  • RelayState (optional)

The browser is then redirected to the Identity Provider’s login page.

User Authentication

The Identity Provider authenticates the user according to the organization’s security policies.

Depending on the environment, authentication may include:

  • Username and password
  • Passwordless authentication
  • Multi-factor authentication (MFA)
  • Smart cards
  • FIDO2 security keys
  • Biometric authentication
  • Conditional Access policies
  • Risk-based authentication

Since authentication occurs entirely at the Identity Provider, organizations can enforce consistent security controls across all enterprise applications.

SAML Assertion Returned

Once authentication succeeds, the Identity Provider generates a signed SAML assertion containing the authenticated user’s identity.

A typical assertion includes:

  • User identifier (NameID)
  • Email address
  • Display name
  • Group memberships
  • Assigned roles
  • Authentication timestamp
  • Session expiration
  • Issuer information
  • Audience restrictions

The browser automatically submits this assertion to Wazuh’s Assertion Consumer Service (ACS) endpoint.

Signature Validation

Before trusting the assertion, Wazuh performs several security checks.

These include validating:

  • XML digital signature
  • Signing certificate
  • Assertion issuer
  • Audience restriction
  • Assertion expiration
  • Replay protection
  • Request correlation
  • Certificate trust chain

If any validation fails, authentication is rejected.

Session Creation

After successful validation, Wazuh creates an authenticated session for the user.

The session generally includes:

  • Secure authentication cookie
  • Session identifier
  • User attributes
  • Assigned roles
  • Session timeout
  • Idle timeout

Users can now access the dashboard without authenticating again until the session expires or they log out.

Authorization Based on Mapped Roles

Authentication only confirms the user’s identity. Authorization determines what the user is allowed to do.

Wazuh evaluates the mapped groups or role attributes received from the Identity Provider and assigns the appropriate RBAC permissions.

For example:

Identity Provider GroupWazuh RoleAccess Level
Wazuh-AdminsAdministratorFull control
SOC-Tier2Security AnalystInvestigation and response
SOC-Tier1AnalystAlert triage
ComplianceAuditorRead-only reporting
ExecutivesViewerDashboard access only

This separation of authentication and authorization allows organizations to manage permissions centrally without creating local Wazuh accounts.


Configuring Popular Identity Providers

Although every Identity Provider has its own administration interface, the configuration process follows the same general pattern:

  1. Create a SAML application.
  2. Configure the Wazuh Service Provider settings.
  3. Exchange metadata.
  4. Configure user attributes.
  5. Configure group mappings.
  6. Test authentication.

Below are examples for several widely used Identity Providers.

Microsoft Entra ID

Microsoft Entra ID (formerly Azure Active Directory) is one of the most common enterprise Identity Providers used with Wazuh.

Enterprise Application Setup

To begin:

  1. Open the Microsoft Entra admin center.
  2. Navigate to Enterprise Applications.
  3. Create a new enterprise application.
  4. Choose Create your own application.
  5. Select Integrate any other application you don’t find in the gallery (Non-gallery).
  6. Configure the application for SAML-based Single Sign-On.

After the application is created, configure the basic SAML settings using your Wazuh Dashboard’s Entity ID and ACS URL.

Claims Configuration

Configure the claims that Wazuh will receive within the SAML assertion.

Typical claims include:

  • NameID
  • Username
  • Email
  • Display name
  • Given name
  • Surname
  • Group membership

Ensure that the NameID format aligns with your Wazuh user mapping configuration.

Group Assignments

Assign users or security groups to the enterprise application.

Most organizations create dedicated groups such as:

  • Wazuh Administrators
  • SOC Analysts
  • Incident Responders
  • Compliance Auditors
  • Read-Only Users

These groups can later be mapped directly to Wazuh RBAC roles.

Testing Login

Before production deployment:

  • Test administrator authentication.
  • Test analyst authentication.
  • Verify group membership.
  • Confirm role assignments.
  • Validate logout functionality.
  • Review Entra sign-in logs for any authentication errors.

Keycloak

Keycloak is a popular open-source Identity Provider for organizations hosting their own authentication infrastructure.

Realm Creation

Create or select an existing realm that will contain the Wazuh application.

Within the realm:

  • Configure users.
  • Configure groups.
  • Configure roles.
  • Enable MFA if required.

Using a dedicated realm for security applications simplifies administration in larger environments.

Client Configuration

Create a new client using the SAML protocol.

Configure:

  • Client ID (Entity ID)
  • Assertion Consumer Service URL
  • Signature requirements
  • Redirect URLs
  • Logout URL
  • NameID format

Enable signed assertions for improved security.

Protocol Mappers

Protocol mappers define which user attributes are included in the SAML assertion.

Common mappings include:

  • Username
  • Email
  • Display name
  • Groups
  • Realm roles
  • Client roles

Only expose the attributes required by Wazuh to minimize unnecessary data sharing.

Role Synchronization

Map Keycloak groups or realm roles to Wazuh RBAC roles.

For example:

Keycloak GroupWazuh Role
SOCAnalyst
Security EngineersAdministrator
ComplianceAuditor
ExecutivesViewer

Automated role synchronization significantly reduces ongoing administrative effort.

Okta

Okta provides one of the most mature SAML implementations available for enterprise environments.

SAML Application Configuration

Create a custom SAML application within the Okta administration console.

Configure:

  • Single Sign-On URL
  • Audience URI (Entity ID)
  • NameID format
  • RelayState (optional)
  • Signature settings

Import the Wazuh metadata where supported to simplify configuration.

Attribute Statements

Configure attribute statements that Wazuh will consume.

Typical examples include:

  • Email
  • Username
  • Display name
  • First name
  • Last name
  • Groups

Ensure the attribute names match those expected by your Wazuh configuration.

Group Assignments

Assign users using Okta groups rather than individual accounts.

This simplifies:

  • User onboarding
  • Offboarding
  • Permission updates
  • RBAC management

Group-based authorization is considerably easier to maintain than manually assigning permissions to individual users.

Testing Authentication

Validate:

  • Successful authentication
  • Correct group mappings
  • Proper RBAC permissions
  • Session creation
  • Single Logout (if configured)

Review Okta system logs if authentication does not complete successfully.

Google Workspace

Google Workspace can also function as a SAML Identity Provider for Wazuh.

Custom SAML Application

Within the Google Admin Console:

  1. Create a custom SAML application.
  2. Upload the Service Provider metadata.
  3. Configure ACS URL.
  4. Configure Entity ID.
  5. Download Google’s IdP metadata.

Assign the application to the appropriate organizational units or user groups.

User Attribute Mapping

Map user attributes such as:

  • Primary email
  • First name
  • Last name
  • Display name
  • Organizational unit
  • Groups (where supported)

Verify that the selected attributes match your Wazuh configuration.

Certificate Configuration

Import Google’s signing certificate into the Wazuh Dashboard.

Verify:

  • Certificate fingerprint
  • Validity dates
  • Trusted issuer
  • Signature verification

Monitor certificate expiration to prevent unexpected authentication failures.

Login Verification

After completing the configuration:

  • Authenticate with a Google Workspace account.
  • Verify the dashboard loads successfully.
  • Confirm RBAC permissions.
  • Test session expiration.
  • Test logout behavior.

If users are unable to authenticate, review the Google Workspace SAML application configuration alongside the Wazuh authentication logs.


Managing Users and Permissions

One of the primary advantages of SAML authentication is centralized identity and permission management.

Instead of creating and maintaining local user accounts, organizations can control access entirely through their Identity Provider.

Combined with Wazuh’s Role-Based Access Control (RBAC), this approach provides a scalable and secure authorization model for enterprise environments.

Group-Based Authorization

Most organizations assign permissions using identity groups rather than individual user accounts.

Examples include:

Identity GroupPurpose
Wazuh-AdminsPlatform administrators
SOC-Tier1Alert monitoring
SOC-Tier2Incident investigation
Threat-HuntersAdvanced threat analysis
ComplianceReporting and auditing
ExecutivesRead-only dashboard access

When a user’s group membership changes, their Wazuh permissions are automatically updated during the next authentication.

This greatly simplifies onboarding, transfers between teams, and employee offboarding.

Role-Based Access Control (RBAC)

After successful authentication, Wazuh assigns permissions based on mapped RBAC roles.

RBAC controls access to resources such as:

  • Dashboards
  • Alerts
  • Indexes
  • Agents
  • Rules
  • API endpoints
  • Cluster management
  • Administrative settings

Carefully designed RBAC policies help enforce the principle of least privilege while minimizing the risk of accidental or unauthorized changes.

For a detailed explanation of permission troubleshooting, see Troubleshooting Wazuh RBAC.

Automatic User Provisioning

SAML enables Just-In-Time (JIT) user provisioning in many environments, allowing users to be recognized and assigned permissions automatically upon their first successful login, depending on the capabilities of the Identity Provider and Wazuh configuration.

Benefits include:

  • No manual account creation
  • Faster onboarding
  • Centralized lifecycle management
  • Automatic access removal when accounts are disabled
  • Reduced administrative overhead

Organizations should verify how their chosen Identity Provider and Wazuh version handle user provisioning before deployment.

Least Privilege Access

Security best practices recommend granting users only the permissions required to perform their responsibilities.

For example:

  • SOC analysts should investigate alerts but not modify cluster settings.
  • Compliance personnel should review reports without changing detection rules.
  • Security engineers may require administrative access to configure integrations and policies.
  • Executives often need read-only dashboards for operational visibility.

Following the principle of least privilege limits the impact of compromised accounts and helps satisfy regulatory requirements such as NIST SP 800-53 and the CIS Critical Security Controls, both of which emphasize minimizing unnecessary privileges.

Managing Administrative Accounts

Administrative accounts should receive additional protections because they have broad access to the Wazuh platform.

Recommended practices include:

  • Assign administrator privileges only through dedicated identity groups.
  • Require phishing-resistant MFA for all privileged accounts.
  • Avoid using shared administrator accounts.
  • Regularly review group memberships and role assignments.
  • Audit administrative login activity and permission changes.
  • Maintain separate administrative and standard user accounts for day-to-day operations.

You should also periodically verify that privileged users retain only the access necessary for their current responsibilities, removing outdated assignments as personnel or job functions change.


Security Best Practices

Implementing SAML authentication is only the first step toward securing access to your Wazuh environment.

Following security best practices helps protect user identities, prevent unauthorized access, and maintain compliance with industry standards.

Enforce HTTPS Everywhere

All communication between users, the Wazuh Dashboard, and the Identity Provider should occur over HTTPS.

Using TLS protects:

  • Authentication requests
  • SAML assertions
  • Session cookies
  • User credentials
  • Administrative sessions

Avoid allowing HTTP access, even on internal networks, as unencrypted traffic is vulnerable to interception and session hijacking.

If you’re deploying Wazuh behind a reverse proxy, ensure HTTPS is enforced end-to-end.

Require Multi-Factor Authentication (MFA)

One of the biggest advantages of SAML is that authentication policies are managed centrally by the Identity Provider.

Require MFA for all users, particularly those with privileged access.

Recommended authentication methods include:

  • Authenticator applications
  • FIDO2 security keys
  • Smart cards
  • Passkeys
  • Hardware tokens

The Cybersecurity and Infrastructure Security Agency (CISA) strongly recommends phishing-resistant MFA as a key defense against credential theft and account compromise.

Protect Signing Certificates

SAML assertions rely on digital signatures to verify authenticity.

Protect signing certificates by:

  • Storing private keys securely
  • Restricting certificate access
  • Using hardware security modules (HSMs) when appropriate
  • Monitoring certificate validity
  • Preventing unauthorized certificate replacement

Compromised signing certificates can undermine the trust relationship between Wazuh and the Identity Provider.

Rotate Certificates Before Expiration

Expired certificates are one of the most common causes of unexpected SAML authentication failures.

Establish a certificate management process that includes:

  • Monitoring expiration dates
  • Renewing certificates well before expiration
  • Updating metadata after certificate changes
  • Testing authentication before deploying new certificates
  • Maintaining rollback procedures

Automated certificate monitoring can help prevent production outages.

Limit Administrator Access

Administrator accounts should be assigned only to personnel who require full administrative privileges.

Best practices include:

  • Using dedicated administrator groups
  • Avoiding shared administrator accounts
  • Reviewing administrator memberships regularly
  • Requiring stronger authentication policies
  • Logging privileged activities

Reducing the number of privileged accounts lowers the potential impact of compromised credentials.

Use Least Privilege Roles

Not every authenticated user requires administrative access.

Instead, create separate RBAC roles for different responsibilities, such as:

  • Tier 1 SOC analysts
  • Tier 2 investigators
  • Threat hunters
  • Compliance auditors
  • Security engineers
  • Executive viewers

Grant only the permissions necessary for each role.

Enable Audit Logging

Comprehensive audit logging provides visibility into authentication activity and administrative changes.

Capture events including:

  • Successful logins
  • Failed logins
  • Role assignments
  • Group changes
  • Configuration modifications
  • Certificate updates
  • Administrative actions

These logs are valuable for compliance, forensic investigations, and troubleshooting.

Monitor Authentication Events

Authentication monitoring helps identify suspicious activity before it becomes a security incident.

Watch for:

  • Repeated login failures
  • Unexpected login locations
  • Authentication outside business hours
  • Multiple failed MFA attempts
  • Disabled accounts attempting access
  • Unexpected administrator logins

Integrating authentication logs into your security monitoring process enables faster detection of potential attacks.

Keep Clocks Synchronized

SAML assertions include timestamps that define when they become valid and when they expire.

Synchronize:

  • Wazuh servers
  • Dashboard hosts
  • Identity Providers
  • Domain controllers
  • Virtual machines

Using Network Time Protocol (NTP) across your infrastructure minimizes authentication failures caused by clock drift.

Regularly Review Group Memberships

Because access is controlled through Identity Provider groups, periodically verify that group memberships remain accurate.

Review:

  • Administrative groups
  • SOC teams
  • Contractor accounts
  • Disabled users
  • Temporary access assignments

Routine access reviews help enforce the principle of least privilege and reduce the risk of excessive permissions.


Monitoring SAML Authentication

After deploying SAML authentication, ongoing monitoring is essential for detecting configuration issues, investigating login failures, and identifying suspicious authentication activity.

Monitoring should include both the Wazuh platform and the external Identity Provider.

Dashboard Authentication Logs

The Wazuh Dashboard records authentication events that help diagnose login issues.

Useful events include:

  • Successful logins
  • Failed logins
  • Redirect failures
  • Session creation
  • Session termination
  • Assertion validation errors

These logs are often the first place to investigate when users report authentication problems.

Wazuh Logs

In addition to dashboard logs, review Wazuh server logs for authentication-related events.

Look for:

  • Authentication provider initialization
  • Metadata loading
  • Certificate validation
  • SAML parsing errors
  • Authorization failures
  • RBAC assignment issues

Centralized logging makes it easier to correlate authentication events with other security activity.

Failed Authentication Attempts

Repeated authentication failures may indicate:

  • Incorrect credentials
  • Expired certificates
  • Identity Provider outages
  • Replay attacks
  • Automated password guessing
  • Configuration errors

Monitor trends rather than isolated events to identify potential security concerns.

Session Monitoring

Monitor active sessions to understand how users interact with the Wazuh Dashboard.

Track information such as:

  • Active sessions
  • Session duration
  • Idle timeouts
  • Concurrent sessions
  • Unexpected session persistence

Reviewing session activity can help identify abandoned sessions or unauthorized access.

Certificate Expiration Monitoring

Because SAML depends on trusted certificates, monitor certificate validity proactively.

Track:

  • Expiration dates
  • Certificate rotations
  • Trust chain changes
  • Newly imported certificates
  • Metadata updates

Setting alerts well before expiration reduces the likelihood of authentication outages.

Identity Provider Logs

Most Identity Providers provide detailed authentication logs that complement Wazuh’s logging.

Typical events include:

  • Login successes
  • Login failures
  • MFA challenges
  • Conditional Access decisions
  • Group membership evaluation
  • Assertion generation
  • Application assignments

Correlating Identity Provider logs with Wazuh logs helps isolate whether a failure occurred before or after the SAML assertion was issued.

Audit Events

Regularly audit authentication-related activity to support security investigations and compliance requirements.

Important events include:

  • Role assignment changes
  • Group membership modifications
  • Administrative logins
  • Certificate replacements
  • Configuration changes
  • Failed authorization attempts
  • Single Logout events

If your deployment includes multiple business units or customers, auditing authentication alongside access controls becomes even more important.


Common Wazuh SAML Authentication Problems and Solutions

Although SAML is a mature authentication standard, configuration errors are common during initial deployment.

Most issues stem from incorrect metadata, certificate problems, or mismatched configuration values between Wazuh and the Identity Provider.

The following troubleshooting tips cover some of the most frequent problems encountered when configuring Wazuh SAML authentication.

Login Redirect Loop

If users are repeatedly redirected between the Wazuh Dashboard and the Identity Provider without successfully logging in, the SAML authentication process is not completing correctly.

Common causes include:

  • Incorrect Assertion Consumer Service (ACS) URL
  • Invalid Entity ID
  • Cookie or browser session issues
  • Misconfigured redirect URLs
  • Reverse proxy configuration errors

Incorrect ACS URL

Verify that the Assertion Consumer Service URL configured in the Identity Provider exactly matches the URL configured in Wazuh.

Check for:

  • Incorrect protocol (HTTP vs. HTTPS)
  • Typographical errors
  • Missing path components
  • Trailing slash differences

Even minor mismatches can prevent the Identity Provider from delivering the SAML assertion correctly.

Invalid Entity ID

The Service Provider Entity ID must match on both sides of the configuration.

Confirm that:

  • The Entity ID is identical in Wazuh and the IdP.
  • No extra whitespace or trailing slashes are present.
  • The correct application is referenced.

Cookie Issues

Authentication loops can also occur when session cookies are not stored correctly.

Potential causes include:

  • Browser privacy settings
  • SameSite cookie restrictions
  • Third-party cookie blocking
  • Reverse proxy cookie handling
  • Expired session cookies

If you encounter cookie-related issues, review Fixing Wazuh API SameSite Cookie Errors.

Invalid SAML Assertion

If Wazuh rejects the SAML assertion, authentication will fail before a user session is created.

Possible causes include:

  • Certificate mismatch
  • Expired assertion
  • Incorrect audience value
  • Invalid signature
  • Corrupted metadata

Certificate Mismatch

Verify that Wazuh is using the current signing certificate published by the Identity Provider.

If the IdP recently rotated certificates, update the imported metadata or certificate in Wazuh before testing again.

Expired Assertion

SAML assertions are valid only for a limited period.

Authentication may fail if:

  • The assertion expires before validation.
  • Network delays are excessive.
  • System clocks are not synchronized.

Incorrect Audience

The audience restriction in the SAML assertion must match the configured Service Provider Entity ID.

Review both the IdP and Wazuh configuration to ensure they reference the same Entity ID.

User Authenticates but Has No Permissions

In some cases, authentication succeeds but the user cannot access dashboards or resources because authorization has failed.

This typically indicates a problem with role mapping rather than authentication.

Missing Group Mapping

Confirm that:

  • The user belongs to the expected Identity Provider group.
  • The group is included in the SAML assertion.
  • The group is mapped to a Wazuh RBAC role.

If no matching group is found, Wazuh cannot assign permissions.

Incorrect Role Mapping

Review the configured RBAC mappings and verify that each Identity Provider group is associated with the intended Wazuh role.

Attribute Name Mismatch

Different Identity Providers use different attribute names for groups and user information.

For example:

  • groups
  • memberOf
  • roles
  • securityGroups

Ensure the attribute names configured in Wazuh match those included in the SAML assertion.

Certificate Validation Errors

Certificate validation problems typically prevent Wazuh from trusting the Identity Provider.

Expired Certificates

Verify that all signing certificates remain valid.

If a certificate has expired:

  • Renew the certificate.
  • Export updated metadata.
  • Import the new certificate into Wazuh.
  • Test authentication.

Incorrect Metadata

Outdated or manually edited metadata can contain invalid endpoints or certificates.

Whenever possible, download fresh metadata directly from the Identity Provider instead of editing XML files manually.

Missing Signing Certificate

If the Identity Provider’s signing certificate is missing from the Wazuh configuration, signature validation will fail.

Ensure the correct public certificate is installed and trusted before enabling SAML authentication.

Clock Synchronization Errors

Time synchronization problems frequently cause SAML authentication failures because assertions include strict validity windows.

Time Drift

Even a clock difference of a few minutes between the Identity Provider and Wazuh can result in rejected assertions.

Verify that all participating systems maintain accurate time.

NTP Configuration

Configure reliable Network Time Protocol (NTP) servers on:

  • Wazuh Manager
  • Wazuh Dashboard
  • Identity Provider
  • Domain controllers
  • Supporting infrastructure

Regular synchronization minimizes authentication issues caused by timestamp validation.

Assertion Expiration

If authentication consistently fails with expired assertions:

  • Verify system clocks.
  • Check time zones.
  • Confirm assertion lifetime settings.
  • Review network latency if users authenticate across geographically distributed environments.

Single Logout Not Working

Single Logout (SLO) can be more complex to implement than standard SSO because it requires coordination between the Identity Provider and the Service Provider.

Missing SLO Endpoint

Verify that both the Identity Provider and Wazuh are configured with matching Single Logout URLs.

If one side does not advertise an SLO endpoint, logout requests may not propagate correctly.

Session Configuration

Review session timeout settings and logout behavior to ensure sessions are terminated consistently across all integrated applications.

Confirm that:

  • Session cookies are cleared.
  • Active sessions are invalidated.
  • Browser caches are not preserving stale authentication state.

Identity Provider Limitations

Not every SAML Identity Provider implements Single Logout in the same way, and some offer only partial support.

Consult your Identity Provider’s documentation to confirm:

  • Whether SLO is supported.
  • Which bindings are available (HTTP-Redirect, HTTP-POST, etc.).
  • Any provider-specific configuration requirements or limitations.

If reliable SLO is not available, configure appropriate session timeout policies as a fallback to reduce the risk of long-lived authenticated sessions.


Performance and High Availability Considerations

While SAML authentication does not typically create significant performance overhead, enterprise deployments should carefully plan identity infrastructure, session management, and certificate lifecycle processes to ensure reliable authentication at scale.

A well-designed SAML architecture prevents authentication outages from impacting SOC operations and ensures that users can continue accessing Wazuh during Identity Provider maintenance or infrastructure failures.

Identity Provider Redundancy

The Identity Provider becomes a critical dependency once SAML authentication is enabled.

If the IdP becomes unavailable, users may be unable to authenticate into Wazuh, even if the Wazuh platform itself is fully operational.

Enterprise environments should consider:

  • Highly available Identity Provider deployments
  • Multiple authentication servers
  • Geographic redundancy
  • Backup authentication methods
  • Disaster recovery procedures

Examples include:

  • Microsoft Entra ID global availability
  • Highly available Keycloak clusters
  • Multi-node identity platforms
  • Secondary authentication providers

Organizations should document recovery procedures for Identity Provider outages, including emergency administrator access methods.

Session Timeout Configuration

Proper session management balances security and usability.

Short sessions improve security but may interrupt SOC workflows, while long sessions increase exposure if an account or workstation is compromised.

Consider configuring:

  • Idle session timeout
  • Maximum session duration
  • Automatic logout
  • Reauthentication requirements
  • Privileged user session limits

Recommended policies often include:

  • Shorter sessions for administrators
  • Longer sessions for analysts performing continuous monitoring
  • Mandatory reauthentication for sensitive actions

Session policies should align with organizational security requirements and compliance frameworks.

Authentication Latency

SAML authentication requires communication between multiple components:

  1. User browser
  2. Wazuh Dashboard
  3. Identity Provider
  4. Authentication services
  5. Directory services

Authentication delays may occur due to:

  • Slow Identity Provider response times
  • Network latency
  • Large directory searches
  • Excessive group memberships
  • Complex conditional access policies
  • MFA delays

To improve authentication performance:

  • Optimize Identity Provider queries.
  • Avoid sending unnecessary user attributes.
  • Limit excessive group claims.
  • Use efficient directory searches.
  • Deploy Identity Provider infrastructure close to users when possible.

Metadata Refresh Strategy

SAML metadata contains important trust information, including:

  • Identity Provider endpoints
  • Entity identifiers
  • Signing certificates
  • Supported bindings

Organizations should establish a metadata update process.

Recommended practices include:

  • Regularly checking for metadata changes
  • Updating metadata before certificate expiration
  • Testing changes in staging environments
  • Documenting metadata ownership
  • Monitoring certificate rollover events

Automatic metadata refresh, when supported, reduces the risk of authentication failures caused by outdated configuration.

Certificate Lifecycle Management

Certificates are one of the most important components of a SAML deployment.

Poor certificate management can result in unexpected authentication outages.

Establish a lifecycle process covering:

  • Certificate creation
  • Secure storage
  • Distribution
  • Monitoring
  • Renewal
  • Rotation
  • Revocation

Recommended practices include:

  • Track certificate expiration dates.
  • Rotate certificates before expiration.
  • Maintain certificate inventories.
  • Test new certificates before production rollout.
  • Update Wazuh metadata after certificate changes.

Scaling Large Enterprise Deployments

Large organizations may have thousands of users accessing Wazuh through SAML authentication.

To support enterprise-scale deployments:

  • Use centralized group management.
  • Avoid manually assigning permissions.
  • Limit unnecessary group claims.
  • Use automated identity lifecycle processes.
  • Implement structured RBAC models.
  • Separate administrator and analyst roles.
  • Monitor authentication performance.

For organizations operating multiple security teams or customer environments, combine SAML with Wazuh multi-tenancy and RBAC controls.

See:


Real-World Example: Enterprise Wazuh SAML Authentication Deployment

A large enterprise security team operates a centralized Wazuh deployment used by multiple security groups, including SOC analysts, incident responders, threat hunters, and security administrators.

Previously, the organization managed local Wazuh accounts manually.

As the security team expanded, this created several challenges:

  • Delayed onboarding for new analysts
  • Manual permission changes
  • Difficulty removing departed employees
  • Inconsistent MFA enforcement
  • Increased administrative workload

To solve these issues, the organization implemented SAML authentication using Microsoft Entra ID as the Identity Provider.

Integrating Microsoft Entra ID as the Identity Provider

The security team creates a dedicated SAML enterprise application in Microsoft Entra ID representing the Wazuh Dashboard.

The configuration includes:

  • Wazuh Service Provider Entity ID
  • Assertion Consumer Service URL
  • SAML signing certificate
  • User attribute mappings
  • Group claims

The organization assigns security groups to the application, including:

  • Wazuh Administrators
  • SOC Analysts
  • Incident Responders
  • Compliance Auditors
  • Security Managers

Each group represents a different level of access.

Synchronizing Security Groups With Wazuh RBAC Roles

The organization maps Entra ID security groups to Wazuh RBAC permissions.

Example:

Entra ID GroupWazuh RolePurpose
Wazuh-AdminsAdministratorPlatform management
SOC-AnalystsAnalystAlert investigation
Incident-ResponseSecurity AnalystIncident handling
Compliance-TeamAuditorReporting
ManagementRead-onlySecurity visibility

When an employee changes departments, administrators only update the user’s group membership in Entra ID.

Wazuh permissions automatically update during the next authentication.

Enforcing Multi-Factor Authentication

The organization enables Microsoft Entra Conditional Access policies requiring MFA for all Wazuh users.

Additional controls include:

  • Strong authentication requirements for administrators
  • Device compliance checks
  • Risk-based authentication
  • Location-based restrictions
  • Privileged account monitoring

This ensures that compromised passwords alone cannot provide access to the security platform.

Configuring Department-Based Access

Different departments receive different levels of access.

For example:

SOC Analysts

Access:

  • Security alerts
  • Dashboards
  • Endpoint investigations

Restrictions:

  • No cluster configuration
  • No user management

Incident Responders

Access:

  • Advanced investigations
  • Threat analysis
  • Response workflows

Administrators

Access:

  • Configuration changes
  • Agent management
  • Integration management

This structure enforces least privilege while allowing teams to perform their responsibilities efficiently.

Validating Authentication Before Production Rollout

Before enabling SAML for all users, the security team performs staged testing.

Validation includes:

  • Administrator login testing
  • Analyst login testing
  • MFA verification
  • Group membership testing
  • RBAC permission validation
  • Logout testing
  • Certificate validation

The team also maintains a rollback plan to restore local authentication if unexpected issues occur.

Benefits Achieved

After implementing SAML authentication, the organization achieves:

Simplified User Management

User creation and removal are handled centrally through the Identity Provider.

Stronger Security

MFA, conditional access, and centralized policies protect Wazuh access.

Reduced Administrative Overhead

Security administrators no longer manually manage individual Wazuh accounts.

Improved Compliance

Centralized authentication logs and access reviews support security audits and regulatory requirements.

Better Scalability

The organization can add new teams and users without increasing Wazuh administration workload.


Frequently Asked Questions

Question: What is Wazuh SAML authentication?

Wazuh SAML authentication allows users to authenticate to the Wazuh Dashboard through an external Identity Provider using the Security Assertion Markup Language standard.

Instead of managing local Wazuh accounts, organizations authenticate users through platforms such as Microsoft Entra ID, Okta, or Keycloak.

Question: Does Wazuh support SAML 2.0?

Yes. Wazuh supports SAML-based authentication through the Wazuh Dashboard and OpenSearch Security authentication mechanisms.

SAML 2.0 enables integration with enterprise Identity Providers that support the standard.

Question: Which identity providers work with Wazuh?

Wazuh can integrate with most SAML 2.0-compatible Identity Providers, including:

  • Microsoft Entra ID
  • Okta
  • Keycloak
  • Google Workspace
  • Ping Identity
  • OneLogin
  • ADFS
  • Other SAML-compliant platforms

Question: Can I use Microsoft Entra ID with Wazuh?

Yes. Microsoft Entra ID is one of the most common Identity Providers used for Wazuh SAML authentication.

Organizations can synchronize Entra security groups with Wazuh RBAC roles and enforce Microsoft MFA policies.

Question: Can I use Keycloak for Wazuh SAML authentication?

Yes. Keycloak is a popular open-source Identity Provider that supports SAML 2.0.

It is commonly used by organizations that want self-hosted identity management.

Question: How is SAML different from OIDC in Wazuh?

SAML and OpenID Connect (OIDC) both provide Single Sign-On capabilities but use different protocols.

FeatureSAMLOIDC
Protocol formatXMLJSON/JWT
Common usageEnterprise SSOModern cloud applications
Token formatAssertionsID tokens
Identity exchangeXML messagesOAuth-based tokens

SAML remains widely used in enterprise environments, while OIDC is increasingly common in cloud-native applications.

Question: Does Wazuh support Single Sign-On (SSO) with SAML?

Yes. SAML authentication provides Single Sign-On capabilities by allowing users to authenticate through an existing Identity Provider.

Users can access Wazuh without maintaining separate credentials.

Question: Can I map Active Directory groups to Wazuh roles?

Yes. Active Directory groups can be synchronized through supported Identity Providers such as Microsoft Entra ID or ADFS.

Groups can then be mapped to Wazuh RBAC roles.

Question: Why am I getting an invalid SAML assertion error?

Common causes include:

  • Incorrect Entity ID
  • Invalid ACS URL
  • Expired assertion
  • Certificate mismatch
  • Incorrect audience value
  • Clock synchronization problems

Review both Wazuh logs and Identity Provider logs to identify the cause.

Question: How do I troubleshoot Wazuh SAML login failures?

Start by checking:

  1. Identity Provider authentication logs.
  2. Wazuh Dashboard logs.
  3. SAML metadata configuration.
  4. Certificate validity.
  5. Attribute mappings.
  6. RBAC role mappings.

Common issues are caused by mismatched URLs, certificates, or user attributes.

Question: Does SAML authentication support multi-factor authentication?

Yes. MFA is typically enforced by the Identity Provider.

For example:

  • Microsoft Entra MFA
  • Okta Adaptive MFA
  • Keycloak OTP
  • Google Workspace MFA

Question: Can I configure high availability for SAML authentication?

Yes. High availability is achieved primarily through redundant Identity Provider infrastructure.

Organizations should also:

  • Maintain certificate backups.
  • Monitor metadata changes.
  • Configure reliable DNS.
  • Test disaster recovery procedures.
  • Maintain emergency administrative access.

Conclusion

Wazuh SAML authentication provides organizations with a secure and scalable way to integrate the Wazuh Dashboard with enterprise identity platforms.

By delegating authentication to a centralized Identity Provider, organizations can:

  • Enable Single Sign-On
  • Enforce MFA policies
  • Centralize user management
  • Automate access provisioning
  • Reduce administrative overhead
  • Improve security visibility
  • Support compliance requirements

A properly configured SAML deployment also simplifies permission management by connecting Identity Provider groups with Wazuh RBAC roles.

Security teams can ensure that analysts, incident responders, administrators, and auditors receive only the access required for their responsibilities.

Before deploying SAML authentication in production, test the configuration in a staging environment.

Validate authentication flows, certificate trust, group mappings, RBAC permissions, and logout behavior before migrating all users.

For additional Wazuh authentication and access management resources, continue with these related guides:

By combining SAML authentication, strong identity controls, and carefully designed RBAC policies, organizations can build a secure Wazuh environment that scales with their security operations.

Be First to Comment

    Leave a Reply

    Your email address will not be published. Required fields are marked *