More Info:
Event rules must monitor Identity Provider configurations. An attacker modifying SAML or IdP settings can create persistent, untraceable backdoor access to the cloud environment.Risk Level
MediumAddress
Compliance, SecurityCompliance Standards
- APRA CPS 234 (Australia)
- AWS Well Architected Framework
- BSI C5 (Germany)
- Brazil LGPD
- CCPA / CPRA (California)
- CIS AWS
- CIS Critical Security Controls v8
- CMMC 2.0
- CSA Cloud Controls Matrix v4
- Cloudanix Best Practice
- DPDPA
- Digital Operational Resilience Act (EU)
- Essential 8
- HIPAA
- HITRUST CSF
- ISO 27001
- ISO/IEC 27017
- ISO/IEC 27018
- ISO/IEC 27701
- KSA PDPL
- MAS Technology Risk Management (Singapore)
- MITRE ATT&CK (Cloud)
- NIS2 Directive
- NIST CSF
- NIST SP 800-171
- NYDFS 23 NYCRR 500
- PCI
- SOC2
- SWIFT Customer Security Controls Framework
- Sarbanes-Oxley IT General Controls
- UK NCSC Cyber Assessment Framework
Triage and Remediation
- Remediation
Remediation
Using Console
Using Console
Below are the steps to configure an Event Rule in OCI for Identity Provider changes and wire it into alerting using the OCI Console.
This completes configuring “OCI Monitoring/Alerting” for Identity Provider changes using the Events Service + Notifications in the OCI Console.
1. Prerequisites
-
You need permissions to:
- Manage Events rules
- Manage Notifications topics/subscriptions
- Read IAM events
(Typicallymanage events-rules,manage ons-topics, etc., in the target compartment.)
- Decide which compartment you want the rule to apply to (usually your IAM “home” compartment or root compartment).
2. Create / Verify a Notifications Topic
- In the OCI Console, open the menu and go to:
Observability & Management → Notifications. - On the Topics page, choose the correct compartment.
- Click Create Topic (or select an existing topic if you already have one).
- Enter:
- Name: e.g.,
idp-change-alerts-topic - Description: e.g.,
Alerts when OCI Identity Providers are created, updated, or deleted
- Name: e.g.,
- Click Create Topic.
Add a Subscription (email / other)
- Open the topic you just created.
- Click Create Subscription.
- Choose Protocol (e.g.,
Email). - Enter the Endpoint (e.g., your email address).
- Click Create.
- Check your email and confirm the subscription.
3. Create an Event Rule for Identity Provider Changes
- In the OCI Console, open the menu:
Observability & Management → Events Service → Rules. - Choose the compartment where you want the rule.
- Click Create Rule.
Configure Basic Details
- Name:
idp-change-detection-rule - Description:
Triggers when Identity Providers are created, updated, or deleted - Rule Status: leave as Enabled.
Set the Condition (Event Pattern)
- Under Rule Conditions, choose:
- Condition Type:
Event Type
- Condition Type:
- Select:
- Service Name:
Identity and Access Management - Event Types: Select all that are relevant, for example (names may be shown in your region as):
CreateIdentityProviderUpdateIdentityProviderDeleteIdentityProvider
- Service Name:
- If there is a compartment scope option, ensure it covers:
- The compartment(s) where your IdPs reside (often the tenancy root).
eventType list includes the IdP events, e.g. com.oraclecloud.identity.createidentityprovider, updateidentityprovider, deleteidentityprovider.)4. Attach an Action to Send Alerts
- In the Actions section of the rule:
- Choose Action Type:
Notifications
- Choose Action Type:
- Select the Topic you created earlier:
idp-change-alerts-topic - Save the action.
5. Create the Rule
- Review all details.
- Click Create (or Create Rule).
6. (Optional) Test the Setup
- Make a safe change to an Identity Provider (e.g., tweak a description) or create a test IdP.
- Confirm you receive the notification through your configured subscription.
This completes configuring “OCI Monitoring/Alerting” for Identity Provider changes using the Events Service + Notifications in the OCI Console.
Using CLI
Using CLI
Below are concise, step‑by‑step instructions to create an Event Rule for Identity Provider (IdP) changes and wire it into OCI Monitoring/Alerting using the OCI CLI.Assumptions:
Save the output as
Confirm the subscription via the email you receive.
These event types cover create, update, and delete of Identity Providers.
Replace This creates an Event Rule that:
Show rule details:
If you tell me your exact compartment OCID and preferred notification type (email / Slack via HTTPS / PagerDuty, etc.), I can give you the exact ready‑to‑paste CLI commands.
- You have OCI CLI configured (
oci setup configalready done). - You know your:
COMPARTMENT_OCIDTOPIC_NAMEfor notifications (you can create one)- Region/profile set in
~/.oci/config.
1. Create an OCI Notifications Topic (if you don’t already have one)
TOPIC_OCID.2. (Optional) Add a Subscription to the Topic
Example: email subscription3. Build the Event Rule Condition for IdP Changes
Create a JSON file namedidp-events-condition.json:4. Create the Event Rule with Action to Send to Notifications
Create a JSON file for actions,idp-events-actions.json:<TOPIC_OCID> with the real OCID (or use env substitution before calling).Now create the Event Rule:- Listens for Identity Provider create/update/delete events in the compartment.
- Sends those events to your Notifications topic.
5. (Optional) Confirm the Rule
List rules:6. (Optional) Integrate with Monitoring Alarms (if needed)
If you want Monitoring alarms (metrics-based) in addition to Event Notifications, the common pattern is:- Use Event Rule → Service Connector → Logging or Streaming.
- From logs/stream, derive metrics or alerts.
If you tell me your exact compartment OCID and preferred notification type (email / Slack via HTTPS / PagerDuty, etc.), I can give you the exact ready‑to‑paste CLI commands.
Using Python
Using Python
Below is a practical way to set up an OCI Event Rule that detects Identity Provider changes and triggers an alert using Python and the OCI SDK.
1. Prerequisites
-
OCI CLI config file (
~/.oci/config) with a profile that has:events-rules-manageons-topics-manageons-subscriptions-manage- Permissions in a policy such as:
-
Python packages:
-
Know your:
compartment_ocidregion- Notification target email (or HTTPS endpoint).
2. What we’re creating
- Notifications Topic (ONS).
- Subscription (e.g., email).
- Events Rule that matches Identity Provider changes and sends events to the topic.
com.oraclecloud.identitycontrolplane.createidentityprovidercom.oraclecloud.identitycontrolplane.updateidentityprovidercom.oraclecloud.identitycontrolplane.deleteidentityprovider
3. Python Script
4. Verification steps
- Confirm email subscription from the OCI Notifications email.
- Perform a test Identity Provider change:
- Create, update, or delete an IdP in IAM (Federation → Identity Providers).
- Check your inbox for alert emails triggered by the event rule.
Using Terraform
Using Terraform
terraform plan should show the oci_events_rule.identity_provider_changes either being created or having its condition, is_enabled, and/or actions updated to match the above.
