REST API
Colander
A Python 3 library abstracting the REST API of Colander is available on GitHub.
To use it, you have to specify your Colander API key you can find in your profile.
Installation
Basic usage
Find more details on GitHub.
Threatr
Threatr is a bridge between Colander and various 3rd-party services such as VirusTotal and OTX Alien Vault. Even if it is designed to operate along with Colander, Threatr can be used standalone and users can interact with it via its REST API.
By now, Threatr supports requests on the following types of observables:
IPV4
IPV6
DOMAIN
MD5
SHA1
SHA256
And can return various types of information such as threats, VirusTotal detection score or reports.
Threatr propagates user’s requests to the different configured 3rd-parties and returns the aggregated entities along with the knowledge graph linking the different found entities with the requested one. Threatr stores the results in its internal database and will always return the data already stored unless the attribute force
is set to true
. By forcing the refresh of the data, Threatr will propagate the user’s request to all the different 3rd-party configured.
The retrieval of the data from the 3rd-party is done asynchronously. Thus, it is necessary to replay the same request until the status is no longer ENQUEUED
.
Danger
Do not forget to reset the attribute force
to false
or Threatr will be constantly requesting the same information to the 3rd-party.
Once Threatr has retrieved all the information from the different 3rd-party, it will return a JSON document following this structure:
root_entity
: the requested entityentities
: the list of all retrieved entities (DNS records, etc.)events
: the list of all retrieved events (Passive DNS, etc.)relations
: the knowledge graph linking the entities all together,root_entity
includedgraph
: the Mermaid definition of the knowledge graph
Users can ask Threatr for threat intelligence by sending POST HTTP requests. In the following example, we ask Threatr to get threat intelligence about a given SHA256 observable.
It returns a document JSON looking like: