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
한국어English

Secure Architecture

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

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.

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.

Observability and Evaluation

Vercel Enterprise AI Platform · Connect traces, prompts, tool calls, quality scores, latency, and cost.

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

Architecture LayersDesign PrinciplesRed Flags