Keycloak for CMMC identification and authentication

Keycloak can supply the MFA, replay-resistant login and password handling that CMMC Level 2 practices 3.5.3, 3.5.4 and 3.5.10 test, but MFA coverage, FIPS validation and evidence remain your responsibility to confirm.

On this page

Which CMMC authentication practices Keycloak can help you meet

A contractor with a system that stores or processes CUI often needs three authentication practices in place before an assessment: multifactor authentication (MFA) for privileged and network access, replay-resistant authentication for network access, and passwords that are cryptographically protected in storage and in transit. In CMMC Level 2, these map to IA.L2-3.5.3, IA.L2-3.5.4 and IA.L2-3.5.10, which are the CMMC versions of NIST SP 800-171 Rev. 2 requirements. Keycloak supplies mechanisms for all three: OTP policies, WebAuthn and passkeys, and a hashed password store, with TLS on every channel. It does not make a system compliant on its own. The assessment is run against the assessment objectives in NIST SP 800-171A, and each objective needs evidence that the configured system actually enforces the control for the right accounts.

The practical work is scoping. Decide which accounts are privileged, confirm that the Keycloak authentication flow requires a second factor for each access path (console, VPN or remote access, and CUI applications), and check that the admin console is reachable only through the restricted hostname or path described in the production guide. For 3.5.4, confirm that the factors you pick are replay-resistant, which generally means WebAuthn or passkeys rather than one-time codes that can be relayed. Confirm with your assessor and the current model text how each objective will be tested. Note that DeployOpen prepares configuration, evidence and documentation for your review but does not issue certifications or assessment results.

The status of the program also shapes the plan. On 13 July 2026 the Department of War suspended CMMC Phase II, which had included Level 2 C3PAO certification, and started a 60-day review by a CMMC Reform Task Force. Phase I self-assessments, SPRS postings, annual affirmations and DFARS 252.204-7012 obligations remain in place, so a contractor handling CUI still needs to meet NIST SP 800-171 Rev. 2 now. Confirm current requirements against the DoW CIO's CMMC pages and your contracting officer's instructions before you set a deadline.

Mapping IA.L2-3.5.3, 3.5.4 and 3.5.10 to Keycloak settings

This table maps each of the three identification and authentication practices to its NIST SP 800-171A assessment objectives, the Keycloak capability that addresses it, and the configuration an assessor will ask to see. Read each row as a checklist: an objective is only met when the setting is in place and the evidence is in final form. The main takeaway is that MFA for privileged and network access carries the heaviest scoring consequence, so it should be configured and evidenced first.

Practice and objectiveKeycloak capabilityConfiguration to confirm and evidence
IA.L2-3.5.3, MFA: identify privileged accountsRealm roles and groups that mark administrative and privileged usersDocument which accounts hold privileged roles and keep the list current with the admin role assignments
IA.L2-3.5.3, MFA for local access to privileged accountsOTP policies, WebAuthn and passkeys required through the browser flow for admin console sign-inRequire a second factor for the admin console and any local privileged login, and export the authentication flow settings as evidence
IA.L2-3.5.3, MFA for network access to privileged accountsConditional authentication that requires a second factor for privileged roles or clientsBind the MFA requirement to privileged roles or client scopes, then test a privileged sign-in from the network and retain the event record
IA.L2-3.5.3, MFA for network access to non-privileged accountsRequired second factor on the browser login flow for in-scope clientsApply the second factor to every client that carries CUI, so non-privileged network sign-in is also covered; confirm exceptions in writing
IA.L2-3.5.4, replay-resistant authentication for network accessWebAuthn and passkeys, which use challenge-based signatures, and OTP policies that define the TOTP algorithm and periodPrefer WebAuthn or passkeys for MFA where possible; if TOTP is used, confirm the policy settings and that codes are single-use in your environment with your assessor
IA.L2-3.5.10, passwords protected in storageKeycloak password hashing and the password policy settings for hash iterations and algorithmRecord the hashing algorithm and iteration settings in use and confirm them against the requirement and your assessor's expectations
IA.L2-3.5.10, passwords protected in transitTLS on all communication, with the admin console and frontend hostnames separated as the production guide describesShow TLS configuration for the login, token and admin endpoints and confirm plaintext paths are closed at the reverse proxy
Scoring under 32 CFR 170.24Not a Keycloak feature: the score depends on the MFA coverage the organization can showIA.L2-3.5.3 carries a 5-point or 3-point deduction when MFA is missing or limited, so it cannot go on a POA&M; IA.L2-3.5.4 is a 1-point requirement that may go on a POA&M for Conditional Level 2 if the score is at least 88 of 110

How to scope MFA for privileged and network access in Keycloak

Scoping MFA for IA.L2-3.5.3 starts with an inventory, not a setting. NIST SP 800-171A breaks the requirement into four assessment objectives: identifying privileged accounts, then implementing MFA for local access to privileged accounts, for network access to privileged accounts, and for network access to non-privileged accounts. An assessor will ask for the list of privileged accounts first, so the Keycloak design should begin with a documented roster of realm administrators, client administrators, service accounts with elevated rights and any group that grants access to the admin console. Decide whether administration lives in the master realm or in a separate administrative realm, and whether admin access is granted through a dedicated client or through the built-in admin roles. Keeping operational users in a different realm from administrators makes the MFA policy easier to state and to evidence, because the flow bound to the administrative realm can be reviewed on its own.

The admin console and the Administration REST API are the highest-value targets, so the design should put them behind their own hostname or context path, separate from public frontend URLs, as Keycloak's production guide recommends. Once that separation exists, the browser flow for administrative logins can require OTP or WebAuthn without changing sign-in for ordinary applications. Apply the same stronger flow to any client that carries privileged scopes, and confirm that the reverse proxy path restrictions block the admin paths from the public listener. Local access to privileged accounts is the objective teams most often miss: a console session on a host or a direct connection to the admin endpoint is still local access and needs its own proof of MFA. Confirm with your assessor how they expect local access to be evidenced in your architecture.

Partial MFA carries a large scoring penalty. Under 32 CFR 170.24, IA.L2-3.5.3 is worth 5 points if MFA is not implemented for any users and 3 points if it covers only remote and privileged users. Either value is more than the 1 point that a POA&M can cover under 32 CFR 170.21(a)(2), so an incomplete MFA rollout cannot be parked on a plan of action for Conditional Level 2 status. Plan for full coverage of non-privileged network access before the assessment window, and treat the list of users, applications and protocols that bypass the MFA flow as a defect to close. Confirm the scoring tables and POA&M eligibility against the current eCFR text, because the Department of War has changed the CMMC schedule in 2026.

What replay resistance and password storage require in practice

Requirement 3.5.4 asks for replay-resistant authentication on network access, and 3.5.10 asks for cryptographically protected passwords in storage and in transit. Each card covers one decision or check that connects the Keycloak configuration to what an assessor will test.

WebAuthn and passkeys for replay resistance

A one-time code typed into a login form can be captured and reused, so 3.5.4 pushes toward challenge-response mechanisms. Keycloak documents W3C WebAuthn and passkeys, which sign a fresh challenge with a key that stays on the authenticator. Evaluate whether your privileged and network-access accounts can use these, and confirm which authenticators your users will actually carry. Document the decision, because an assessor will ask how the chosen mechanism meets the replay objective.

Keycloak docs

OTP limits and TOTP scrutiny

Keycloak offers OTP policies for time-based codes, and a TOTP code remains valid for a window, so the same code can often be replayed within that period. Review the OTP policy settings and whether the deployment accepts a code once. Treat TOTP as multifactor authentication that satisfies 3.5.3 but needs compensating controls before you claim it meets 3.5.4 on its own. Confirm this reasoning with your assessor before the assessment.

TLS on all communication

Assessment objective 3.5.10 separates protection in storage from protection in transit. Keycloak's production guidance calls for TLS on all communication, including the path between the reverse proxy and the server, and between the server and the database. Check every listener, the admin hostname, LDAP connections and any identity broker endpoint. A password sent over an unencrypted hop fails the transit objective even when storage is correct.

Production guide

Password hashing settings to confirm

Keycloak stores user passwords as salted hashes, and the algorithm and iteration settings determine whether stored credentials are cryptographically protected. The hashing algorithm and its parameters are version-specific, so ask the vendor or your Keycloak release notes to confirm the default for your version and whether FIPS mode changes it. Record the configured values and the release they came from, since an auditor will sample the setting, not the intent.

LDAP or Active Directory federation

When passwords live in LDAP or Active Directory, Keycloak authenticates against the directory rather than storing the password itself, which moves the 3.5.10 evidence to that system. Confirm where each credential is stored, whether Keycloak imports password hashes, and that the connection to the directory is encrypted. Document the directory as part of the assessed scope, because its password storage controls will be tested alongside Keycloak.

Backchannel logout token validation

The Keycloak 26.8 upgrade notes make signature validation of backchannel logout tokens from external providers mandatory. Without that check, a forged logout message could end sessions or confuse session state across connected applications. Confirm that your upgrade path reaches 26.8 or later, that external identity providers send signed logout tokens, and that your integration test covers a rejected unsigned token. Record the upgrade as change evidence.

Upgrading guide

FIPS mode considerations for CUI systems

The CMMC Level 2 requirements are the NIST SP 800-171 Rev. 2 requirements, and they do not name FIPS 140 validation as a control in the way the CJIS Security Policy does. The relevant practice here is IA.L2-3.5.10, which calls for storing and transmitting only cryptographically protected passwords. NIST SP 800-171A (June 2018) breaks that into two assessment objectives: protecting passwords in storage and protecting them in transit. For comparison, CJIS Security Policy v6.1 requires FIPS 140-3 certified modules or FIPS 197 AES with at least 256-bit keys for criminal justice information in transit and at rest outside physically secure locations. Use that as a benchmark for how strict some federal programs are, not as a CMMC checklist item.

  • Scope of IA.L2-3.5.10: storage and transmission of passwords, assessed against two objectives in NIST SP 800-171A.
  • CJIS comparison: FIPS 140-3 modules and 256-bit AES are required there for CJI, a different program with its own rules.
  • Contract clauses: your contracting officer and DFARS 252.204-7012 obligations determine whether a specific encryption standard is written into your contract.
  • Scoring context: IA.L2-3.5.10 is not one of the requirements that 32 CFR 170.24 scores for partial credit in the same way as MFA.
  • Confirm with your assessor: how they will read the cryptographic requirement for your environment before you build around a particular module.

Confirm the exact cryptographic expectations in your contract and with your C3PAO before you commit to a module list.

Evidence assessors expect from a Keycloak authentication setup

Assessors test the Level 2 identification and authentication practices against evidence, not against configuration alone. The cards below cover the records that show how Keycloak is set up, how it is used, and who holds privileged access, along with the rule that evidence must be final before it counts.

Realm and authentication flow exports

Export the realm configuration and authentication flows on a schedule and after every change, so the record shows that MFA is required in the browser flow and for the admin console. Check that the exported Browser and Direct Grant flows show the OTP or WebAuthn step as required for the user groups in scope, and that password policy values are present. Store each export with its date and the name of the person who approved the change. Illustratively, an export taken before an MFA rollout gives a baseline that can be compared with later exports.

Keycloak docs

Admin and login event logs

Keep login and admin event records that show each successful and failed authentication, MFA challenge, and administrative change to users, clients or authentication flows. Confirm that event storage is enabled in the realm and that logs are forwarded to a system the security team controls, since local retention alone is rarely enough for an assessor to test. Sample a privileged account's login history and match it to the access list.

Metrics at /metrics where enabled

Where metrics are enabled with --metrics-enabled=true, Keycloak exposes Prometheus-format data at /metrics on the management interface. Use this as supporting evidence of login volume and availability trends, not as a substitute for event records, because it does not identify individual users. Confirm the endpoint is reachable only from the monitoring network, since the production guidance expects management interfaces to be restricted.

Metrics guide

Change records for policy changes

Every change to password policy, lockout settings, MFA requirements, or authentication flow bindings needs a ticket or change record that names the requester, the approver, the reason and the test performed. Link each record to the matching configuration export so the before and after states can be compared. Assessors often sample a change from the period under review and ask whether it was approved before it took effect.

Privileged account access lists

Maintain a current list of every account with realm administration, client administration or the admin role, with the MFA method enrolled for each. Requirement 3.5.3 assesses the identification of privileged accounts as its own objective, so the list must be complete and must match the role mappings exported from Keycloak. Reconcile it against the event logs each review cycle, and record the reviewer's name and the date.

Final-form evidence and retention

Under 32 CFR 170.16 and 170.17, a requirement counts as MET only when the evidence is in final form, not in draft. Mark each artifact as final when it is approved, store it in a write-once or access-controlled repository, and do not overwrite it when the configuration changes. Ask your assessor or C3PAO, and confirm against the current rule text, how long records must be retained for your contract, because retention periods are set by the program and contract, not by Keycloak.

32 CFR 170 text

Configuration sequence for CMMC authentication controls

This sequence turns the CMMC Level 2 identification and authentication requirements into a Keycloak configuration that can be tested against the NIST SP 800-171A objectives, with dated evidence collected at each stage. It is built so an assessor can trace each setting back to a requirement and a record.

  1. Confirm the CUI boundary and privileged account inventory

    Before any Keycloak setting is changed, the team documents which systems store, process or transmit CUI, which network paths reach them, and which accounts hold privileged roles. Security and compliance leads usually own this, with identity administrators supplying the account lists. The step is complete when the boundary diagram and a named list of privileged accounts exist and match what the realms and groups contain. This inventory is the basis for the 3.5.3 objective that identifies privileged accounts, so an assessor will ask for it first.

  2. Deploy Keycloak with TLS and a separate admin hostname

    The platform team deploys Keycloak inside the boundary with TLS on all communication, a reverse proxy that restricts paths, and the admin console and Administration REST API on a different hostname or context path from public frontend URLs. The step closes when a test login completes over TLS, the admin hostname is unreachable from the public frontend, and the configuration is stored in version control. Keep these deployment records, since they show how the authentication path is protected.

  3. Configure OTP or WebAuthn policies per group

    Identity administrators define OTP policies or W3C WebAuthn policies in Keycloak and assign them through groups or roles that match the inventory from the first step. Privileged and remote-access groups are set first so that MFA coverage is explicit rather than inherited by default. The step is complete when a test account in each group is prompted for its second factor and the policy assignments are exported. Confirm with your assessor which factor types they will accept as satisfying MFA for your environment.

  4. Set conditional MFA for network and privileged access

    Using authentication flows, the team adds conditions so that MFA is required for privileged accounts on local and network access and for non-privileged accounts on network access. Client-level flows are tested for each application that handles CUI, including administrative consoles. The step closes when test sign-ins from inside and outside the network show the expected prompts and when a failed second factor blocks access. Save the flow exports and the test results as evidence for objectives 3.5.3 and 3.5.4.

  5. Configure password storage and federated identity sources

    Administrators confirm how Keycloak stores credentials and whether user federation to LDAP, Active Directory or brokered identity providers supplies passwords or only identities. Where Keycloak holds passwords, the team verifies the hashing configuration against the cryptographic protection expectations of the 3.5.10 objectives, and it checks that transport is TLS-protected end to end. The step is complete when the chosen storage model is written down, a sample federated account authenticates through the expected path, and the password policy export is saved. Confirm the exact hashing and FIPS behavior with the vendor for your Keycloak version and deployment.

  6. Enable login event logging and metrics

    Platform operators turn on Keycloak event logging for logins, failed logins and admin changes, and enable Prometheus metrics on the management interface with metrics turned on at startup. Logs are forwarded to the organization's central log store where retention and access are already governed. The step closes when a test login and a test failed login both appear in the central store with timestamps and user identifiers. These records support the audit and monitoring evidence assessors request alongside the authentication settings.

  7. Collect dated evidence for each 800-171A objective

    The compliance lead builds an evidence matrix that maps each objective of NIST SP 800-171A under 3.5.3, 3.5.4 and 3.5.10 to a configuration export, a test result, a log extract or an approved procedure, each with a date. Evidence must be in final form, since drafts do not count toward a MET result. The step is complete when every objective has at least one dated artifact and an owner who can explain it. Review the matrix after any upgrade or realm change, because stale evidence is a common assessment finding.

How a CUI application login passes through Keycloak

The login starts in the user's browser and reaches a reverse proxy over TLS, which forwards only public frontend paths to Keycloak. Keycloak runs the password step and then a WebAuthn or OTP step for MFA, and issues tokens to the application inside the CUI enclave. The admin console sits on a separate hostname that only administrators reach, and its events go to the audit log. Check that the proxy blocks admin paths on the public hostname and that the enclave boundary matches your system security plan.

Login path from the user through the reverse proxy and Keycloak to the CUI application, with the admin path shown separately.

Questions buyers ask about Keycloak and CMMC authentication

Does Keycloak alone satisfy IA.L2-3.5.3 for CMMC Level 2?

No. Keycloak can enforce multifactor authentication for the sign-ins that IA.L2-3.5.3 covers, but the requirement is assessed against four objectives in NIST SP 800-171A: identifying privileged accounts, and MFA for local access to privileged accounts, network access to privileged accounts and network access to non-privileged accounts. Keycloak covers the authentication part only when every application, admin path and VPN or network gateway that reaches the boundary is routed through it, and when the privileged account list is kept current. Assessors also look for final-form evidence that the configuration is in place and operating, such as realm settings, required-action policies, admin event logs and the account inventory. Local console logons to hosts and network devices often sit outside Keycloak and need their own MFA design.

What drives the cost of a Keycloak CMMC authentication project?

Cost follows the written scope, so the main drivers are the size of the CUI boundary, the number of applications and network entry points that must use Keycloak, the number of identity sources to federate, and how much evidence the client needs assembled. Each application integration, each federated directory such as LDAP or Active Directory, and each MFA method added to the policy adds design and testing work. Some costs are one-time (design, build, integration, testing, documentation) and some recur (patching, upgrades, monitoring, and periodic access reviews). DeployOpen does not publish prices. Ask for a quote that separates these items, states the assumed boundary and lists which evidence items are included.

How long does Keycloak MFA and authentication hardening take to deploy?

Duration depends mostly on conditions in the client's environment rather than on Keycloak itself. The main variables are how quickly the client can approve hosting and network changes, how many applications need to be re-pointed to Keycloak, whether the identity source is clean and well governed, and how fast MFA enrollment can be rolled out to users and privileged staff. Keycloak's own deployment choices also matter, including the database (a synchronously replicated database is required for the supported high availability designs) and whether the cluster spans availability zones. Ask for a plan with milestones that name which client-side approvals and inputs each stage depends on.

What does the client need to provide before authentication work starts?

Three inputs unblock most of the work:

  • A current list of privileged accounts, including local admin, Keycloak realm admin, network and cloud administrator roles, since IA.L2-3.5.3 starts with identifying them.
  • The identity source of record, such as an existing directory, HR-fed user lifecycle or a list of local users, plus the decision on whether Keycloak federates it or holds accounts directly.
  • Hosting details: the cloud account, data center or air-gapped network where Keycloak will run, its TLS certificates, DNS names, reverse proxy and logging destination.

The client should also name the CUI boundary and the applications inside it, and confirm which MFA factors its policy allows, such as OTP, WebAuthn or passkeys.

Can an internal team implement Keycloak MFA for CMMC without a partner?

Yes, an internal team can do this if it has engineers who can operate Keycloak securely, the time to design and test the configuration, and someone who owns the assessment evidence. The work covers realm and client configuration, MFA policies for privileged and network access, replay-resistant authentication, password storage settings, hosting, logging and the evidence package. The hardest parts are usually the boundary analysis and the proof, because a requirement is met only when all applicable objectives have evidence in final form. A partner adds the most value when the scope is wide, the timeline is fixed or the team has not run an identity platform in production before. Confirm internal capacity against the written scope.

Does the Phase II suspension change when Keycloak authentication work is needed?

The suspension changes the enforcement timing for certification, not the underlying requirements. On 13 July 2026 the Department of War suspended CMMC Phase II, which had been scheduled to start 10 November 2026 and would have required Level 2 C3PAO certification for applicable contracts, and started a 60-day review by a CMMC Reform Task Force. Phase I self-assessments, SPRS postings, annual affirmations and DFARS 252.204-7012 obligations remain in place. Because the CMMC rule still incorporates NIST SP 800-171 Rev. 2, IA.L2-3.5.3 still applies to CUI systems. Check the current DoW CIO guidance and your contracting officer before setting a deadline, since the review may change the schedule.

How does IA.L2-3.5.4 replay resistance and password storage fit into the same Keycloak project?

IA.L2-3.5.4 asks for replay-resistant authentication on network access to privileged and non-privileged accounts, and IA.L2-3.5.10 asks that passwords be cryptographically protected in storage and in transit. Keycloak's WebAuthn and passkey support is one way to address replay resistance, but the assessor will check how the client's chosen factors are actually enforced. For password storage, the design must cover the hashing that Keycloak applies, TLS on all communication, and how passwords reach any federated or legacy directory. These controls share the same configuration review, so scoping them together avoids rework. Confirm the FIPS mode and module decisions with your assessor before building.

How DeployOpen scopes and delivers CMMC authentication configuration

DeployOpen plans, implements, documents and supports self-hosted Keycloak inside your own infrastructure, so the identification and authentication settings can be reviewed by your compliance team and your assessor. The work starts from the practices in scope for your systems that handle CUI, not from a generic Keycloak template.

How we scope

  • Each engagement starts with a written scope that names the CUI systems, applications and user populations covered by the work.
  • We list which privileged, local, network and non-privileged access paths need multifactor authentication and which need replay-resistant methods.
  • Scope is fixed and agreed in writing before work starts, with deliverables and timelines stated for your Keycloak configuration.

How we build

  • We configure Keycloak realms, authentication flows, required actions and MFA policies to match the scoped access paths and admin roles.
  • We test password storage, token handling and login behavior, and confirm FIPS mode decisions against the modules your environment actually uses.
  • Each control is checked against the assessment objectives in NIST SP 800-171A so that gaps are found before an external assessment.

How we hand over

  • We document each configuration setting, the requirement it supports, and the Keycloak admin event and login records that show it operating.
  • Evidence is prepared in final form, with the screenshots, exports and logs an assessor would sample for each in-scope practice.
  • Your team receives runbooks for admin access, realm changes, key rotation and periodic configuration review on infrastructure you control.

How we support

  • Ongoing support, upgrades and continuous testing of the authentication configuration are available as retainers after the initial scope is delivered.
  • Upgrades of the Keycloak release are planned with you, so authentication settings are retested after each change to the server.
  • Where scope changes, such as a new CUI application or a new identity source, we revise the written scope and deliverables before new work begins.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.