Idira Identity Security Platform Integration for Elastic

Version 0.1.0 (View all)
Managed integration release status
Subscription level
What's this?
Basic
Developed by
What's this?
Elastic
Ingestion method(s) API
Minimum Kibana version(s) 9.4.0
Important - Managed integrations on Elastic Cloud Hosted

You can use this integration as an Elastic Managed integration on Elastic Cloud Hosted deployments running this version or later.

The Idira Identity Security Platform integration v0.1.0 is in technical preview

To use pre-release integrations, go to the Integrations page in Kibana, scroll down, and toggle on the Display beta integrations option.

The Idira Identity Security Platform integration for Elastic collects audit events from the Idira Identity Security Platform Audit Service. The Audit Service records activity from all services on the platform in one audit trail, including CyberArk Identity, Privilege Cloud, Secure Infrastructure Access and Identity Threat Detection and Response.

Use this integration if your CyberArk services run on the Idira Identity Security Platform (formerly CyberArk Identity Security Platform, also called ISPSS). For other CyberArk products, use these integrations instead:

  • Endpoint Privilege Manager (EPM): the CyberArk EPM integration collects the endpoint events, policy audit events and admin audit events from the EPM API. The Audit Service can also send EPM administration events (for example, an administrator views a set or a policy), and this integration collects those.
  • Self-hosted Privileged Access Security (PAS) Vault: the CyberArk Privileged Access Security integration.
  • Self-hosted Privileged Threat Analytics (PTA): the CyberArk PTA integration.

This integration uses the Idira Identity Security Platform SIEM integration API (/api/audits/stream). It has been tested against an Idira Identity Security Platform tenant with the CyberArk Identity and Endpoint Privilege Manager services. The parsing of Privilege Cloud, Secure Infrastructure Access and Identity Threat Detection and Response events is based on the CyberArk documentation and sample events, not on events from a live tenant.

Elastic Agent gets an OAuth2 access token from your CyberArk Identity tenant with the client credentials flow. It then creates a stream query on the Audit Service and reads the results page by page. The Audit Service returns a cursor with each page. Elastic Agent stores the cursor and uses it on the next poll to read only the new events.

The Audit Service keeps events for 7 days. On the first run, the integration collects events from the period set in Initial Interval (at most 7 days).

The Idira Identity Security Platform integration collects log messages of the following types:

  • audit: audit events from all services that send to the CyberArk Audit Service, for example:
    • CyberArk Identity: sign-ins, sign-outs, failed sign-ins, MFA challenges, OAuth token creation, user, role, and application changes, and provisioning.
    • Privilege Cloud: vault sign-ins, password retrieval and changes, safe and owner changes, and privileged sessions.
    • Secure Infrastructure Access: privileged session start, end, and failure.
    • Identity Threat Detection and Response: security alerts.
    • Endpoint Privilege Manager: administration events, such as views of sets and policies.

Use this integration to monitor identity and privileged access activity across the Idira Identity Security Platform in one place. For example, detect sign-in failures and MFA misuse, track changes to administrative rights and roles, audit access to privileged credentials, and investigate CyberArk threat detection alerts together with your other security data.

  • A Idira Identity Security Platform tenant.
  • An administrator who can create web apps, users, and roles in Identity Administration, and create a SIEM integration in the administration portal.
  • A free SIEM integration slot. A tenant can have at most two third-party SIEM integrations.

Elastic Agent must be installed. For more details, check the Elastic Agent installation instructions. You can install only one Elastic Agent per host.

Elastic Agent is required to collect data from the CyberArk API and ship the data to Elastic, where the events will then be processed via the integration's ingest pipelines.

Elastic Managed integrations are only supported on Elastic Cloud Serverless and Elastic Cloud Hosted deployments. An Elastic Managed integration lets you ingest data from a cloud source while avoiding the orchestration, management, and maintenance associated with standard ingest infrastructure. Elastic runs the collector for you, so you can focus on your data instead of the infrastructure that collects it. This functionality is in beta and is subject to change. Beta features are not subject to the support SLA of official GA features.

For more information, refer to Elastic Managed integrations and the Elastic Managed integrations FAQ.

Menu names can be different in your portal version. Newer portals group the menus under Access, Manage and Setup.

  1. Create an OAuth2 Server web app:
    1. In Identity Administration, go to Apps & Widgets → Web Apps and click Add Web Apps.
    2. On the Custom tab, add OAuth2 Server.
    3. On the Settings tab, set the Application ID, for example elastic_siem. This is the Application ID in the integration settings.
    4. On the Tokens tab, set Token Type to jwtRS256 and select only the Client Creds authentication method. Set the token lifetime, for example 5 hours.
    5. On the Scope tab, add a scope named isp.audit.events:read.
    6. On the Advanced tab, add this script. The Audit Service does not accept the token without these claims.
      setClaim('tenant_id', TenantData.Get("CybrTenantID"));
      setClaim('aud', 'cyberark.isp.audit');
      		
    7. Save the web app.
  2. Create a service user:
    1. Go to Core Services → Users and click Add User.
    2. Enable Is service user and Is OAuth confidential client.
    3. Note the full login name, including the tenant suffix, for example svc_elastic@cyberark.cloud.1234, and the password. These are the Client ID and Client Secret in the integration settings. Service users do not get an invitation, so the status Not invited is normal.
  3. On the Permissions tab of the web app, add the service user with the Grant, View, Run and Automatically Deploy permissions.
  4. Give the service user the Read Only System Administration administrative right. CyberArk documents that without this right, queries return no events. Go to Core Services → Roles, add a role, add the Read Only System Administration right on the Administrative Rights tab, and add the service user on the Members tab.
  5. Create a SIEM integration:
    1. In the administration portal, go to Integrations → Export to SIEM, then click Create → Create SIEM integration.
    2. Enter a name and click Apply.
    3. Copy the API key and the API base URL. The API key is shown only once. These are the SIEM API Key and Audit API URL in the integration settings.
  6. Note your Identity ID: in Identity Administration, click your user name, select About, and copy the ID shown under Identity, for example ACF4874.
  1. In Kibana, go to Management → Integrations.
  2. Search for Idira Identity Security Platform and select the integration.
  3. Click Add Idira Identity Security Platform.
  4. Enter the Audit API URL, SIEM API Key, Identity ID, Application ID, Client ID and Client Secret from the CyberArk setup.
  5. Optionally change Interval and Initial Interval. The Audit Service keeps events for 7 days, so an Initial Interval larger than 168h is reduced to 168h.
  6. Save the integration.
  1. Sign in to the CyberArk portal to create a new audit event.
  2. In Kibana, go to Discover and select the logs-* data view.
  3. Filter on data_stream.dataset : "idira_identity_security_platform.audit". Events appear after the next poll.
  • Token request fails with 400 and access_denied: make sure Client ID is the full login name of the service user, including the tenant suffix (for example svc_elastic@cyberark.cloud.1234).
  • Token request fails with an empty or wrong secret: check that Client Secret is the current password of the service user.
  • createQuery fails with 403 and the message Forbidden: the Audit Service did not accept the API key. Check that SIEM API Key is the key of the SIEM integration and that Audit API URL is the API base URL of the same SIEM integration.
  • Audit API requests fail with 401 and the message Unauthorized: the Audit Service did not accept the access token. Check that the web app has the isp.audit.events:read scope and the advanced script with the tenant_id and aud claims, and that the service user has the web app permissions.
  • A document with the error.message "request rejected (cursor or API key not accepted), a new query starts on the next poll": the Audit Service answered 400 or 403 to a results request. The usual cause is a stored cursor that is no longer valid. On the next poll, the integration creates a new query that starts 5 minutes before the time of the last collected event, because the Audit Service does not return events in exact time order. Events that are collected again are not duplicated, because the document ID comes from the event ID. If the next poll gives a createQuery error with 403 and Forbidden, the cause is the API key, not the cursor.
  • No events are collected and there are no errors: give the service user the Read Only System Administration right.
  • Events older than 7 days are missing: the Audit Service keeps events for 7 days only. If Elastic Agent stops for longer than that, the older events cannot be collected.

CyberArk documents that the stream APIs can be called once a minute. The integration polls every Interval (default 5m) and limits its request rate with Resource Rate Limit (default one request a second) and Resource Rate Limit Burst. If CyberArk returns a rate limit error (429), Elastic Agent retries the request with exponential backoff: up to Resource Retry Max Attempts retries (default 5), waiting from Resource Retry Wait Min (default 1s) up to Resource Retry Wait Max (default 60s), and following the Retry-After header when CyberArk sends one. If the retries also fail, the integration indexes an error document and tries again on the next poll, from the same position. If rate limit errors continue, set Resource Rate Limit to 0.0167 to make no more than one request a minute.

Each page has at most the number of events set in Page Size (default 100, maximum 500). Large page sizes can fail with NonTimeBasedRetrieval: Response size too big on first page, so keep the default unless you need more throughput.

For more information on architectures that can be used for scaling this integration, check the Ingest Architectures documentation.

These inputs can be used with this integration:

To collect logs via API endpoint, configure the following parameters:

  • API Endpoint URL
  • API credentials (tokens, keys, or username/password)
  • Request interval (how often to fetch data)

These APIs are used with this integration:

  • POST https://<identity_id>.id.cyberark.cloud/oauth2/token/<application_id>: gets an OAuth2 access token.
  • POST <audit_url>/api/audits/stream/createQuery: creates a stream query and returns a cursor.
  • POST <audit_url>/api/audits/stream/results: returns a page of audit events and the next cursor.

For details, refer to the SIEM integration API documentation.

The audit data stream provides audit events from the Idira Identity Security Platform Audit Service, for all services that send audit events to it.