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/09/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 "https://www.elastic.co/security-labs/monitoring-okta-threats-with-elastic-security",
32 "https://www.elastic.co/security-labs/starter-guide-to-understanding-okta",
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
- Administrator Privileges Assigned to an Okta Group
- Administrator Role Assigned to an Okta User
- Attempt to Reset MFA Factors for an Okta User Account
- Modification or Removal of an Okta Application Sign-On Policy
- New Okta Identity Provider (IdP) Added by Admin