How achuth07/agentic-threat-hunter works
Agentic-Threat-Hunter is a web-based AI threat-hunting assistant. An analyst submits a question in the React chat; the FastAPI WebSocket backend streams activity and results while a LangGraph agent routes research or hunt work to security tools. Results are summarized and shown with activity, dashboard, integrations, and settings views. The README documents Splunk, Velociraptor, VirusTotal, Sigma, web research, and Atomic Red Team capabilities. Some connections below rely on README statements because the relevant implementation excerpts were incomplete.
Main entry points: server.py FastAPI WebSocket · hierarchical_agent.py Agent workflow · App.jsx Chat state · ThreatHuntingPlatform.jsx Hunting views
Components 20
Web interface
- React entry
web/src/main.jsx - Error boundary
web/src/components/ErrorBoundary.jsx - Chat state
web/src/App.jsx - Hunting views
web/src/ThreatHuntingPlatform.jsx
Service and orchestration
- FastAPI WebSocket
server.py - Agent workflow
agent/hierarchical_agent.py - Multi-tool graph
agent/multitool_agent.py
Hunting capabilities
- Splunk search
- Velociraptor VQL
tools/velociraptor_tool.py - VirusTotal lookup
tools/virustotal_tool.py - Sigma rules
tools/sigma_tool.py - Atomic tests
tools/atomic_red_team.py - Web research
tools/web_tools.py
Other components
- Analyst
- Ollama LLM
- Splunk platform
- Velociraptor server
- VirusTotal API
- Search services
- Windows host
Connections 24
- Analyst → Hunting views: asks hunt
README.md - React entry → Error boundary: wraps
web/src/main.jsx - React entry → Chat state: renders
web/src/main.jsx - Chat state → Hunting views: renders
web/src/App.jsx - Hunting views → Chat state: sends requests
web/src/App.jsx - Chat state → FastAPI WebSocket: streams over WebSocket
README.md - FastAPI WebSocket → Agent workflow: runs workflow
server.py - Agent workflow → Ollama LLM: reasons with
README.md - Multi-tool graph → Ollama LLM: generates queries
README.md - Agent workflow → Atomic tests: invokes
agent/hierarchical_agent.py - Agent workflow → Sigma rules: invokes
agent/hierarchical_agent.py - Agent workflow → Web research: invokes
agent/hierarchical_agent.py - FastAPI WebSocket → Velociraptor VQL: health checks
server.py - FastAPI WebSocket → VirusTotal lookup: health checks
server.py - FastAPI WebSocket → Splunk search: routes hunts
README.md - FastAPI WebSocket → Velociraptor VQL: routes hunts
README.md - FastAPI WebSocket → VirusTotal lookup: routes hunts
README.md - FastAPI WebSocket → Sigma rules: offers capability
README.md - FastAPI WebSocket → Web research: offers capability
README.md - Splunk search → Splunk platform: executes searches
README.md - Velociraptor VQL → Velociraptor server: runs VQL
tools/velociraptor_tool.py - VirusTotal lookup → VirusTotal API: checks indicators
README.md - Web research → Search services: searches and reads
tools/web_tools.py - Atomic tests → Windows host: runs tests
tools/atomic_red_team.py