How abhi-cloudisian/ai-security works
ONYXx is an enterprise AI security platform with independently deployed prompt-security and endpoint-fleet control planes, plus AI-provider gateway, agent governance, and administration capabilities. The primary prompt workflow is client submission, tiered inspection, policy action, then audit/SIEM and dashboard delivery. Endpoint workflows separately collect fleet and AI-activity telemetry and apply endpoint policy. The README documents the major capabilities and high-level flow; sampled source supports selected implementation links, so unsampled subsystem relationships are omitted or left unconnected.
Main entry points: pipeline_routes.py Inspection API · relay_routes.py Provider Relay · routes.py Admin Authentication · ONYXx_Endpoint_Agent Rust Endpoint Agent
Components 27
Prompt Security
- Inspection API
ai-guardrails/backend/features/security/api/pipeline_routes.py - Tiered Detection
ai-guardrails/backend/features/security/pipeline/security_pipeline.py - Local Detection Engine
ai-guardrails/backend/features/security/pipeline/runtime/local_engine.py - Rules and Compliance
ai-guardrails/backend/features/rules/engine - Admin Authentication
ONYXx_Prompt_Detection/backend/app/features/auth/api/routes.py - Prompt Configuration
ONYXx_Prompt_Detection/backend/app/core/config
Endpoint Fleet
- Rust Endpoint Agent
ONYXx_Endpoint_Agent - Endpoint API
ONYXx_Endpoint_Agent/backend/app/routes - Endpoint Policy Engine
ONYXx_Endpoint_Agent/backend/app/policy_engine.py - Fleet Telemetry
ONYXx_Endpoint_Agent/backend/app/routes/telemetry.py - Endpoint Database
ONYXx_Endpoint_Agent/backend/app/database.py - Endpoint Policy API
ONYXx_Endpoint_Agent/backend/app/routes/policies.py
AI Gateway
- Provider Relay
ai-gateway/backend/features/gateway/api/relay_routes.py - Request Inspection
ai-gateway/backend/features/gateway/services/request_inspection.py - Response Inspection
ai-gateway/backend/features/gateway/services/response_inspection.py - Provider Routing
ai-gateway/backend/features/gateway/services/router_service.py
Agent Governance
- Agent Workflows
agent-action-control/backend/features/agents/domain - Approvals and Enforcement
agent-action-control/backend/features/enterprise/domain/approval_service.py
Platform Operations
- Security Configuration
ONYXx_Prompt_Detection/backend/app/core/security - Prompt Data Store
ONYXx_Prompt_Detection/backend/app/infrastructure/db.py - Redis Cache
ONYXx_Prompt_Detection/backend/app/infrastructure/cache_manager.py - Security Event Logging
ONYXx_Prompt_Detection/backend/app/core/security/security_events.py - Realtime Broadcasting
ONYXx_Prompt_Detection/backend/app/features/realtime/events.py
Other components
- Extensions and IDEs
- AI Provider
- SIEM Destinations
- Security Dashboard
Connections 23
- Extensions and IDEs → Inspection API: submits prompts
- Inspection API → Tiered Detection: inspects prompts
- Tiered Detection → Local Detection Engine: runs detection
ai-guardrails/backend/features/security/pipeline/security_pipeline.py - Inspection API → Rules and Compliance: applies rules
- Inspection API → Security Event Logging: records decisions
ai-guardrails/backend/features/security/api/pipeline_routes.py - Inspection API → SIEM Destinations: exports events
- Inspection API → Realtime Broadcasting: publishes events
- Realtime Broadcasting → Security Dashboard: streams updates
- Admin Authentication → Prompt Data Store: queries accounts
ONYXx_Prompt_Detection/backend/app/features/auth/api/routes.py - Admin Authentication → Security Configuration: uses security controls
ONYXx_Prompt_Detection/backend/app/features/auth/api/routes.py - Inspection API → Prompt Data Store: stores inspection data
ai-guardrails/backend/features/security/api/pipeline_routes.py - Inspection API → Redis Cache: uses cache
ai-guardrails/backend/features/security/api/pipeline_routes.py - Rust Endpoint Agent → Endpoint API: sends telemetry
- Endpoint API → Fleet Telemetry: routes events
- Fleet Telemetry → Endpoint Database: persists telemetry
- Endpoint Policy API → Endpoint Policy Engine: publishes policies
- Rust Endpoint Agent → Endpoint Policy Engine: evaluates policy
ONYXx_Endpoint_Agent/backend/app/policy_engine.py - Extensions and IDEs → Provider Relay: sends AI requests
- Provider Relay → Request Inspection: inspects request
- Provider Relay → Response Inspection: inspects response
- Provider Relay → Provider Routing: routes request
- Provider Routing → AI Provider: forwards request
- Agent Workflows → Approvals and Enforcement: requests approval