Cylance was a pioneer in cybersecurity AI, replacing legacy antivirus software with preventative solutions and services that protect the endpoints—and businesses. While other security providers claim to use AI in their products, they fall short of the full promise of AI to prevent future cyberattacks.
First, get your Cylance application details
Log into your Cylance console as an Administrator
Select "Settings" and click "Integrations"
Click "Add application"
Name the application "Tines"
Provide the access privileges for the actions you want to be able to take in Tines:
- device:list
- threat:read
- threat:devicelistClick "Save" and copy the "Application ID" and "Application secret".
Next, create a Cylance credential in Tines
Login to your Tines tenant
Navigate to the team that will be using the API and click "Credential"
Click "+ New Credential" and select "JWT"
Input the values for the credential
Name: Required
Description: Optional
Algorithm: HS256
Payload:
iss: Represents the principal issuing the token, which is http://cylance.com
jti: Unique ID for the token, which can be used to prevent reply attacks. This can be a random string
sub - Principal subject to the claim, which would hold your Cylance "Application ID".
exp:
<<DATE(\\"now\\", \\"%s\\") |> PLUS(%, 1800)>>
iat:
<<DATE(\\"now\\", \\"%s\\")>>
HMAC Secret: "Application Secret" copied earlier
Important Note: Do not choose the option to automatically generate these values in Tines. Use the DATE() formula to generate both exp
and iat
.
Using the credential in an action
Exchange the JWT credential for a Cylance access token using the Auth Token action below as the first step in your story:
{"standardLibVersion":"28","actionRuntimeVersion":"4","agents":[{"disabled":false,"name":"Auth Token","description":null,"options":"{\"url\":\"https://protectapi.cylance.com/auth/v2/token\",\"method\":\"post\",\"payload\":{\"auth_token\":\"<<CREDENTIAL.cylance>>\"},\"content_type\":\"json\"}","position":{"x":375,"y":240},"type":"httpRequest","timeSavedUnit":"minutes","timeSavedValue":0,"monitorAllEvents":false,"monitorFailures":false,"monitorNoEventsEmitted":null,"recordType":null,"recordWriters":[],"form":null,"cardIconName":null,"createdFromTemplateGuid":null,"createdFromTemplateVersion":null}],"links":[],"diagramNotes":[]}
For more on creating credentials in Tines, click here.
You can find a selection of Cylance stories in the story library.