Test-MtHighRiskAppPermissions
SYNOPSIS
Section titled “SYNOPSIS”Check if any applications or service principals have high risk Graph permissions that can lead to direct or indirect paths to Global Administrator and full tenant takeover. The permissions are based on the research published at https://github.com/emiliensocchi/azure-tiering/tree/main.
SYNTAX
Section titled “SYNTAX”Test-MtHighRiskAppPermissions [[-AttackPath] <String>] [-ProgressAction <ActionPreference>] [<CommonParameters>]DESCRIPTION
Section titled “DESCRIPTION”Applications that use Graph API permissions with a risk of having a direct or indirect path to Global Administrator and full tenant takeover.
EXAMPLES
Section titled “EXAMPLES”EXAMPLE 1
Section titled “EXAMPLE 1”Test-MtHighRiskAppPermissionsReturns true if no application has Tier-0 graph permissions
PARAMETERS
Section titled “PARAMETERS”-AttackPath
Section titled “-AttackPath”Check for direct path to Global Administrator or indirect path through a combination of permissions. Default is “All”.
Type: StringParameter Sets: (All)Aliases:
Required: FalsePosition: 1Default value: AllAccept pipeline input: FalseAccept wildcard characters: False-ProgressAction
Section titled “-ProgressAction”Determines how PowerShell responds to progress updates generated by a script, cmdlet, or provider, such as the progress bars generated by Write-Progress.
Type: ActionPreferenceParameter Sets: (All)Aliases: proga
Required: FalsePosition: NamedDefault value: NoneAccept pipeline input: FalseAccept wildcard characters: FalseCommonParameters
Section titled “CommonParameters”This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
INPUTS
Section titled “INPUTS”OUTPUTS
Section titled “OUTPUTS”System.Boolean
Section titled “System.Boolean”RELATED LINKS
Section titled “RELATED LINKS”https://maester.dev/docs/commands/Test-MtHighRiskAppPermissions