Patrowl is an open-source security analysis toolkit which provides a platform to perform threat intelligence and threat hunting tasks. In this tutorial, we will learn how to install Patrowl on Debian latest, a popular Linux distribution.
Before diving into the installation process, you need to make sure that:
First, update your Debian system by running the following command:
sudo apt update && sudo apt upgrade -y
Install the required packages by running the following command:
sudo apt install python3 python3-dev python3-pip python3-venv -y
Create a new virtual environment for Patrowl. This is optional but recommended to avoid any library conflicts with the rest of the system. Run the following command to create a new virtual environment:
python3 -m venv patrowl-env
Activate the newly created virtual environment by running the following command:
source patrowl-env/bin/activate
Download the latest Patrowl release from the official GitHub repository using the git
command:
git clone https://github.com/Patrowl/PatrowlManager.git
Navigate to the newly downloaded Patrowl directory:
cd PatrowlManager
Install the required Python packages by running the following command:
pip install -r requirements.txt
Generate a new secrets.py
file by running the following command:
cp patrowlbackend/settings/secrets.py.template patrowlbackend/settings/secrets.py
Edit the secrets.py
file and set the following values:
SECRET_KEY = '<your-secret-key>'
ALLOWED_HOSTS = ['<your-server-ip-or-domain-name>']
Replace <your-secret-key>
with a randomly generated string, and <your-server-ip-or-domain-name>
with your server's IP address or domain name.
Migrate the Patrowl database schema by running the following command:
python3 manage.py migrate
Collect the static files for Patrowl by running the following command:
python3 manage.py collectstatic --noinput
Finally, start the Patrowl web server by running the following command:
python3 manage.py runserver 0.0.0.0:8000
You can now access your Patrowl instance by opening your web browser and visiting http://
In this tutorial, we've learned how to install Patrowl on Debian latest. Patrowl is now ready to be used for security analysis and threat hunting tasks.
If you want to self-host in an easy, hands free way, need an external IP address, or simply want your data in your own hands, give IPv6.rs a try!
Alternatively, for the best virtual desktop, try Shells!