Latest
From RSS / Atom

Building secure AI agent infrastructure with OpenShell


A rich AI ecosystem needs more than powerful models and agents. It needs a shared foundation where developers can build the security, infrastructure, and operational tools that AI applications depend on.

Kubernetes gave the cloud ecosystem a common foundation to build on. It provides core capabilities for deploying, scaling, and managing applications, supports secure operation, and offers extension points that let a rich ecosystem of tools build on that foundation. OpenShell, a CNCF Sandbox project, aims to provide a shared, open source foundation for building and securing AI agent infrastructure.

It starts with a simple principle, security controls belong in the infrastructure the agent runs in. That means setting hard boundaries on what an agent can access and do, while keeping the credentials it needs outside its reach, and never relying on an agent policing itself. It also gives operators visibility into agent activity, including which network requests were allowed or denied. Agents can propose changes to their authority, built-in formal verification makes sure a proposed change never exceeds your desired limit, and the final say is always with the human operator.

OpenShell Extensions let developers build on this foundation, adding specialized controls and connecting agents to existing and new security tools. This creates room for an ecosystem that can evolve as agents take on new tasks and organizations develop new requirements.

Secure By Design

Gateway flow chart

By design OpenShell separates the agent workload and the enforcement process. Agents never see credentials and they can’t bypass their enforcement. The agent runs in an isolated sandbox and communicates with the OpenShell Supervisor through a mediated channel. The agent sandbox is considered untrusted and runs completely separate from the trusted Supervisor. Direct external access from the sandbox is blocked. The Supervisor applies kernel-enforced restrictions on system calls, checks network requests against policy, brokers credentials, and forwards permitted traffic to external services. The Gateway is OpenShell’s control plane and is responsible for sandbox lifecycle management. OpenShell is built to be flexible so that it can operate seamlessly across diverse environments, matching the specific security, infrastructure, and operational demands of any architecture.

OpenShell produces structured security events using the Open Cybersecurity Schema Framework (OCSF), recording activity such as network access decisions, process lifecycle events, policy changes, and security findings. Operators can use these events to understand what happened, investigate denied requests, and feed their security analysis tools. 

OpenShell treats policy enforcement and verification as two distinct things. OpenShell policies define what an agent can touch on its filesystem, how it runs processes, and what it can do over the network. As policies evolve, operators need to be certain that a change to a policy doesn’t introduce unintended consequences or exceed a pre-defined permission boundary. That is where OpenShell policy verification using formal methods comes in. OpenShell’s Policy Prover provides formal guarantees on policies to help operators make decisions about OpenShell policies. This allows for truly dynamic workloads where agents propose policy changes, the Prover verifies that a change doesn’t exceed a boundary, and an auto-approver accepts changes that are within that policy ceiling. This supports a simple philosophy: agents can request more access, while operators define the maximum authority they are willing to grant.

Defense in depth requires enforcement layers to extend from the application layer down to the infrastructure that agents operate in. Running the governing services in attested confidential-computing environments can further protect policy evaluation, credentials, and data in use from tampering or disclosure, subject to the platform’s security guarantees.

Together, these capabilities give developers a foundation to build on: an isolated workload, enforcement outside the agent’s control with defense in depth, and structured evidence of security decisions.

Building the OpenShell Ecosystem

OpenShell is a common foundation for the agent ecosystem. A good foundation is one that can be built upon and extended to meet a variety of needs so that the ecosystem is rich with tooling to support every organization using agents. OpenShell Extensions let developers address these needs by extending OpenShell using the following extension points. 

  • Infrastructure drivers connect OpenShell to the environments where agents run. They provision and manage sandbox workloads, allowing infrastructure providers to integrate execution environments such as Kubernetes, VMs, Docker, or confidential computing environments, while retaining OpenShell’s security controls.
  • Gateway interceptors govern selected operations such as sandbox creation and policy updates. They let organizations apply required policies, reject disallowed changes, and record completed operations for audit. These controls act when an agent’s environment is created or changed.
  • Supervisor middleware adds controls to supported network traffic while an agent is running. Extensions can inspect requests and responses, detect sensitive data, redact content, or block requests. 

These interfaces turn the shared foundation into something developers can extend: new environments for running agents, organizational controls over their configuration, and specialized protections during execution. As with Kubernetes, the opportunity is for many teams to contribute their expertise through common interfaces.

The ecosystem is already taking shape across these extension points. Canonical’s LXD driver gives teams another environment for running sandboxes. Bedrock Data’s Agent DLP uses Supervisor middleware to check requests against enterprise data policies. 1Password’s integration supplies credentials to OpenShell for a defined period, while OpenShell restricts their use to approved destinations and keeps the real values outside the agent’s context. Monad exports, normalizes, and routes OpenShell telemetry into security tools. Each addresses a different operational need while building on OpenShell’s shared runtime and controls.

NVIDIA’s Contributions to OpenShell

NVIDIA’s contributions to OpenShell focus on building extensions that address the needs of organizations operating agents at scale. The goal is to give developers reusable capabilities they can build on and extend for their own environments, while retaining OpenShell’s enforcement foundation.

With our contribution of OpenShell to CNCF, we are advancing a community-driven platform for agent safety and governance. We look forward to working with developers across industries to build an ecosystem of integrations and enable vendor-agnostic development of the critical software needed to deploy AI agents securely. 

We invite you to contribute extensions, strengthen isolation and policy enforcement, and help shape the project’s direction. Join the community mailing list, connect with us in #openshell-dev on CNCF Slack, and watch the ai-openshell GitHub organization for contribution opportunities, design proposals, and upcoming working groups.