How baggyjeans3/aegis-3 works
Aegis-3 is an API security gateway and SOAR platform. Requests pass through Nginx/Coraza filtering and response masking, then a dynamic proxy that routes tenant traffic and queues security events. Celery processes queued events, obtains risk scores, persists results, and can generate and inject WAF rules for high-risk attacks. A separate response/ChatOps analyzer and a customer/admin portal provide response actions and log visibility. Several service links are documented in the README; unsampled implementation details are represented only where the tree supports a path.
Main entry points: tasks.py Event processing · nginx.conf WAF and masking · main.py Portal API · app.js Dynamic proxy
Components 23
Gateway and routing
- WAF and masking
nginx/nginx.conf - WAF policies
nginx/rules - Rule sidecar
nginx/sidecar.js - Dynamic proxy
proxy/app.js
SOAR analysis
- Celery scheduler
services/ingestion/celery_app/celery_app.py - Event processing
services/ingestion/celery_app/tasks.py - Risk scoring API
soar/risk_score_engine/app.py - Risk detectors
soar/risk_score_engine/detectors.py - Detection state
soar/risk_score_engine/state.py - AI rule generation
services/ingestion/celery_app/ai_engine.py
Threat response
- Threat response analyzer
services/ingestion/analyzer/analyzer.js
Portal and data
- Portal API
services/aegis-portal-backend/app/main.py - JWT and role auth
services/aegis-portal-backend/app/auth.py - Tenant management
services/aegis-portal-backend/app/customers.py - Log access
services/aegis-portal-backend/app/database.py
State and integrations
- Security event queue
- Security logs
- Tenant database
services/aegis-portal-backend/app/postgres.py
Other components
- API users
- Tenant upstreams
- Gemini API
- Slack and Cloudflare
- Portal users
Connections 24
- API users → WAF and masking: sends requests
README.md - WAF and masking → WAF policies: applies policies
README.md - WAF and masking → Dynamic proxy: proxies requests
README.md - WAF and masking → Rule sidecar: exposes rule API
README.md - Dynamic proxy → Tenant upstreams: routes traffic
README.md - Dynamic proxy → Security event queue: pushes events
proxy/app.js - Security event queue → Event processing: feeds events
README.md - Celery scheduler → Event processing: schedules consumption
services/ingestion/celery_app/celery_app.py - Event processing → Risk scoring API: requests analysis
README.md - Risk scoring API → Risk detectors: runs detectors
soar/risk_score_engine/app.py - Risk detectors → Detection state: tracks event history
soar/risk_score_engine/detectors.py - Event processing → Security logs: persists results
README.md - Event processing → AI rule generation: generates high-risk rules
README.md - AI rule generation → Gemini API: requests rule generation
services/ingestion/celery_app/ai_engine.py - Event processing → Rule sidecar: submits generated rules
services/ingestion/celery_app/tasks.py - Rule sidecar → WAF policies: injects and promotes
README.md - Event processing → Threat response analyzer: reports threats
README.md - Threat response analyzer → Slack and Cloudflare: alerts and blocks
README.md - Portal users → Portal API: queries dashboard
README.md - Portal API → JWT and role auth: verifies identity
services/aegis-portal-backend/app/main.py - Portal API → Log access: reads logs
README.md - Portal API → Tenant management: manages tenants
services/aegis-portal-backend/app/main.py - Tenant management → Tenant database: stores tenant data
services/aegis-portal-backend/app/customers.py - Log access → Security logs: reads shared collection
README.md