This guide covers everything you need to get ThreatDetect installed and ready to run. You will clone the repository, install all Python dependencies fromDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/jazbengu/ThreatDetect/llms.txt
Use this file to discover all available pages before exploring further.
requirements.txt, confirm the pre-trained model file is present, and start the Streamlit app.
Prerequisites
Before you begin, make sure your machine meets the following requirements:-
Python 3.8 or later — ThreatDetect uses features and library versions that require Python 3.8+. Check your version with:
-
pip — The Python package installer. It is included with most Python distributions. Confirm it is available with:
Installation steps
Clone the repository
Download the ThreatDetect source code from GitHub:All subsequent commands in this guide assume you are in the
ThreatDetect directory.Install Python dependencies
Install all required packages with a single command:The
If you are working inside a virtual environment (recommended), activate it before running
requirements.txt file includes the following packages:| Package | Purpose |
|---|---|
streamlit | Web UI framework |
numpy / pandas | Numerical computation and data handling |
scikit-learn | Isolation Forest, preprocessing, and metrics |
matplotlib / seaborn / plotly | Visualization |
xgboost | Gradient-boosted classifier |
shap | Model explainability |
pip install.Verify the model file
ThreatDetect loads a pre-trained model on startup. Confirm the file exists at the expected path:You should see the file listed. If it is missing, check that you cloned the full repository and that Git LFS (if used) has downloaded large files.
The pre-trained model file
AI_Model_Code/insider_threat_model.pkl is required. ThreatDetect will fail to load without it. Do not rename or move this file relative to the repository root.Launching the app on subsequent runs
Once the dependencies are installed, you only need one command to start ThreatDetect:ThreatDetect directory each time you want to use the app.