# Why AI Agents Need Sandboxes for Security & Access Control

## Executive summary

As AI agents (like OpenClaw and Hermes) gain access to sensitive systems (email, JIRA, file systems), they introduce significant security risks, including prompt injection. Open-Shell, an open-source solution from Nvidia, addresses this by implementing a policy-governed sandbox architecture. This system uses a Supervisor and a Gateway to enforce strict access controls, ensuring that agents operate under a 'default deny' policy and that sensitive credentials are isolated via abstraction providers.

## Key takeaways

- Default Deny Policy Enforcement: Open-Shell sandboxes deny any action (network egress, file system access, process privileges) that is not explicitly allowed by the defined policy, mitigating risks like malicious curl requests (00:56).
- Secret Isolation via Providers: Agents never directly see real secrets (e.g., JIRA tokens). Open-Shell uses 'providers' to swap in the real key only at the bound endpoint, preventing leakage even if the agent is tricked into sending the token elsewhere (01:32).
- Component Roles (Supervisor and Gateway): The Supervisor acts as the enforcer, launching the agent as a restricted child process and routing all outbound traffic through a policy proxy. The Gateway manages and provisions the sandboxes and delivers policies and credentials to the Supervisors (02:14).

## Technical details

- Open-Shell Architecture: Open-Shell consists of three components: a policy-governed sandbox, a Supervisor, and a Gateway. The Supervisor pulls policy and credentials from the Gateway before launching the agent (02:14).
- Runtime Support: The Open-Shell project supports sandboxing across various runtimes, including Docker, Podman, Kubernetes, and MicroVM backed runtimes (04:35).
- Policy Enforcement Granularity: Policies can be written to restrict specific programs (e.g., GitHub CLI) from reaching specific APIs while blocking others (e.g., malicious Python scripts), based on name and destination (03:14).

## Practical implications

- Build engineers can use Open-Shell to secure CI/CD pipelines by restricting the capabilities of AI agents that interact with production systems.
- The system allows for live monitoring and policy updates from the Open-Shell CLI, enabling dynamic security adjustments without full restarts.
- By enforcing strict boundaries, organizations can safely deploy powerful agentic systems while maintaining control over resource access and secret management.

## Topics

AI Agent Security, Sandboxing, Access Control, Prompt Injection Mitigation, Container Security, IBM Technology

Source: https://www.youtube.com/watch?v=iR4Cy-RURbo
