How chakhchoukh-chaimae/secugate-lite works
SecuGate-Lite is a small access-monitoring demonstration: it turns access-log lines and scan reports into shared Signals, detects duplicates and suspicious activity, then produces alerts and optionally asks an operator to approve sensitive actions. The README describes the three-agent contract and end-to-end workflow; sampled source shows how the demo calls that workflow. State such as seen signals, failure counts, and the alert journal is passed in memory, not stored in a database. The graph omits unshown external integrations; source excerpts support the internal calls shown.
Main entry points: main.py Demo runner · workflow.py Workflow dispatch · alerte.py Alert creation · contrat.py Signal and verdict types
Components 13
Demo and approval
- Demo runner
main.py - Console
Signal processing
- Workflow dispatch
src/workflow.py - Access normalization
src/collecte.py - Scan normalization
src/collecte.py - Dedup and analysis
src/detection.py
Contract and alerts
- Signal and verdict types
src/contrat.py - Procedure knowledge
src/contrat.py - Alert creation
src/alerte.py - Alert journal
src/workflow.py
Other components
- Access events
- Scan reports
- Operator
Connections 16
- Demo runner → Workflow dispatch: calls handlers
main.py - Demo runner → Console: prints and prompts
main.py - Operator → Demo runner: answers prompt
main.py - Access events → Demo runner: provides sample lines
main.py - Scan reports → Demo runner: provides sample reports
main.py - Workflow dispatch → Access normalization: normalizes access
src/workflow.py - Workflow dispatch → Scan normalization: normalizes scan
src/workflow.py - Access normalization → Signal and verdict types: creates Signal
src/collecte.py - Scan normalization → Signal and verdict types: creates Signal
src/collecte.py - Workflow dispatch → Dedup and analysis: deduplicates and analyzes
src/workflow.py - Dedup and analysis → Procedure knowledge: searches procedures
src/detection.py - Dedup and analysis → Signal and verdict types: uses Signal and creates Verdict
src/detection.py - Workflow dispatch → Alert creation: creates alert
src/workflow.py - Alert creation → Signal and verdict types: uses alert types
src/alerte.py - Alert creation → Alert journal: appends alert
src/alerte.py - Demo runner → Alert creation: validates response
main.py