Okta Workforce Identity
Copy link

Okta is an identity and single sign-on service. The Okta Workforce Identity event source is an expanded cloud event source that collects the Okta System Log and your Okta identity data (users, groups, and group members) into SIEM (InsightIDR). The event source connects to the Okta API with your Okta domain and an API token.

You choose which data to collect when you set up the event source:

  • System Log - Log data for the following event types:
    • Cloud Service Activity
    • Cloud Service Admin Activity
    • Ingress Authentication
    • Third-Party Alert
    • SSO
  • Identity (users, groups and group members) - User-specific data for user attribution. You get more fields in the UI for greater user context and visibility.

Together, these data types provide a more comprehensive view of user behavior and activity within your environment.

To set up Okta Workforce Identity:

  1. Read the requirements and complete any prerequisite steps.
  2. Configure Okta to send data to SIEM (InsightIDR).
  3. Configure SIEM (InsightIDR) to collect data from the event source.
  4. Test the configuration.

You can also:

Requirements
Copy link

To successfully configure the Okta Workforce Identity event source, you must:

  • Have an Okta administrator account with the Read-only Administrator role or higher. Okta API tokens have no scopes. A token has the permissions of the administrator who creates it, so that administrator must be able to read the System Log, users, groups, and group members.
  • Use an administrator account that is enrolled in multi-factor authentication (MFA). Rapid7 recommends that you create an Okta service account for this.
  • Use a Super Administrator account if you want to collect admin groups. Okta only lets Super Administrators read role assignments. With a Read-only Administrator token, SIEM (InsightIDR) collects the data without admin groups.
  • Use an Okta org domain that ends in .okta.com, .okta-emea.com, or .oktapreview.com. Custom domains are not supported.
  • Collect the following values over the course of this setup, which you’ll enter into SIEM (InsightIDR) at the end:
ValueExample
Okta Domainmydomain.okta.com
API Tokenopaque string

Configure Okta to send data to SIEM (InsightIDR)
Copy link

Complete these tasks to establish communication between SIEM (InsightIDR) and Okta.

ℹ️

Something not quite right?

Sometimes we’re not able to provide the most current information about other vendors. For the most up-to-date information, refer to Okta’s documentation, including:

Task 1: Find your Okta domain
Copy link

Your Okta domain is the host name of your Okta org, for example mydomain.okta.com. If you sign in to the Admin Console at mydomain-admin.okta.com, your Okta domain is mydomain.okta.com.

  • Record this value without https://. It is your Okta Domain.

Task 2: Create an API token
Copy link

Okta uses a bearer token for API authentication with a sliding scale expiration. Tokens are valid for 30 days and refresh with each API call. A token that is not used for 30 days expires. You cannot change the token lifetime for your organization. When you deactivate a user account in Okta, Okta also deprovisions the API tokens of that account.

To create the API token:

  1. Log in to Okta with the administrator account described in the requirements.
  2. Go to Security > API, and open the Tokens tab.
  3. Click Create Token. The token inherits the permissions of the user account that creates it.
  4. Follow the instructions that Okta displays to finish creating the token.
  5. Copy the token value.
    • Record this value. It is your API Token.

Configure SIEM (InsightIDR) to collect data from the event source
Copy link

Once you’ve completed the tasks above and collected the required values, you can set up the Okta Workforce Identity event source in SIEM (InsightIDR).

To configure the new event source in SIEM (InsightIDR):

  1. Click Data Collection in the left menu, and go to Event Sources.
  2. Click Add Event Source.
  3. Under the Collected By filter, select Expanded Cloud.
  4. Select the Okta Workforce Identity event source tile.
  5. Name the event source. This name will be used to name the log that contains the event data in Log Search.
  6. Click Add a New Connection.
  7. Enter the values you collected earlier in their respective fields: Okta Domain and API Token.
  8. For Product Access, select All Rapid7 Products.
  9. Click Save to save the connection.
  10. Select the data to collect. Both options are selected by default.
    • System Log collects the Okta System Log, which has authentication, single sign-on, and administrator activity events.
    • Identity (users, groups and group members) collects your Okta users, groups, and group members. SIEM (InsightIDR) uses this data for user attribution.
  11. Click Save to finalize the event source configuration.

Test the configuration
Copy link

To test that event data is flowing into SIEM (InsightIDR):

  1. Wait a few minutes, then open the Log Search page.
  2. Select the applicable Log Sets and the Log Name that matches the event source name you chose.
  3. Set the time range to Last 10 minutes, and click Run.

The Results table displays log entries received in the last 10 minutes.

Okta to SIEM (InsightIDR) status mapping
Copy link

When SIEM (InsightIDR) ingests user data, the Okta user status maps to a SIEM (InsightIDR) status. You can see the status in User Details in Users and Accounts.

Okta statusSIEM status
ActiveEnabled
ProvisionedEnabled
StagedEnabled
Locked outDisabled
RecoveryEnabled
DeprovisionedDisabled
Password expiredDisabled
SuspendedDisabled

Troubleshooting
Copy link

The connection test checks the Okta domain, the API token, and that the token can read the System Log, users, groups, and group members. If a check fails, the test shows one of these messages.

MessageCause and fix
Okta domain is missing.The Okta Domain field is empty. Enter your Okta domain, for example mycompany.okta.com.
Okta domain <domain> is not supported.The domain does not end in .okta.com, .okta-emea.com, or .oktapreview.com. Custom domains are not supported.
Could not reach <domain>.SIEM (InsightIDR) cannot connect to the domain. Check the Okta domain for typos.
Okta rejected the API token.The token is not valid or has expired. Create a new token in Task 2.
The API token can’t read <data>.The administrator who created the token does not have permission to read the System Log, users, groups, or group members. Create the token with an administrator that has the Read-only Administrator role or higher.
Okta rate limit hit.Okta is limiting requests. Try again shortly.
Okta returned HTTP <code> when reading <data>.Okta returned an unexpected error. Check the Okta domain and try again.
Okta returned an unexpected response when reading groups.Check the Okta domain and try again.

If the test passes but reports that the token cannot read admin role assignments, SIEM (InsightIDR) collects the data without admin groups. To include admin groups, create the token with a Super Administrator.

Sample logs
Copy link

In Log Search, the log that is generated uses the name of your event source by default.

The following example shows a typical Okta System Log event. The fields in your logs can differ based on the event type.

System Log event
Copy link

{ "actor": { "id": "00usc691qiqVlkrGS4x6", "type": "User", "alternateId": "jdoe@rapid7.com", "displayName": "John Doe", "detailEntry": null }, "client": { "userAgent": { "rawUserAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36 Edg/87.0.664.66", "os": "Windows 10", "browser": "CHROMIUM_EDGE" }, "zone": "null", "device": "Computer", "id": null, "ipAddress": "123.123.123.123", "geographicalContext": { "city": "Locust", "state": "North Carolina", "country": "United States", "postalCode": "12345", "geolocation": { "lat": 12.3456, "lon": 12.3456 } } }, "authenticationContext": { "authenticationProvider": null, "credentialProvider": null, "credentialType": null, "issuer": null, "interface": null, "authenticationStep": 0, "externalSessionId": "102lPQA_HRdTt-nJFsYZN8J2Q" }, "displayMessage": "Evaluation of sign-on policy", "eventType": "policy.evaluate_sign_on", "outcome": { "result": "ALLOW", "reason": "Sign-on policy evaluation resulted in ALLOW" }, "published": "2020-11-17T16:36:00.000Z", "securityContext": { "asNumber": 7018, "asOrg": "rapid7 corp.", "isp": "rapid7 services inc", "domain": "rapid7.net", "isProxy": false }, "severity": "INFO", "debugContext": { "debugData": { "deviceFingerprint": "8d7a281abc23d961872dfc3a0d129a9f", "requestId": "X-Ji56SmJCbGJJK1G7K1XwAAC8A", "requestUri": "/api/v1/authn", "threatSuspected": "false", "url": "/api/v1/authn?" } }, "legacyEventType": null, "transaction": { "type": "WEB", "id": "X-Ji56SmJCbGJJK1G7K1XwAAC8A", "detail": {} }, "uuid": "cc40cc88-4e24-11eb-9c9a-2b8966420021", "version": "0", "request": { "ipChain": [ { "ip": "123.123.123.123", "geographicalContext": { "city": "Locust", "state": "North Carolina", "country": "United States", "postalCode": "12345", "geolocation": { "lat": 12.3456, "lon": 12.3456 } }, "version": "V4", "source": null } ] }, "target": [ { "id": "00pupqnz5ePXMPvcn4x5", "type": "PolicyEntity", "alternateId": "unknown", "displayName": "Default Policy", "detailEntry": { "policyType": "OktaSignOn" } }, { "id": "0prupqo0cxJHYa6B54x5", "type": "PolicyRule", "alternateId": "00pupqnz5ePXMPvcn4x5", "displayName": "Default Rule", "detailEntry": null } ] }