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