AI risk and compliance evaluation engine for model orchestrators, agents, and RAG systems
AiSec is an open-source engine for evaluating security, privacy, governance, and compliance risk in AI systems.
It can be used in two complementary ways:
- Model-risk evaluator for orchestrators: platforms such as OrchestAI can call AiSec as an optional external evaluator for models, providers, agents, RAG pipelines, and workflows.
- Deep agent scanner: DevSecOps teams can run AiSec against Dockerized AI agents to inspect prompt-injection exposure, tool misuse, RAG weaknesses, runtime behavior, supply chain, data flow, privacy controls, and compliance.
The main design goal is integration without lock-in. AiSec accepts explicit JSON descriptors or Docker images, returns normalized findings and evidence, and lets the consuming platform decide how to store, approve, block, or display the results.
Repository:
https://github.com/fboiero/AiSec
git@github.com:fboiero/AiSec.git
AI orchestration platforms increasingly route requests across models, providers, tools, RAG stores, workflows, memory, and agents. Traditional scanners find CVEs in code or containers, but they do not answer product and compliance questions such as:
- Can this model process PII under the configured safeguards?
- Does this RAG pipeline isolate tenants and filter retrieved content?
- Can this agent call tools without approval?
- Is MCP or function calling auditable?
- Which OWASP LLM, OWASP Agentic, NIST AI RMF, ISO 42001, GDPR, and Habeas Data controls are affected?
- Can a compliance module store machine-readable evidence for an approval flow?
AiSec provides that missing evaluation layer.
OrchestAI and similar platforms can call AiSec from their compliance module:
Orchestrator compliance module
-> creates ModelRiskEvaluationRequest JSON
-> runs aisec evaluate model --input request.json --output result.json
-> stores ModelRiskEvaluationResult as audit/compliance evidence
Example:
aisec evaluate model \
--input docs/examples/orchestai-model-risk-request.json \
--output aisec-results/model-risk-result.json \
--fail-on criticalThe output contains:
overall_riskrisk_scorefindingsframeworksevidencerecommendationspolicy_verdict
The integration protocol is documented in
docs/orchestai-integration-protocol.md.
AiSec also keeps its original deep security scan path for containerized agents:
aisec scan run myagent:latest --format json,html,sarif
aisec scan run myagent:latest --agents rag_security,mcp_security,tool_chain
aisec scan run myagent:latest --policy strict --gateThis mode uses Docker sandboxing, specialized agents, report builders, policy gates, and optional runtime monitoring.
- Model-risk protocol for orchestrators using
aisec.model_risk.v1. - 36 specialized security agents for AI, agentic, code, infra, privacy, and runtime domains.
- Docker sandboxing for target agents and workloads.
- RAG, MCP, tool-chain, agent-memory, fine-tuning, and CI/CD security agents.
- Agent-on-agent analysis for reviewer independence, unsafe handoffs, shared credentials, shared memory, suppressed dissent, and autonomous high-impact actions.
- Compliance mapping across OWASP LLM, OWASP Agentic, NIST AI RMF, NIST AI 600-1, ISO/IEC 42001, EU AI Act, GDPR, CCPA, Habeas Data, and Argentina AI governance.
- Policy-as-code for advisory or blocking gates.
- Report formats: JSON, HTML, PDF, SARIF, CSV, Markdown.
- REST API and dashboard via
aisec serve. - OpenAPI documentation, audit trail, scan persistence, webhooks, scheduler, Prometheus metrics, structured logging, health probes.
- Cloud deployment assets: Docker Compose, Kubernetes manifests, Helm chart.
- Plugin hooks for custom agents and compliance extensions.
Model Orchestrator / Compliance Module
OrchestAI, internal AI platform
|
| JSON contract
v
aisec evaluate model
|
+-----------------+-----------------+
| |
Descriptor risk rules Framework mapping
model/provider/RAG/tools evidence + verdict
| |
+-----------------+-----------------+
|
v
ModelRiskEvaluationResult JSON
Deep scan architecture:
aisec scan run <docker-image>
-> Docker sandbox
-> DAG orchestrator
-> 36 security agents
-> correlated findings
-> reports + policy verdicts
pip install aisec
pip install "aisec[all]"From source:
git clone https://github.com/fboiero/AiSec.git
cd AiSec
pip install -e ".[dev]"Evaluate an OrchestAI-style model/RAG descriptor:
aisec evaluate model \
--input docs/examples/orchestai-model-risk-request.json \
--output aisec-results/model-risk-result.json \
--fail-on criticalRun a deep scan against an agent image:
aisec scan run ghcr.io/openclaw/openclaw:latest --format json,html,sarifStart the API and dashboard:
aisec serve --port 8000AiSec is intentionally used out-of-process by default:
- CLI or container for local/CI adoption.
- REST API for service-to-service integration.
- JSON request/result schemas as the compatibility boundary.
This keeps AiSec reusable across multiple products and avoids coupling a platform like OrchestAI to AiSec internals.
Recommended adapter boundary in a consuming platform:
backend/app/services/compliance/evaluators/aisec.py
The adapter should:
- Build a
ModelRiskEvaluationRequest. - Execute AiSec by CLI, container, or API.
- Parse
ModelRiskEvaluationResult. - Store the full result as immutable compliance evidence.
- Show summary fields in model/provider/workflow approval screens.
- AI platform teams building internal model orchestration.
- Products like OrchestAI that need optional compliance evaluators.
- DevSecOps teams gating AI agents in CI/CD.
- Security teams auditing RAG, MCP, tools, memory, and autonomous workflows.
- Compliance teams collecting AI risk evidence for ISO 42001, NIST AI RMF, GDPR, Habeas Data, and related programs.
- Agent Handoff
- Quick Start
- Documentation Index
- Architecture
- Frameworks
- OrchestAI Integration Protocol
- Product Strategy 2026
- Project Plan 2026
- Plugin Development
Apache License 2.0.
