Custom subscription owner roles should not exist
Description:
Ensure that there are no custom subscription owner roles available in your Azure account in order to adhere to cloud security best practices and implement the principle of least privilege - the practice of providing every user the minimal amount of access required to perform its tasks.
This rule resolution is part of the Cloud Conformity Security & Compliance tool for Azure
Typical Azure subscription administrator roles offer basic access management. A custom subscription owner role has full administrative access as its assignable scope is the entire subscription and it can perform any action (i.e. "*"). As security best practice, it is strongly recommended that the least necessary permissions are given initially. Permissions can be added later, as needed, by the account holder. This ensures that the Azure account holder cannot perform actions which were not intended.
Remediation:
Sign in to Azure Management Console.
Navigate to Azure Subscriptions blade at https://portal.azure.com/#blade/Microsoft_Azure_Billing/SubscriptionsBlade.
Click on the Azure cloud subscription that you want to examine.
In the navigation panel, choose Access control (IAM) and select the Roles tab to access the role definitions available for the selected subscription.
Select CustomRole option from the Type dropdown list to return all custom roles available.
Click on the custom definition role that you want to examine and select the Permissions tab to view all the permissions associated with the selected role. If the role can perform all actions, i.e. it can manage everything in the permissions list, the selected Azure role definition represents a custom subscription owner role.
Repeat steps no. 6 for other custom roles that you want to examine, available in the current Azure subscription.
Repeat step no. 3 – 7 for each available Microsoft Azure cloud subscription.
Documentation/Reference:
https://www.cloudconformity.com/knowledge-base/azure/AccessControl/remove-custom-owner-roles.html
https://docs.microsoft.com/en-us/azure/role-based-access-control/policy-reference