Skip to main content
reopt Handbook
reopt Handbook
AI Security and Compliance Operations

Strategy and Governance

Risk GovernanceData ProtectionSecure Architecture

Security Controls

Prompt Injection DefenseAccess Control and SecretsAudit Readiness

Operations and Leadership

Incident ResponseBoard Reporting

Appendix

GlossaryVerificationUpdates
Handbook›AI Security and Compliance›Secure Architecture
한국어KOEnglishEN

Secure Architecture

Design AI systems with policy boundaries, isolation, logging, and safe tool access.

Written and reviewed by Eric Han · Co-founder & CTO, reopt

Key takeaways

  • Secure AI architecture assumes model output is untrusted and surrounds the model and its tools with policy, isolation, and audit.
  • Assign security responsibility per layer: interface auth, orchestration policy checks, model access controls, retrieval permissions, tool least privilege, and observability.
  • Keep privileged tools behind deterministic policy gates, separate read tools from write tools, and run code, file, or browser execution in isolated runtimes.
  • Enforce user and tenant permissions during retrieval rather than trusting the prompt.
  • Watch red flags like a single prompt controlling both policy and action, retrieval ignoring document permissions, or write actions lacking approval or rollback.

September 2026: connect OWASP ACS to runtime controls

The OWASP Agent Control Standard provides an open foundation for enforcing declarative policies through platform middleware hooks. It is not a certificate or a legal compliance decision.

Our application pattern is to check principal, tenant, resource, allowed action, and expiry before tool execution, then apply disclosure policy before returning results. Record the decision and policy version, and test whether another tool or child agent can bypass a denial. A prohibition written only in a prompt does not implement this control.

OWASP Agent Control Standard.

Secure AI architecture assumes model output is not inherently trusted. Policy, isolation, and audit must surround the model and every tool it can influence.

Architecture Layers

LayerSecurity responsibility
User interfaceAuthentication, consent, and input constraints
OrchestrationPolicy checks, prompt assembly, tool routing
Model accessProvider controls, data handling, rate limits
RetrievalSource filtering, permissions, freshness
ToolsLeast privilege, approvals, side-effect control
ObservabilityLogs, traces, alerts, and evidence capture

Design Principles

  • Treat model output as untrusted until validated.
  • Keep privileged tools behind deterministic policy gates.
  • Enforce user and tenant permissions during retrieval.
  • Separate read tools from write tools.
  • Use isolated runtimes for code, file, or browser execution.
  • Log decisions enough for investigation without leaking sensitive data.

Red Flags

  • A single prompt controls both policy and action.
  • Retrieval ignores document permissions.
  • Tool results can inject new instructions without sanitization.
  • Write actions lack approval or rollback.

Related docs

RAG and Retrieval-Augmented Generation

Vercel Enterprise AI Platform · Build retrieval pipelines with indexing, permission filtering, reranking, and evaluation.

Prompt Engineering and Guardrails

Vercel Enterprise AI Platform · Design prompts, schemas, safety checks, and review gates for enterprise AI systems.

Access Control and Secrets

Govern human, service, and agent permissions with least privilege and rotation.

Sandbox Tool Runtime

Vercel Enterprise AI Platform · Isolate code, file, browser, and shell execution for AI agents.

Prompt Injection Defense

Defend AI systems against malicious instructions in user input, retrieved content, and tool output.

Data Protection

Classify, minimize, encrypt, retain, and govern data used by AI systems.

Prompt Injection Defense

Defend AI systems against malicious instructions in user input, retrieved content, and tool output.

On this page

September 2026: connect OWASP ACS to runtime controlsArchitecture LayersDesign PrinciplesRed Flags