Description
Ensure that the statement allowing a group to manage all-resources in tenancy appears only in the built-in Tenant Admin Policy, which grants it to the Administrators group. No other IAM policy should give a group full control over every resource in the tenancy.
Rationale
The manage all-resources in tenancy permission gives complete control of every resource, including the ability to change IAM, delete data, and remove security controls. Each extra policy that grants it creates another group whose members can take over the tenancy. Keeping it only in the Tenant Admin Policy enforces least privilege and makes full-admin access easy to review.
Impact
Only the Administrators group has full tenancy access
Reduces the number of accounts that can take over the tenancy
Affected groups need new, narrower policies
Default Value
By default, a new tenancy has only the Tenant Admin Policy, which grants manage all-resources in tenancy to the Administrators group.
Pre-Requisites
Tenancy administrator access
A list of the permissions each affected group really needs
Test Plan
Sign in to the OCI Console at https://cloud.oracle.com.
Open the navigation menu, select Identity & Security, and under Identity select Policies. In the Compartment filter, select the root compartment (tenancy).
Open each policy and review its statements.
Flag any statement containing manage all-resources in tenancy in a policy other than Tenant Admin Policy.
If any are found, follow the implementation steps.
Implementation Steps
Sign in to the OCI Console at https://cloud.oracle.com.
Open the navigation menu, select Identity & Security, and under Identity select Policies. In the Compartment filter, select the root compartment (tenancy).
Open the flagged policy and select Edit policy statements.
Replace the manage all-resources in tenancy statement with narrower statements for only the resource types and compartments the group needs.
Select Save changes.
If the group really needs full administration, add its members to the Administrators group instead.
Backout Plan
Sign in to the OCI Console at https://cloud.oracle.com.
Open the navigation menu, select Identity & Security, and under Identity select Policies. In the Compartment filter, select the root compartment (tenancy).
Open the policy, select Edit policy statements, restore the previous statement, and select Save changes.
Reference
https://docs.oracle.com/en-us/iaas/Content/Identity/policieshow/how-policies-work.htm
https://docs.oracle.com/en-us/iaas/Content/Security/Reference/iam_security.htm