Install ThreatHub
ThreatHub is currently in the early development phase. While it is functional, not everything is streamlined so far. In the future, it is likely the installation will be done via Docker.
ThreatHub consists of two programs:
- Ingestor - A Java based program that runs in the background and periodically fetches data from Defender and handles other jobs
- Web App - The Next.js based web app for managing the data
Prerequisites
Section titled “Prerequisites”It is recommended the software be installed on Linux. It has been officially tested and working correctly on Ubuntu v24.04.1.
You will require the following software:
- Node.js - Recommnded at least
v22.0.0. Minimum supported version isv20.9.0 - Java - Java 17 is the minimum required version. OpenJDK is recommended
- MySQL
- Redis
Install Node.js
Section titled “Install Node.js”The easiest way to install Node.js is using the Node Version Manager (nvm). More information here
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.3/install.sh | bashsource ~/.bashrcnvm install 22.0.0nvm use 22.0.0nvm alias default 22.0.0Install Java
Section titled “Install Java”The below should work on Ubuntu v24. If it doesn’t work on your system, there are plenty of tutorials online.
sudo apt update && sudo apt install openjdk-17-jre -yInstall MySQL
Section titled “Install MySQL”sudo apt update && sudo apt install mysql-server -yThen verify the service is running:
sudo systemctl start mysqlWe will finish the setup on the next page.
Install Redis
Section titled “Install Redis”sudo apt update && sudo apt install redis-server -yThen verify the service is running:
sudo systemctl start redis-serverManual Install
Section titled “Manual Install”- Install the prerequisites listed above
- Create folder for ThreatHub. For the purposes of this tutorial, let’s say it’s in
/home/threathub - Download and extract the source code for the Web App (or
git clone) to a directory calledwebapp - Download a compiled jar from the Ingestor repository. Click the link in the README file for the latest build and place this into a directory named
ingestor - By now you should have the following structure:
Directory/home/threathub/
Directorywebapp/
- …
Directoryingestor/
- …
Next Steps
Section titled “Next Steps”Move on to the next page to see setup instructions.