Azure RBAC Privilege Escalation via Built-In Administrator Role Assignment
Threat actors are observed abusing Azure Role-Based Access Control (RBAC) to gain unauthorized administrative privileges and achieve persistence by assigning high-privilege built-in roles to actor-controlled accounts.
Recent cloud security investigations have highlighted the abuse of Azure Role-Based Access Control (RBAC) as a key mechanism for privilege escalation and persistence. Attackers, including identified threat actor Storm-0501, exploit the assignment of high-privilege built-in administrator roles to non-privileged accounts. By modifying role assignments via the Azure Portal, CLI, PowerShell, or API, adversaries ensure long-term, elevated access to cloud resources. The specific roles identified for abuse include Owner, Contributor, User Access Administrator, Azure File Sync Administrator, Reservations Administrator, and Role Based Access Control Administrator. This activity enables attackers to perform lateral movement, exfiltrate sensitive data, and disrupt cloud services. Defenders must monitor the 'MICROSOFT.AUTHORIZATION/ROLEASSIGNMENTS/WRITE' action within Azure Activity Logs to identify unauthorized modifications that deviate from standard administrative workflows.
Attack Chain
- The attacker gains initial access to a compromised account or service principal within the Azure tenant.
- The attacker identifies an target account or identity under their control to elevate.
- The attacker issues a request to modify RBAC roles using the Azure API, CLI, or PowerShell.
- The request triggers the 'MICROSOFT.AUTHORIZATION/ROLEASSIGNMENTS/WRITE' operation in the Azure Activity Log.
- The system processes the assignment of a high-privilege role, such as 'Owner' or 'User Access Administrator', to the attacker-controlled identity.
- The attacker leverages the new administrative permissions to access sensitive cloud assets or perform further configuration changes.
- The attacker maintains long-term access (persistence) by ensuring the elevated role remains assigned.
Impact
Successful abuse of these roles grants attackers comprehensive control over Azure subscriptions and resource groups. This impact includes the potential for total loss of confidentiality, integrity, and availability for affected cloud environments. Observed targeting suggests that attackers use these techniques to facilitate cloud-based ransomware operations and unauthorized resource manipulation.
Recommendation
Prioritize the detection of unauthorized role assignments by deploying activity log monitoring.
- Enable and ingest Azure Activity Logs (Microsoft.Authorization/roleAssignments/write) into the SIEM.
- Deploy the provided Sigma rule to alert on the assignment of high-privilege built-in administrator roles.
- Conduct a historical audit of role assignments to identify recent elevation patterns for service principals and user accounts.
- Implement Privileged Identity Management (PIM) and Just-In-Time (JIT) access policies to restrict permanent administrative assignments.
- Enforce Multi-Factor Authentication (MFA) for all administrative and high-privilege service principal operations.
Immediate actions
Deploy the detection rule for Azure RBAC assignments
Threat Hunt
Search logs for all 'MICROSOFT.AUTHORIZATION/ROLEASSIGNMENTS/WRITE' actions over the last 30 days
Data: Azure Activity Logs
Mitigations
Review and remove unnecessary high-privilege role assignments
T1098.003
Detection coverage 1
Detect Azure RBAC Built-In Administrator Role Assignment
highDetects the assignment of high-privilege Azure built-in administrator roles which can indicate privilege escalation or persistence.
Detection queries are available on the platform. Get full rules →