Check provider logo

All IAM policies granting manage/use on groups or users in the tenancy restrict access to the Administrators group

identity_iam_admins_cannot_update_tenancy_admins

Severitycritical
Serviceidentity
by Prowler

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.

Run this check with Prowler CLI

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

CLI

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'"]"

Terraform
Other
  1. In OCI Console, go to Identity & Security > Policies
  2. Open any policy that allows a group to manage or use groups/users in the tenancy
  3. Click Edit policy and update each affected statement to append exactly: where target.group.name != 'Administrators'
  4. Save changes
  5. Repeat for all such policies

Source Code

Resource Type

Policy

References