| name | cis-azure-foundations-5.24 |
| description | Ensure a custom role is assigned permissions for administering resource locks |
| category | cis-azure-foundations |
| version | 5.0.0 |
| author | cyberstrike-official |
| tags | ["cis","azure","identity","rbac","resource-locks","custom-roles","nist"] |
| cis_id | 5.24 |
| cis_benchmark | CIS Microsoft Azure Foundations Benchmark v5.0.0 |
| tech_stack | ["azure"] |
| cwe_ids | [] |
| chains_with | ["cis-azure-foundations-5.23"] |
| prerequisites | [] |
| severity_boost | {} |
Ensure a custom role is assigned permissions for administering resource locks
Description
Resource locking is a powerful protection mechanism that can prevent inadvertent modification or deletion of resources within Azure subscriptions and resource groups, and it is a recommended NIST configuration.
Rationale
Given that the resource lock functionality is outside of standard Role-Based Access Control (RBAC), it would be 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 only resource locks rather than needing to provide the broad Owner or User Access Administrator role, reducing the risk of the user being able to cause unintentional damage.
Audit Procedure
Using Azure Portal
- In the Azure portal, navigate to a subscription or resource group.
- Click
Access control (IAM).
- Click
Roles.
- Click
Type : All.
- Click to view the drop-down menu.
- Select
Custom role.
- Click
View in the Details column of a custom role.
- Review the role permissions.
- Click
Assignments and review the assignments.
- Click the
X to exit the custom role details page.
- Repeat steps 7-10. Ensure that at least one custom role exists that assigns the
Microsoft.Authorization/locks permission to appropriate members.
- Repeat steps 1-11 for each subscription or resource group.
Expected Result
At least one custom role should exist that assigns the Microsoft.Authorization/locks permission to appropriate members.
Remediation
Using Azure Portal
- In the Azure portal, navigate to a subscription or resource group.
- Click
Access control (IAM).
- Click
+ Add.
- Click
Add custom role.
- In the
Custom role name field enter Resource Lock Administrator.
- In the
Description field enter Can Administer Resource Locks.
- For
Baseline permissions select Start from scratch.