Setup

Dependencies

apt install wget gnupg apt-transport-https git ca-certificates ca-certificates-java curl  software-properties-common python3-pip lsb_release

Java Virtual Machine

Installation

wget -qO- https://apt.corretto.aws/corretto.key | sudo gpg --dearmor  -o /usr/share/keyrings/corretto.gpg
echo "deb [signed-by=/usr/share/keyrings/corretto.gpg] https://apt.corretto.aws stable main" |  sudo tee -a /etc/apt/sources.list.d/corretto.sources.list
sudo apt update
sudo apt install java-common java-11-amazon-corretto-jdk
echo JAVA_HOME="/usr/lib/jvm/java-11-amazon-corretto" | sudo tee -a /etc/environment 
export JAVA_HOME="/usr/lib/jvm/java-11-amazon-corretto"

Cassandra

Installation

Edit cassandra.yaml

First we need to edit the configuration file for Cassandra by making the following changes.

Perform the following steps next:

Stop cassandra.service

Remove the old files

Start cassandra.service

Check cassandra.service status

Elasticsearch

Installation

Edit elasticsearch.yml

Start elasticsearch

Enable elasticsearch

Check elasticsearch.service status

File Storage

Create /opt/thp/thehive/files

Change ownership of /opt/thp to (User):thehive

TheHive

Installation

Change ownership of /opt/thp to (User):thehive

Edit application.conf

Start thehive

Enable thehive

Check thehive status

Dashboard

We can now access TheHive's dashboard at:

Login credentials

Username
Password

admin@thehive.local

secret

Last updated

Was this helpful?