> 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-tenancy-administrator-users-are-associated-with-api-keys.md). Agents can also search and read this documentation through its [MCP server](https://cortex-docs.paloaltonetworks.com/~gitbook/mcp).

# OCI tenancy administrator users are associated with API keys

### Synopsis

| Field               | Value                                                        |
| ------------------- | ------------------------------------------------------------ |
| Rule Type           | Detection                                                    |
| Finding Type        | OCI tenancy administrator users are associated with API keys |
| Finding ID          | 60000456                                                     |
| Generates a Finding | This detection rule also generates a finding                 |
| Severity            | Medium                                                       |
| Category            | CONFIGURATION                                                |
| Cloud Providers     | OCI                                                          |
| Platform Module     | CSPM                                                         |
| Asset Types         | OCI\_IAM\_USER                                               |

### Description

Excessive privileges granted to OCI tenancy administrator users with associated API keys pose a significant security risk. These users possess the ability to perform any action within the tenancy, making API key compromise extremely damaging.

Oracle Cloud Infrastructure (OCI) tenancy administrators require 'administrator' privileges to manage resources. Associating API keys with these accounts creates a single point of failure. If an API key is compromised, an attacker gains complete control of the tenancy, leading to data breaches, unauthorized resource modification, or even complete account takeover.

A compromised API key for a tenancy administrator could result in catastrophic data loss, financial losses, and significant reputational damage. Limiting the scope of privileged access reduces the potential blast radius of a compromise. Employing the principle of least privilege mitigates risk.

To remediate, remove API keys from all OCI tenancy administrator users. Instead, create dedicated service accounts with only the necessary permissions ('read', 'write', etc.) for specific tasks, and associate API keys with these service accounts. Regularly review and revoke unused API keys.

### Remediation

1. Log in to the OCI Console.
2. Open the navigation menu, go to 'Identity & Security'.
3. Under the 'Identity' service, click on 'Domains'.
4. Select the appropriate Identity Domain where the policy needs to be updated (commonly the 'Default' domain).
5. At the top of the page, select 'User management'.
6. From the list of users, click the name of the reported user.
7. Go to the 'API Keys' tab.
8. In the list of API Keys, select the keys and then select 'Delete'.
9. In the confirmation dialog, click 'Delete'.


---

# 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-tenancy-administrator-users-are-associated-with-api-keys.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.
