Most Microsoft 365 breaches escalate through identity paths in Microsoft Entra ID, not through software bugs: an over-privileged app registration, a forgotten admin role, a service principal with powerful Graph permissions, or an on-premises account synced into a cloud admin group. You can review these paths yourself with free tools: Maester and CISA’s ScubaGear check configuration against best practice, and AzureHound with BloodHound docs maps who can reach Global Administrator. This guide explains what to run, what to look for, and how to fix the usual findings.
Active Directory teams learned years ago to think in attack paths: not “is this account admin?” but “who can become admin, through what chain of permissions?”. The same thinking now matters in the cloud. In Entra ID, the chain often runs through applications and service principals, objects that many administrators rarely look at.
The common Entra ID attack paths
1. Too many privileged role holders
Global Administrator, Privileged Role Administrator and Privileged Authentication Administrator can each take over the tenant. Microsoft recommends fewer than five Global Administrators; many tenants have far more, including old accounts and service accounts.
2. Applications that can grant themselves anything
Service principals with Microsoft Graph application permissions such as RoleManagement.ReadWrite.Directory, AppRoleAssignment.ReadWrite.All or Application.ReadWrite.All are effectively Global Administrator equivalents: they can assign roles or grant permissions without any user signing in.
3. App owners and credential management
Anyone who is an owner of an app registration, or holds the Application Administrator or Cloud Application Administrator role, can add a new client secret or certificate to that application and then act as it. If the application holds powerful permissions, that is a privilege escalation path that bypasses MFA entirely.
4. Synced on-premises accounts in cloud admin roles
If an account synchronised from on-premises AD is a cloud administrator, compromising AD compromises the cloud too. Microsoft recommends cloud-only accounts for privileged roles.
5. Weak Conditional Access coverage
Gaps such as legacy authentication still allowed, exclusions that grew over time, policies in report-only mode forever, or admin roles not required to use phishing-resistant MFA.
6. Permissive user and guest settings
Users allowed to register applications, consent to apps on their own, or invite guests, and guests with too much directory visibility.
Tool 1: Maester, an automated configuration test suite
Maester is an open-source PowerShell framework that runs hundreds of tests against your tenant (including Microsoft’s and CISA’s recommendations) and produces an HTML report. It is read-only and quick to run:
Install-Module Pester -SkipPublisherCheck -Force -Scope CurrentUser
Install-Module Maester -Scope CurrentUser
mkdir maester-tests; cd maester-tests
Install-MaesterTests
Connect-Maester
Invoke-Maester
Sign in with an account that has read access (Global Reader is enough for most tests). The report groups results as passed, failed and skipped, with links to explanations. Many teams schedule Maester in a GitHub Action or Azure DevOps pipeline to catch configuration drift every day.
Tool 2: ScubaGear, CISA’s Microsoft 365 baseline check
The US Cybersecurity and Infrastructure Security Agency (CISA) publishes Secure Cloud Business Applications (SCuBA) baselines for Microsoft 365 and a tool to assess them:
Install-Module -Name ScubaGear
Initialize-SCuBA
Invoke-SCuBA -ProductNames aad, exo, sharepoint, teams
It produces an HTML report showing which baseline controls pass or fail for Entra ID (aad), Exchange Online, SharePoint and Teams. The baselines are written for US agencies but are a solid, well-documented standard for any organisation.
Tool 3: AzureHound and BloodHound, see the paths
Configuration checks tell you what is misconfigured; path analysis shows how those settings combine. AzureHound (from SpecterOps) collects Entra ID and Azure objects and relationships (users, groups, roles, apps, service principals, owners, subscriptions) through Microsoft’s APIs, and BloodHound visualises them as a graph.
Run it with a read-only account, import the output into BloodHound Community Edition, and ask questions such as:
- Which users, groups and service principals have a path to Global Administrator?
- Which service principals hold dangerous Graph application permissions?
- Who owns those applications, and could they add credentials?
- Which synced (on-premises) accounts can reach cloud admin roles?
Treat the AzureHound output as sensitive: it is effectively a map of your tenant’s privileges. Store and delete it carefully.
Fixing the usual findings
- Reduce Global Administrators to two to four named, cloud-only accounts plus two break-glass accounts. Move everyone else to the least-privileged role that fits their job.
- Use Privileged Identity Management (PIM) so admin roles are activated just in time, with approval and MFA, instead of being permanently assigned (requires Entra ID P2).
- Audit application permissions. List service principals with high-risk Graph application permissions; remove permissions that are not needed and document an owner and purpose for the rest.
- Remove unnecessary app owners, and restrict who can manage application credentials. Alert on new secrets or certificates added to privileged apps.
- Disable user app registration and user consent (or limit consent to verified publishers and low-risk permissions with an admin consent workflow).
- Require phishing-resistant MFA (FIDO2 keys, passkeys or Windows Hello for Business) for all admin roles via Conditional Access authentication strengths, and block legacy authentication tenant-wide.
- Keep privileged accounts cloud-only and exclude them from on-premises sync.
Detection to put in place
- Alerts on Add member to role for privileged roles outside PIM.
- Alerts on Add service principal credentials / Update application – Certificates and secrets management in the Entra audit log.
- Alerts on new consent grants for high-risk Graph permissions.
- Sign-ins by service principals from unexpected IP ranges (Workload ID sign-in logs).
For Indian organisations
Microsoft 365 holds mail, contracts and customer data for many Indian companies, and the same tenant often controls Azure resources too. A quarterly Maester or ScubaGear run plus an annual path review gives auditors for ISO 27001, SOC 2, RBI and SEBI concrete evidence of identity governance, and usually finds at least one forgotten high-privilege application.
RingSafe performs Microsoft 365 and Entra ID security reviews, including attack-path analysis and remediation support. Book a review.
Get a cloud posture review
IAM hardening, public-exposure mapping, IaC review, K8s audit. We map your actual blast radius — not what a CSPM dashboard guesses at.