Multiple Okta Sessions Detected for a Single User
Detects when a user has started multiple Okta sessions with the same user account and different session IDs. This may indicate that an attacker has stolen the user's session cookie and is using it to access the user's account from a different location.
Elastic rule (View on GitHub)
1[metadata]
2creation_date = "2023/11/07"
3integration = ["okta"]
4maturity = "production"
5updated_date = "2024/09/23"
6
7[rule]
8author = ["Elastic"]
9description = """
10Detects when a user has started multiple Okta sessions with the same user account and different session IDs. This may
11indicate that an attacker has stolen the user's session cookie and is using it to access the user's account from a
12different location.
13"""
14false_positives = ["A user may have multiple sessions open at the same time, such as on a mobile device and a laptop."]
15from = "now-30m"
16index = ["filebeat-*", "logs-okta*"]
17interval = "60m"
18language = "kuery"
19license = "Elastic License v2"
20name = "Multiple Okta Sessions Detected for a Single User"
21note = """## Setup
22
23The Okta Fleet integration, Filebeat module, or similarly structured data is required to be compatible with this rule."""
24references = [
25 "https://developer.okta.com/docs/reference/api/system-log/",
26 "https://developer.okta.com/docs/reference/api/event-types/",
27 "https://www.elastic.co/security-labs/testing-okta-visibility-and-detection-dorothy",
28 "https://sec.okta.com/articles/2023/08/cross-tenant-impersonation-prevention-and-detection",
29 "https://www.elastic.co/security-labs/monitoring-okta-threats-with-elastic-security",
30 "https://www.elastic.co/security-labs/starter-guide-to-understanding-okta",
31]
32risk_score = 47
33rule_id = "621e92b6-7e54-11ee-bdc0-f661ea17fbcd"
34severity = "medium"
35tags = ["Use Case: Identity and Access Audit", "Data Source: Okta", "Tactic: Lateral Movement"]
36timestamp_override = "event.ingested"
37type = "threshold"
38
39query = '''
40event.dataset:okta.system and okta.event_type:user.session.start and okta.authentication_context.external_session_id:*
41 and not (okta.actor.id: okta* or okta.actor.display_name: okta*)
42'''
43
44
45[[rule.threat]]
46framework = "MITRE ATT&CK"
47[[rule.threat.technique]]
48id = "T1550"
49name = "Use Alternate Authentication Material"
50reference = "https://attack.mitre.org/techniques/T1550/"
51[[rule.threat.technique.subtechnique]]
52id = "T1550.004"
53name = "Web Session Cookie"
54reference = "https://attack.mitre.org/techniques/T1550/004/"
55
56
57
58[rule.threat.tactic]
59id = "TA0008"
60name = "Lateral Movement"
61reference = "https://attack.mitre.org/tactics/TA0008/"
62
63[rule.threshold]
64field = ["okta.actor.id"]
65value = 1
66[[rule.threshold.cardinality]]
67field = "okta.authentication_context.external_session_id"
68value = 3
Setup
The Okta Fleet integration, Filebeat module, or similarly structured data is required to be compatible with this rule.
References
Related rules
- Administrator Privileges Assigned to an Okta Group
- Administrator Role Assigned to an Okta User
- Attempt to Create Okta API Token
- Attempt to Deactivate an Okta Application
- Attempt to Deactivate an Okta Network Zone