How user-waron/hackathon works
ShadowGuard is an AI security gateway for tool actions, with a security-operations UI. The main flow is a user chat request through the API and agent to a guarded tool invocation; the interceptor evaluates intent, trust, policy, and taint, then simulates risky SQL and may stage it for human approval. Approved actions and audit events are persisted, while the UI exposes approvals, integrations, and live security events. The README content was unavailable, so capability coverage relies on the provided tree and source excerpts; unsampled subsystem links are omitted where invocation evidence is missing.
Main entry points: interceptor.py Action interceptor · App.jsx Security console · main.py HTTP and event API · database.py Application database
Components 25
Operations UI
- Security console
frontend/src/App.jsx
API and agent
- HTTP and event API
backend/app/main.py - Chat endpoint
backend/app/api/chat.py - Approval endpoint
backend/app/api/approvals.py - Integration settings
backend/app/api/integrations.py - Event endpoint
backend/app/api/events.py - AI agent
backend/app/agent.py - MCP server
backend/app/mcp_server.py
Guarded execution
- Action interceptor
backend/app/security/interceptor.py - Intent guard
backend/app/security/intent_guard.py - Action classifier
backend/app/security/action_classifier.py - SQL risk analysis
backend/app/security/risk_engine.py - Response guard
backend/app/security/response_guard.py - Safe response synthesis
backend/app/security/response_synthesizer.py - Tool trust registry
backend/app/security/registry.py - ML security models
backend/app/security/ml_models.py - Approval manager
backend/app/security/approvals.py - SQL shadow simulation
backend/app/security/shadow_state.py
Security state
- Session taint
backend/app/security/taint.py - Audit logging
backend/app/security/audit.py - Application database
backend/app/database.py
Other components
- Operator
- LLM provider
- Human approver
- External tools
Connections 33
- Operator → Security console: uses
frontend/src/App.jsx - Security console → Chat endpoint: submits chat
backend/app/api/chat.py - HTTP and event API → Chat endpoint: registers route
backend/app/main.py - HTTP and event API → Approval endpoint: registers route
backend/app/main.py - HTTP and event API → Integration settings: registers route
backend/app/main.py - HTTP and event API → Event endpoint: serves events
backend/app/main.py - Chat endpoint → AI agent: runs agent
backend/app/api/chat.py - AI agent → LLM provider: requests completion
backend/app/agent.py - AI agent → Action interceptor: executes tool
backend/app/agent.py - Action interceptor → Intent guard: checks intent
backend/app/security/interceptor.py - Action interceptor → Action classifier: classifies action
backend/app/security/interceptor.py - Action interceptor → Tool trust registry: evaluates trust
backend/app/security/interceptor.py - Action interceptor → ML security models: classifies with
backend/app/security/interceptor.py - Action interceptor → SQL risk analysis: checks SQL
backend/app/security/interceptor.py - Action interceptor → SQL shadow simulation: simulates action
backend/app/security/interceptor.py - Action interceptor → Approval manager: stages approval
backend/app/security/interceptor.py - Action interceptor → Session taint: checks session
backend/app/main.py - Action interceptor → Audit logging: records events
backend/app/main.py - Action interceptor → External tools: dispatches tool
- Action interceptor → Response guard: checks output
backend/app/security/interceptor.py - Action interceptor → Safe response synthesis: builds response
backend/app/security/interceptor.py - Approval endpoint → Approval manager: decides approval
backend/app/api/approvals.py - Human approver → Security console: reviews action
frontend/src/App.jsx - Security console → Approval endpoint: sends decision
backend/app/api/approvals.py - Security console → Integration settings: configures integrations
backend/app/api/integrations.py - Security console → Event endpoint: views events
frontend/src/App.jsx - HTTP and event API → Application database: initializes store
backend/app/main.py - Approval manager → Application database: persists approvals
backend/app/security/approvals.py - Audit logging → Application database: writes audit trail
backend/app/security/audit.py - Tool trust registry → Application database: reads tool records
backend/app/security/registry.py - SQL shadow simulation → SQL risk analysis: analyzes SQL
backend/app/security/shadow_state.py - Tool trust registry → ML security models: scores trust
backend/app/security/registry.py - Session taint → Application database: stores taint state
backend/app/security/taint.py