Nvidia implements Agent confinement within a kernel sandbox: OpenShell 0.1 restricts credentials to whitelisted domains only.

Nvidia implements Agent confinement within a kernel sandbox: OpenShell 0.1 restricts credentials to whitelisted domains only.

2 weeks ago
duguying
21 views
Source: GitHub

NVIDIA's open-source OpenShell uses kernel-level policies and formal verification to define boundaries for autonomous agents – it systematically checks files, system calls, and network connections. Only temporary credentials are injected into requests sent to authorized endpoints.

Related tags

#GitHub#Trending#Agent安全#NVIDIA#沙箱

NVIDIA Introduces Agent Sandboxing with OpenShell 0.1: Restricting Credentials to Whitelisted Domains

Summary: NVIDIA's open-source OpenShell uses kernel-level policies and formal verification to create boundaries for autonomous agents – file, system call, and network connection access are all strictly controlled, and credentials are only temporarily injected into requests destined for approved endpoints. This version includes 1,119 new stars.

Granting AI agents the necessary privileges can be a complex undertaking. For an agent to function effectively, it needs the ability to read files, install packages, make API calls, and use credentials. However, once these capabilities are granted, the agent also gains access to your data, keys, and entire network. Over the past year, most agent incidents were not caused by malicious intent ("agents going rogue"), but rather by agents gaining unauthorized permissions and misusing them in certain scenarios.

NVIDIA's solution is OpenShell – a runtime designed for "agent clusters." It divides the problem into two parts: retaining all of an agent's capabilities while preventing it from having unrestricted access. The user defines policies that specify which resources each agent can access, and OpenShell enforces these policies.

Two Locks: Kernel Execution + Formal Verification

OpenShell focuses on enforcing security at the kernel level, rather than the application level. Each agent runs in an isolated sandbox, with the kernel controlling which files it can access and which system calls it can make. Every network connection is also subject to a policy check before leaving the sandbox. This means that unauthorized access cannot be bypassed simply by changing a configuration or injecting a prompt – any attempt to access restricted resources will fail.

The second lock adds another layer of security: policy changes are verified before being applied. Before a new policy is activated, OpenShell uses formal verification to identify potential risks – for example, if an agent gains credentials and can access a new host or call a new API method. These risky changes are put on hold until they can be reviewed and approved.

The key to solving the "key leakage" problem is the provider mechanism: the agent never directly sees the actual credentials. Credentials are only injected into requests destined for authorized endpoints, meaning that even if an agent is tricked into printing out a "key," it will not be able to access any sensitive information.

From One Command

The setup process is streamlined:

curl -LsSf https://raw.githubusercontent.com/NVIDIA/OpenShell/main/install.sh | sh
openshell sandbox create --name demo

The installer installs the CLI and a local gateway. The default sandbox image is a minimal Ubuntu instance without any agents – the official recommendation is to follow the "Run Your First Agent" tutorial: use OpenCode to connect to a free OpenRouter model, and gradually grant it access permissions as needed. This allows you to see how policies are layered on step by step.

The environment requirements are significant: Linux, macOS on Apple Silicon, or Windows with WSL 2 (experimental), along with Docker, Podman, or host virtualization.

0.1.x and Beyond: Towards a Platform

This release introduces version 0.1.x, which features "stable release cadence, new isolation primitives, broader extensibility, and new APIs."

The platform-like nature is evident in several areas: the gateway becomes the control plane for sandboxes and access management, it can be deployed on Kubernetes using Helm (provided your CNI supports NetworkPolicy), the extension surface opens up middleware, interceptors, and compute drivers; the SDK covers Python, TypeScript, Go, and Rust – with Python focusing on uv add openshell, and Go directly using go get to retrieve the sdk directory. For teams looking to integrate agents into existing CI/CD pipelines or internal platforms, these features are more important than the list of functionalities.

The repository also includes skills for coding agents: npx skills add NVIDIA/OpenShell, which teaches Claude (and other assistants) how to write sandbox policies, troubleshoot gateway issues, and reason about routing – it is being developed within its own workflow.

Key Trade-offs

OpenShell collects anonymous telemetry by default, limited to operational and counting purposes, explicitly excluding information such as sandbox names, hostnames, file paths, prompts, credentials, providers, or model names, and user content. To disable this, set OPENSHELL_TELEMETRY_ENABLED=false on the gateway, or disable it in Helm with server.telemetryEnabled=false, or remove it during compilation.

The license is Apache-2.0. The README also includes a disclaimer that states that the software automatically accesses external materials, and the authorization and security of those materials are the responsibility of the user.

The ongoing discussion about agent security has largely focused on "prompting layers": how to write system prompts, configure tool whitelists, and add users to the loop. OpenShell is taking a different approach – it's bringing the boundary down to the kernel level, removing credentials from the agent, and handing policy changes over to a verifier. This approach may be more complex, but it addresses the fundamental question that businesses ask: how can I trust that it's only doing what I allow?

Repository address: https://github.com/NVIDIA/OpenShell

More News

Want to see more quality content?

Browse all news