Conditional Access Trusted Locations

Sophisticated phishing emails continue to bypass perimeter defences and reach end users’ mailboxes. While security awareness training is essential, it cannot be the sole line of defence.

The seamless sign-on risk

Zero Trust principles dictate that we assume breach. If Entra Connect Seamless SSO is enabled and a user clicks a phishing link, they will be automatically signed into Entra ID/M365 without any authentication prompt. This creates a critical vulnerability: a single click can compromise both the user account and potentially the entire M365 tenant.

Trusted locations: use with caution

Whilst there are legitimate use cases for trusted IP ranges, organisations should carefully review what qualifies as a “trusted location.” Creating a Conditional Access policy that exempts trusted locations from MFA is particularly risky—it assumes that network perimeter equals trustworthiness, which contradicts Zero Trust principles.

Recommendations

  • Deploy phishing-resistant authentication (FIDO2, Windows Hello for Business) where possible
  • Review and minimise seamless SSO scope
  • Audit existing trusted location definitions and remove unnecessary exemptions
  • Ensure MFA is enforced for all users, regardless of location
  • Layer security awareness training with technical controls

Disabling Entra Connect Seamless SSO: A Security-First Decision

After reviewing the security implications of Microsoft Entra Connect Seamless Single Sign-On (SSO), I am disabling this feature for my enterprise clients. Here’s why.

The vulnerability

Seamless SSO automatically authenticates users to Entra ID/M365 from domain-joined machines without prompting for credentials. Whilst this improves user experience, it creates a critical security gap: if a user clicks a phishing link, they are silently authenticated to the attacker’s infrastructure with no MFA challenge.

The attack chain is straightforward:

  1. Sophisticated phishing email bypasses perimeter controls
  2. User clicks malicious link
  3. Seamless SSO automatically authenticates the user to the attacker’s site
  4. Account compromised—no second factor, no user awareness
  5. Potential lateral movement across the M365 tenant

Why this matters

Zero Trust architecture assumes breach. Seamless SSO directly contradicts this principle by establishing implicit trust based solely on network location and device state. In today’s threat landscape—where phishing campaigns are increasingly sophisticated and AI-generated—this convenience feature represents an unacceptable risk.

The alternative

Modern authentication methods provide both security and usability:

  • Windows Hello for Business – Biometric or PIN-based authentication tied to hardware
  • FIDO2 security keys – Phishing-resistant hardware tokens
  • Microsoft Authenticator passwordless – Push notifications with number matching
  • Traditional MFA – Still far better than seamless authentication

Implementation approach

For existing environments with Seamless SSO enabled, I recommend:

  1. Audit current usage and document business justification
  2. Deploy phishing-resistant authentication methods
  3. Pilot the change with a test group
  4. Disable Seamless SSO via Entra Connect configuration
  5. Monitor authentication logs for issues
  6. Update security awareness training to reflect the new authentication flow

The minor inconvenience of an additional authentication prompt is a worthwhile trade-off for significantly improved security posture.

This recommendation

Just in Time Access for M365 Purview Roles

Microsoft’s unwavering commitment to security and compliance has consistently driven innovation and adaptability to meet evolving industry demands. Their dedicated security and compliance portals have left the legacy portal, portal.office.com, in the not too distant past.

One common frustration for M365 administrators is the inability to assign the following roles within Microsoft Privileged Identity Management:

  • Microsoft Purview roles’
  • Microsoft Defender roles’
  • Microsoft Dynamic roles’

    This blog post will primarily delve into the assignment of Microsoft Purview roles. The image below showcases the default role assignment choices available in Microsoft Privileged Identity Management.

Microsoft Purview Roles

Microsoft has invested significantly in their portal redesign at compliance.microsoft.com. In traditional scenarios, IT administrators often find themselves tasked with configuring, executing, exporting e-discovery case results, and subsequently reporting to compliance officers, data protection officers, or HR departments. However, entrusting IT admins with these compliance tasks raises initial concerns about data protection. It’s imperative that IT admins remain unaware of sensitive information contained within e-discovery case results, as these results might encompass IT admin staff within the search criteria.

As of the time of this post, there are approximately 95 role groups within M365 Purview. Here are some practical use cases illustrating how these roles can be assigned to fulfil various compliance roles and organizational requirements:

  • e-discovery
  • Insider Risk Management
  • Privacy Management
  • Data Investigator

How to Assign Microsoft Purview Roles to Microsoft Entra ID Groups

Note: For the purposed of this blogpost, I created a Microsoft CDX tenant, all users and screenshots are fictional.

1: Create a Microsoft Entra id group. Important, to not add any members or owners

2: Login to Microsoft Entra Privileged Identity Management and select Groups.

3.Seclect Discover Groups

4.Search for the previously created group and then select manage groups

5.Select groups in Privileged Identity Management

6. Click on assignment, add members to eligible assignments, this is why , we did not need to add any group members in step 1

7. Click on settings and member

8. Edit the member settings

9. Set hours to 4, require justification on activation, require approval to activate and then finally select the approver. The approver may be different per role that requires activation.

10. Create a role group in the compliance.microsoft.com portal : Microsoft Purview Permissions

11. Name the role group

12. Add the roles.

Select all roles

13. Choose groups and add the group that was created previously

14. Now the end user Adele Vance can login to https://entra.microsoft.com /identity governance / Privileged Identity Management and select ‘Activate just in time’

15. The user then selects group, activate and provides a business justification.

16. The group owner and admin , receives an email notification, that there is a pending just in time access request and can choose to approve or deny the request.

17. The compliance officer can then login to complicane.microsoft.com and perform his\her compliance activities. During my testing, no license was required for the compliance officer. I am sure Microsoft would insist that the compliance officer has an M365 E5 or E5 compliance add-on license:)

Summary

The technical steps outlined in this blogpost, enable organisations to apply Privileged Identity Management policies to roles \ permissions control in services like

  • Microsoft Purview roles’
  • Microsoft Defender roles’
  • Microsoft Dynamic roles’

M365 Purview roles are not available in M365 roles or Microsoft Entra ID Privileged Identity Management, for really good reasons. M365 Purview role \ permission elevation , can be typically required for legal disputes.

Every organisation, should consider compliance and governance with a cloud transformation journey where services, data and line of business workflows, transition from on-premises to Microsoft cloud services.

If anyone, or any organisation would like some further assistance with this, please get in touch with me via LinkedIn : https://www.linkedin.com/in/seanofarrelll/

How to protect an organisation against brute force password spray attacks

What is password less authentication?

What is Microsoft’s Password less strategy?

There have recently been an increased amount of brute force password spray attacks against M365 \ Azure AD tenants.

The obvious protection is to implement (MFA) Multi Factor Authentication as the first line of defence.

A complex 8 character password that is not protected with MFA can be cracked in 24 hours or less.

I recently worked on a project where some M365 user accounts were brute force password sprayed attacked over 20,0000 times in a single month.

A lot of organisations make the mistake of having a ‘Meet the Team’ section on their corporate website, including the senior team member’s email addresses, which is one of the first places a bad actor will target.

Bruce force password spray attacks are not performed by human beings, they are performed by bots, hosted on private cloud networks or some public cloud networks……

A simple solution to protect an organisation against brute force password spray attacks is to enable Microsoft password less, gps authentication and biometric authentication via the Microsoft Authenticator application.

Conditional access policies that allow or block countries are not effective as a bad actor can simply mask their IP and pick any country code IP that they choose.

Microsoft password less authentication methods

Microsoft Authenticator
FIDO2-compliant security keys 
Windows Hello for Business
Microsoft password less methods wizard

Microsoft Authenticator password less authentication mechanism
To enable password less and GPS location authentication , please implement and test the following configuration.
1. Browse to Azure Active Directory\ Security \ Authentication Methods
2. Select Microsoft Authenticator

3. Enable and target a test group before enabling the feature for all users

4. Select the following 3 configurations


Microsoft Authenticator Application Configuration

The end user must enable phone sign in on the Microsoft Authenticator application. Currently, this can only be enabled for one password less account on Android, but multiple accounts on iOS.


End User Experience

No password

Click yes if you are in Dublin, no if the GPS notification is displaying an incorrect location. The GPS location, protection mechanism must be communicated to end users. Do not click yes if the GPS co-ordinates specifies Hong Kong, if you are in Dublin

The final step is to validate via biometric thumbprint on your Android or iOS device.

Summary

Brute force password spray attacks cannot succeed when the following authentication methods are in place.

1: Password less
2: GPS verification
3: Biometrics validation on the Microsoft Authenticator application

The end user experience is much more user friendly, and most importantly a lot more secure.

Exchange 2016-2019 Federation Fails with Exchange Online

When attempting to federate a domain hosted in Exchange on premises with Exchange Online. The error message displayed below appears.

To resolve this issue TLS 1.2 needs to be enabled on the Exchange Hybrid servers.

ALI TAJRAN has a excellent ARTICLE and script to enable TLS 1.2 on Exchange servers. Once this script has run on the Exchange Hybrid servers, the wizard to add a federated domain will complete successfully.

Note: TLS 1.3 is not supported on Exchange on premises yet.