Credential Access (TA0006)(external, opens in a new tab or window)
text code block:from logs-okta* | where event.dataset == "okta.system" and (event.action like "user.authentication.*" or event.action == "user.session.start") and okta.debug_context.debug_data.request_uri == "/api/v1/authn" and okta.outcome.reason == "INVALID_CREDENTIALS" | keep event.action, okta.debug_context.debug_data.dt_hash, okta.client.ip, okta.actor.alternate_id, okta.debug_context.debug_data.request_uri, okta.outcome.reason | stats Esql.okta_debug_context_debug_data_dt_hash_count_distinct = count_distinct(okta.debug_context.debug_data.dt_hash) by okta.client.ip, okta.actor.alternate_id | where Esql.okta_debug_context_debug_data_dt_hash_count_distinct >= 30 | sort Esql.okta_debug_context_debug_data_dt_hash_count_distinct desc
Install detection rules in Elastic Security
Detect High Number of Okta Device Token Cookies Generated for Authentication in the Elastic Security detection engine by installing this rule into your Elastic Stack.
To setup this rule, check out the installation guide for Prebuilt Security Detection Rules(external, opens in a new tab or window).