Our next-gen architecture is built to help you make sense of your ever-growing data. Watch a 4-min demo video!

How to Tell if You Were Attacked in the Recent Okta Security Breach

  • Yuval Khalifa
  • March 22, 2022
Share article
okta breach - coralogix

Today, Okta, a leading enterprise identity and access management firm, reported that it had launched an inquiry after the LAPSUS$ hacking group posted screenshots on Telegram. The hackers claimed the pictures were taken after obtaining access to “Okta.com Superuser/Admin and various other systems.”

If your organization uses Okta as its SSO, and you are currently forwarding Okta audit logs to your Coralogix account it is likely that your logs already contain information that can help you investigate if you were attacked. This article will describe the steps you need to create alerts that will notify you if such an event happens.

Get the logs to flow

If you haven’t yet, the first thing you need to do is get the Okta audit logs shipped to Coralogix. The steps are detailed here: Okta Audit Logs.

Deploy Okta Audit extension pack

Now that the data is coming in, you can enable the Okta audit extension pack by following these steps:

  1. Login to your Coralogix account
  2. From the “Data Flow” menu, choose the “Extensions” option
  3. Look for “OKTA Audit” and click the “Deploy” button. Select the application and subsystem names assigned to Okta audit logs

Several alerts and (Kibana) dashboards will be added to your account and will detect anomalies related to this attack. These dashboards will help investigate Okta authentication-related security issues. These alerts (such as ‘Unauthorized admin request,’ ‘A new non-browser like tool used to enter an app,’ and ‘Access admin app event from unknown actor’) can detect this specific breach.

Enable enrichment on relevant fields

To improve the detection even further, you can also enable the security enrichment in Coralogix on the logs from Okta. To do that, follow these simple steps:

  1. From the “Data Flow” menu, choose the “Data Enrichment” option
  2. Add the field “ip” to the “Security Enrichment

Create alerts

  1. Add a standard alert to Coralogix with the following details:
    1. Name: Okta Authentication Attempt from a blacklisted IP
    2. Description: A user or service has attempted to log in via Okta from an IP address on the AlienVault database. See more details here:
    3. Alert Type: Standard
    4. Query: _exists_:ip_suspected
    5. Applications: The application names assigned to Okta audit events
    6. Subsystems: The subsystem names assigned to Okta audit events
    7. Conditions:
      1. Alert when: Notify immediately
  2. Add a unique count alert to Coralogix with the following details:
    1. Name: A user has attempted to log on from multiple locations within an hour
    2. Description: A user or service has attempted to log in via Okta from multiple geographic locations within the last hour
    3. Alert Type: Unique Count
    4. Query: _exists_:request.ipChain.geographicalContext.country AND _exists_:actor.id
    5. Applications: The application names assigned to Okta audit events
    6. Subsystems: The subsystem names assigned to Okta audit events
    7. Conditions:
      1. Unique Count By Key: request.ipChain.geographicalContext.country
      2. Max Unique Values: 1
      3. In Timeframe: 1 Hour
      4. Group Unique Count per Specific Key: Checked
      5. Group By Key: actor.id
  3. After you have done that, we recommend that you’ll take a look at this article and add the alerts mentioned in it too: 
  1. Okta Policy update
  2. OKTA – Revoke user privilege
  3. OKTA – Admin Privilege Granted
  4. Okta – access admin app event from unknown actor
  5. administrative access to Okta
  6. Okta – login from an unfamiliar country

Create Visualization

The steps mentioned above will help you detect and alert about unusual Okta activities, which will indicate malicious activity such as the one done by the LAPSUS$ hacking group. In addition, you can build the following table visualization in Kibana and use it to examine the Okta logs from the past 24 hours to see if there was any alarming activity:

  1. Click on the menu button to the right of ‘All subsystems’ at the top right corner of the Coralogix UI and select “Kibana”
  2. Click on “Visualize” and then on “Create new visualization”
  3. Select “Data Table” visualization type
  4. Under “Metrics,” change the Metric aggregation from “Count” to “Unique Count” and set the field to “request.ipChain.geographicalContext.country.keyword”
  5. Set the “Custom label” to “Countries”
  6. Under “Buckets,” click “Add” and select “Split rows”
  7. In the “Aggregation” field, select “Terms” and set the field to “actor.id.keyword” and set “Size” to the number of Okta users you have
  8. Under “Buckets,” click “Add” and select “Split rows” again
  9. In the “Aggregation” field, select “Terms” and set the field to “actor.displayName.keyword” and set “Size” to the number of Okta users you have
  10. Click the blue “Apply Changes” button (looks like a blue triangle at the top)
  11.  In the “Options” tab set the number of results per page to a number that will make the visualization useful for you.
  12. Click the “Save” button at the top. Now you can add this visualization to any Kibana dashboard that you’d like

You can now check the number of source countries per user across the selected time range at the top right. If you find a user that has connected from multiple locations, especially if this user is a privileged user, you can use this visualization to investigate the behavior of this user in the past to see if this is a new behavior.

If you have any further questions and need assistance, you can reach out to our 24×7 support team via the in-app chat.

Observability and Security
that Scale with You.