Elastic medium stable kql
Okta Sign-In Events via Third-Party IdP
Detects sign-in events where authentication is carried out via a third-party Identity Provider (IdP) that has not been seen before. Adversaries may add an unauthorized IdP to an Okta tenant to gain persistent access. This rule uses New Terms detection to only alert when a previously unseen IdP is used for authentication, reducing noise from legitimate federated identity providers while highlighting potentially rogue IdP additions.
Detection Logic
data_stream.dataset: "okta.system"
and okta.authentication_context.issuer.id: (* and not "Okta")
and (
event.action: (
"user.authentication.auth_via_IDP"
or "user.authentication.auth_via_inbound_SAML"
or "user.authentication.auth_via_social"
)
or (
event.action: "user.authentication.auth_via_IDP"
and okta.outcome.result: "FAILURE"
and okta.outcome.reason: (
"A SAML assert with the same ID has already been processed by Okta for a previous request"
or "Unable to match transformed username"
or "Unable to resolve IdP endpoint"
or "Unable to validate SAML Response"
or "Unable to validate incoming SAML Assertion"
)
)
) Field Validations
Loading…
Comments (0)
Loading comments...