> For the complete documentation index, see [llms.txt](https://cortex-docs.paloaltonetworks.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://cortex-docs.paloaltonetworks.com/posture-rules/cloud-saas-active-directory-posture-rules/cortex-posture-query-based-rules/detection-rules-by-name/oci-iam-policy-with-full-administrative-privileges-across-the-tenancy-to-non-administrator.md). Agents can also search and read this documentation through its [MCP server](https://cortex-docs.paloaltonetworks.com/~gitbook/mcp).

# OCI IAM policy with full administrative privileges across the tenancy to non Administrator

### Synopsis

| Field               | Value                                                                                      |
| ------------------- | ------------------------------------------------------------------------------------------ |
| Rule Type           | Detection                                                                                  |
| Finding Type        | OCI IAM policy with full administrative privileges across the tenancy to non Administrator |
| Finding ID          | 60000635                                                                                   |
| Generates a Finding | This detection rule also generates a finding                                               |
| Severity            | Medium                                                                                     |
| Category            | CONFIGURATION                                                                              |
| Cloud Providers     | OCI                                                                                        |
| Platform Module     | CSPM                                                                                       |
| Asset Types         | OCI\_IAM\_POLICY                                                                           |
| ATT\&CK Tactic      | TA0004 (TA0004)                                                                            |
| ATT\&CK Technique   | T1078.004 (T1078.004)                                                                      |

### Description

Excessive administrative privileges granted to non-administrator users via OCI IAM policies pose a significant security risk. This misconfiguration allows unauthorized individuals to perform actions such as creating and deleting resources, altering configurations, and potentially compromising sensitive data.

The OCI IAM service manages user access and permissions. Granting Admin privileges to non-administrators contradicts the principle of least privilege, significantly increasing the attack surface. An attacker gaining access to such an account could completely control the tenancy, leading to data breaches, service disruptions, and financial loss.

The impact of this misconfiguration could be catastrophic, ranging from data exfiltration to complete tenancy compromise. Following the principle of least privilege ensures that only necessary permissions are granted, minimizing the impact of a compromised account. This best practice reduces the potential for damage from malicious actors or accidental misconfigurations.

To mitigate this risk, implement least privilege access controls. Grant only the minimum necessary permissions to each user, group, or service. Regularly review and audit IAM policies to identify and remove unnecessary privileges. Employ robust monitoring and alerting to detect suspicious activity.

### Remediation

**Manual steps:**

OCI IAM Policy - Manual remediation steps:

1. Log in to the OCI Console.
2. Open the navigation menu, go to 'Identity & Security'.
3. Under the 'Identity' service, click on 'Policies'.
4. In the compartment filter, select the root compartment (or the compartment where the policy resides).
5. Locate and click the reported policy to view its statements.
6. Edit the policy statements and remove any statements that grant manage all-resources or similar full administrative privileges to groups other than Administrators or to any service.
7. Review the policy changes and click Save Changes.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://cortex-docs.paloaltonetworks.com/posture-rules/cloud-saas-active-directory-posture-rules/cortex-posture-query-based-rules/detection-rules-by-name/oci-iam-policy-with-full-administrative-privileges-across-the-tenancy-to-non-administrator.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
