Pull data from the Sophos API
Overview
Get a list of events through the Sophos 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:
sophosClientIdwill reference your Salesforce client ID.sophosClientSecretwill reference your Salesforce client secret.
To do it, click Add element and enter a Name for the secret (in this case, sophosClientId). 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 sophosClientSecret.
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 -
5mOffset -
5mFormat -
Epoch
Authentication
Toggle ON to configure the authentication phase.
Type -
tokenToken Retrieve Based Authentication
Request
Method -
POSTURL -
https://id.sophos.com/api/v2/oauth2/tokenHeaders
Name -
AcceptValue -
application/jsonName -
Content-TypeValue -
application/x-www-form-urlencoded
Body Type -
urlEncodedBody Params
Name -
grant_typeValue -
client_credentialsName -
client_idValue -
${secrets.sophosClientId}Name -
client_secretValue -
${secrets.sophosClientSecret}Name -
scopeValue -
token
Token path -
.access_tokenAuth injection
In -
headerName -
AuthorizationPrefix -
'Bearer 'Suffix -
''
Enumeration Phase
Toggle ON and configure the following:
Pagination Type -
NoneRequest
Response Type -
JSONMethod -
GETURL -
https://api.central.sophos.com/whoami/v1Headers
Name -
AcceptValue -
application/jsonName -
Accept-EncodingValue -
gzip, deflateName -
Content-TypeValue -
application/jsonName -
Cache-ControlValue -
no-cache
Output
Select -
.Filter -
.Map -
.Output Mode -
element
Collection Phase
Inputs
Name -
tenantIdExpression -
.idName -
dataRegionURLExpression -
.apiHosts.dataRegion
Pagination Type -
CursorCursor Selector -
.next_cursorInitial Request
Response Type -
JSONMethod -
GETURL -
${inputs.dataRegionURL}/siem/v1/events
Headers
Name -
AcceptValue -
application/jsonName -
Accept-EncodingValue -
gzip, deflateName -
X-Tenant-IDValue -
${inputs.tenantId}
Query Params
Name -
from_dateValue -
${temporalWindow.from}
Next Request
Response Type -
JSONMethod -
GETURL -
${inputs.dataRegionURL}/siem/v1/events
Headers
Name -
AcceptValue -
application/jsonName -
Accept-EncodingValue -
gzip, deflateName -
X-Tenant-IDValue -
${inputs.tenantId}
Query Params
Name -
cursorValue -
${pagination.cursor}
Output
Select -
.itemsFilter -
.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?

