When it is written
The Cloud Guard service writes the record when UpdateSecurityRecipe is called (PUT /20200131/securityRecipes/{securityRecipeId}), from the Console (Recipes, Edit) or the CLI. A recipe is a collection of security zone policies; a security zone ties a compartment (and by default its subcompartments) to a recipe, and OCI denies any operation in the zone that violates one of the recipe's policies, whoever makes it. An update can change the name, the description, the tags and which policies are enabled. Oracle-managed recipes, such as the Maximum Security Recipe, cannot be edited, and Oracle warns that changing a recipe can affect the security posture of every zone that uses it.
Oracle's reference event for security zone recipes (a create) carries the recipe's state in data.stateChange.current, including its list of security policies in securityPolicies; comparing it with data.stateChange.previous shows which policies the recipe lost or gained.
How to turn it on
OCI Audit records com.oraclecloud.cloudGuard.UpdateSecurityRecipe calls to OCI Audit without any setup. Vendor documentation
Audit needs no setup: it records the calls to all supported OCI public API endpoints as log events, whether they come from the Console, the CLI, an SDK or another OCI service. Object Storage is the documented exception: bucket operations are recorded, object operations are not.
- Retention: Oracle keeps Audit events for 365 days. The setting applies to the whole tenancy (every region and compartment) and cannot be changed, so a longer history needs an export.
- Delay: new events usually appear within 15 minutes of the API call; Oracle says processing time can vary and events are logged when they are processed.
- Reading: viewing or searching events needs a policy such as
Allow group Auditors to read audit-events in tenancy. Events are organized by compartment: IAM users, groups and some policies live in the tenancy itself (the root compartment), whose OCID is the tenancy OCID. - Collecting: the events are also the
/_Auditlog group of every compartment in Logging. Export them with Connector Hub (source Logging, the_Auditlog group) to Streaming, which the SIEM connectors read, or to Object Storage, Functions or Log Analytics. Delivery is at least once; a connector that keeps failing for longer than the Logging source's 24-hour retention loses data. - Envelope: records read through Logging use the Logging format (a CloudEvents envelope): the event type is in
typeinstead ofeventType, with the samedataobject. - Identity domains: the identity domains AuditEvents API stopped returning new data after December 15, 2024; domain events (sign-ins, user, group and application changes) are read from OCI Audit, with the domain's audit attributes under
data.additionalDetails(eventId,actorName,adminResourceName...).
oci audit config get --compartment-id <tenancy-ocid>oci sch service-connector list --compartment-id <compartment-ocid> --alloci audit event list --compartment-id <compartment-ocid> --start-time <start-time> --end-time <end-time> --alloci logging-search search-logs --time-start <start-time> --time-end <end-time> --search-query "search \"<compartment-ocid>/_Audit\" | where type = 'com.oraclecloud.cloudGuard.UpdateSecurityRecipe' or data.eventName = 'com.oraclecloud.cloudGuard.UpdateSecurityRecipe' or data.additionalDetails.eventId = 'com.oraclecloud.cloudGuard.UpdateSecurityRecipe'"Fields
The operation’s own fields first, then the fields every OCI Audit record has. Field names are the JSON paths of the record as the vendor documents it.
| Field | What it holds |
|---|---|
data. | The API path of the request, /20200131/securityRecipes/{securityRecipeId}, with the recipe's OCID. The value follows Oracle's API reference for the call; check it on a record of your own. |
data. | The security zone policies the recipe holds after the update (policy OCIDs). |
data. | The policies it held before. |
data. | Who manages the recipe, CUSTOMER in Oracle's reference event; Oracle-managed recipes cannot be edited. |
Fields every OCI Audit record has (22)
| Field | What it holds |
|---|---|
eventTypeRead by 1 rule | The type of event, com.oraclecloud.<service>.<operation>: the operation of control plane pages. Oracle's event list writes identityControlPlane and its reference events identitycontrolplane, so compare without case. In the Logging envelope this is type. |
source | What produced the event; Oracle's reference records carry the service here (identityControlPlane, cloudGuard). |
eventID | A unique ID of the record (a UUID, not an OCID). Oracle's examples spell it eventID or eventId. |
eventTime | When the event happened, in RFC 3339 format. |
data. | Name of the API operation that produced the event (CreateUser). |
data. | OCID of the compartment of the resource. IAM users, groups and some policies live in the tenancy itself (the root compartment), whose OCID is the tenancy OCID. |
data. | Name of that compartment. |
data. | Name of the resource the event is about. What it holds depends on the operation: the group for a membership change, the user for a credential. |
data. | OCID (or other ID) of that resource. |
data. | Name of the user or service that made the request. |
data. | OCID of that principal. |
data. | The type of authentication used (natv in Oracle's reference record). |
data. | The address the request came from. |
data. | The user agent of the client, as the client reports it. |
data. | Identifies the Console session the request belongs to, when there is one. |
data. | The credential ID of the user that signed the request. |
data. | The HTTP method of the request (GET, POST, PUT, DELETE...). |
data. | The status code of the response, as a string ("200"). |
data. | A short description of what happened, when the service gives one. |
data. | State of the fields the operation may have changed, before it. |
data. | State of those fields after the operation; compare it with previous. |
data. | Attributes the emitting service adds. IAM control plane records add the target user and group OCIDs (userId, groupId) and, in Oracle's reference events, the acting user and an identity domain (actorName, domainName); identity domain records carry the domain's audit attributes here. |
Values to know
data.stateChange.current.securityPolicies
| Value | Meaning | Signal |
|---|---|---|
fewer policies than in previous | Policies were disabled in the recipeEvery zone that uses the recipe stops denying what those policies covered. The detection rule reports every update; this is the one to confirm first. | Attack signal |
more policies than in previous | Policies were enabled | Noise |
Volume and noise
Low: recipes are adjusted when a team needs an exception or a new policy is introduced. An update that removes policies, made by someone outside the security team, or followed soon after by a change in a zone's compartment that the removed policy would have denied, is the record to read first.
Keeping it manageable
- Compare
data.stateChange.previous.securityPolicieswithdata.stateChange.current.securityPolicies; fewer policies means the zones that use the recipe enforce less. - Find the zones that use the recipe (
oci cloud-guard security-zone-collection list-security-zones --compartment-id <compartment-ocid> --security-recipe-id <data.resourceId> --all, read only) to see what the change reaches. - Review updates by callers outside the team that owns Cloud Guard and security zones.
Sample event
A OCI Audit record in the vendor’s format, with made-up values.
{
"eventType": "com.oraclecloud.cloudGuard.UpdateSecurityRecipe",
"cloudEventsVersion": "0.1",
"eventTypeVersion": "2.0",
"source": "cloudGuard",
"eventID": "3f2b1c0d-0000-4000-8000-00000000a1b2",
"eventTime": "2026-11-18T09:30:12.345Z",
"contentType": "application/json",
"data": {
"eventGroupingId": null,
"eventName": "UpdateSecurityRecipe",
"compartmentId": "ocid1.tenancy.oc1..aaaaaaaaexampletenancy",
"compartmentName": "security",
"resourceName": "corp-zone-recipe",
"resourceId": "ocid1.securityzonessecurityrecipe.oc1..aaaaaaaaexamplerecipe",
"availabilityDomain": null,
"freeformTags": null,
"definedTags": null,
"identity": {
"principalName": "ops-admin@corp.example.com",
"principalId": "ocid1.user.oc1..aaaaaaaaexampleopsadmin",
"authType": "natv",
"callerName": null,
"callerId": null,
"tenantId": "ocid1.tenancy.oc1..aaaaaaaaexampletenancy",
"ipAddress": "203.0.113.24",
"credentials": null,
"userAgent": "Oracle-PythonCLI/3.50.0",
"consoleSessionId": null
},
"request": {
"id": "6f1c2d3e4a5b4c6d8e9f0a1b2c3d4e5f",
"path": "/20200131/securityRecipes/ocid1.securityzonessecurityrecipe.oc1..aaaaaaaaexamplerecipe",
"action": "PUT",
"parameters": {},
"headers": {}
},
"response": {
"status": "200",
"responseTime": "2026-11-18T09:30:12.512Z",
"headers": {},
"payload": {},
"message": null
},
"stateChange": {
"previous": {
"owner": "CUSTOMER",
"securityPolicies": [
"ocid1.securityzonessecuritypolicy.oc1..aaaaaaaaexamplepolicy1",
"ocid1.securityzonessecuritypolicy.oc1..aaaaaaaaexamplepolicy2"
]
},
"current": {
"owner": "CUSTOMER",
"securityPolicies": [
"ocid1.securityzonessecuritypolicy.oc1..aaaaaaaaexamplepolicy1"
]
}
},
"additionalDetails": {}
}
}Attacks this event reveals
Detection rules that read this event: