ThreatQ improves the efficiency and effectiveness of existing security operations by fusing disparate data sources, tools, and teams to accelerate threat detection and response.
First, get ThreatQ OAuth Client Credentials
Hosted deployment
Contact support@threatq.com to have a ticket created to generate OAuth Client Credentials using the name “Tines"
On-Premise deployment
SSH into your ThreatQ instance
Run
cd /var/www/api
Run
sudo php artisan threatq:oauth2-client --name "Tines"
Copy the credentials to a text editor
Lastly, create a ThreatQ resource and credentials in Tines
Resource
Login to your Tines tenant
Navigate to the team that will be using the API and click "Resource"
Click "+ New Resource"
Input the values for the ThreatQ resource
Name: ThreatQuotient Domain
Description: Optional
Builder: Your ThreatQ instance hostname, i.e.
tenant.threatq.online
Optional
Access: What other teams can also use the resource
Click "Save resource"
Text type credential
Navigate to the team that will be using the API and click "Credentials"
Click "+ New Credential" and select "Text"
Input the values for the ThreatQ credential
Name: ThreatQ Client Secret
Description: Optional
Value: Your ThreatQ OAuth Client Secret
Optional
Domains: Ensure this credential can only be used when making HTTP requests to specific domains.
Access: What other teams can also use the API
Click "Save"
HTTP request type credential
Click "+ New Credential" and select "HTTP Request"
Input the values for the ThreatQ credential
Name: ThreatQuotient
Description: Optional
URL:
https://<<RESOURCE.threatquotient_domain>>/api/token?grant_type=client_credentials
Content Type: JSON
Method: post
Headers:
Accept: application/json
Basic auth:
Username: ThreatQ OAuth Client ID
Password:
<<CREDENTIAL.threatq_client_secret>>
Click "Run options", navigate to the
access_token
key and double click on the keyLocation of token from response: Paste the path to the token in the value pill,
<<threatquotient.body.access_token>>
TTL: 3599
Optional
Domains: Ensure this credential can only be used when making HTTP requests to specific domains
Access: What other teams can also use the API
Click "Save"
Your credential should look like the following:
More on creating credentials in Tines here.
You can also find a selection of ThreatQ stories in the story library.