T1098.003 Additional Cloud Roles
Sub-technique of: T1098
High-Level Description
An adversary may add additional roles or permissions to an adversary-controlled cloud account to maintain persistent access to a tenant. For example, adversaries may update IAM policies in cloud-based environments or add a new global administrator in Office 365 environments. With sufficient permissions, a compromised account can gain almost unlimited access to data and settings (including the ability to reset the passwords of other admins).
This account modification may immediately follow Create Account or other malicious account activity. Adversaries may also modify existing Valid Accounts that they have compromised. This could lead to privilege escalation, particularly if the roles added allow for lateral movement to additional accounts.
For example, in AWS environments, an adversary with appropriate permissions may be able to use the CreatePolicyVersion API to define a new version of an IAM policy or the AttachUserPolicy API to attach an IAM policy with additional or distinct permissions to a compromised user account.
In some cases, adversaries may add roles to adversary-controlled accounts outside the victim cloud tenant. This allows these external accounts to perform actions inside the victim tenant without requiring the adversary to Create Account or modify a victim-owned account.
Kill Chain Phase
- Persistence (TA0003)
- Privilege Escalation (TA0004)
Platforms: IaaS, Identity Provider, Office Suite, SaaS
What to Check
How to Test
Manual Testing
-
Identify Attack Surface: Determine if the target environment is susceptible to Additional Cloud Roles by examining the target platforms (IaaS, Identity Provider, Office Suite).
-
Assess Existing Defenses: Review whether mitigations for T1098.003 are in place. If defenses are absent or misconfigured, this technique may be exploitable.
-
Execute Test: Use tools and methods described in the MITRE ATT&CK page and external references below.
Note: No Atomic Red Team tests available for this technique. See Atomic Red Team GitHub for updates.
Remediation Guide
M1026 Privileged Account Management
Ensure that all accounts use the least privileges they require. In Azure AD environments, consider using Privileged Identity Management (PIM) to define roles that require two or more approvals before assignment to users.
M1032 Multi-factor Authentication
Use multi-factor authentication for user and privileged accounts.
M1018 User Account Management
Ensure that low-privileged user accounts do not have permissions to add permissions to accounts or update IAM policies.
Detection
Detection Strategy for Role Addition to Cloud Accounts
Risk Assessment
| Finding | Severity | Impact |
|---|
| Additional Cloud Roles technique applicable | High | Persistence |
CWE Categories
| CWE ID | Title |
|---|
| CWE-276 | Incorrect Default Permissions |
References