1. Resources
  2. Detection sources
  3. sso.bypasscode.create.success

sso.bypasscode.create.success: An MFA bypass code was created in an identity domain

Recorded when a bypass code is created for a user: a code that signs the user in instead of the enrolled second factor. Whoever holds it, with the password, can sign in as that user until it expires or is used up.

Log source
Oracle Cloud Infrastructure Audit
Detection value
Supporting
Volume
Low (estimate)
Last updated
Log
OCI Audit (OCI Audit, on by default)
Service
OCI Audit
Operation
sso.bypasscode.create.success
Detects
2 attacks (1 rule · 1 detection logic)
MITRE ATT&CK
3 techniques in 4 tactics
Threat groups
7 groups that MITRE ATT&CK records using these techniques
Fields the rules read
data.additionalDetails.eventIdeventType

When it is written

The identity domain records the event ID sso.bypasscode.create.success under Oracle's category "Multifactor Authentication", event "ByPass Code Creation". A bypass code is a 2-Step Verification method for a user who has lost the usual one, such as a forgotten phone. The user must already be enrolled in MFA. An administrator generates one from the user's page (More Actions, Generate bypass code), choosing when it expires (or that it never expires) and how often it can be used (once, a set number of times, or without limit), and can email it to the user; users can also generate their own and keep them. Removing a code is a separate event, sso.bypasscode.delete.success.

Oracle's Audit Log Report query lists this event and reads the actor in actorName, the target in adminResourceName and the description in data.message; Oracle does not say what the target holds for a bypass code, nor whether expiry and usage limits appear in the record. Oracle does not document the event's eventType.

How to turn it on

OCI Audit records sso.bypasscode.create.success 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 /_Audit log group of every compartment in Logging. Export them with Connector Hub (source Logging, the _Audit log 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 type instead of eventType, with the same data object.
  • 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...).
Show the Audit retention period of the tenancy (read only)
oci audit config get --compartment-id <tenancy-ocid>
Based on vendor documentation.
List the Connector Hub connectors that may export the _Audit log group (read only)
oci sch service-connector list --compartment-id <compartment-ocid> --all
Based on vendor documentation.
List the Audit events of a compartment in a time window (read only)
oci audit event list --compartment-id <compartment-ocid> --start-time <start-time> --end-time <end-time> --all
Based on vendor documentation.
Find recent sso.bypasscode.create.success records (read only)
oci logging-search search-logs --time-start <start-time> --time-end <end-time> --search-query "search \"<compartment-ocid>/_Audit\" | where type = 'sso.bypasscode.create.success' or data.eventName = 'sso.bypasscode.create.success' or data.additionalDetails.eventId = 'sso.bypasscode.create.success'"
Based on vendor documentation.

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.

FieldWhat it holds
data.additionalDetails.eventIdRead by 1 ruleThe identity domain's event ID, sso.bypasscode.create.success for this operation.
data.additionalDetails.actorNameLogin name of the user (or client) that created the code.
data.additionalDetails.adminResourceNameThe event's target in Oracle's Audit Log Report; what it holds for a bypass code is not documented.
data.additionalDetails.domainDisplayNameDisplay name of the identity domain the event comes from.
data.messageThe event's success message, shown as the event description in Oracle's report.
Fields every OCI Audit record has (22)
FieldWhat it holds
eventTypeRead by 1 ruleThe 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.
sourceWhat produced the event; Oracle's reference records carry the service here (identityControlPlane, cloudGuard).
eventIDA unique ID of the record (a UUID, not an OCID). Oracle's examples spell it eventID or eventId.
eventTimeWhen the event happened, in RFC 3339 format.
data.eventNameName of the API operation that produced the event (CreateUser).
data.compartmentIdOCID 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.compartmentNameName of that compartment.
data.resourceNameName 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.resourceIdOCID (or other ID) of that resource.
data.identity.principalNameName of the user or service that made the request.
data.identity.principalIdOCID of that principal.
data.identity.authTypeThe type of authentication used (natv in Oracle's reference record).
data.identity.ipAddressThe address the request came from.
data.identity.userAgentThe user agent of the client, as the client reports it.
data.identity.consoleSessionIdIdentifies the Console session the request belongs to, when there is one.
data.identity.credentialsThe credential ID of the user that signed the request.
data.request.actionThe HTTP method of the request (GET, POST, PUT, DELETE...).
data.response.statusThe status code of the response, as a string ("200").
data.response.messageA short description of what happened, when the service gives one.
data.stateChange.previousState of the fields the operation may have changed, before it.
data.stateChange.currentState of those fields after the operation; compare it with previous.
data.additionalDetailsAttributes 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.

Volume and noise

Low: help desks create codes for users who lost their phone, and some users keep codes of their own. A code for an administrator, one that never expires or has unlimited uses, one created by an actor outside the help desk, or one that follows a password reset of the same user, is the record to read first.

Keeping it manageable

  • Compare the actor (data.additionalDetails.actorName) with the target (data.additionalDetails.adminResourceName); confirm on one test code of your own what each holds.
  • Look for admin.user.password.reset.success of the same user shortly before and the user's next sign-in (sso.session.create.success) after; the three together are the takeover path the detection logic describes.
  • Confirm with the user through a separate channel that they asked for the code.

Sample event

A OCI Audit record in the vendor’s format, with made-up values.

{
  "eventType": "<not documented for identity domain events>",
  "cloudEventsVersion": "0.1",
  "eventTypeVersion": "2.0",
  "source": "<not documented>",
  "eventID": "3f2b1c0d-0000-4000-8000-00000000a1b2",
  "eventTime": "2026-11-18T09:30:12.345Z",
  "contentType": "application/json",
  "data": {
    "eventGroupingId": null,
    "eventName": "<not documented>",
    "compartmentId": "ocid1.tenancy.oc1..aaaaaaaaexampletenancy",
    "compartmentName": "corp",
    "resourceName": "",
    "resourceId": "",
    "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": "",
      "action": "POST",
      "parameters": {},
      "headers": {}
    },
    "response": {
      "status": "200",
      "responseTime": "2026-11-18T09:30:12.512Z",
      "headers": {},
      "payload": {},
      "message": null
    },
    "stateChange": {
      "previous": null,
      "current": null
    },
    "additionalDetails": {
      "actorName": "helpdesk-1@corp.example.com",
      "adminResourceName": "sec-lead@corp.example.com",
      "domainDisplayName": "Default",
      "eventId": "sso.bypasscode.create.success"
    },
    "message": "Bypass code created"
  }
}

Attacks this event reveals

Detection rules that read this event:

Detection logic (hypotheses that join this event with others) for:

References