MT.1186: Require explicit assignment of high-privilege first-party Entra Apps.
| ID | MT.1186 |
| Severity | Medium |
| Suite | Mito |
| Product | Entra ID |
| Feature | Applications |
| Security area | Applications and workload identities |
| Resource type | ServicePrincipal |
| User impact of fixing | Medium |
| Effort to fix | Medium |
| Framework controls | nist-800-53-r5:AC-3 Access Enforcementnist-800-53-r5:AC-6 Least Privilege |
| MITRE ATT&CK | T1059.009, T1087.004, T1526 |
| Reads from | Microsoft Graph |
What this checks and how to fix it
Section titled “What this checks and how to fix it”This test checks if any of the following high-privilege, first-party Microsoft service principals allow sign-in from any user instead of requiring explicit assignment:
- Microsoft Azure PowerShell
- Microsoft Azure CLI and Azure Developer CLI (
azd) - both currently use the same application ID - Microsoft Graph Command Line Tools (used by the Microsoft Graph PowerShell SDK and Microsoft Graph CLI)
- Graph Explorer
- Azure Active Directory PowerShell (legacy)
- Microsoft Teams PowerShell Cmdlets (used by the
MicrosoftTeamsmodule) - Microsoft Exchange Online PowerShell (used by the
ExchangeOnlineManagementmodule) - Microsoft SharePoint Online Management Shell
- Power Platform CLI (
pac)
These apps are pre-consented in most tenants and carry broad delegated permissions to Microsoft Graph, Azure Resource Manager, or their respective workload (Exchange Online, SharePoint Online, Teams, Power Platform). Left open to all users, any compromised or malicious account can use them, without any further consent prompt, to enumerate directory data and resources, or to administer that workload directly - a common first step in privilege escalation and data exfiltration. It is recommended to set ‘Assignment required?’ to Yes for these applications and explicitly assign only the users or groups who need them.
A first-party application can still be used even when its service principal is not visible in the tenant. A missing service principal is therefore reported as needing attention because the assignment requirement cannot be enforced until the service principal is created.
Remediation action
Section titled “Remediation action”-
Review the application’s sign-in logs to identify the users who need access.
-
If a flagged application is reported as Service principal missing, create it with Microsoft Graph PowerShell:
Terminal window Connect-MgGraph -Scopes 'Application.ReadWrite.All'$appId = '<AppId>'$sp = Get-MgServicePrincipal -Filter "appId eq '$appId'"if (-not $sp) {$sp = New-MgServicePrincipal -AppId $appId} -
Assign the approved users or groups under Users and groups.
-
Set Assignment required? to Yes under Properties, or use Microsoft Graph PowerShell:
Terminal window Update-MgServicePrincipal -ServicePrincipalId $sp.Id -AppRoleAssignmentRequired:$true
Mito check. Author: BakkerJan. Open-source licences.
Open-source licences. CIS Benchmark material © Center for Internet Security, Inc.; CISA SCuBA baselines are public domain (CC0).
© 2026 Virtual Petals. Mito is a Virtual Petals service, hosted in Microsoft Azure UAE North.
