Corpus Agentis
The field book to agent ecosystems
The field book to agent ecosystems
Security · Governance

The agent control plane

Agency cuts both ways: a new layer secures the agents themselves: sandboxes, policy engines, gateways, guardrails and pre-action authorization between an agent and your infrastructure. Grouped by control-plane layer, top-to-bottom: firewall → guardrails → gateway → authz → policy → sandbox.

Runtime AI firewall · 3
NameVendorSecuresConf.src
Prompt SecurityPrompt SecurityPrompt-injection + data exfiltration at runtimeconfirmed
Lakera GuardLakeraPrompt-injection, data leakage, PII exfiltration and hallucination detection at runtime: widely-used commercial AI firewall.confirmed
Prompt Guard (Meta Llama Guard)MetaOpen-source classifier for prompt-injection and jailbreak detection: the reference OSS AI firewall, deployable in-line before any LLM call.confirmed
AI posture + runtime controls · 1
NameVendorSecuresConf.src
Cisco AI DefenseCiscoEnterprise AI inventory, posture and runtime controlsconfirmed
Vendor-native guardrails · 3
NameVendorSecuresConf.src
AWS Bedrock GuardrailsAmazon Web ServicesBedrock agents, vendor-side guardrails for content filtering, PII redaction, denied topics, sensitive-info policies. Applied to model + agent tool calls at the platform.confirmed
Azure AI Content SafetyMicrosoftAzure OpenAI + Foundry agents, vendor-side content moderation (harm categories), prompt shields (jailbreak + indirect injection), groundedness detection.confirmed
Vertex AI Safety FiltersGoogleVertex Agent Builder + Gemini agents, configurable safety filters (harassment, hate, sexual, dangerous), citation checks, and safety attributes.confirmed
Gateway (model + tool call) · 3
NameVendorSecuresConf.src
TrueFoundry AI/MCP GatewayTrueFoundryModel + MCP tool calls, RBAC, guardrails, budget controls, full OTEL exportconfirmed
Portkey AI GatewayPortkeyMulti-provider LLM gateway with observability, cost controls, guardrails, PII redaction, semantic caching. Used by agent teams to route + govern hundreds of models behind a single endpoint.confirmed
Kong AI GatewayKongEnterprise API gateway extended for LLM traffic: auth, rate-limits, semantic firewalls, prompt templates, response transformers applied per-provider.confirmed
Pre-action authorization · 1
NameVendorSecuresConf.src
AportAportAgent actions, pre-action authz gate (approve/deny before the agent acts)confirmed
Policy engine · 1
NameVendorSecuresConf.src
Open Policy Agent (OPA)CNCF (Styra)Any agent action, Rego policies evaluate the proposed call before it fires. The de-facto CNCF policy engine, widely adopted for k8s + microservices; agents plug in via sidecar or in-process.confirmed
Sandbox + policy engine · 1
NameVendorSecuresConf.src
OpenShellNVIDIA (Agent Toolkit)Any agent, purpose-built sandbox, YAML policy on filesystem/network/process, controls where inference travelsconfirmed
Governance runtime · 1
NameVendorSecuresConf.src
NVIDIA NemoClawNVIDIAOpenClaw agents, OpenShell sandbox + Policy Engine (filesystem/network/process) + Privacy Router; runs Nemotron locally for sensitive workloadsconfirmed
Cloud agent sandbox · 3
NameVendorSecuresConf.src
E2BE2BAgent code execution, market-leading isolated cloud sandboxes (Manus 27 tools, Perplexity, Hugging Face)confirmed
Modal SandboxesModalAgent code execution, programmatic sandboxes with per-run isolation, GPU support, filesystem/network policies. Popular for coding-agent workloads (Devin-class).confirmed
DaytonaDaytonaAgent dev + code-exec environments, ephemeral sandbox workspaces with git integration, used by coding agents for isolated build/test/PR cycles.confirmed
Enterprise sandbox · 1
NameVendorSecuresConf.src
Alibaba OpenSandboxAlibabaAgent execution, enterprise Docker/K8s sandbox runtimesresearch
Governed data + action authority · 1
NameVendorSecuresConf.src
Palantir Ontology · Action Types + governancePalantir TechnologiesAgents execute predefined Action Types (e.g. order inventory, approve schedule) with the same security and compliance guardrails a human user has. Deterministic tools (mathematical, simulation, optimisation algorithms) wire in as verifiable steps that complement probabilistic LLM reasoning. Ontology MCP extends the same guardrails to external frameworks.confirmed
Field notes

Firewall, guardrails, gateway, authz, policy, sandbox: the stack that governs the agent

Accountability cannot be delegated to a model. Every deployed agent needs a named human owner, and the controls that hold up are the deterministic ones, sandboxes and gates, rather than instructions in a prompt asking the agent to behave.

Show more

None of these layers trusts the model to restrain itself. The model proposes; the control plane disposes. That is why the strongest pattern across the whole security section is the same one that shows up in the incident log: never expose raw secrets or unbounded permissions to the model, and cap the blast radius in the deterministic path instead of trusting a per-call approval the model can talk its way around. Every vendor below is grouped by which layer of that stack it occupies, and each row is sourced.

From the corpus, curated by Brandon Chaplin
Common questions
How do you control what an AI agent is allowed to do?

With controls outside the model, not instructions inside it. The usual stack is a runtime firewall, guardrails near the model, a gateway every model and tool call passes through, a permission check before an action fires, a policy engine and a sandbox around the whole thing. Each layer shrinks what a bad action can reach.

What is an AI guardrail?

A guardrail is a filter on what goes into or comes out of the model: blocking injection attempts, harmful content, or data that should not leave. Most model vendors ship their own. OWASP ranks prompt injection as the top risk for LLM applications, and that is largely what guardrails are trying to catch (OWASP).

What is an AI gateway?

A single point that every model and tool call passes through, where it can be logged, rate-limited, filtered and checked against policy. It gives you one place to see and control traffic instead of each integration enforcing its own rules. It is also where you swap models without rewriting the agent.

What is an agent sandbox?

An isolated environment, with its own filesystem, network and process limits, that the agent runs inside so a compromised run cannot reach the wider system. It caps what code execution, file access and tool use can touch. It is the last line when everything earlier has failed.

Can you just tell an agent in its prompt not to do something?

Not reliably. A prompt instruction is a request, and prompt injection works precisely by getting the model to follow different instructions instead. The controls that hold are deterministic: a permission check in code, a sandbox boundary, a gate the model cannot argue past. The NIST AI Risk Management Framework treats this as governance you build around the system, not a property of the model (NIST).

Next in the learning path