Pull data from the CyberArk API
Overview
Get a list of CyberArk events through the CyberArk's REST API using the HTTP Pull Listener.
HTTP Pull Listener configuration
In Falcon Onum, go to the Listeners area and click New Listener > HTTP Pull. Give a name to your new Listener and enter the following data:
Parameters
N/A
Secrets
You must define these credentials in Onum:
auh_tokenwill reference your CyberArk authentication token.api_keywill reference your CyberArk API Key.
To do it, click Add element and enter a Name for the secret (in this case, auth_token). Then, click the Value field and select New secret to create a new one:
Give the secret a Name.
Turn off the Expiration date option.
Click Add new value and paste the secret corresponding to the value.
Click Save.
You can now select the secret you just created in the Value field list. Repeat the process for the api_key.
Learn more about secrets in Onum in this article.
Setup
After entering the required parameters and secrets, you can choose to manually enter the rest of configuration fields, or simply paste the given YAML:
Toggle ON the Config as YAML option to enable a free text field where you can paste the following YAML:
Temporal Window
Toggle ON to add a temporal window for events. This repeatedly shifts the time window over which data is collected.
Duration -
1mOffset -
1mFormat -
RFC3339
Authentication
Toggle ON and configure these parameters:
Type* -
TokenToken Retrieve Based Authentication
Request
Method* -
POSTURL* -
https://abd4962.id.cyberark.cloud/OAuth2/Token/OnumCrowdStrike
Headers
Name -
AcceptValue -
application/jsonName -
AuthorizationValue -
Basic ${secrets.auth_token}Name -
Content-TypeValue -
application/x-www-form-urlencoded
Body Type* -
URLEncodedBody Params
Name -
grant_typeValue -
client_credentialsName -
scopeValue -
isp.audit.events:read
Token path* -
.access_tokenAuth Injection
In* -
HeaderName* -
AuthorizationPrefix -
'Bearer 'Suffix -
''
Enumeration Phase
Toggle ON and configure these parameters:
Pagination Type* -
NoneRequest
Response Type* -
JSONMethod* -
POSTURL* -
https://cmpc.audit.cyberark.cloud/api/audits/stream/createQueryHeaders
Name -
AcceptValue -
application/jsonName -
Accept-EncodingValue -
gzip, deflateName -
Content-TypeValue -
aplication/jsonName -
x-api-keyValue -
${secrets.apikey}
Body Type* -
RawBody Content -
Output
Select* -
.Map -
.Output Mode* -
element
Collection Phase
Name -
cursorRefExpression -
.cursorRefFormat -
''Pagination Type* -
CursorCursor Selector* -
.paging.cursor.cursorRefInitial Request
Response Type* -
JSONMethod* -
POSTURL* -
https://cmpc.audit.cyberark.cloud/api/audits/stream/resultsHeaders
Name -
AcceptValue -
application/jsonName -
Accept-EncodingValue -
gzip, deflateName -
Content-TypeValue -
application/jsonName -
x-api-keyValue -
${secrets.apikey}
Body Type* -
RawBody Content* -
Next Request
Response Type* -
JSONMethod* -
POSTURL* -
https://cmpc.audit.cyberark.cloud/api/audits/stream/resultsHeaders
Name -
AcceptValue -
application/jsonName -
Accept-EncodingValue -
gzip, deflateName -
Content-TypeValue -
application/jsonName -
x-api-keyValue -
${secrets.apikey}
Body Type* -
RawBody Content* -
Output
Select* -
.dataFilter -
.Map -
.Output Mode* -
element
When you're done, click Create labels to move on to the next step and define the required Labels if needed.
Last updated
Was this helpful?

