More Info:
An alarm must exist for MfaRequirementViolation. This ensures security administrators are immediately notified if a user attempts to bypass Multi-Factor Authentication constraints.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)
- 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
- NIST CSF
- NIST SP 800-171
- NYDFS 23 NYCRR 500
- 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 concise, console-based steps to configure alerts for network changes in OCI (VCNs, subnets, security lists, route tables, etc.).Note: In OCI, configuration changes like network changes are best captured with the Events Service + Notifications, not classic Monitoring metrics. This is still part of “alerting/monitoring” in OCI.
If you want instructions specifically for one network resource type (e.g., only security list changes), list that, and I’ll give an exact event pattern for it.
1. Create a Notifications Topic
- In the OCI Console, open the navigation menu:
Observability & Management → Notifications → Topics. - Click Create Topic.
- Enter:
- Name: e.g.,
network-change-alerts - Description: e.g.,
Alerts for OCI network configuration changes - Compartment: select appropriate compartment.
- Name: e.g.,
- Click Create.
2. Subscribe Your Alert Recipients
- Open the topic you just created (
network-change-alerts). - Under Subscriptions, click Create Subscription.
- Select Protocol (e.g.,
Email). - Enter the Email address (or HTTPS/Slack, etc., as required).
- Click Create.
- Confirm the subscription using the link sent to the email (or configure the chosen protocol endpoint).
3. Create an Events Rule for Network Changes
-
In the navigation menu:
Observability & Management → Events Service → Rules. - Click Create Rule.
-
Enter:
- Name: e.g.,
network-configuration-changes - Description: e.g.,
Trigger on create/update/delete of networking resources - Status: leave as Enabled.
- Compartment: the tenancy/compartment where you want to detect changes.
- If you want tenant-wide coverage, choose the root compartment.
- Name: e.g.,
-
Under Rule Conditions:
-
Choose Event Type:
Select “Service = Virtual Cloud Network (VCN)” (or “Core Services” depending on UI version) and pick events like:CreateVcn,UpdateVcn,DeleteVcnCreateSubnet,UpdateSubnet,DeleteSubnetCreateRouteTable,UpdateRouteTable,DeleteRouteTableCreateSecurityList,UpdateSecurityList,DeleteSecurityListCreateNetworkSecurityGroup,UpdateNetworkSecurityGroup,DeleteNetworkSecurityGroupCreateInternetGateway,UpdateInternetGateway,DeleteInternetGatewayCreateLocalPeeringGateway,UpdateLocalPeeringGateway,DeleteLocalPeeringGatewayCreateDrg,UpdateDrg,DeleteDrg(and attachments, as available)
-
In some consoles, you instead define a Rule Condition (JSON). Example pattern:
- Adjust resource/event types to align with your requirements and what’s available in your region/tenant.
-
Choose Event Type:
-
Under Actions:
- Click Add Action.
- Action Type:
Notifications. - Topic: select the topic
network-change-alerts.
- Click Create Rule.
4. (Optional) Scope and Filter More Precisely
- If required, refine with conditions on compartments, VCN OCIDs, or tags in the rule’s JSON pattern, to limit alerts to production or specific networks.
5. Test the Alert
- Make a safe change, e.g., modify a test security list or test route table.
- Confirm:
- The event is recorded (check Events → Recent Events).
- An email (or other protocol) notification is received.
If you want instructions specifically for one network resource type (e.g., only security list changes), list that, and I’ll give an exact event pattern for it.
Using CLI
Using CLI
Below is a concise, CLI‑only way to configure an OCI “network change” alert using Events + Notifications (this is how you detect config changes in networking; Monitoring alarms are metric-based and don’t see config changes directly).Replace all placeholder values (
Save the returned Topic OCID:
Check your email and confirm the subscription.
Create a JSON file for actions (e.g. Now create the Events rule:
<...>) with your own.1. Set variables (shell)
2. Create a Notifications Topic
3. Create a Subscription (e.g., Email)
4. Create an Events Rule for Network Changes
Example: watch for creation, update, deletion of VCNs, Subnets, Security Lists, NSGs, and Route Tables.Create a JSON file for the condition (e.g.network-condition.json):network-actions.json):5. Validate
Make a small network change (e.g., update a security list description) and confirm you receive an email.This setup satisfies the “network change alarm” requirement for OCI by using Events + Notifications to alert on network configuration changes, callable and fully manageable via OCI CLI.Using Python
Using Python
Below is how you can remediate this by programmatically creating a network-change alarm in OCI Monitoring using Python, wired to OCI Notifications.The example assumes:
Optionally, add a subscription (email, Slack via HTTPS, etc.):
Use that exact query string in
- You want an alarm on unusual network activity (e.g., high egress traffic) as a proxy for potential network changes/abuse.
- You’re using the OCI Python SDK and a config file (
~/.oci/config).
1. Prerequisites
-
Install/upgrade the OCI Python SDK:
-
Ensure your
~/.oci/confighas: -
Get required OCIDs:
compartment_ocidwhere your network resources (VCNs, VNics) live.
2. Create a Notifications Topic (destination for the alarm)
3. Create the Network Alarm in Monitoring
Example: alarm on sudden high egress bytes on VNics (you can tune the query and threshold for your environment).Example Metric Query
For VNics (namespaceoci_vcn, metric VnicEgressBytes):metric[1m]→ 1-minute aggregation windowssum(...)→ sum across resources> 100000000→ threshold (e.g., >100MB/min) – adjust as needed
Python: Create the Alarm
4. Hardening / “Network Change” Angle
To more closely align with “network change”:- Add multiple alarms, for example:
- Egress & ingress volume spikes:
VnicEgressBytes,VnicIngressBytes - Connection count spikes (if you collect such custom metrics).
- Egress & ingress volume spikes:
- Narrow the metrics using resourceGroup or dimension filters in the query if you want to monitor only specific VCNs / VNics.
alarm_query.5. Verify
- In OCI Console → Observability & Management → Alarms:
- Confirm the alarm appears and is
Enabled.
- Confirm the alarm appears and is
- Generate test network traffic to cross the threshold, or temporarily lower the threshold.
- Confirm:
- Alarm state changes to
FIRING. - Notification (email, etc.) is received.
- Alarm state changes to
Using Terraform
Using Terraform
MfaRequirementViolation metric with a threshold of > 0 over a 1‑minute window.To verify, terraform plan should show this alarm resource with + create (or, if you are importing an existing alarm to manage it, only the drifted fields being updated and no -/+ replacement).
