Attempt to Deactivate an Okta Network Zone

Detects attempts to deactivate an Okta network zone. Okta network zones can be configured to limit or restrict access to a network based on IP addresses or geolocations. An adversary may attempt to modify, delete, or deactivate an Okta network zone in order to remove or weaken an organization's security controls.

Elastic rule (View on GitHub)

 1[metadata]
 2creation_date = "2020/11/06"
 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 deactivate an Okta network zone. Okta network zones can be configured to limit or restrict access to
13a network based on IP addresses or geolocations. An adversary may attempt to modify, delete, or deactivate an Okta
14network zone in order to remove or weaken an organization's security controls.
15"""
16false_positives = [
17    """
18    Consider adding exceptions to this rule to filter false positives if your organization's Okta network zones are
19    regularly modified.
20    """,
21]
22index = ["filebeat-*", "logs-okta*"]
23language = "kuery"
24license = "Elastic License v2"
25name = "Attempt to Deactivate an Okta Network Zone"
26note = """## Triage and analysis
27
28### Investigating Attempt to Deactivate an Okta Network Zone
29
30The Okta network zones can be configured to restrict or limit access to a network based on IP addresses or geolocations. Deactivating a network zone in Okta may remove or weaken the security controls of an organization, which might be an indicator of an adversary's attempt to evade defenses.
31
32#### Possible investigation steps
33
34- Identify the actor related to the alert by reviewing the `okta.actor.id`, `okta.actor.type`, `okta.actor.alternate_id`, or `okta.actor.display_name` fields.
35- Examine the `event.action` field to confirm the deactivation of a network zone.
36- Check the `okta.target.id`, `okta.target.type`, `okta.target.alternate_id`, or `okta.target.display_name` to identify the network zone that was deactivated.
37- Investigate the `event.time` field to understand when the event happened.
38- Review the actor's activities before and after the event to understand the context of this event.
39
40### False positive analysis
41
42- Check the `okta.client.user_agent.raw_user_agent` field to understand the device and software used by the actor. If these match the actor's normal behavior, it might be a false positive.
43- Check if the actor is a known administrator or part of the IT team who might have a legitimate reason to deactivate a network zone.
44- Verify the actor's actions with any known planned changes or maintenance activities.
45
46### Response and remediation
47
48- If unauthorized access or actions are confirmed, immediately lock the affected actor account and require a password change.
49- Re-enable the deactivated network zone if it was deactivated without authorization.
50- Review and update the privileges of the actor who initiated the deactivation.
51- Check the security policies and procedures to identify any gaps and update them as necessary.
52- Implement additional monitoring and logging of Okta events to improve visibility of user actions.
53- Communicate and train the employees about the importance of following proper procedures for modifying network zone settings.
54
55## Setup
56
57The Okta Fleet integration, Filebeat module, or similarly structured data is required to be compatible with this rule."""
58references = [
59    "https://help.okta.com/en/prod/Content/Topics/Security/network/network-zones.htm",
60    "https://developer.okta.com/docs/reference/api/system-log/",
61    "https://developer.okta.com/docs/reference/api/event-types/",
62    "https://www.elastic.co/security-labs/testing-okta-visibility-and-detection-dorothy",
63]
64risk_score = 47
65rule_id = "8a5c1e5f-ad63-481e-b53a-ef959230f7f1"
66severity = "medium"
67tags = ["Use Case: Identity and Access Audit", "Data Source: Okta", "Use Case: Network Security Monitoring", "Tactic: Defense Evasion"]
68timestamp_override = "event.ingested"
69type = "query"
70
71query = '''
72event.dataset:okta.system and event.action:zone.deactivate
73'''
74
75
76[[rule.threat]]
77framework = "MITRE ATT&CK"
78[[rule.threat.technique]]
79id = "T1562"
80name = "Impair Defenses"
81reference = "https://attack.mitre.org/techniques/T1562/"
82[[rule.threat.technique.subtechnique]]
83id = "T1562.007"
84name = "Disable or Modify Cloud Firewall"
85reference = "https://attack.mitre.org/techniques/T1562/007/"
86
87
88
89[rule.threat.tactic]
90id = "TA0005"
91name = "Defense Evasion"
92reference = "https://attack.mitre.org/tactics/TA0005/"

Triage and analysis

Investigating Attempt to Deactivate an Okta Network Zone

The Okta network zones can be configured to restrict or limit access to a network based on IP addresses or geolocations. Deactivating a network zone in Okta may remove or weaken the security controls of an organization, which might be an indicator of an adversary's attempt to evade defenses.

Possible investigation steps

  • Identify the actor related to the alert by reviewing the okta.actor.id, okta.actor.type, okta.actor.alternate_id, or okta.actor.display_name fields.
  • Examine the event.action field to confirm the deactivation of a network zone.
  • Check the okta.target.id, okta.target.type, okta.target.alternate_id, or okta.target.display_name to identify the network zone that was deactivated.
  • Investigate the event.time field to understand when the event happened.
  • Review the actor's activities before and after the event to understand the context of this event.

False positive analysis

  • Check the okta.client.user_agent.raw_user_agent field to understand the device and software used by the actor. If these match the actor's normal behavior, it might be a false positive.
  • Check if the actor is a known administrator or part of the IT team who might have a legitimate reason to deactivate a network zone.
  • Verify the actor's actions with any known planned changes or maintenance activities.

Response and remediation

  • If unauthorized access or actions are confirmed, immediately lock the affected actor account and require a password change.
  • Re-enable the deactivated network zone if it was deactivated without authorization.
  • Review and update the privileges of the actor who initiated the deactivation.
  • Check the security policies and procedures to identify any gaps and update them as necessary.
  • Implement additional monitoring and logging of Okta events to improve visibility of user actions.
  • Communicate and train the employees about the importance of following proper procedures for modifying network zone settings.

Setup

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

References

Related rules

to-top