okta/sso

VendorOkta, Inc.
AuthorCrowdStrike
Version1.1.0
Minimum LogScale Version1.142.0

This package provides a parser for Okta events in JSON format.

Breaking Changes

This update includes parser changes, which means that data ingested after upgrade will not be backwards compatible with logs ingested with the previous version.

Updating to version 1.0.0 or newer will therefore result in issues with existing queries in for example dashboards or alerts created prior to this version.

See CrowdStrike Parsing Standard (CPS) 1.0 for more details on the new parser schema.

Follow the CPS Migration to update your queries to use the fields and tags that are available in data parsed with version 1.0.0.

Installing the Package in LogScale

Find the repository where you want to send the Okta events, or create a new one.

  1. Navigate to your repository in the LogScale interface, click Settings and then Packages on the left.

  2. Click Marketplace and install the LogScale package for Okta SSO (i.e. okta/sso).

  3. When the package has finished installing, click Ingest tokens on the left (still under the Settings, see Figure 34, “Ingest Token”). See Ingest Tokens for more information on ingest tokens.

  4. In the right panel, click + Add Token to create a new token. Give the token an appropriate name (e.g. the name of the server the token is ingesting logs for), and assign the okta-sso parser to it or leave the parser unassigned if you intend to assign the parser separately, for example during the LogScale Collector configuration phase.

    Ingest token

    Figure 34. Ingest Token


    Before leaving this page, view the ingest token and copy it to your clipboard — to save it temporarily elsewhere.

  5. Now that you have a repository set up in LogScale along with an ingest token you're ready to send logs to LogScale.

Configurations and sending the logs to LogScale

First you need to configure the Okta Log Streaming™ to send the events to AWS EventBridge™. For that, in the OKTA Administration Console navigate to Reports then Log Streaming where you will be given an option to add feeds. Configure a feed to send all Okta events to Falcon LogScale.

Feeds

Figure 35. Feeds


  1. To complete the Log Stream configuration specify the event source name and AWS details, like; AWS account id and region:

    AWS EventBridge

    Figure 36. AWS EventBridge


  2. Once you've completed the configuration in Okta, login to the AWS Console to verify that the feed was created. Navigate to Amazon EventBridge™ and click Partner Event Source to see details. As shown in the screen-shot below the feed was successfully created:

    Partner event sources

    Figure 37. Partner event sources


  3. In the next step we will configure the aws.partner/okta.com/crowdstrike-nfr/OktaLogsEB Partner Event Source to send all Okta log events to the LogScale. Click Rules in the left navigation panel of the Amazon EventBridge™.

    Rules

    Figure 38. Rules


  4. Create a Rule for our Event bus and name it. In the Event pattern tab, add the JSON formatted Event Pattern matching Okta Log Stream events for all events:

    {  "source": [{"prefix": "aws.partner/okta.com"}],  }
  5. Click here to read more about event patterns.

    Event patterns

    Figure 39. Event patterns


  6. The final step is to configure the API destination for the LogScale cluster. Click on the Create API destination button under the API Destinations of the Amazon EventBridge™.

    Specify:

    • Name, for example: LogScaleSACluster

    • API destination endpoint in format https://<your-logscale-cluster>/api/v1/ingest/raw/<ingest-token>

      Where: <your-logscale-cluster> needs to be a valid FQDN of your LogScale instance and <ingest-token> is Ingest Tokens the assigned to the okta-sso parser.

      For example: https://sa-cluster.humio-support.com/api/v1/ingest/raw/4264f1f1-919f-4eed-a53d-1234567

    • HTTP method - select POST

    • Connection, select create a new one where you must:

      • Insert a name which helps you to identify the connection.

      • Set the authorization type to API Key and paste the ingest token for your repository, see Ingest Tokens for more information on ingest tokens.

      Create Connection

      Figure 40. Create Connection


      Create Connection Details

      Figure 41. Create Connection Details


  7. Set the Target of your Rule to the API Destination of your LogScale instance

    Okta Logs EB

    Figure 42. Okta Logs EB


Verify Data is Arriving in LogScale

Once you have completed the above steps the Okta SSO data should be arriving in your LogScale repository.

You can verify this by doing a simple search for #event.module = "sso" | #Vendor = "okta" to see the events.

Next Steps and Use Cases

You can get actionable insights from your Okta data by hunting for suspicious activity in LogScale using the search UI, dashboards or alerts.

Some specific example of suspicious activity is admin activity from multiple IP addresses within a few hours or from unexpected ASN / IP ranges. Another thing to keep an eye on is Okta MFA disablement.

You can set up a table showing it using the following query:

#Vendor = "okta"
| #event.module = "sso"
| IN(field=event.action, values=["user.mfa.factor.deactivate", system.mfa.factor.deactivate, user.mfa.factor.reset_all, user.mfa.factor.suspend])
| groupBy([user.name], function=([max(@timestamp, as=latest), min(@timestamp, as=earliest), collect([Vendor.outcome.reason, user.target.name, event.action, client.as.organization.name, client.ip, Vendor.displayMessage, user_agent.original]), count(user.name, as=count)]))
| formatTime("%Y/%m/%d %H:%M:%S", as=earliest, field=earliest, locale=en_US, timezone=Z)
| formatTime("%Y/%m/%d %H:%M:%S", as=latest, field=latest, locale=en_US, timezone=Z)
| format(format="%s %s", field=[client.ip, user.name], as="throttle")
| table([user.name, user.target.name, client.ip, user_agent.original, earliest, latest, Vendor.displayMessage, event.action, Vendor.outcome.reason, count, client.as.organization.name])

Also try

#Vendor = "okta"
| #event.module = "sso"
| (event.action = "core.user.impersonation.session.initiated" OR Vendor.legacyEventType="core.user.impersonation.session.initiated")
| NOT (user.name = *your_custom_domain_here)
| groupBy([source.user.name, user.target.name, Vendor.displayMessage, Vendor.authenticationContext.externalSessionId, @timestamp ])
| rename(Vendor.authenticationContext.externalSessionId, as=sessionID)