How bigsnack7/aegisforge works
AegisForge is an AWS posture-scanning and guarded-remediation platform; its Python implementation is named SentinelForge. The main workflow is operator/CI → read-only scan → service checks → risk and exception gating → JSON/JSONL evidence. Remediation is a separate, explicitly confirmed path. Terraform provisions the audited honeypot workload and supporting AWS infrastructure, while CloudWatch Logs Insights queries provide documented detection capability. Edges reflect shown calls or README-described relationships; unsampled Terraform wiring is represented only at directory level.
Main entry points: cli.py CLI commands · scanner.py Account scanner · remediator.py Reversible actions · scoring.py Risk scoring and gates
Components 20
Posture scanning
- CLI commands
sentinelforge/cli.py - Account scanner
sentinelforge/scanner.py - Read-only AWS wrapper
sentinelforge/aws_readonly.py - Check registry
sentinelforge/checks/registry.py - AWS posture checks
sentinelforge/checks - Check context
sentinelforge/checks/base.py
Risk and evidence
- Finding model
sentinelforge/models.py - Risk scoring and gates
sentinelforge/scoring.py - Severity policy
config/severity-policy.yaml - Finding exceptions
sentinelforge/exceptions.py - Exception rules
config/exceptions.yaml - JSON / JSONL reports
sentinelforge/reporting.py
Guarded remediation
- Reversible actions
sentinelforge/remediator.py - Audit and rollback files
sentinelforge/remediator.py
AWS infrastructure
- Terraform workload and services
terraform - Linux, web, Windows honeypots
terraform/modules - GitHub OIDC roles
terraform/github-oidc
Telemetry detections
- CloudWatch Logs Insights queries
detections/cloudwatch-logs-insights
Other components
- Operator / CI
- AWS account resources
Connections 21
- Operator / CI → CLI commands: runs commands
README.md - CLI commands → Account scanner: runs scan
sentinelforge/cli.py - Account scanner → Read-only AWS wrapper: wraps AWS clients
sentinelforge/scanner.py - Account scanner → Check registry: builds checks
sentinelforge/scanner.py - Account scanner → Check context: creates context
sentinelforge/scanner.py - Check registry → AWS posture checks: dispatches checks
sentinelforge/checks/registry.py - AWS posture checks → Finding model: creates findings
sentinelforge/checks/ec2.py - Account scanner → Risk scoring and gates: calculates risk
sentinelforge/scanner.py - Risk scoring and gates → Severity policy: loads levels
- CLI commands → Finding exceptions: applies exceptions
sentinelforge/cli.py - Finding exceptions → Exception rules: reads rules
- CLI commands → Risk scoring and gates: evaluates gate
sentinelforge/cli.py - CLI commands → JSON / JSONL reports: writes reports
sentinelforge/cli.py - Operator / CI → Reversible actions: requests action
README.md - CLI commands → Reversible actions: dispatches action
sentinelforge/cli.py - Reversible actions → AWS account resources: changes approved resource
sentinelforge/remediator.py - Reversible actions → Audit and rollback files: captures rollback and audit
sentinelforge/remediator.py - Terraform workload and services → Linux, web, Windows honeypots: defines workload
README.md - Terraform workload and services → AWS account resources: provisions AWS workload
README.md - GitHub OIDC roles → AWS account resources: provides role access
- CloudWatch Logs Insights queries → AWS account resources: queries telemetry