More Info:
Cloud Guard should not report unresolved Critical or High severity problems. Unresolved problems indicate active security vulnerabilities, exposed assets, or ongoing suspicious activityRisk Level
HighAddress
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
- HITRUST CSF
- 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
- 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 is how to handle “OCI Monitoring Cloud Guard Should Not Have Critical/High Problems” using the OCI Console, focusing on Monitoring/Alerting.
If you paste one actual problem’s text (detector name + recommendation), I can give you exact field values for the alarm and any Monitoring settings to change.
1. Find the Exact Cloud Guard Problem
- In OCI Console, open Navigation Menu → Identity & Security → Cloud Guard.
- Go to Problems.
- Filter by:
- Status:
Open - Risk Level:
HighandCritical - Detector Type: look for Monitoring / related (e.g., misconfigured alarms, disabled alarms, missing notifications).
- Status:
- Click a specific problem to open the details pane:
- Note the Resource Type (Alarm, Compartment, Metric, etc.).
- Note the Recommendation text – Cloud Guard usually tells you what is missing/misconfigured.
2. Identify What’s Wrong With the Monitoring/Alerting
Common Monitoring/Alerting-related Cloud Guard problems:- No alarms configured for key resources/metrics.
- Alarm is in
Disabled/Suppressedstate. - Alarm missing notification (no topic, no subscription).
- Alarm severity or condition not aligned with policy (e.g., wrong thresholds, wrong evaluation period).
- Alarm not attached to correct compartment/region.
3. Fix Alarms in Monitoring
- Go to Navigation Menu → Observability & Management → Monitoring → Alarms.
- Make sure you are in the same region and compartment as the resource shown in the Cloud Guard problem.
A. If no alarm exists (resource unmonitored)
- Click Create alarm.
- Fill fields:
- Name: meaningful (e.g.,
cpu-high-app-prod). - Compartment: same as the resource.
- Metric namespace: select correct service (e.g.,
oci_computeagent,oci_vcn, etc.). - Metric name & dimension: pick the metric Cloud Guard expects (from the problem recommendation).
- Alarm severity: set appropriately (e.g.,
CriticalorHigh). - Trigger rule: define threshold/rule as suggested (e.g., CPUUtilization > 80 for 5 minutes).
- Name: meaningful (e.g.,
- Under Notifications:
- Choose/assign an OCI Notifications topic (create one if needed).
- Click Create alarm.
B. If alarm exists but is disabled/incorrect
- From the Alarms list, locate the alarm named in the problem.
-
For each issue:
-
Disabled alarm:
- Open it; click More Actions → Enable (or toggle to Enabled).
-
No notification:
- Edit the alarm.
- Under Notifications, select a Topic.
- Click Save changes.
- If no topic exists:
- Open new tab: Navigation Menu → Application Integration → Notifications → Topics → Create Topic.
- Then add Subscriptions (email, PagerDuty, Slack via HTTPS, etc.) and confirm them.
- Return to the alarm and attach this topic.
-
Wrong condition / severity / resource scope:
- Edit the alarm:
- Correct metric, dimensions, and compartment.
- Adjust threshold, operator, evaluation period to match security / SRE requirements or Cloud Guard recommendation.
- Set Severity to match the risk level (e.g.,
Criticalfor production outages).
- Save.
- Edit the alarm:
-
Disabled alarm:
4. Validate and Close the Cloud Guard Problem
- After fixing the alarm(s), wait a few minutes for Cloud Guard re-evaluation.
- Go back to Cloud Guard → Problems.
- Refresh:
- If Cloud Guard recognizes the fix, the problem status should move to
Resolved/Closedautomatically.
- If Cloud Guard recognizes the fix, the problem status should move to
- If it remains
Open:- Re-open the problem, verify:
- The resource/compartment/region aligns with the alarm’s configuration.
- The alarm is Enabled and in the correct compartment.
- Make corrections and wait again.
- Re-open the problem, verify:
5. Optionally Tune Detection (Detector/Responder Recipes)
If you’re getting false positives or want automatic remediation:- Go to Cloud Guard → Detector Recipes.
- Open the Monitoring-related Detector Recipe assigned to your target.
- For the specific detector rule:
- Adjust Risk Level, conditions, or Targets if needed (e.g., exclude non-prod compartments).
- For auto-fix:
- Go to Cloud Guard → Responder Recipes.
- Enable/attach a responder that can create/enable alarms automatically (if available for that rule).
- Associate that responder recipe with the same Target as the detector.
If you paste one actual problem’s text (detector name + recommendation), I can give you exact field values for the alarm and any Monitoring settings to change.
Using CLI
Using CLI
Below is a pragmatic way to handle “OCI Monitoring – Cloud Guard Should Not Have Critical/High Problems” using the OCI CLI, focusing on Monitoring / Alerting–related problems.
Filter only Monitoring-related problems:You can inspect one problem:Look at:
Fields to check:
If Cloud Guard complains about
If it is a false positive and you want to dismiss it:
(Where
If you paste one sample Monitoring-related problem JSON (from
1. Identify the relevant Cloud Guard problems
First, list Cloud Guard problems with HIGH/CRITICAL severity for the Monitoring service.resourceTyperesourceId(often the alarm OCID)detectorRuleIdriskLevel/severityrecommendation
2. Inspect and fix the underlying Monitoring resources
Most Monitoring-related Cloud Guard problems are about:- disabled alarms
- missing notification destinations
- bad alarm query / incorrect conditions
- alarm in
INSUFFICIENT_DATAdue to misconfigured metric query - alarms not covering critical metrics
2.1 Get details of the alarm mentioned in the problem
From the problem details noteresourceId (e.g., alarm OCID) and its compartment.isEnableddestinationsmetricCompartmentIdqueryseveritypendingDurationsuppressionresolutionlifecycleState
2.2 Enable disabled alarms
IfisEnabled: false, enable it:2.3 Add a notification destination (if missing)
Ifdestinations is empty, set an OCI Notifications topic OCID:2.4 Fix the alarm query or configuration
If Cloud Guard indicates misconfiguration (e.g., wrong metric namespace or dimensions), you may need to update:namespacemetric-name- dimensions in the
query pendingDuration/ thresholdsseverity
query and severity:INSUFFICIENT_DATA, ensure:- correct namespace/metric
- correct
metricCompartmentId - resource is actually generating that metric
2.5 (Optional) Create new alarms for missing coverage
Sometimes the problem is “no alarm on critical metric”. Create an alarm via CLI:3. Mark the Cloud Guard problem as resolved/dismissed
Once the underlying issue is fixed and verified (alarm is enabled, properly configured, and functional), change the problem’s lifecycle state so it is no longer an active HIGH/CRITICAL problem.To mark asRESOLVED:4. (Optional) Automate via Cloud Guard responders
Instead of manually resolving:- Enable or customize responder recipes in Cloud Guard to auto-fix some Monitoring issues (e.g., enabling alarms).
- Use CLI to update the Cloud Guard target’s detector/responder recipes.
detector_rules_update.json enables the appropriate rules and responders.)If you paste one sample Monitoring-related problem JSON (from
oci cloud-guard problem get), I can give exact CLI commands tailored to that specific problem type.Using Python
Using Python
Below is a practical way to handle this with Python: detect and remediate (or at least mark/track) critical/high Cloud Guard problems related to Monitoring/Alarms, using the OCI Python SDK.
From this output, note which detector rules you want to automatically fix (e.g., “Alarm not configured for X metric”, “Alarm disabled”, etc.).
You would build the
If you can paste an example Cloud Guard problem JSON for “OCI Monitoring” from your environment, I can provide a more precise mapping from each problem type to exact Python remediation code.
1. Prerequisites
-
Install SDK:
-
Configure OCI CLI/SDK auth (
~/.oci/config): -
IAM permissions needed for the principal running this script:
2. High-level remediation flow
- Use Cloud Guard to list all
CRITICALandHIGHproblems. - Filter problems that relate to Monitoring / Alarms.
- For each problem, inspect its
detector_rule_id/risk_level/resource_type/problem_descriptionto determine what needs fixing (e.g., missing alarm, disabled alarm, missing metric stream). - Call appropriate Monitoring APIs to fix the configuration.
- Optionally, update the Cloud Guard problem state to
RESOLVED(only if you are sure you fixed it).
3. Python: list & filter critical/high Cloud Guard problems
4. Identify Monitoring-related problems
Look atresource_type, detector_rule_id, problem_description etc. Monitoring issues usually have resource_type like alarm, monitoringresource, or refer to monitoring in the description.5. Example remediation patterns for Monitoring
Below are generic remediation functions. You must map each Cloud Guard detector rule or description to one of these.5.1. Create a missing alarm
Suppose Cloud Guard says “No alarm configured for<resource> metric X”.query and display_name from data embedded in the Cloud Guard problem (e.g., p.resource_id, p.resource_name, or freeform tags).5.2. Enable a disabled alarm
If the problem says an alarm is disabled:6. Mark Cloud Guard problem as resolved (optional)
Once you’ve programmatically remediated, you can mark the problem asRESOLVED (if your process requires that):7. Putting it together (skeleton)
You can orchestrate this into a single script:- List problems (critical/high).
- Filter monitoring‑related.
- For each:
- Branch based on
detector_rule_id/ description. - Call the appropriate remediation function (create alarm, enable alarm, etc.).
- Optionally resolve the problem.
- Branch based on
If you can paste an example Cloud Guard problem JSON for “OCI Monitoring” from your environment, I can provide a more precise mapping from each problem type to exact Python remediation code.
Using Terraform
Using Terraform
OCI Monitoring and Cloud Guard configuration in Terraform cannot “clear” or resolve existing Critical/High problems; this is an operational action on findings, not a configuration property of
oci_monitoring_* or Cloud Guard resources.Use the Console or CLI to investigate and resolve each problem (Cloud Guard → Problems → filter by Critical/High → remediate or mark resolved), and optionally tighten your alarms/policies going forward via Terraform (e.g., adjusting Monitoring alarm queries), but there is no Terraform argument on oci-monitoring-cloudguard-configuration (or related resources) that can make existing Critical/High problems disappear.Since there is no Terraform-exposed setting to remediate this finding, terraform plan will correctly show no changes related to Cloud Guard problems themselves.
