Attempt to Create Okta API Token

Detects attempts to create an Okta API token. An adversary may create an Okta API token to maintain access to an organization's network while they work to achieve their objectives. An attacker may abuse an API token to execute techniques such as creating user accounts or disabling security rules or policies.

Elastic rule (View on GitHub)

 1[metadata]
 2creation_date = "2020/05/21"
 3integration = ["okta"]
 4maturity = "production"
 5min_stack_comments = "Breaking change in Okta integration bumping version to ^2.0.0"
 6min_stack_version = "8.10.0"
 7updated_date = "2023/10/24"
 8
 9[rule]
10author = ["Elastic"]
11description = """
12Detects attempts to create an Okta API token. An adversary may create an Okta API token to maintain access to an
13organization's network while they work to achieve their objectives. An attacker may abuse an API token to execute
14techniques such as creating user accounts or disabling security rules or policies.
15"""
16false_positives = [
17    """
18    If the behavior of creating Okta API tokens is expected, consider adding exceptions to this rule to filter false
19    positives.
20    """,
21]
22index = ["filebeat-*", "logs-okta*"]
23language = "kuery"
24license = "Elastic License v2"
25name = "Attempt to Create Okta API Token"
26note = """## Setup
27
28The Okta Fleet integration, Filebeat module, or similarly structured data is required to be compatible with this rule."""
29references = [
30    "https://developer.okta.com/docs/reference/api/system-log/",
31    "https://developer.okta.com/docs/reference/api/event-types/",
32    "https://www.elastic.co/security-labs/testing-okta-visibility-and-detection-dorothy",
33]
34risk_score = 47
35rule_id = "96b9f4ea-0e8c-435b-8d53-2096e75fcac5"
36severity = "medium"
37tags = ["Use Case: Identity and Access Audit", "Data Source: Okta", "Tactic: Persistence"]
38timestamp_override = "event.ingested"
39type = "query"
40
41query = '''
42event.dataset:okta.system and event.action:system.api_token.create
43'''
44
45
46[[rule.threat]]
47framework = "MITRE ATT&CK"
48[[rule.threat.technique]]
49id = "T1136"
50name = "Create Account"
51reference = "https://attack.mitre.org/techniques/T1136/"
52
53
54[rule.threat.tactic]
55id = "TA0003"
56name = "Persistence"
57reference = "https://attack.mitre.org/tactics/TA0003/"

Setup

The Okta Fleet integration, Filebeat module, or similarly structured data is required to be compatible with this rule.

References

Related rules

to-top