How ogwanwan/agentic-soc works
Agentic SOC turns server logs into prioritized incidents, investigates queued incidents with an evidence-oriented LLM agent, maps findings to MITRE ATT&CK, and produces response recommendations. Detection and investigation run as separate processes connected through a SQLite queue. The graph preserves the documented normalization, detection, correlation, triage, investigation, mapping, and response stages. Edges supported only by the README reflect documented workflow; source excerpts and the SOURCE INDEX support the more specific internal relationships. Some unsampled subsystem details are consequently omitted.
Main entry points: run_pipeline.py Detection runner · grouping.py Incident correlation · main.py Investigation entry · engine.py ATT&CK mapping
Components 26
Detection pipeline
- Detection runner
run_pipeline.py - Event normalization
detection_pipeline/tools/normalize.py - Log parsers
detection_pipeline/tools - Sigma engine
detection_pipeline/detect/engine.py - Rule loader
detection_pipeline/detect/loader.py - Suricata detection
detection_pipeline/detect/suricata_seed.py - Seed aggregation
detection_pipeline/detect/aggregate.py - Incident correlation
detection_pipeline/correlate/grouping.py - Layer linkers
detection_pipeline/correlate/links - Incident deduplication
detection_pipeline/correlate/dedup.py - Deterministic triage
detection_pipeline/triage/triage.py - LLM triage review
llm/triage_review/llm_review.py
Incident queue
- Incident queue
detection_pipeline/store/incidents.py - SQLite database
detection_pipeline/store/db.py - Investigation queue poller
run_investigation_queue.py
Investigation
- Investigation entry
llm/investigate/main.py - Incident investigation
llm/investigate/agent/pipeline.py - Investigation loop
llm/investigate/agent/loop.py - Log investigation tools
llm/investigate/agent/tools/real
ATT&CK mapping
- ATT&CK mapping
llm/investigate/attack_mapping/engine.py - ATT&CK retrieval
llm/investigate/attack_mapping/retrieve.py
Response guidance
- Response planning
llm/respond/decide.py - Action catalog
llm/respond/catalog.py - Recommendation generation
llm/respond/llm.py
Other components
- Server logs
- SOC dashboard
Connections 26
- Server logs → Event normalization: provides logs
- Detection runner → Event normalization: normalizes
run_pipeline.py - Event normalization → Log parsers: uses parsers
detection_pipeline/tools/normalize.py - Detection runner → Sigma engine: runs detection
run_pipeline.py - Sigma engine → Rule loader: loads rules
detection_pipeline/detect/engine.py - Detection runner → Suricata detection: runs detection
run_pipeline.py - Detection runner → Seed aggregation: aggregates seeds
run_pipeline.py - Detection runner → Incident correlation: correlates events
run_pipeline.py - Incident correlation → Layer linkers: loads linkers
detection_pipeline/correlate/grouping.py - Incident correlation → Incident deduplication: deduplicates incidents
detection_pipeline/correlate/grouping.py - Detection runner → Deterministic triage: scores incidents
run_pipeline.py - Detection runner → LLM triage review: reviews incidents
run_pipeline.py - LLM triage review → Incident queue: annotates incidents
- Detection runner → Incident queue: stores incidents
run_pipeline.py - Incident queue → SQLite database: writes records
detection_pipeline/store/incidents.py - Investigation queue poller → SQLite database: polls queue
- Investigation queue poller → Investigation entry: starts investigation
- Investigation entry → Incident investigation: runs pipeline
llm/investigate/main.py - Incident investigation → Investigation loop: investigates incidents
llm/investigate/agent/pipeline.py - Investigation loop → Log investigation tools: invokes tools
- Investigation entry → ATT&CK mapping: maps findings
llm/investigate/main.py - ATT&CK mapping → ATT&CK retrieval: retrieves techniques
- ATT&CK mapping → Response planning: supplies findings
- Response planning → Action catalog: selects actions
- Response planning → Recommendation generation: requests recommendations
- Recommendation generation → SOC dashboard: provides results