Using DUO with AutoElevate
Use DUO with AutoElevate: the Windows agent adds the AutoElevate credential provider to DUO's allow list so the Admin Login tile shows, plus DUO policy, MFA, UAC level and SSO guidance.
Table of Contents
DUO with Elevations
AutoElevate and DUO can provide multi-factor authentication (MFA) and approval for elevation requests on Windows systems. Here are instructions for using these tools together to ensure secure access to elevated privileges without conflict:
- When installing AutoElevate, DUO is not required for elevations. With AutoElevate, the request is MFA-approved from the AE admin portal side, as MFA is required to log in.
- If installing AutoElevate with DUO, it's recommended that you reinstall DUO with UAC level 0. This ensures that DUO does not interfere with User Account Control (UAC) or elevation requests.
- DUO offers three UAC levels:
- UAC level 0: This level is recommended for use with AutoElevate. It's Windows login only and does not affect UAC or elevation.
- UAC level 1: This level is elevation-only and does not require MFA processing on Windows login. It's not recommended for use with AutoElevate, as it can cause conflicts with the elevation approval process.
- UAC level 2 requires MFA processing on Windows login and UAC prompts. It's not recommended for use with AutoElevate, as it can cause conflicts with the elevation approval process.
- UAC level 0: This level is recommended for use with AutoElevate. It's Windows login only and does not affect UAC or elevation.
- When installing AutoElevate with DUO and using DUO with UAC level 0, there are no admin users to elevate except the AE local ~0000AEAdmin user. This “over-the-shoulder” account is not an admin at rest, so it cannot be used to elevate privileges outside of the AutoElevate process.
- Additionally, you will not need to exclude the AE local ~0000AEAdmin user from the DUO policy, as DUO doesn’t interfere with UAC or elevations in this configuration. Since you're not logging in interactively as the AE admin user, you have a more streamlined and secure process for elevating privileges
More information regarding configuring DUO UAC settings can be found here.
DUO with Admin Login
DUO’s credential provider filter hides every Windows sign-in tile that is not on DUO’s allow list, the ProvidersWhitelist registry value. If the AutoElevate credential provider is not on that list, the Admin Login tile does not show and Admin Login fails.
The Windows agent now adds the AutoElevate credential provider to DUO’s allow list for you, so in most cases you do not need to run a registry command.
Agent version: the automatic step needs Windows agent 2.12.3544 or later. Until your computers have that version, use the manual steps below.
How the Agent Adds AutoElevate to DUO’s Allow List
- The agent checks DUO’s allow list when the AutoElevate service starts, and again once per computer state period: by default about every 6 hours with a user signed in, or about every 12 hours with nobody signed in.
- If the AutoElevate credential provider GUID
{00006D50-0000-0000-B090-00006B0B0000}is missing fromHKLM\SOFTWARE\Duo Security\DuoCredProv\ProvidersWhitelist, the agent adds it. All other entries in the list stay as they are. - If the
ProvidersWhitelistvalue does not exist, the agent creates it with only the AutoElevate GUID. - If DUO is not installed, the agent changes nothing.
- If someone removes the AutoElevate GUID, or DUO is installed or upgraded later, the agent adds the GUID again within about 6 to 12 hours, or at the next service start.
- If the value is not of type
REG_MULTI_SZ, the agent does not change it. - Uninstalling AutoElevate does not remove the GUID from the list. With the AutoElevate credential provider removed, the entry has no effect.
DUO Settings Managed by Policy
If your DUO settings come from a policy, DUO reads the policy list at HKLM\SOFTWARE\Policies\Duo Security\DuoCredProv\ProvidersWhitelist instead of the local list. When that policy list is not empty, the agent does not change anything. Add {00006D50-0000-0000-B090-00006B0B0000} to the ProvidersWhitelist in your DUO policy, or the Admin Login tile stays hidden.
A DUO policy list that leaves out the AutoElevate GUID is the only lasting way to opt out. If you only remove the GUID from the local list, the agent adds it again.
DUO MFA and the AutoElevate Tile
When the AutoElevate credential provider is on DUO’s allow list, DUO does not add its MFA prompt to the AutoElevate tile. This is intended: the tile only submits sign-ins that AutoElevate has already approved (JIT Admin Login and approved UAC elevations).
Check the Agent’s DUO Log Lines
To see what the agent did, turn on Local Diagnostic Mode on the computer (see Troubleshooting: Local Diagnostic Mode). The agent writes its DUO lines to the computer login diagnostic log (computer-login-diagnostic-log) in the agent's logs folder under the title Allow Credential Provider Through Duo Filter. It writes a line when it adds the GUID, when a DUO policy list is missing the GUID, and when the value has the wrong type. If the logs folder does not exist yet, the lines appear after one or two computer state periods.
Manual Steps (Older Agents)
Requirement
Admin rights are required to run this registry command.
To prevent DUO from blocking the Admin Login credential provider (which is needed for Admin Login to function), you must add its GUID to the DUO "ProvidersWhitelist".
The following command will add the GUID of the Admin Login credential provider to the DUO whitelist:
reg add "HKLM\SOFTWARE\Duo Security\DuoCredProv" /v ProvidersWhitelist /t REG_MULTI_SZ /d "{00006D50-0000-0000-B090-00006B0B0000}" /fThis command replaces the whole ProvidersWhitelist value. If the list already holds other providers, add the AutoElevate GUID as a new line next to the existing entries instead.
The GUID of the Admin Login credential provider is: 00006D50-0000-0000-B090-00006B0B0000
For more detailed information and assistance, you can refer to this support article from DUO: https://help.duo.com/s/article/4041?language=en_US
DUO with SSO Integration
AutoElevate/SSO integration in conjunction with DUO MFA is not supported when MFA is delegated to Microsoft Azure, even with conditional access.
"Microsoft does not evaluate authentication with a custom control as part of a Conditional Access multifactor authentication claim requirement. Custom controls, like the Duo custom control for Azure CA, cannot satisfy a CA rule that requires “multifactor.” from the Duo support document located here: Duo Two-Factor Authentication for Microsoft Azure Active Directory | Duo Security
To support AutoElevate/SSO integration with DUO MFA, you will need to delegate MFA to Custom Control in Azure AD Agreement. To enable this option, follow these steps:
- From the Settings screen in the AE Admin Portal https://msp.autoelevate.com, you will need to edit the Single Sign On option (pencil icon).
- Check the Delegate MFA to Custom Control in Azure AD option.
-
Read terms, confirm and then SAVE.