OCI IAM policies granting manage/use on groups or users in the tenancy are evaluated for a condition that excludes the Administrators group, such as target.group.name != 'Administrators'.
Policies missing this restriction are identified.
Risk
Ability to modify the Administrators group enables privilege escalation to full tenancy control. This threatens confidentiality (broad data access), integrity (policy/user changes), and availability (resource deletion). Attackers could add persistence accounts, disable safeguards, and evade oversight.
prowler oraclecloud --checks identity_iam_admins_cannot_update_tenancy_admins
Recommendation
Apply least privilege: avoid tenancy-wide manage/use on groups or users. When delegation is required, include a condition excluding the Administrators group (e.g., target.group.name != 'Administrators'). Enforce segregation of duties, require approvals for group changes, and monitor/audit identity policy activity.
Remediation
oci iam policy update --policy-id <example_resource_id> --statements "["Allow group <example_resource_name> to manage groups, users in tenancy where target.group.name != 'Administrators'"]"
- In OCI Console, go to Identity & Security > Policies
- Open any policy that allows a group to manage or use groups/users in the tenancy
- Click Edit policy and update each affected statement to append exactly: where target.group.name != 'Administrators'
- Save changes
- Repeat for all such policies
Source Code
Resource Type
Policy