Privacy-first Suricata console for live and historical threat detection, with MITRE ATT&CK tags, incidents, a tamper-evident audit log, and human-approved response playbooks. Local Ollama explanations are optional.
An AI-powered security tool that monitors Suricata network logs in real-time and analyzes historical log files to detect threats, provide AI-generated explanations, and recommend security actions.
Try it online: https://autodefender.streamlit.app/

AutoDefender started as my senior year college capstone project in fall 2025. I still maintain it and update it from time to time with security fixes, more realistic detection, and new features.
eve.json log files and processes events as they occurThe quickest way to try everything (AutoDefender, a local Ollama, and a replayer that feeds the sample Suricata log):
cp .env.example .env # then set AUTODEFENDER_UI_PASSWORD to your own long password, or delete that line for an open console
docker compose up -d --build
docker compose exec ollama ollama pull <model> # optional; then set OLLAMA_MODEL=<model> in .env and run docker compose up -d again
Open http://localhost:8501 (sign in if you set a password) and start monitoring /var/log/suricata/eve.json on the Dashboard. Data (database, audit log, rules, IP lists, uploads, and the demo copy) is kept in the autodefender-data volume. The console is published on 127.0.0.1 only and Ollama is not exposed at all.
To watch a real Suricata on a Linux host, remove the replayer service and mount the host's log folder read-only on the autodefender service: - /var/log/suricata:/var/log/suricata:ro. (Docker Desktop on Windows/macOS can't capture host network traffic, so run Suricata itself outside Docker there.)
git clone https://github.com/MRFrazer25/AutoDefender-Capstone.git
cd AutoDefender-Capstone
pip install -r requirements.txt
# Install Ollama from https://ollama.ai
ollama pull <model> # any model you like
ollama serve # Start Ollama server
Note: On first run, AutoDefender will automatically create:
autodefender.db - SQLite database for threats and actions (user-specific, not in repository)ip_lists.json - IP whitelist/blacklist (starts empty, user-specific, not in repository)suricata_rules/ - Custom Suricata rules directoryThe demo database (demo/demo_config.db) is pre-populated and included in the repository - no setup needed to use it.
Install the prerequisites
docs/SURICATA_SETUP.md)Prepare Suricata
eve.json output in suricata.yaml (already enabled by default)suricata -c suricata.yaml -i <interface>docs/SURICATA_SETUP.mdStart Ollama
ollama serve
ollama pull <model> # optional: any model you like
Clone AutoDefender and install Python requirements
git clone https://github.com/MRFrazer25/AutoDefender-Capstone.git
cd AutoDefender-Capstone
pip install -r requirements.txt