Learn to sandbox AI agents, tools, and code
Our Learning Hub provides resources for AI agent security: how to sandbox the elements of AI workflows effectively.
The hub is organized into two sections:
- Sandboxing: Explore strategies and practical guidance for sandboxing AI workflows, including agents, tools, and generated code. Start with How to choose an AI sandbox.
- AI security: Learn the fundamental concepts underlying AI security and how they apply to your own workflows.
-
1
Agents
How to choose an AI agent sandbox →
Learn how to leverage deny-by-default sandboxes for secure agentic workflows.

-
2
Tools
How to secure MCP servers →
Your agent installs MCP servers written by people you have never met, and each one runs with whatever the agent can reach. Tool poisoning, prompt injection through a tool result, and token theft all land here. A contained server reaches only the hosts you grant it.
-
3
Apps
Compare sandbox approaches for AI agent code →
Agents write whole programs now, and some of them run for months. Nobody reviewed that code, and you cannot review code that does not exist yet. This is the layer where the choice of boundary shows up as a bill: what you can pack per host, and how fast a fresh one starts.
AI security concepts
Learn the concepts underlying AI sandboxing and security.
Security principles
The 6 Principles of Secure Agent Platforms →
Security design principles for AI agents, from Saltzer and Schroeder to NIST, each tied to a real incident. Plus the principles matrix (PDF).
Capabilities
What are capabilities? →
Ambient authority, the confused deputy problem, and what it means to hand an agent one key instead of the whole ring.
Least privilege
The principle of least privilege for AI agents →
Why least privilege breaks down for agents, how least authority goes further, and the controls that enforce it.
Run your first sandbox
Public betaCosmonic Desktop runs this capability model on your own machine, free forever for personal use, with no account and no cloud. Grab a sandboxed MCP server, see exactly what it can reach before it runs, and wire it into your agent.
