Description
Resource locking is a powerful protection mechanism that can prevent inadvertent modification or deletion of resources within Azure subscriptions or Resource Groups and is a recommended NIST configuration.
Rationale
Given the resource lock functionality is outside of standard Role Based Access Control (RBAC), it is prudent to create a resource lock administrator role to prevent inadvertent unlocking of resources.
Impact
By adding this role, specific permissions may be granted for managing just resource locks rather than needing to provide the wide Owner or User Access Administrator role, reducing the risk of the user being able to do unintentional damage.
Audit
From Azure Portal
- In the Azure portal, open a subscription or resource group where you want to view assigned roles.
- Select
Access control (IAM). - Select
Roles. - Click
Type : All. - Click to view the drop-down menu.
- Select
Custom role. - Click
Viewin theDetailscolumn of a custom role. - Review the role permissions.
- Click
Assignmentsand review the assignments. - Click the
Xto exit the custom role details page. - Repeat steps 7-10. Ensure that at least one custom role exists that assigns the
Microsoft.Authorization/lockspermission to appropriate members. - Repeat steps 1-11 for each subscription or resource group.
References
- https://learn.microsoft.com/en-us/azure/role-based-access-control/custom-roles
- https://learn.microsoft.com/en-us/azure/role-based-access-control/check-access
- https://learn.microsoft.com/en-us/security/benchmark/azure/mcsb-privileged-access#pa-1-separate-and-limit-highly-privilegedadministrative-users
- https://learn.microsoft.com/en-us/security/benchmark/azure/mcsb-privileged-access#pa-7-follow-just-enough-administration-least-privilege-principle
- https://learn.microsoft.com/en-us/security/benchmark/azure/mcsb-privileged-access#pa-3-manage-lifecycle-of-identities-and-entitlements
- https://learn.microsoft.com/en-us/security/benchmark/azure/mcsb-governance-strategy#gs-2-define-and-implement-enterprise-segmentationseparation-of-duties-strategy
- https://learn.microsoft.com/en-us/security/benchmark/azure/mcsb-governance-strategy#gs-6-define-and-implement-identity-and-privileged-access-strategy