Elastic medium stable kql
Okta User Sessions Started from Different Geolocations
Detects when a specific Okta actor has multiple sessions started from different geolocations. Adversaries may attempt to launch an attack by using a list of known usernames and passwords to gain unauthorized access to user accounts from different locations.
Detection Logic
from logs-okta*
| where
data_stream.dataset == "okta.system" and
(event.action like "user.authentication.*" or event.action == "user.session.start") and
okta.security_context.is_proxy != true and
okta.actor.id != "unknown" and
event.outcome == "success"
| keep
event.action,
okta.security_context.is_proxy,
okta.actor.id,
okta.actor.alternate_id,
event.outcome,
client.geo.country_name
| stats
Esql.client_geo_country_name_count_distinct = count_distinct(client.geo.country_name)
by okta.actor.id, okta.actor.alternate_id
| where
Esql.client_geo_country_name_count_distinct >= 2
| sort
Esql.client_geo_country_name_count_distinct desc Field Validations
Loading…
Comments (0)
Loading comments...