This guide will go through installation and basic configuration for Synapse.
sudo pip3 install -r requirements.txt
Before filling in the configuration file, create a new user in TheHive for Synapse with the following details:
Login: synapse
Full name: synapse
Roles: read, write
Additional Permissions: ✓ Allow alerts creation
And create an API Key.
Now edit the configuration file located at Synapse/conf/synapse.conf
.
The [api]
section is related to the flask API settings. You can keep it as it is for debug
, host
, threaded
value. You may want to change the default port 5000
.
[api]
debug:False
host:0.0.0.0
port:5000
threaded:True
In this section, put in TheHive's url and the API Key previously created.
[TheHive]
url:http://127.0.0.1:9000
user:synapse
api_key:r4n0O8SvEll/VZdOD8r0hZneOWfOmth6
Basic configuration for Synapse is done.
To configure workflows, head to the workflows page.
To start Synapse, run:
python3 app.py
If you'd like to go live with Synapse, it is advised to use a WSGI server. Have a look at the excellent tutorial from Miguel Grinberg here and especially the section named "Setting Up Gunicorn and Supervisor".