Azure Active Directory Authentication management operations reference guide
This section of the Azure AD operations reference guide describes the checks and actions you should take to secure and manage credentials, define authentication experience, delegate assignment, measure usage, and define access policies based on enterprise security posture.
These recommendations are current as of the date of publishing but can change over time. Organizations should continuously evaluate their identity practices as Microsoft products and services evolve over time.
Key operational processes
Assign owners to key tasks
Managing Azure Active Directory requires the continuous execution of key operational tasks and processes, which may not be part of a rollout project. It is still important you set up these tasks to optimize your environment. The key tasks and their recommended owners include:
|Manage lifecycle of single sign-on (SSO) configuration in Azure AD||IAM Operations Team|
|Design conditional access policies for Azure AD applications||InfoSec Architecture Team|
|Archive sign-in activity in a SIEM system||InfoSec Operations Team|
|Archive risk events in a SIEM system||InfoSec Operations Team|
|Triage and investigate security reports||InfoSec Operations Team|
|Triage and investigate risk events||InfoSec Operations Team|
|Triage and investigate users flagged for risk and vulnerability reports from Azure AD Identity Protection||InfoSec Operations Team|
Azure AD Identity Protection requires an Azure AD Premium P2 license. To find the right license for your requirements, see Comparing generally available features of the Azure AD Free and Azure AD Premium editions.
As you review your list, you may find you need to either assign an owner for tasks that are missing an owner or adjust ownership for tasks with owners that aren't aligned with the recommendations above.
Owner recommended reading
Managing passwords securely is one of the most critical parts of identity and access management and often the biggest target of attacks. Azure AD supports several features that can help prevent an attack from being successful.
Use the table below to find the recommended solution for mitigating the issue that needs to be addressed:
|No mechanism to protect against weak passwords||Enable Azure AD self-service password reset (SSPR) and password protection|
|No mechanism to detect leaked passwords||Enable password hash sync (PHS) to gain insights|
|Using AD FS and unable to move to managed authentication||Enable AD FS Extranet Smart Lockout and / or Azure AD Smart Lockout|
|Password policy uses complexity-based rules such as length, multiple character sets, or expiration||Reconsider in favor of Microsoft Recommended Practices and switch your approach to password management and deploy Azure AD password protection.|
|Users aren't registered to use multi-factor authentication (MFA)||Register all user's security information so it can be used as a mechanism to verify the user's identity along with their password|
|There is no revocation of passwords based on user risk||Deploy Azure AD Identity Protection user risk policies to force password changes on leaked credentials using SSPR|
|There is no smart lockout mechanism to protect malicious authentication from bad actors coming from identified IP addresses||Deploy cloud-managed authentication with either password hash sync or pass-through authentication (PTA)|
Password policies recommended reading
- Azure AD and AD FS best practices: Defending against password spray attacks - Enterprise Mobility + Security
Enable self-service password reset and password protection
Users needing to change or reset their passwords is one of the biggest sources of volume and cost of help desk calls. In addition to cost, changing the password as a tool to mitigate a user risk is a fundamental step in improving the security posture of your organization.
- Deflect help desk calls.
- Replace the use of temporary passwords.
- Replace any existing self-service password management solution that relies on an on-premises solution.
- Eliminate weak passwords in your organization.
For organizations with an Azure AD Premium P2 subscription, it is recommended to deploy SSPR and use it as part of an Identity Protection User Risk Policy.
Strong credential management
Passwords by themselves aren't secure enough to prevent bad actors from gaining access to your environment. At a minimum, any user with a privileged account must be enabled for multi-factor authentication (MFA). Ideally, you should enable combined registration and require all users to register for MFA and SSPR using the combined registration experience. Eventually, we recommend you adopt a strategy to provide resilience to reduce the risk of lockout due to unforeseen circumstances.
On-premises outage authentication resiliency
In addition to the benefits of simplicity and enabling leaked credential detection, Azure AD Password Hash Sync (PHS) and Azure AD MFA allow users to access SaaS applications and Microsoft 365 in spite of on-premises outages due to cyberattacks such as NotPetya. It is also possible to enable PHS while in conjunction with federation. Enabling PHS allows a fallback of authentication when federation services aren't available.
If your on-premises organization is lacking an outage resiliency strategy or has one that isn't integrated with Azure AD, you should deploy Azure AD PHS and define a disaster recovery plan that includes PHS. Enabling Azure AD PHS will allow users to authenticate against Azure AD should your on-premises Active Directory be unavailable.
To better understand your authentication options, see Choose the right authentication method for your Azure Active Directory hybrid identity solution.
Programmatic usage of credentials
Azure AD scripts using PowerShell or applications using the Microsoft Graph API require secure authentication. Poor credential management executing those scripts and tools increase the risk of credential theft. If you are using scripts or applications that rely on hard-coded passwords or password prompts you should first review passwords in config files or source code, then replace those dependencies and use Azure Managed Identities, Integrated-Windows Authentication, or certificates whenever possible. For applications where the previous solutions aren't possible, consider using Azure Key Vault.
If you determine that there are service principals with password credentials and you're unsure how those password credentials are secured by scripts or applications, contact the owner of the application to better understand usage patterns.
Microsoft also recommends you contact application owners to understand usage patterns if there are service principals with password credentials.
Federated Authentication with integrated Windows authentication (IWA) or Seamless Single Sign-On (SSO) managed authentication with password hash sync or pass-through authentication is the best user experience when inside the corporate network with line-of-sight to on-premises domain controllers. It minimizes credential prompt fatigue and reduces the risk of users falling prey to phishing attacks. If you are already using cloud-managed authentication with PHS or PTA, but users still need to type in their password when authenticating on-premises, then you should immediately deploy Seamless SSO. On the other hand, if you are currently federated with plans to eventually migrate to cloud-managed authentication, then you should implement Seamless SSO as part of the migration project.
Device trust access policies
Like a user in your organization, a device is a core identity you want to protect. You can use a device's identity to protect your resources at any time and from any location. Authenticating the device and accounting for its trust type improves your security posture and usability by:
- Avoiding friction, for example, with MFA, when the device is trusted
- Blocking access from untrusted devices
- For Windows 10 devices, provide single sign-on to on-premises resources seamlessly.
You can carry out this goal by bringing device identities and managing them in Azure AD by using one of the following methods:
- Organizations can use Microsoft Intune to manage the device and enforce compliance policies, attest device health, and set conditional access policies based on whether the device is compliant. Microsoft Intune can manage iOS devices, Mac desktops (Via JAMF integration), Windows desktops (natively using Mobile Device Management for Windows 10, and co-management with Microsoft Endpoint Configuration Manager) and Android mobile devices.
- Hybrid Azure AD join provides management with Group Policies or Microsoft Endpoint Configuration Manager in an environment with Active Directory domain-joined computers devices. Organizations can deploy a managed environment either through PHS or PTA with Seamless SSO. Bringing your devices to Azure AD maximizes user productivity through SSO across your cloud and on-premises resources while enabling you to secure access to your cloud and on-premises resources with Conditional Access at the same time.
If you have domain-joined Windows devices that aren't registered in the cloud, or domain-joined Windows devices that are registered in the cloud but without conditional access policies, then you should register the unregistered devices and, in either case, use Hybrid Azure AD join as a control in your conditional access policies.
If you are managing devices with MDM or Microsoft Intune, but not using device controls in your conditional access policies, then we recommend using Require device to be marked as compliant as a control in those policies.
Device trust access policies recommended reading
- How To: Plan your hybrid Azure Active Directory join implementation
- Identity and device access configurations
Windows Hello for Business
In Windows 10, Windows Hello for Business replaces passwords with strong two-factor authentication on PCs. Windows Hello for Business enables a more streamlined MFA experience for users and reduces your dependency on passwords. If you haven't begun rolling out Windows 10 devices, or have only partially deployed them, we recommend you upgrade to Windows 10 and enable Windows Hello for Business on all devices.
If you would like to learn more about passwordless authentication, see A world without passwords with Azure Active Directory.
Application authentication and assignment
Single sign-on for apps
Providing a standardized single sign-on mechanism to the entire enterprise is crucial for best user experience, reduction of risk, ability to report, and governance. If you are using applications that support SSO with Azure AD but are currently configured to use local accounts, you should reconfigure those applications to use SSO with Azure AD. Likewise, if you are using any applications that support SSO with Azure AD but are using another Identity Provider, you should reconfigure those applications to use SSO with Azure AD as well. For applications that don't support federation protocols but do support forms-based authentication, we recommend you configure the application to use password vaulting with Azure AD Application Proxy.
If you don't have a mechanism to discover unmanaged applications in your organization, we recommend implementing a discovery process using a cloud access security broker solution (CASB) such as Microsoft Defender for Cloud Apps.
Finally, if you have an Azure AD app gallery and use applications that support SSO with Azure AD, we recommend listing the application in the app gallery.
Single sign-on recommended reading
Migration of AD FS applications to Azure AD
Migrating apps from AD FS to Azure AD enables additional capabilities on security, more consistent manageability, and a better collaboration experience. If you have applications configured in AD FS that support SSO with Azure AD, then you should reconfigure those applications to use SSO with Azure AD. If you have applications configured in AD FS with uncommon configurations unsupported by Azure AD, you should contact the app owners to understand if the special configuration is an absolute requirement of the application. If it isn't required, then you should reconfigure the application to use SSO with Azure AD.
Azure AD Connect Health for ADFS can be used to collect configuration details about each application that can potentially be migrated to Azure AD.
Assign users to applications
Assigning users to applications is best mapped by using groups because they allow greater flexibility and ability to manage at scale. The benefits of using groups include attribute-based dynamic group membership and delegation to app owners. Therefore, if you are already using and managing groups, we recommend you take the following actions to improve management at scale:
- Delegate group management and governance to application owners.
- Allow self-service access to the application.
- Define dynamic groups if user attributes can consistently determine access to applications.
- Implement attestation to groups used for application access using Azure AD access reviews.
On the other hand, if you find applications that have assignment to individual users, be sure to implement governance around those applications.
Assign users to applications recommended reading
- Assign users and groups to an application in Azure Active Directory
- Delegate app registration permissions in Azure Active Directory
- Dynamic membership rules for groups in Azure Active Directory
With named locations in Azure AD, you can label trusted IP address ranges in your organization. Azure AD uses named locations to:
- Prevent false positives in risk events. Signing in from a trusted network location lowers a user's sign-in risk.
- Configure location-based Conditional Access.
Based on priority, use the table below to find the recommended solution that best meets your organization's needs:
|1||If you use PHS or PTA and named locations haven't been defined||Define named locations to improve detection of risk events|
|2||If you are federated and don't use "insideCorporateNetwork" claim and named locations haven't been defined||Define named locations to improve detection of risk events|
|3||If you don't use named locations in conditional access policies and there is no risk or device controls in conditional access policies||Configure the conditional access policy to include named locations|
|4||If you are federated and do use "insideCorporateNetwork" claim and named locations haven't been defined||Define named locations to improve detection of risk events|
|5||If you are using trusted IP addresses with MFA rather than named locations and marking them as trusted||Define named locations and mark them as trusted to improve detection of risk events|
Risk-based access policies
Azure AD can calculate the risk for every sign-in and every user. Using risk as a criterion in access policies can provide a better user experience, for example, fewer authentication prompts, and better security, for example, only prompt users when they are needed, and automate the response and remediation.
If you already own Azure AD Premium P2 licenses that support using risk in access policies, but they aren't being used, we highly recommend adding risk to your security posture.
Risk-based access policies recommended reading
Client application access policies
Microsoft Intune Application Management (MAM) provides the ability to push data protection controls such as storage encryption, PIN, remote storage cleanup, etc. to compatible client mobile applications such as Outlook Mobile. In addition, conditional access policies can be created to restrict access to cloud services such as Exchange Online from approved or compatible apps.
If your employees install MAM-capable applications such as Office mobile apps to access corporate resources such as Exchange Online or SharePoint Online, and you also support BYOD (bring your own device), we recommend you deploy application MAM policies to manage the application configuration in personally owned devices without MDM enrollment and then update your conditional access policies to only allow access from MAM-capable clients.
Should employees install MAM-capable applications against corporate resources and access is restricted on Intune Managed devices, then you should consider deploying application MAM policies to manage the application configuration for personal devices, and update Conditional Access policies to only allow access from MAM capable clients.
Conditional Access implementation
Conditional Access is an essential tool for improving the security posture of your organization. Therefore, it is important you follow these best practices:
- Ensure that all SaaS applications have at least one policy applied
- Avoid combining the All apps filter with the block control to avoid lockout risk
- Avoid using the All users as a filter and inadvertently adding Guests
- Migrate all "legacy" policies to the Azure portal
- Catch all criteria for users, devices, and applications
- Use Conditional Access policies to implement MFA, rather than using a per-user MFA
- Have a small set of core policies that can apply to multiple applications
- Define empty exception groups and add them to the policies to have an exception strategy
- Plan for break glass accounts without MFA controls
- Ensure a consistent experience across Microsoft 365 client applications, for example, Teams, OneDrive, Outlook, etc.) by implementing the same set of controls for services such as Exchange Online and SharePoint Online
- Assignment to policies should be implemented through groups, not individuals
- Do regular reviews of the exception groups used in policies to limit the time users are out of the security posture. If you own Azure AD P2, then you can use access reviews to automate the process
Conditional Access recommended reading
- Best practices for Conditional Access in Azure Active Directory
- Identity and device access configurations
- Azure Active Directory Conditional Access settings reference
- Common Conditional Access policies
Access surface area
Strong credentials such as MFA cannot protect apps using legacy authentication protocols, which make it the preferred attack vector by malicious actors. Locking down legacy authentication is crucial to improve the access security posture.
Legacy authentication is a term that refers to authentication protocols used by apps like:
- Older Office clients that don't use modern authentication (for example, Office 2010 client)
- Clients that use mail protocols such as IMAP/SMTP/POP
Attackers strongly prefer these protocols - in fact, nearly 100% of password spray attacks use legacy authentication protocols! Hackers use legacy authentication protocols, because they don't support interactive sign-in, which is needed for additional security challenges like multi-factor authentication and device authentication.
If legacy authentication is widely used in your environment, you should plan to migrate legacy clients to clients that support modern authentication as soon as possible. In the same token, if you have some users already using modern authentication but others that still use legacy authentication, you should take the following steps to lock down legacy authentication clients:
Use Sign-In Activity reports to identify users who are still using legacy authentication and plan remediation:
a. Upgrade to modern authentication capable clients to affected users.
b. Plan a cutover timeframe to lock down per steps below.
c. Identify what legacy applications have a hard dependency on legacy authentication. See step 3 below.
Disable legacy protocols at the source (for example Exchange Mailbox) for users who aren't using legacy auth to avoid more exposure.
For the remaining accounts (ideally non-human identities such as service accounts), use conditional access to restrict legacy protocols post-authentication.
Legacy authentication recommended reading
In an illicit consent grant attack, the attacker creates an Azure AD-registered application that requests access to data such as contact information, email, or documents. Users might be granting consent to malicious applications via phishing attacks when landing on malicious websites.
Below are a list of apps with permissions you might want to scrutinize for Microsoft cloud services:
- Apps with app or delegated *.ReadWrite Permissions
- Apps with delegated permissions can read, send, or manage email on behalf of the user
- Apps that are granted the using the following permissions:
|Microsoft Graph API||Mail.Read|
- Apps granted full user impersonation of the signed-in user. For example:
|Microsoft Graph API||Directory.AccessAsUser.All|
|Azure REST API||user_impersonation|
To avoid this scenario, you should refer to detect and remediate illicit consent grants in Office 365 to identify and fix any applications with illicit grants or applications that have more grants than are necessary. Next, remove self-service altogether and establish governance procedures. Finally, schedule regular reviews of app permissions and remove them when they are not needed.
Consent grants recommended reading
User and group settings
Below are the user and group settings that can be locked down if there isn't an explicit business need:
- External Users - external collaboration can happen organically in the enterprise with services like Teams, Power BI, SharePoint Online, and Azure Information Protection. If you have explicit constraints to control user-initiated external collaboration, it is recommended you enable external users by using Azure AD Entitlement management or a controlled operation such as through your help desk. If you don't want to allow organic external collaboration for services, you can block members from inviting external users completely. Alternatively, you can also allow or block specific domains in external user invitations.
- App Registrations - when App registrations are enabled, end users can onboard applications themselves and grant access to their data. A typical example of App registration is users enabling Outlook plug-ins, or voice assistants such as Alexa and Siri to read their email and calendar or send emails on their behalf. If the customer decides to turn off App registration, the InfoSec and IAM teams must be involved in the management of exceptions (app registrations that are needed based on business requirements), as they would need to register the applications with an admin account, and most likely require designing a process to operationalize the process.
- Administration Portal - organizations can lock down the Azure AD blade in the Azure portal so that non-administrators can't access Azure AD management in the Azure portal and get confused. Go to the user settings in the Azure AD management portal to restrict access:
Non-adminstrators can still access to the Azure AD management interfaces via command-line and other programmatic interfaces.
Self-Service Group Management / Users can create Security groups / Microsoft 365 groups. If there is no current self-service initiative for groups in the cloud, customers might decide to turn it off until they are ready to use this capability.
Groups recommended reading
- What is Azure Active Directory B2B collaboration?
- Integrating Applications with Azure Active Directory
- Apps, permissions, and consent in Azure Active Directory.
- Use groups to manage access to resources in Azure Active Directory
- Setting up self-service application access management in Azure Active Directory
Traffic from unexpected locations
Attackers originate from various parts of the world. Manage this risk by using conditional access policies with location as the condition. The location condition of a Conditional Access policy enables you to block access for locations from where there is no business reason to sign in from.
If available, use a security information and event management (SIEM) solution to analyze and find patterns of access across regions. If you don't use a SIEM product, or it isn't ingesting authentication information from Azure AD, we recommend you use Azure Monitor to identify patterns of access across regions.
Azure AD logs archived and integrated with incident response plans
Having access to sign-in activity, audits and risk events for Azure AD is crucial for troubleshooting, usage analytics, and forensics investigations. Azure AD provides access to these sources through REST APIs that have a limited retention period. A security information and event management (SIEM) system, or equivalent archival technology, is key for long-term storage of audits and supportability. To enable long-term storage of Azure AD Logs, you must either add them to your existing SIEM solution or use Azure Monitor. Archive logs that can be used as part of your incident response plans and investigations.
Logs recommended reading
- Azure Active Directory audit API reference
- Azure Active Directory sign-in activity report API reference
- Get data using the Azure AD Reporting API with certificates
- Microsoft Graph for Azure Active Directory Identity Protection
- Office 365 Management Activity API reference
- How to use the Azure Active Directory Power BI Content Pack
There are 12 aspects to a secure Identity infrastructure. This list will help you further secure and manage credentials, define authentication experience, delegate assignment, measure usage, and define access policies based on enterprise security posture.
- Assign owners to key tasks.
- Implement solutions to detect weak or leaked passwords, improve password management and protection, and further secure user access to resources.
- Manage the identity of devices to protect your resources at any time and from any location.
- Implement passwordless authentication.
- Provide a standardized single sign-on mechanism across the organization.
- Migrate apps from AD FS to Azure AD to enable better security and more consistent manageability.
- Assign users to applications by using groups to allow greater flexibility and ability to manage at scale.
- Configure risk-based access policies.
- Lock down legacy authentication protocols.
- Detect and remediate illicit consent grants.
- Lock down user and group settings.
- Enable long-term storage of Azure AD logs for troubleshooting, usage analytics, and forensics investigations.
Get started with the Identity governance operational checks and actions.