Skip to content
WETNav

Investigation · Identity

Did an attacker take admin control of our Okta tenant?

Test for Okta tenant takeover: how an admin account was taken, privilege grants, new identity providers, policy changes, API tokens and impersonation.

When you would ask thisA privileged Okta account may be in the wrong hands, often after a help desk reset of an administrator's MFA, or you see admin changes nobody can account for. You need to know whether the attacker gained admin control, what they configured to keep it, and which users and apps they could reach.

Steps

  1. 1

    Establish how the admin account was taken

    Several publicly reported Okta tenant takeovers began with a call to the help desk asking to reset a privileged user's MFA or password, followed by a sign-in from a new device; Okta's own 2023 advisory on social engineering against its customers describes attackers reaching Super Administrator accounts this way. For each administrator, look for user.mfa.factor.reset_all, user.mfa.factor.deactivate, user.mfa.factor.activate and user.account.reset_password, then the next user.session.start from a new client IP or ASN and the first access to the Admin Console (Okta logs an eventType for admin app access, commonly user.session.access_admin_app; confirm it in your org). Join each reset to its ticket as in the help desk takeover playbook.

    Okta System Log API: factor and password resets, then admin console access
    GET /api/v1/logs?since=2026-10-01T00:00:00Z&filter=
      eventType eq "user.mfa.factor.reset_all" or
      eventType eq "user.mfa.factor.deactivate" or
      eventType eq "user.mfa.factor.activate" or
      eventType eq "user.account.reset_password" or
      eventType eq "user.session.access_admin_app"
    
    # Keep events whose target is an administrator. Record actor.alternateId,
    # client.ipAddress and securityContext.asNumber, and compare with the admin's history.
  2. 2

    Find admin privilege grants

    user.account.privilege.grant records an admin role being assigned to a user, and group.privilege.grant records one being assigned to a group, which extends it to every member, so also check group.user_membership.add into admin groups. The role granted is described in the event's debugContext.debugData; confirm the field name on a sample event. Super Administrator and Org Administrator grants to accounts that did not have them, or to accounts created in the window (user.lifecycle.create), are the priority. Custom admin roles and resource sets produce their own events, which depend on org configuration; confirm those eventTypes in the catalog.

    Okta System Log API: privilege grants and new accounts
    curl -s -G "https://<your-org>.okta.com/api/v1/logs" \
      -H "Authorization: SSWS $OKTA_TOKEN" \
      --data-urlencode 'since=2026-10-01T00:00:00Z' \
      --data-urlencode 'limit=1000' \
      --data-urlencode 'filter=eventType eq "user.account.privilege.grant" or eventType eq "group.privilege.grant" or eventType eq "group.user_membership.add" or eventType eq "user.lifecycle.create"'
    
    # Follow the Link: rel="next" response header to page through results.
  3. 3

    Check for new or changed identity providers

    An attacker with admin rights can add an identity provider they control and set routing rules so chosen users authenticate through it. If account linking or just-in-time provisioning is permissive, that lets them sign in as other users in the org without knowing their passwords or factors. Look for system.idp.lifecycle.create and related lifecycle events (such as update and activate), and for policy.rule.update on the IdP routing rules. Then list the org's identity providers and compare them with what you expect, and search for sign-ins that came through the new IdP (user.authentication.auth_via_IDP is the usual eventType; confirm it in your org) to find every user the attacker impersonated.

    List configured identity providers (Okta API)
    curl -s -H "Authorization: SSWS $OKTA_TOKEN" \
      "https://<your-org>.okta.com/api/v1/idps"
    
    # For each unexpected IdP, note its id, type, created and lastUpdated, and its
    # account link and provisioning policy, then search the System Log for
    # system.idp.lifecycle.create events and sign-ins routed through that IdP.
  4. 4

    Review policy changes

    Look for policy.lifecycle.create, policy.lifecycle.update, policy.rule.create and policy.rule.update in the window, and read the target and the change for each. The changes that matter weaken sign-on or MFA: authentication policy rules that drop a factor requirement, a global session policy rule that allows longer or less verified sessions, MFA enrollment or password policy changes, and network zone changes that make attacker IPs trusted. Deactivated rules matter as much as edited ones; confirm the deactivation eventTypes in the catalog. Compare each policy with a known-good export or your configuration-as-code baseline if you have one.

  5. 5

    Find API tokens and service integrations

    system.api_token.create records an API token being created. An Okta API token acts with the permissions of the admin who created it and is used without MFA, so an attacker-created token survives a password or factor reset of that admin. Record the token's name, the creating actor and the client IP, list current tokens in the Admin Console (Security > API > Tokens) and revoke any you cannot account for; system.api_token.revoke records revocation. Also look for new OAuth service apps (application.lifecycle.create) that were granted okta.* management scopes, which give API access without a token tied to a person; confirm the scope-grant eventType your org logs.

  6. 6

    Check impersonation and support access

    Okta records impersonation of a user by an administrator or by Okta Support under the user.session.impersonation family of eventTypes, including user.session.impersonation.initiate when an impersonation session starts. Granting Okta Support access to the org is logged in the same family; confirm the exact eventTypes in the catalog. Every impersonation or support access grant during the incident should match a support case you opened. An attacker with admin rights can grant support access or use a rogue IdP to impersonate users, so treat unexplained events here as part of the takeover.

  7. 7

    Contain and verify the tenant

    Work from the most durable access down: revoke unexplained API tokens, deactivate or delete rogue identity providers and restore routing rules, remove admin roles the attacker granted, deactivate attacker-created users and OAuth service apps, and revert weakened policies and network zones. Clear the sessions of every compromised admin and every impersonated user, then reset their factors and passwords through verified identity proofing, not the channel the attacker used. Finally, check downstream applications that trust Okta (cloud consoles, Microsoft 365, SaaS admin portals) for sessions the attacker started through SSO while they held the tenant.

    Check a user's admin roles and clear their sessions (Okta API)
    # Admin roles currently assigned to the user
    curl -s -H "Authorization: SSWS $OKTA_TOKEN" \
      "https://<your-org>.okta.com/api/v1/users/<userId>/roles"
    
    # Clear the user's Okta sessions and revoke OAuth tokens issued to them
    curl -s -X DELETE -H "Authorization: SSWS $OKTA_TOKEN" \
      "https://<your-org>.okta.com/api/v1/users/<userId>/sessions?oauthTokens=true"

Where it goes wrong

  • The actor on every malicious change is a real administrator account, so the System Log shows ordinary-looking admin activity; the evidence is the change itself, the client it came from and the missing change request.
  • Okta System Log retention is 90 days; a long-running takeover needs a SIEM copy, and current configuration (IdPs, tokens, admin roles) must be checked directly because the creation events may have aged out.
  • A rogue identity provider lets the attacker sign in as other users without their passwords or factors, so the scope is every user who authenticated through it, not only the compromised admin.
  • API tokens act with their creator's admin rights and are not affected by resetting that admin's password or factors; revoke them explicitly.
  • eventType names for custom admin roles, support access and some Identity Engine features differ from older documentation; confirm each in the event types catalog before treating an empty result as clean.
  • The help desk agent who performed the reset is usually a victim of the social engineering, not the attacker; their account appears as the actor, so do not treat it as a second compromise without other evidence.

Beyond event logs

Okta Admin Console configuration

Security > Identity Providers, Security > API (Tokens), Security > Administrators, and the authentication policy and network zone pages (menu names vary between Classic Engine and Identity Engine)

The current state of IdPs, tokens, admin assignments, policies and zones. Compare it with a baseline, since creation events may predate log retention.

Help desk tickets and call records

The ITSM platform and the phone system

Show whether resets of admin factors were requested by the real administrator, which is the decisive question for how the takeover started.

Downstream application logs

Logs of applications that trust Okta for SSO (cloud consoles, Microsoft 365, SaaS admin portals)

Show what the attacker did with sessions obtained through Okta, which the Okta System Log records only as the SSO event.

References