2.2.1 Ensure Trusted Locations Are Defined

Information

Microsoft Entra ID Conditional Access allows an organization to configure Named locations and configure whether those locations are trusted or untrusted. These settings provide organizations the means to specify Geographical locations for use in conditional access policies, or define actual IP addresses and IP ranges and whether or not those IP addresses and/or ranges are trusted by the organization.

Rationale:

Defining trusted source IP addresses or ranges helps organizations create and enforce Conditional Access policies around those trusted or untrusted IP addresses and ranges. Users authenticating from trusted IP addresses and/or ranges may have less access restrictions or access requirements when compared to users that try to authenticate to Microsoft Entra ID from untrusted locations or untrusted source IP addresses/ranges.

Impact:

When configuring Named locations, the organization can create locations using Geographical location data or by defining source IP addresses or ranges. Configuring Named locations using a Country location does not provide the organization the ability to mark those locations as trusted, and any Conditional Access policy relying on those Countries location setting will not be able to use the All trusted locations setting within the Conditional Access policy. They instead will have to rely on the Select locations setting. This may add additional resource requirements when configuring and will require thorough organizational testing.

In general, Conditional Access policies may completely prevent users from authenticating to Microsoft Entra ID, and thorough testing is recommended. To avoid complete lockout, a 'Break Glass' account with full Global Administrator rights is recommended in the event all other administrators are locked out of authenticating to Microsoft Entra ID. This 'Break Glass' account should be excluded from Conditional Access Policies and should be configured with the longest pass phrase feasible in addition to a FIDO2 security key or certificate kept in a very secure physical location. This account should only be used in the event of an emergency and complete administrator lockout.

NOTE: Starting July 2024, Microsoft will begin requiring MFA for All Users - including Break Glass Accounts. By the end of October 2024, this requirement will be enforced. Physical FIDO2 security keys, or a certificate kept on secure removable storage can fulfill this MFA requirement. If opting for a physical device, that device should be kept in a very secure, documented physical location.

NOTE: Nessus has not performed this check. Please review the benchmark to ensure target compliance.

Solution

Remediate from Azure Portal

In the Azure Portal, navigate to Microsoft Entra ID

Under Manage, click Security

Under Protect, click Conditional Access

Under Manage, click Named locations

Within the Named locations blade, click on IP ranges location

Enter a name for this location setting in the Name text box

Click on the + sign

Add an IP Address Range in CIDR notation inside the text box that appears

Click on the Add button

Repeat steps 7 through 9 for each IP Range that needs to be added

If the information entered are trusted ranges, select the Mark as trusted location check box

Once finished, click on Create

Remediate from PowerShell
Create a new trusted IP-based Named location policy

[System.Collections.Generic.List'1[Microsoft.Open.MSGraph.Model.IpRange]]$ipRanges = @()
$ipRanges.Add('<first IP range in CIDR notation>')
$ipRanges.Add('<second IP range in CIDR notation>')
$ipRanges.Add('<third IP range in CIDR notation>')
New-MgIdentityConditionalAccessNamedLocation -dataType '#microsoft.graph.ipNamedLocation' -DisplayName '<name of IP Named location policy>' -IsTrusted $true -IpRanges $ipRanges

Set an existing IP-based Named location policy to trusted

Update-MgIdentityConditionalAccessNamedLocation -PolicyId '<ID of the policy>' -dataType '#microsoft.graph.ipNamedLocation' -IsTrusted $true

Default Value:

By default, no locations are configured under the Named locations blade within the Microsoft Entra ID Conditional Access blade.

See Also

https://workbench.cisecurity.org/benchmarks/16820

Item Details

Category: ACCESS CONTROL, CONFIGURATION MANAGEMENT, CONTINGENCY PLANNING, PLANNING, PROGRAM MANAGEMENT, SYSTEM AND SERVICES ACQUISITION, SYSTEM AND COMMUNICATIONS PROTECTION

References: 800-53|AC-2(1), 800-53|AC-3, 800-53|CM-7, 800-53|CP-6, 800-53|CP-7, 800-53|PL-8, 800-53|PM-7, 800-53|SA-8, 800-53|SC-7, CSCv7|11.1

Plugin: microsoft_azure

Control ID: e582f8cb03b99f6565122ee6f42ad27cec05f27074acd1b83388845ac9455ca8