> 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-event-rule-and-notification-does-not-exist-for-iam-policy-changes.md). Agents can also search and read this documentation through its [MCP server](https://cortex-docs.paloaltonetworks.com/~gitbook/mcp).

# OCI Event Rule and Notification does not exist for IAM policy changes

### Synopsis

| Field               | Value                                                                 |
| ------------------- | --------------------------------------------------------------------- |
| Rule Type           | Detection                                                             |
| Finding Type        | OCI Event Rule and Notification does not exist for IAM policy changes |
| Finding ID          | 60000465                                                              |
| Generates a Finding | This detection rule also generates a finding                          |
| Severity            | Informational                                                         |
| Category            | CONFIGURATION                                                         |
| Cloud Providers     | OCI                                                                   |
| Platform Module     | CSPM                                                                  |
| Asset Types         | OCI\_COMPARTMENT                                                      |
| ATT\&CK Tactic      | TA0112 (TA0112)                                                       |
| ATT\&CK Technique   | T1685 (T1685)                                                         |

### Description

Unauthorized modifications to Identity and Access Management (IAM) policies can lead to significant security breaches. Malicious actors or compromised accounts could elevate privileges or access sensitive data.

Oracle Cloud Infrastructure (OCI) IAM policies govern access control. Lack of an event rule and notification for IAM policy changes prevents timely detection of unauthorized alterations. This misconfiguration allows attackers to make stealthy changes, remaining undetected until the damage is done, potentially resulting in data exfiltration, account takeover, or service disruption.

The impact of this misconfiguration includes compromised accounts, data breaches, and unauthorized resource access. Real-time monitoring of IAM policy changes is crucial for maintaining a strong security posture. Immediate detection allows for rapid response and mitigation of potential threats, minimizing the damage caused by unauthorized access.

Implement an OCI Event Rule and Notification system specifically configured to trigger alerts for any changes made to IAM policies. Regularly review and update these rules to ensure they remain effective and cover all relevant IAM policy types. Further strengthen security by employing multi-factor authentication and least privilege access principles.

### Remediation

**Manual steps:**

OCI Compartment - Manual remediation steps:

1. Log in to the OCI Console.
2. Open the navigation menu, go to 'Observability & Management', and click on 'Rules' under 'Events Service'.
3. On the Rules page, select the compartment from the 'Compartment' dropdown list on the left side of the page (security best practice is to apply at root compartment).
4. Click 'Create Rule'.
5. Enter a descriptive 'Display Name' and an optional 'Description'.
6. In the 'Rule Conditions' section, configure the following:

   'Condition:' Keep the default selection, 'Event Type'.

   'Service Name:' Select 'Identity'.

   'Event Type:' Select the following event types: 'Policy - Create', 'Policy - Delete', and 'Policy - Update'.
7. In the 'Actions' section, configure the following:

   'Action Type:' Select 'Notifications'.

   'Notification Compartment:' Select the compartment that contains your desired notification topic.

   'Topic:' Select the notification topic that will receive the alerts.
8. (Optional) Add any desired tags to organize the resource.
9. Click 'Create Rule'.


---

# 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-event-rule-and-notification-does-not-exist-for-iam-policy-changes.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.
