Keycloak for Essential Eight MFA: what it covers and what it does not
If you are an Australian organization preparing for an Essential Eight assessment, MFA is the strategy where Keycloak can carry much of the technical work, but only part of the requirement. Keycloak is an identity provider, so it can enforce MFA at sign-in for human users of applications and, through its admin console and realm settings, for administrative access to the identity service itself. The Essential Eight is a set of mitigations rather than a certification scheme, and there is no ASD certificate. Maturity is evidenced by an assessment of how each strategy is implemented and how well it works against the maturity model. Your assessor will therefore look for working MFA on the systems in scope, not a Keycloak feature list.
Keycloak can help configure the parts of MFA that sit in the sign-in path: OTP policies, WebAuthn and passkeys for phishing-resistant options, recovery codes, and login and MFA events that can be sent to a central log store through your own monitoring pipeline. It cannot make a system that never calls Keycloak use MFA. Any application that keeps a local password, a direct LDAP bind, a shared service account, a jump host without federation, or a legacy protocol that bypasses the broker sits outside Keycloak's control. Before you plan the build, inventory every login path to every system in scope, mark which ones reach Keycloak, and confirm for each whether the application can enforce the Keycloak authentication flow or must be replaced.
DeployOpen prepares the Keycloak configuration, the integration evidence and the test records that an assessor will ask for, and it can document where Keycloak stops. DeployOpen does not issue an Essential Eight assessment result or certify any maturity level, and the assessment itself remains with your assessor under ASD's published guidance. Confirm with your assessor which systems are in the assessment boundary, which MFA level applies to each group of users, and which evidence format they expect before you agree scope. Those answers determine how much of the work is Keycloak configuration and how much is integration or process change outside the identity platform.
Mapping ISM MFA controls to Keycloak configuration
This table maps each ISM MFA control in scope to the Keycloak capability that supports it and the realm, client and flow settings to review. Treat it as a configuration checklist. The mapping supports an assessment but does not prove compliance, which depends on your implementation and on how assessors test it.
| Control and maturity level | Keycloak capability | Configuration to review | Scope note |
|---|---|---|---|
| ISM-1173 and ISM-0974 (ML2): MFA for privileged and unprivileged users of systems and online services | OTP policies and conditional OTP in the browser flow | Realm browser flow: OTP set to Required, OTP policy, and required actions for enrollment | Check direct grant and other non-browser flows, which may skip the browser flow. |
| ISM-1872 and ISM-1682 (ML3): phishing-resistant MFA for staff using online services and systems | W3C WebAuthn security keys and passkeys | Browser flow: WebAuthn or WebAuthn Passwordless set to Required, with matching WebAuthn policy | OTP codes alone do not meet this requirement. Confirm with your assessor how fallbacks are treated. |
| ISM-1873 (ML2) and ISM-1874 (ML3): customer MFA with a phishing-resistant option, required at ML3 | WebAuthn and passkeys with conditional and modal UI | Customer-facing client's browser flow: passkey or WebAuthn set to Alternative at ML2 and Required at ML3 | Confirm the ML2 wording with your assessor. Offering an option differs from mandating its use. |
| ISM-1683 (ML2, retained at ML3): successful and unsuccessful MFA events logged centrally | Login events and admin events | Realm Events settings: enable login and admin events, configure event listeners, and forward output to your central log | Confirm which OTP and WebAuthn failure events appear in your Keycloak version before relying on them. |
| ISM-1505 and ISM-1894 (ML3): phishing-resistant MFA for human users of data repositories | Per-client authentication flow override | Repository client settings: authentication flow override pointing to the phishing-resistant flow | Works only if the repository authenticates through Keycloak. Confirm its OIDC or SAML support first. |
| Recovery and enrollment paths for all controls above | Recovery codes and required actions | Recovery code policy, self-service enrollment of new authenticators, and account recovery steps | A recovery path that accepts a phished OTP can undo a phishing-resistant design. |
| Administrative access (supports ISM-1173 for privileged users) | Admin console login through the master realm browser flow | Master realm browser flow, separate admin hostname, and WebAuthn enrolled for every admin account | Admin accounts need their own flow. Confirm each administrator has a phishing-resistant authenticator. |
Choosing phishing-resistant MFA options in Keycloak
WebAuthn is the W3C standard that Keycloak supports for registering hardware or platform authenticators. The phishing-resistance property comes from the credential being bound to the origin the user is actually on, so a look-alike login page cannot obtain a usable response. Keycloak's server administration guide documents W3C WebAuthn as a supported second factor, and you can configure it as a required or conditional step in an authentication flow.
- Phishing resistance: Confirm that the WebAuthn step is the required factor for the users in scope, not an optional alternative that a user can bypass with OTP.
- Enrollment: Users register a key during a controlled enrollment step. Plan who approves enrollment and how identity is verified before a key is bound to an account.
- Lost keys: A lost security key is a common help desk case. Recovery codes or a second registered key should be part of the design before rollout.
- Best fit: Privileged administrators and staff with access to data repositories, where hardware keys are easier to control and audit.
- Shared devices: Keys are personal, so shared workstations or kiosks need a different design.
Check with your ASD assessor how they expect enrollment and key ownership to be evidenced for each population in scope.
Passkeys are discoverable WebAuthn credentials, often synced by a platform provider or stored on a device. Keycloak supports passkeys with both conditional UI, which offers the passkey inside the username field, and modal UI, which opens a separate prompt. Because the credential is still origin-bound, passkeys can meet the phishing-resistant requirement, but whether a synced passkey meets it depends on how the platform stores and protects the private key, so that question belongs in your assessment scope.
- Phishing resistance: Confirm the passkey policy requires user verification, and document the authenticator types you accept, including whether synced credentials are allowed.
- Enrollment: Passkey registration is usually quicker for users than hardware keys, which lowers enrollment friction for large staff populations.
- Recovery: Synced passkeys can be restored through the platform account, so recovery paths still need an explicit Keycloak-side process.
- Best fit: Staff and customers on managed devices, where the platform already supports passkeys and the organization controls the device.
- Policy choice: Decide whether to allow only device-bound passkeys for privileged roles.
Ask your assessor which passkey types they accept as phishing-resistant for your ML target before you finalize the policy.
Time-based one-time passwords generated by an authenticator app are configurable in Keycloak through OTP policies. They strengthen sign-in against password theft, but a user can type a code into a fake page, so OTP does not meet the phishing-resistant requirement. At ML2 an OTP factor can still be useful for online customer services that also offer a phishing-resistant option, but at ML3 the requirement for staff and for human users of data repositories is phishing-resistant MFA, so OTP cannot be the only factor for those users.
- Phishing exposure: OTP codes can be relayed in real time by an attacker-controlled page, so treat them as a fallback rather than the primary control for in-scope staff.
- Enrollment: Users scan a QR code once, which is simple but depends on secure handling of the initial secret.
- Recovery codes: Keycloak supports recovery codes, which give users a one-time fallback. Store them securely and track their use.
- Best fit: Customers who have no other option and online services that offer a phishing-resistant factor alongside OTP.
- Logging: Successful and failed OTP attempts still need central logging for the MFA event requirement.
Confirm with your assessor whether OTP remains acceptable for any population in your scope at the maturity level you target.
How a Keycloak login passes through MFA checks
The diagram starts with a user's browser reaching a client application, which redirects the sign-in to Keycloak through the public frontend hostname and the reverse proxy. Keycloak's browser authentication flow then runs the password step and a second factor, which can be WebAuthn, a passkey or OTP, before tokens are issued. Check that MFA events are written to a central log destination, and that the admin console and Administration REST API sit on a separate hostname or context path that the public proxy does not expose.
Login path through Keycloak MFA steps, with the public and admin trust boundaries marked.
Evidence assessors examine for MFA events and enforcement
Assessors testing Essential Eight MFA want proof that the rule is configured, that it ran, and that changes to it were controlled. The items below connect the configuration, the event trail and the monitoring data, so each can be checked against the others.
Realm authentication flow exports
Export the browser and direct grant flows, including the conditional OTP or WebAuthn steps, for every realm that serves staff or privileged access. Keep the export alongside the realm name and the Keycloak version that produced it. Review it after each upgrade, because a flow can change its behavior when defaults move. Export at least each quarter and after every change to a flow, and confirm that the exported steps match what a test login actually requires.
Keycloak docsWebAuthn and OTP policy settings
Record the realm WebAuthn policy (attestation, user verification and allowed authenticator types) and the OTP policy (algorithm, digits and period). Assessors check that the policy supports a phishing-resistant option where the ISM requires one, and that it is not weakened for a subset of users. Store a dated export of these policies and compare it with the previous export to show when anything changed.
Login and admin event records
Keep login and admin event records that show successful and unsuccessful MFA events, with the user, the authenticator type, the client and the timestamp. Confirm that events are stored and forwarded to the central log platform, not only kept on the Keycloak node. Test the trail with a deliberate failed MFA attempt and check that it appears in the central store. Ask your team to define how long these events are retained and who can read them.
Metrics exposed at /metrics
When metrics are enabled, Keycloak exposes Prometheus-format data at /metrics on its management interface. Keep a sample of these metrics to show that the service is running and monitored, and that the management interface is not reachable from public networks. Metrics show trends such as login volume, but they do not prove that each user passed MFA, so pair them with the event records rather than presenting them as the MFA log.
Metrics guideConfiguration under change control
Keep the realm, flow and policy configuration in version control or a change ticketing system, with an approval for each change to MFA settings. Assessors sample changes to see who approved them and whether the approval came before deployment. Record each operator update separately, since the Operator documentation recommends manual approval for updates to avoid unplanned upgrades. Review the change history at least quarterly against the sampled controls.
Configuration sequence for Essential Eight MFA
This sequence takes Keycloak from an undefined MFA posture to a deployment that covers the Essential Eight MFA requirements for your target maturity level, with logs and evidence an assessor can review. Each step closes with a check, so gaps are found before the assessment rather than during it.
Confirm target maturity level and in-scope systems
Your security lead and the system owners agree which Essential Eight maturity level the organization is working toward and list every system and user group in scope, including privileged administrators, unprivileged staff, data repository users and any customer-facing online services. Map each group to the ISM controls that apply at that level, using the ASD OSCAL profiles to confirm control IDs. The step is done when the scope list is signed off and each user group has a named MFA requirement. Confirm with ASD's published guidance which controls apply at your level, since the profile contents change between ISM versions.
Harden TLS and the reverse proxy
The platform team enables TLS on all communication to Keycloak and places a reverse proxy in front of it with path restrictions. The admin console and Administration REST API are served on a separate hostname or context path from public frontend URLs, so administrative sign-ins cannot be reached from the public login surface. Verify with an external scan and a check of the proxy rules that the admin paths are unreachable from outside the intended network. Done when the test requests to admin paths from untrusted addresses fail and the MFA login path works end to end.
Configure the authentication flow and MFA policy by group
An identity engineer creates or adapts a browser authentication flow with an OTP or WebAuthn step that applies to each user group defined in the first step, using Keycloak's OTP policy and conditional logic where groups need different treatment. Privileged and unprivileged human users of systems both need MFA, and any data repository access and customer-facing MFA options must match the scope. Test each group with a dedicated account and record which flow each one uses. Done when every in-scope group has a tested sign-in path that requires a second factor.
Enable WebAuthn or passkeys for phishing-resistant users
Where the target level requires phishing-resistant MFA, the identity team registers WebAuthn security keys or passkeys as the second factor for the relevant groups, starting with privileged and data repository users. Verify that the flow rejects a password-only or OTP-only sign-in for those groups and that the registered authenticators are bound to the correct accounts. Confirm with your assessor which authenticator types they accept as phishing-resistant, because that interpretation drives which users can use passkeys and which need hardware keys. Done when a test sign-in with a registered authenticator succeeds and a sign-in without one is refused.
Set recovery handling for lost authenticators
The identity and service desk teams define how users recover access when an authenticator is lost, including whether recovery codes are issued, who verifies the user's identity before a reset, and how a replacement factor is registered. Recovery must not weaken the MFA control, so the process should not allow a password-only bypass for groups that require MFA. Document the procedure and run one recovery in a test realm, recording the admin action in the logs. Done when the procedure is written, approved and tested, and the recovery event appears in the event log.
Enable event logging and metrics
The platform team turns on Keycloak's event logging for login and admin events, and enables Prometheus metrics with the metrics flag on the management interface so that operational health is visible alongside security events. Successful and unsuccessful MFA events must be logged, so the team confirms that both outcomes produce records. Trigger a successful sign-in, a failed OTP and an admin change, then check that each appears in the local event store. Done when all three test events are visible and the metrics endpoint responds from the monitoring network only.
Forward MFA events to the central log platform
The security operations team configures the forwarding path so that Keycloak login and MFA events reach the central log platform the organization uses for event analysis. Confirm the forwarding pipeline preserves the event type, user identifier, client, outcome and timestamp, and that retention meets the organization's policy. Check the ingestion by generating a test failed MFA attempt and searching for it in the central platform. Done when the test event is searchable centrally within the agreed flow, and the team can show both successful and unsuccessful MFA records for a sample period.
Export evidence for the assessor
The compliance lead assembles the evidence package: the signed scope list, the TLS and proxy configuration, the exported authentication flow and OTP and WebAuthn settings, test results per group, the recovery procedure and sample MFA log records from the central platform. Each item is tied to the ISM control it supports and the Essential Eight maturity level in scope. Keep the export dated and tied to a specific Keycloak version, and confirm with the assessor the format they expect. Done when the package is reviewed by someone outside the implementation team and every control has at least one piece of supporting evidence.
Where Keycloak stops covering the MFA requirement
Keycloak can enforce MFA for the applications that sign in through it, but several Essential Eight MFA and logging requirements sit outside the identity provider. Each card below is a gap you need to assign to a control owner, close with another tool, or document as out of scope before an assessor asks.
MFA on local and non-Keycloak logons
Keycloak only authenticates users who reach an application through a configured OpenID Connect or SAML flow. Windows or Linux workstation sign-in, local administrator accounts, database consoles and direct SSH sessions usually bypass it. Inventory every logon path for privileged and unprivileged users, then confirm whether each one needs its own MFA mechanism at the operating system or directory layer.
Enforcement at the VPN and OS layer
Where remote access is granted by a VPN gateway, bastion or endpoint management tool, the MFA decision happens before the user ever reaches Keycloak. A user who authenticates to Keycloak with a passkey can still reach internal systems through a VPN profile that accepts a password alone. Confirm which layer makes the access decision for each path and whether that layer enforces MFA for every user the ML level requires.
Central logging of MFA events outside Keycloak
ISM-1683 requires successful and unsuccessful MFA events to be centrally logged. Keycloak records its own login and admin events, but MFA prompts on VPNs, operating systems and other directories are logged elsewhere. Confirm that every system that performs MFA sends its events to the central log platform, and that the events carry user, outcome and time fields an assessor can sample.
Log analysis on workstations and internal servers
At ML3, timely event log analysis extends from internet-facing servers to non-internet-facing servers and workstations under ISM-1907 and ISM-0109. Keycloak does not analyze logs from those hosts. Decide which team reviews workstation and internal server logs, how often, and with which alert rules, and keep evidence of those reviews alongside the Keycloak event records.
Enrollment and recovery processes
Keycloak can require a passkey or security key, and it can issue recovery codes, but it cannot verify a person's identity during enrollment or recovery. Helpdesk resets, lost-device procedures and new-starter enrollment are process controls. Write the steps down, define who approves a reset, and confirm that recovery does not quietly downgrade a phishing-resistant user to a weaker factor.
SMS and other factors that are not phishing-resistant
Keycloak can still offer one-time passwords and SMS-based factors alongside WebAuthn and passkeys. Where ML3 requires phishing-resistant MFA for human users of systems, data repositories and online customer services, a code that a user can type into a fake login page does not meet that requirement. Review each enabled factor against the requirement, disable those that fail it for in-scope users, and document any exception.
Questions buyers ask about Essential Eight MFA with Keycloak
Does Keycloak alone get an organization to Essential Eight ML3 for multi-factor authentication?
No. Keycloak can provide most of the authentication mechanics the MFA strategy relies on, including OTP, WebAuthn and passkeys, but reaching ML3 is a question about the whole environment. ML3 requires phishing-resistant MFA for human users of online services, systems and data repositories, and it requires successful and unsuccessful MFA events to be centrally logged. Keycloak covers the authentication side only if every system and admin path is routed through it, and it does not cover workstation, VPN or legacy protocol access that bypasses it. Use the ISM control mapping to list each system, then confirm with your assessor which of them Keycloak can actually gate.
What drives the cost and effort of Essential Eight MFA work on Keycloak?
The main drivers are the number of systems and applications that must sit behind Keycloak, the number of integrations (directories, identity brokers, VPNs, admin tools), the state of your existing directory, and the log platform that will receive MFA events. Each application that uses a non-standard protocol or a legacy login path adds design and testing time. Ask any provider for a quote that lists these items separately, and state which are one-time build work (realm design, client registration, WebAuthn policy, logging pipeline) and which recur (patching, upgrades, access reviews, retesting).
How long does Keycloak MFA work take for Essential Eight?
Duration depends on the scope agreed in writing, not on a standard timeline. A small set of applications on an existing directory is a different job from a multi-site estate with federated directories and a central SIEM. Ask for a schedule that ties each phase to named systems: design, build in a non-production environment, pilot with a user group, staged cutover and evidence capture. Be cautious of any timeline quoted before the system list and integrations are known.
What does our team need to provide for an Essential Eight MFA engagement?
Expect to provide an inventory of systems and the users and roles that access them, access to the existing directory and any identity providers, decisions on which users must use phishing-resistant factors, and a named owner for the log platform. You will also need to confirm your current MFA methods, recovery procedures and the admin paths that must stay available during cutover. Your security and compliance leads should approve the control mapping and the evidence list before build starts.
Can our own team implement Keycloak MFA for Essential Eight without a partner?
Yes, if your team has Keycloak administration, directory integration and logging skills and time to carry the project through testing and evidence collection. Keycloak is open source under Apache 2.0, so the software itself has no license fee, but the operating effort does not go away. The areas most often underestimated are phishing-resistant enrollment for existing users, recovery paths for lost security keys, and proving that MFA events reach central logging. Confirm internally whether those skills exist before choosing between building in-house and engaging a partner.
Is an Essential Eight assessment included in a DeployOpen engagement?
Not as a default. DeployOpen prepares systems, controls and evidence for compliance assessments, but it does not issue audit reports, attestations or certifications. Independent assessors perform the Essential Eight maturity assessment, and the Essential Eight is a set of mitigations rather than a certification scheme. Whether readiness review or evidence preparation is included depends on the written scope. Confirm this in the scope document and confirm the assessor you intend to use.
Which Keycloak features cover phishing-resistant MFA and what do they need?
Keycloak documents W3C WebAuthn and passkeys, which are the options to evaluate for phishing-resistant authentication, along with OTP policies and recovery codes for other factors. Passkeys and security keys depend on the browser, the authenticator and how enrollment is designed, so test them on the devices your staff actually use. Confirm with your assessor whether the authenticators you select meet the phishing-resistance requirement, since that judgment belongs to them and not to the product.
How DeployOpen works on this
DeployOpen plans, builds and documents a self-hosted Keycloak in your own infrastructure so your compliance and security teams can review the MFA settings, the authenticator options and the event logs against the Essential Eight maturity level you are targeting. Engagements are fixed-scope, with the scope, deliverables and timeline agreed in writing before work starts.
How we scope
- Confirm the target maturity level and which user groups, administrator accounts and systems fall under MFA at that level.
- Inventory every route into Keycloak, including the admin console, customer-facing applications and federated upstream identity providers.
- Record which MFA methods each group may use, and which phishing-resistant options must be offered or enforced for each group.
- Agree in writing where Keycloak covers the requirement and where endpoint, network or non-Keycloak controls must supply the evidence.
How we build
- Configure OTP policies, WebAuthn and passkey authentication flows, and conditional MFA rules per realm, client or user group.
- Restrict or disable weaker factors for groups that must use phishing-resistant authentication, and test each fallback path.
- Enable and route Keycloak login and admin events so successful and unsuccessful MFA attempts reach your central log platform.
- Test enrollment, step-up, recovery and lockout behavior with representative accounts before any group is moved to the new policy.
How we hand over
- Deliver a configuration record that maps each MFA setting to the Essential Eight requirement it supports and the affected user groups.
- Document the log fields, retention location and sample queries your assessors can use to show MFA events were centrally logged.
- Provide a gap register listing requirements Keycloak does not cover, with the owner and evidence source for each one.
- Run a knowledge transfer for your identity and security staff on enrollment, recovery and admin access procedures.
How we support
- Ongoing support, Keycloak upgrades and continuous testing are available as retainers after handover.
- Plan Keycloak minor upgrades with the release notes in hand, since breaking changes in minor releases are opt-in by design.
- Retest MFA flows after each upgrade, policy change or new application onboarding, and refresh the evidence pack to match.
- Confirm with your assessor which evidence format and sampling approach they expect before the final evidence pack is prepared.

