Skip to content

[Okta] Add Missing Event Categories #15235

@terrancedejesus

Description

@terrancedejesus

Summary

In the Okta integration, specifically for the elasticsearch ingestion pipeline we are missing some event.category mappings based on available Event Types documented by Okta. This directly affects any OOTB prebuilt SIEM rules that use EQL which leads with event categories such as authentication.

This brought up by a community member for attempting to resolve some false-negative logic in an OOTB rule that relies on Okta system logs. Specifically, user.authentication.auth_via_mfa should be in the authentication event category mapping, but is not. As a result, there is no defined event.category in the events.

Image

Solution

  • user.authentication.auth_via_mfa should be added to the authentication category.
  • We should review the event types and get these mapped accordingly for event.category.

Okta is a relatively popular integration amongst our users and this update would be a good quality of life change. Additionally, it allows our EQL-based OOTB prebuilt SIEM rules to not rely on any which can effect performance from the detection engine.

Example Event:
{
  "_index": ".ds-logs-okta.system-default-2025.08.15-000006",
  "_id": "35f5a302-8ccd-11f0-8fd9-cf64cb28a413",
  "_version": 1,
  "_source": {
    "@timestamp": "2025-09-08T16:02:24.996Z",
    "agent": {
      "ephemeral_id": "da73596f-da11-4fe1-b7df-897ffea9233a",
      "id": "22b75296-5bb5-4bc0-9918-e87b4902269d",
      "name": "ip-172-31-11-200",
      "type": "filebeat",
      "version": "8.17.3"
    },
    "client": {
      "as": {
        "organization": {
          "name": "mctv"
        }
      },
      "domain": "sssnet.com",
      "geo": {
        "city_name": "Massillon",
        "country_name": "United States",
        "location": {
          "lat": REDACTED,
          "lon": REDACTED
        },
        "region_name": "Ohio"
      },
      "ip": "REDACTED",
      "user": {
        "full_name": "Elastic TRADE",
        "id": "00ujjn0nzx9RSYZ9M5d7",
        "name": "REDACTED"
      }
    },
    "cloud": {
      "account": {
        "id": "891377031307"
      },
      "availability_zone": "us-east-2a",
      "image": {
        "id": "ami-0cb91c7de36eed2cb"
      },
      "instance": {
        "id": "i-06a549dcaba759e6e"
      },
      "machine": {
        "type": "t2.small"
      },
      "provider": "aws",
      "region": "us-east-2",
      "service": {
        "name": "EC2"
      }
    },
    "data_stream": {
      "dataset": "okta.system",
      "namespace": "default",
      "type": "logs"
    },
    "ecs": {
      "version": "8.11.0"
    },
    "elastic_agent": {
      "id": "22b75296-5bb5-4bc0-9918-e87b4902269d",
      "snapshot": false,
      "version": "8.17.3"
    },
    "event": {
      "action": "user.authentication.auth_via_mfa",
      "agent_id_status": "verified",
      "created": "2025-09-08T16:03:52.288Z",
      "dataset": "okta.system",
      "id": "35f5a302-8ccd-11f0-8fd9-cf64cb28a413",
      "ingested": "2025-09-08T16:04:02Z",
      "kind": "event",
      "outcome": "success"
    },
    "input": {
      "type": "httpjson"
    },
    "okta": {
      "actor": {
        "alternate_id": "REDACTED",
        "display_name": "Elastic TRADE",
        "id": "00ujjn0nzx9RSYZ9M5d7",
        "type": "User"
      },
      "authentication_context": {
        "authentication_provider": "FACTOR_PROVIDER",
        "authentication_step": 0,
        "credential_provider": "OKTA_CREDENTIAL_PROVIDER",
        "external_session_id": "idxXmXb3FPqRbWDC84_x5JwrA"
      },
      "client": {
        "device": "Computer",
        "ip": "REDACTED",
        "user_agent": {
          "browser": "CHROME",
          "os": "Mac OS 15.6.1 (Sequoia)",
          "raw_user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/140.0.0.0 Safari/537.36"
        },
        "zone": "null"
      },
      "debug_context": {
        "debug_data": {
          "REDACTED",
          },
          "request_id": "156066e2db2a130acac471276638450b",
          "request_uri": "/idp/idx/identify",
          "threat_suspected": "false",
          "url": "/idp/idx/identify?"
        }
      },
      "display_message": "Authentication of user via MFA",
      "event_type": "user.authentication.auth_via_mfa",
      "outcome": {
        "result": "SUCCESS"
      },
      "request": {
        "ip_chain": [
          {
            "geographical_context": {
              "country": "United States",
              "city": "Massillon",
              "state": "Ohio",
              "postal_code": "44646",
              "geolocation": {
                "lon": REDACTED,
                "lat": REDACTED
              }
            },
            "ip": "REDACTED",
            "version": "V4"
          }
        ]
      },
      "security_context": {
        "as": {
          "number": 12097,
          "organization": {
            "name": "mctv"
          }
        },
        "domain": "sssnet.com",
        "is_proxy": false,
        "isp": "massillon cable communications"
      },
      "target": [
        {
          "id": "00ujjn0nzx9RSYZ9M5d7",
          "type": "User",
          "display_name": "Elastic TRADE",
          "alternate_id": "REDACTED"
        },
        {
          "id": "lae2ebdv2v1WQjwP75d7",
          "detailEntry": {
            "methodTypeUsed": "Password",
            "methodUsedVerifiedProperties": "[USER_PRESENCE]"
          },
          "type": "AuthenticatorEnrollment",
          "display_name": "Password",
          "alternate_id": "unknown"
        }
      ],
      "transaction": {
        "id": "156066e2db2a130acac471276638450b",
        "type": "WEB"
      },
      "uuid": "REDACTED"
    },
    "related": {
      "ip": [
        "REDACTED"
      ],
      "user": [
        "Elastic TRADE",
        "tradebot"
      ]
    },
    "source": {
      "as": {
        "number": 12097,
        "organization": {
          "name": "MASSCOM"
        }
      },
      "domain": "sssnet.com",
      "geo": {
        "city_name": "Massillon",
        "continent_name": "North America",
        "country_iso_code": "US",
        "country_name": "United States",
        "location": {
          "lat": REDACTED,
          "lon": REDACTED
        },
        "region_iso_code": "US-OH",
        "region_name": "Ohio"
      },
      "ip": "REDACTED",
      "user": {
        "full_name": "Elastic TRADE",
        "id": "REDACTED",
        "name": "REDACTED"
      }
    },
    "tags": [
      "forwarded",
      "okta-system"
    ],
    "user": {
      "full_name": "Elastic TRADE",
      "name": "REDACTED",
      "target": {
        "full_name": "Elastic TRADE",
        "id": "REDACTED"
      }
    },
    "user_agent": {
      "device": {
        "name": "Mac"
      },
      "name": "Chrome",
      "original": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/140.0.0.0 Safari/537.36",
      "os": {
        "full": "Mac OS X 10.15.7",
        "name": "Mac OS X",
        "version": "10.15.7"
      },
      "version": "140.0.0.0"
    }
  },
  "fields": {
    "okta.client.device": [
      "Computer"
    ],
    "elastic_agent.version": [
      "8.17.3"
    ],
    "user_agent.original.text": [
      "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/140.0.0.0 Safari/537.36"
    ],
    "okta.client.ip": [
      "REDACTED"
    ],
    "okta.client.user_agent.os": [
      "Mac OS 15.6.1 (Sequoia)"
    ],
    "okta.security_context.as.number": [
      12097
    ],
    "source.user.name.text": [
      "tradebot"
    ],
    "agent.name.text": [
      "REDACTED"
    ],
    "source.geo.region_name": [
      "Ohio"
    ],
    "user.full_name.text": [
      "Elastic TRADE"
    ],
    "cloud.service.name.text": [
      "EC2"
    ],
    "user.target.full_name": [
      "Elastic TRADE"
    ],
    "source.ip": [
      "REDACTED"
    ],
    "agent.name": [
      "ip-172-31-11-200"
    ],
    "event.agent_id_status": [
      "verified"
    ],
    "event.outcome": [
      "success"
    ],
    "source.geo.city_name": [
      "Massillon"
    ],
    "user_agent.original": [
      "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/140.0.0.0 Safari/537.36"
    ],
    "okta.uuid": [
      "REDACTED"
    ],
    "cloud.region": [
      "us-east-2"
    ],
    "source.user.full_name.text": [
      "Elastic TRADE"
    ],
    "input.type": [
      "httpjson"
    ],
    "okta.authentication_context.authentication_step": [
      0
    ],
    "related.user": [
      "Elastic TRADE",
      "REDACTED"
    ],
    "tags": [
      "forwarded",
      "okta-system"
    ],
    "okta.client.zone": [
      "null"
    ],
    "cloud.machine.type": [
      "t2.small"
    ],
    "cloud.provider": [
      "aws"
    ],
    "agent.id": [
      "22b75296-5bb5-4bc0-9918-e87b4902269d"
    ],
    "client.user.name": [
      "REDACTED"
    ],
    "source.as.number": [
      12097
    ],
    "okta.target.type": [
      "User",
      "AuthenticatorEnrollment"
    ],
    "okta.authentication_context.external_session_id": [
      "REDACTED"
    ],
    "client.user.name.text": [
      "tradebot"
    ],
    "user_agent.os.full": [
      "Mac OS X 10.15.7"
    ],
    "okta.authentication_context.credential_provider": [
      "OKTA_CREDENTIAL_PROVIDER"
    ],
    "user.name": [
      "REDACTED"
    ],
    "okta.debug_context.debug_data.device_fingerprint": [
      "REDACTED"
    ],
    "source.domain": [
      "sssnet.com"
    ],
    "user_agent.os.name": [
      "Mac OS X"
    ],
    "cloud.instance.id": [
      "REDACTED"
    ],
    "okta.security_context.is_proxy": [
      false
    ],
    "agent.type": [
      "filebeat"
    ],
    "client.geo.region_name": [
      "Ohio"
    ],
    "okta.actor.type": [
      "User"
    ],
    "related.ip": [
      "REDACTED"
    ],
    "elastic_agent.snapshot": [
      false
    ],
    "user.target.full_name.text": [
      "Elastic TRADE"
    ],
    "okta.client.user_agent.raw_user_agent": [
      "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/140.0.0.0 Safari/537.36"
    ],
    "client.domain": [
      "sssnet.com"
    ],
    "elastic_agent.id": [
      "22b75296-5bb5-4bc0-9918-e87b4902269d"
    ],
    "okta.debug_context.debug_data.url": [
      "/idp/idx/identify?"
    ],
    "okta.actor.display_name": [
      "Elastic TRADE"
    ],
    "okta.debug_context.debug_data.factor": [
      "PASSWORD_AS_FACTOR"
    ],
    "cloud.image.id": [
      "ami-0cb91c7de36eed2cb"
    ],
    "event.action": [
      "user.authentication.auth_via_mfa"
    ],
    "event.ingested": [
      "2025-09-08T16:04:02.000Z"
    ],
    "@timestamp": [
      "2025-09-08T16:02:24.996Z"
    ],
    "okta.target.detailEntry.methodUsedVerifiedProperties": [
      "[USER_PRESENCE]"
    ],
    "user_agent.name.text": [
      "Chrome"
    ],
    "cloud.account.id": [
      "891377031307"
    ],
    "data_stream.dataset": [
      "okta.system"
    ],
    "agent.ephemeral_id": [
      "da73596f-da11-4fe1-b7df-897ffea9233a"
    ],
    "event.id": [
      "35f5a302-8ccd-11f0-8fd9-cf64cb28a413"
    ],
    "user_agent.device.name": [
      "Mac"
    ],
    "user.name.text": [
      "tradebot"
    ],
    "okta.outcome.result": [
      "SUCCESS"
    ],
    "okta.security_context.isp": [
      "massillon cable communications"
    ],
    "user_agent.os.version": [
      "10.15.7"
    ],
    "cloud.availability_zone": [
      "us-east-2a"
    ],
    "user.target.id": [
      "00ujjn0nzx9RSYZ9M5d7"
    ],
    "okta.debug_context.debug_data.request_uri": [
      "/idp/idx/identify"
    ],
    "okta.display_message": [
      "Authentication of user via MFA"
    ],
    "client.user.full_name": [
      "Elastic TRADE"
    ],
    "okta.target.id": [
      "REDACTED",
      "REDACTED"
    ],
    "client.as.organization.name": [
      "mctv"
    ],
    "okta.actor.alternate_id": [
      "REDACTED"
    ],
    "user_agent.version": [
      "140.0.0.0"
    ],
    "client.geo.country_name": [
      "United States"
    ],
    "source.geo.region_iso_code": [
      "US-OH"
    ],
    "client.as.organization.name.text": [
      "mctv"
    ],
    "event.kind": [
      "event"
    ],
    "okta.debug_context.debug_data.flattened": [
      {
        "traceId": "307a59cb-0dc3-43f9-974b-ed7b51140201",
        "authnRequestId": "REDACTED",
        "deviceFingerprint": "REDACTED",
        "requestId": "156066e2db2a130acac471276638450b",
        "authenticatorMethodChallengeTime": "2025-09-08T16:02:21.235Z",
        "dtHash": "REDACTED",
        "requestUri": "/idp/idx/identify",
        "threatSuspected": "false",
        "factor": "PASSWORD_AS_FACTOR",
        "factorIntent": "AUTHENTICATION",
        "url": "/idp/idx/identify?"
      }
    ],
    "client.user.id": [
      "REDACTED"
    ],
    "okta.security_context.domain": [
      "sssnet.com"
    ],
    "client.ip": [
      "REDACTED"
    ],
    "user_agent.name": [
      "Chrome"
    ],
    "okta.client.user_agent.browser": [
      "CHROME"
    ],
    "data_stream.type": [
      "logs"
    ],
    "okta.request.ip_chain": [
      {
        "geographical_context": {
          "country": "United States",
          "city": "Massillon",
          "state": "Ohio",
          "postal_code": "44646",
          "geolocation": {
            "lon": REDACTED,
            "lat": REDACTED
          }
        },
        "ip": "REDACTED",
        "version": "V4"
      }
    ],
    "okta.debug_context.debug_data.dt_hash": [
      "REDACTED"
    ],
    "okta.transaction.id": [
      "156066e2db2a130acac471276638450b"
    ],
    "cloud.service.name": [
      "EC2"
    ],
    "ecs.version": [
      "8.11.0"
    ],
    "event.created": [
      "2025-09-08T16:03:52.288Z"
    ],
    "okta.target.display_name": [
      "Elastic TRADE",
      "Password"
    ],
    "user.full_name": [
      "Elastic TRADE"
    ],
    "agent.version": [
      "8.17.3"
    ],
    "source.user.name": [
      "REDACTED"
    ],
    "okta.debug_context.debug_data.request_id": [
      "REDACTED"
    ],
    "okta.target.detailEntry.methodTypeUsed": [
      "Password"
    ],
    "source.user.full_name": [
      "Elastic TRADE"
    ],
    "source.geo.location": [
      {
        "coordinates": [
          REDACTED,
          REDACTED
        ],
        "type": "Point"
      }
    ],
    "okta.target.alternate_id": [
      "REDACTED",
      "unknown"
    ],
    "okta.event_type": [
      "user.authentication.auth_via_mfa"
    ],
    "user_agent.os.name.text": [
      "Mac OS X"
    ],
    "okta.debug_context.debug_data.threat_suspected": [
      "false"
    ],
    "okta.transaction.type": [
      "WEB"
    ],
    "client.geo.location": [
      {
        "coordinates": [
          REDACTED,
          REDACTED
        ],
        "type": "Point"
      }
    ],
    "event.module": [
      "okta"
    ],
    "okta.actor.id": [
      "00ujjn0nzx9RSYZ9M5d7"
    ],
    "source.geo.country_iso_code": [
      "US"
    ],
    "source.user.id": [
      "REDACTED"
    ],
    "okta.authentication_context.authentication_provider": [
      "FACTOR_PROVIDER"
    ],
    "client.geo.city_name": [
      "Massillon"
    ],
    "source.as.organization.name.text": [
      "MASSCOM"
    ],
    "data_stream.namespace": [
      "default"
    ],
    "source.as.organization.name": [
      "MASSCOM"
    ],
    "source.geo.continent_name": [
      "North America"
    ],
    "user_agent.device.name.text": [
      "Mac"
    ],
    "client.user.full_name.text": [
      "Elastic TRADE"
    ],
    "user_agent.os.full.text": [
      "Mac OS X 10.15.7"
    ],
    "okta.security_context.as.organization.name": [
      "mctv"
    ],
    "source.geo.country_name": [
      "United States"
    ],
    "event.dataset": [
      "okta.system"
    ]
  }
}

Metadata

Metadata

Labels

Integration:oktaOktaTeam:Security-Service IntegrationsSecurity Service Integrations team [elastic/security-service-integrations]Team:Sit-CrestCrest developers on the Security Integrations team [elastic/sit-crest-contractors]

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions