How lzwhehe/hesp works
HESP is a research system for triaging known alert types with a small local model as a log reader and a controller that chooses probes and validates conclusions. The main workflow is alert/task setup, probe execution, evidence interpretation, Bayesian state updates, probe selection and guarded stopping; study runners exercise this loop and generate research outputs. The README documents sec, sigma and comp-triage task families and local-model adapters. Some subsystem links rely on that documentation because their implementations were not sampled.
Main entry points: controller.py Controller loop · study.py Study runner · sandbox.py Probe sandbox · planner.py Planner policies
Components 22
Triage workflow
- Controller loop
hesp_research/hesp/controller.py - Evidence ledger
hesp_research/hesp/core.py - Probe selector
hesp_research/hesp/selectors.py - Prediction tables
hesp_research/hesp/predictors.py
Task environments
- Probe sandbox
hesp_research/hesp/sandbox.py - Security triage
hesp_research/hesp/secapp.py - Sigma triage
hesp_research/hesp/sigmaapp.py - Comp triage
hesp_research/hesp/compapp.py - GUIDE triage
hesp_research/hesp/guideapp.py - Web interface
hesp_research/hesp/webapp.py - Task upload
hesp_research/hesp/uploadapp.py
Planning and reading
- Raw-log reader
hesp_research/hesp/rawlog.py - Local model client
hesp_research/hesp/llm.py - Planner policies
hesp_research/hesp/planner.py
Studies and analysis
- Study runner
hesp_research/hesp/study.py - Audit analysis
hesp_research/hesp/audit.py - Study analysis
hesp_research/hesp/analysis.py - Table studies
hesp_research/scripts/v10a_tables.py - Mismatch studies
hesp_research/scripts/v10b_mismatch.py - v1.1 experiments
hesp_research/scripts/v11_llmfree.py - v1.2 experiments
hesp_research/scripts/v12_llmfree.py
Other components
- Analyst
Connections 21
- Analyst → Study runner: starts study
- Study runner → Controller loop: runs episodes
- Controller loop → Evidence ledger: updates beliefs
hesp_research/hesp/controller.py - Controller loop → Probe selector: chooses probes
hesp_research/hesp/controller.py - Controller loop → Prediction tables: gets likelihoods
hesp_research/hesp/controller.py - Controller loop → Probe sandbox: executes probes
- Controller loop → Planner policies: requests decision
- Controller loop → Raw-log reader: classifies logs
- Planner policies → Local model client: uses model
- Probe sandbox → Security triage: uses task behavior
hesp_research/hesp/secapp.py - Probe sandbox → Sigma triage: uses task behavior
- Probe sandbox → Comp triage: uses task behavior
hesp_research/hesp/compapp.py - Probe sandbox → GUIDE triage: uses task behavior
- Web interface → Probe sandbox: serves probes
- Task upload → Study runner: provides tasks
- Study runner → Table studies: supports evaluation
hesp_research/scripts/v11_llmfree.py - Study runner → Mismatch studies: supports evaluation
hesp_research/scripts/v11_llmfree.py - v1.1 experiments → Controller loop: runs comparisons
hesp_research/scripts/v11_llmfree.py - v1.2 experiments → Controller loop: runs comparisons
hesp_research/scripts/v12_llmfree.py - Study runner → Study analysis: summarizes results
- Study runner → Audit analysis: audits runs