We use a piece of software called Collector Server to host and manage all our available collectors. To enable the collector for a customer: In the Collector Server GUI, access the domain in which you want this instance to be created Click Add Collector and find the one you wish to add. In the Version field, select the latest value. In the Collector Name field, set the value you prefer (this name must be unique inside the same Collector Server domain). In the sending method select Direct Send. Direct Send configuration is optional for collectors that create Table events, but mandatory for those that create Lookups . In the Parameters section, establish the Collector Parameters as follows below:
Editing the JSON configuration Code Block |
---|
{
"global_overrides": {
"debug": <debug_status>
},
"inputs": {
"recorded_future": {
"id": "<short_unique_id>",
"enabled": <input_status>,
"requests_per_second": <requests_per_second_value>,
"base_url": <url_value>,
"credentials":{
"api_token": "<api_token_value>"
},
"services": {
"lookup_puller": {
"types": <list_of_sources>
}
}
}
}
} |
Info |
---|
All defined service entities will be executed by the collector. If you do not want to run any of them, just remove the entity from the services object. |
Please replace the placeholders with real world values following the description table below: Parameter | Data Type | Type | Value Range / Format | Details | debug_status
| bool
| Mandatory
| false / true
| If the value is true , the debug logging traces will be enabled when running the collector. If the value is false , only the info , warning and error logging levels will be printed. | short_unique_id
| int
| Mandatory
| Minimum length: 1 Maximum length: 5 | Use this param to give an unique id to this input service. Note |
---|
This parameter is used to build the persistence address, do not use the same value for multiple collectors. It could cause a collision. |
| input_status
| bool
| Mandatory
| false / true
| If the value is true , the input definition will be executed. If the value is false , the service will be ignored. | requests_per_second_value
| int
| Optional
| Minimum value: 1 | Customize the maximum number of API requests per second. If not used, the default setting will be used: 100000 requests/sec. This parameter should be removed if it is not used. | url_value
| str
| Mandatory
| The URL must comply with the following format: https://api.recordedfuture.com/v2/{0}/risklist?format=csv/splunk
| Use this param to define the URL used by the collector to pull data. Take into account that {0} is a placeholder for data type . This parameter is used for ip , hash , domain , url and vulnerability data sources. | api_token_value
| str
| Mandatory
| Minimum length: 1 | Set up here your access token provided by Recorded Future. | list_of_sources
| array
| Mandatory
| Minimum data sources: 1 | This configuration allows you to define what data sources will be pulled. Keep in mind that each data source has different refresh times associated with it: How to pull all available data sources: For pulling all available data sources you just need to define the array as follows: Code Block |
---|
[
"ip",
"hash",
"domain",
"url",
"vulnerability",
"PublicUkraineRussiaIps"
]
|
How to pull specific data sources: For pulling a specific list of sources, you just need to remove them from the previous one and define those that you need. For example to pull pull hash and PublicUkraineRussiaIps sources you can define the array as follows: Code Block |
---|
[
"hash",
"PublicUkraineRussiaIps"
] |
|
Rw tab |
---|
title | On-premise collector |
---|
|
This data collector can be run in any machine that has the Docker service available because it should be executed as a docker container. The following sections explain how to prepare all the required setup for having the data collector running. StructureThe following directory structure should be created for being used when running the collector: Code Block |
---|
<any_directory>
└── devo-collectors/
└── <product_name>/
├── certs/
│ ├── chain.crt
│ ├── <your_domain>.key
│ └── <your_domain>.crt
├── state/
└── config/
└── config.yaml |
Note |
---|
Replace <product_name> with the proper value. |
Devo credentialsIn Devo, go to Administration → Credentials → X.509 Certificates, download the Certificate, Private key and Chain CA and save them in <product_name>/certs/ . Learn more about security credentials in Devo here. Note |
---|
Replace <product_name> with the proper value. |
Editing the config.yaml file Code Block |
---|
| globals:
debug: <debug_status>
id: <collector_id>
name: <collector_name>
persistence:
type: filesystem
config:
directory_name: state
outputs:
devo_1:
type: devo_platform
config:
address: <devo_address>
port: 443
type: SSL
chain: <chain_filename>
cert: <cert_filename>
key: <key_filename>
inputs:
recorded_future:
id: <input_id>
enabled: <input_status>
requests_per_second: <requests_per_second>
base_url: <base_url>
api_token: <api_token_value>
services:
lookup_puller:
# Intelligence Types Not Required Can Be Removed / Commented Out
types:
- <list_of_sources> |
Info |
---|
All defined service entities will be executed by the collector. If you do not want to run any of them, just remove the entity from the services object. |
Replace the placeholders with your required values following the description table below: Parameter | Data Type | Type | Value Range | Details | debug_status
| bool
| Mandatory
| false / true
| If the value is true , the debug logging traces will be enabled when running the collector. If the value is false , only the info , warning and error logging levels will be printed. | collector_id
| int
| Mandatory
| Minimum length: 1 Maximum length: 5 | Use this param to give an unique id to this collector. | collector_name
| str
| Mandatory
| Minimum length: 1 Maximum length: 10 | Use this param to give a valid name to this collector. | devo_address
| str
| Mandatory
| collector-us.devo.io
collector-eu.devo.io
| Use this param to identify the Devo Cloud where the events will be sent. | chain_filename
| str
| Mandatory
| Minimum length: 4 Maximum length: 20 | Use this param to identify the chain.cert file downloaded from your Devo domain. Usually this file's name is: chain.crt | cert_filename
| str
| Mandatory
| Minimum length: 4 Maximum length: 20 | Use this param to identify the file.cert downloaded from your Devo domain. | key_filename
| str
| Mandatory
| Minimum length: 4 Maximum length: 20 | Use this param to identify the file.key downloaded from your Devo domain. | input_id
| int
| Mandatory
| Minimum length: 1 Maximum length: 5 | Use this param to give an unique id to this input service. Note |
---|
This parameter is used to build the persistence address, do not use the same value for multiple collectors. It could cause a collision. |
| input_status
| bool
| Mandatory
| false / true
| If the value is true, the input definition will be executed. If the value is false, the service will be ignored. | requests_per_second
| int
| Optional
| Minimum value: 1 | Customize the maximum number of API requests per second. If not used, the default setting will be used: 100000 requests/sec. Info |
---|
This parameter should be removed if it is not used. |
| base_url
| str (with placesholders)
| Mandatory
| The URL must comply with the following format: https://api.recordedfuture.com/v2/{0}/risklist?format=csv/splunk
| Use this param to define the URL used by the collector to pull data. Take into account that {0} is a placeholder for data type . Info |
---|
This parameter is used for ip , hash , domain , url and vulnerability data sources. |
| api_token_value
| str
| Mandatory
| Minimum length: 1 | Set up here your access token provided by Recorded Future. | list_of_sources
| list of str (in yaml format)
| Mandatory
| Minimum data sources: 1 | This configuration allows you to define what data sources will be pulled. Info |
---|
Keep in mind that each data source has different refresh times associated with it: |
How to pull all available data sources: For pulling all available data sources you just need to define the array as follows: Code Block |
---|
types:
- ip
- hash
- domain
- url
- vulnerabilitiy
- PublicUkraineRussiaIps |
How to pull specific data sources: For pulling a specific list of sources, you just need to remove them from the previous one and define those that you need. For example to pull pull hash and PublicUkraineRussiaIps sources you can define the array as follows: Code Block |
---|
types:
- hash
- PublicUkraineRussiaIps |
|
Download the Docker imageThe collector should be deployed as a Docker container. Download the Docker image of the collector as a .tgz file by clicking the link in the following table: Use the following command to add the Docker image to the system: Code Block |
---|
gunzip -c <image_file>-<version>.tgz | docker load |
Note |
---|
Once the Docker image is imported, it will show the real name of the Docker image (including version info). Replace <image_file> and <version> with a proper value. |
The Docker image can be deployed on the following services: DockerExecute the following command on the root directory <any_directory>/devo-collectors/<product_name>/ Code Block |
---|
docker run
--name collector-<product_name>
--volume $PWD/certs:/devo-collector/certs
--volume $PWD/config:/devo-collector/config
--volume $PWD/state:/devo-collector/state
--env CONFIG_FILE=config.yaml
--rm
--interactive
--tty
<image_name>:<version> |
Note |
---|
Replace <product_name> , <image_name> and <version> with the proper values. |
Docker ComposeThe following Docker Compose file can be used to execute the Docker container. It must be created in the <any_directory>/devo-collectors/<product_name>/ directory. Code Block |
---|
version: '3'
services:
collector-<product_name>:
image: <image_name>:${IMAGE_VERSION:-latest}
container_name: collector-<product_name>
volumes:
- ./certs:/devo-collector/certs
- ./config:/devo-collector/config
- ./credentials:/devo-collector/credentials
- ./state:/devo-collector/state
environment:
- CONFIG_FILE=${CONFIG_FILE:-config.yaml} |
To run the container using docker-compose, execute the following command from the <any_directory>/devo-collectors/<product_name>/ directory: Code Block |
---|
IMAGE_VERSION=<version> docker-compose up -d |
Note |
---|
Replace <product_name> , <image_name> and <version> with the proper values. |
|