AI & ML
AWS Introduces Strands Box, an Open-Source Sandbox for AI Agents
AWS launches Strands Box in developer preview, an open-source sandbox combining operating-system isolation and Dogwood policies to control AI agent actions.

AWS has introduced Strands Box, an open-source sandbox designed to help developers control the actions and permissions of AI agents. Announced on October 7, 2026, the project combines operating-system-level isolation with policies written in Dogwood, an open-source language for governing agent actions.
Strands Box is currently available in developer preview under the Apache 2.0 license. It is designed to restrict what an AI agent can execute, access, modify, and reach over a network, while allowing developers to define rules based on the agent's actions and activity history.
The announcement addresses a growing challenge in AI development: agents can perform useful tasks by executing code, reading files, running shell commands, and interacting with external services, but these capabilities also introduce security risks when permissions are too broad.
According to AWS, Strands Box aims to give developers more control over these operations without requiring them to rely entirely on an agent's own permission prompts or instructions.
What Is Strands Box? Strands Box is an open-source sandbox that runs AI agents within a restricted environment. It combines two main security mechanisms:
- Operating-system isolation: Establishes boundaries around the files, programs, and network resources an agent can directly access.
- Dogwood policy enforcement: Evaluates supported agent actions against rules that can allow or deny specific operations.
The sandbox embeds the Dogwood Local Engine, which evaluates policies and maintains a history of observed actions. This allows developers to create rules that consider not only what an agent is attempting to do, but also what it has already done.
For example, a developer could configure an agent to read production logs and investigate an incident while restricting its ability to modify infrastructure or access unrelated resources.
AWS describes Strands Box as harness-agnostic, meaning it is not limited to one particular agent application or framework.
How Strands Box Uses Dogwood to Control AI Agents Strands Box applies policies at several enforcement points, including network requests, shell commands, Python execution, and Model Context Protocol (MCP) tool calls.
These components report supported operations to the Dogwood Local Engine, which evaluates the relevant rules before the operation is permitted.
This approach allows developers to create policies based on the nature of an action rather than relying solely on the name of a tool.
For instance, a policy could restrict an agent from making outbound HTTP requests after it reads a particular directory. Such a rule can apply whether the file access occurred through a shell command or a Python script, provided the operation passes through the relevant enforcement point.
AWS also notes an important limitation: filesystem permissions granted directly through the sandbox configuration are enforced by the operating system and do not appear in Dogwood's policy history. Developers need to route operations through supported enforcement components if they want Dogwood policies to govern those actions.
Temporal Policies Allow Rules Based on Previous Actions One of Strands Box's key features is its support for temporal policies, which allow authorization decisions to depend on an agent's previous actions and their outcomes.
AWS provides an example involving an AI agent investigating a production incident and posting updates to Slack.
A developer could configure a rule that allows the agent to post updates but limits successful posts to three within a ten-minute period. Once that limit is reached, another matching request is denied until the relevant time window changes.
The agent can continue performing other permitted operations, such as retrieving logs or investigating the incident.
The policy can also distinguish between successful requests and attempted requests. In AWS's example, the rule counts Slack posts that received an HTTP 200 response, meaning denied requests do not contribute to the limit.
This makes it possible to express restrictions involving action counts, cooldown periods, and the order in which operations occur.
Credential Injection Helps Keep Secrets Outside the Agent Strands Box also includes a network gateway that can manage authentication for permitted outbound requests.
Instead of exposing actual API credentials directly to an AI agent, the gateway can replace placeholder credentials or inject configured authentication information when forwarding an authorized request.
The announcement describes support for several authentication methods:
- Bearer tokens
- Custom HTTP headers
- HTTP Basic authentication
- Query-parameter credentials
- AWS Signature Version 4 (SigV4)
For example, an agent could be configured to access a permitted AWS service using credentials managed outside the agent's environment. The gateway handles request signing, reducing the need to expose the underlying AWS credentials to the agent itself.
However, credential injection does not automatically grant network access. The destination and operation must still satisfy the applicable sandbox and policy restrictions.
Why AWS Is Combining Isolation With Policy Enforcement Traditional sandboxing mechanisms, including containers and microVMs, help isolate workloads from their surrounding environment. AWS argues that isolation alone does not fully address the problem of controlling what an AI agent should do with the resources it can reach.
An agent may have permission to access a service but still need restrictions on specific actions, such as preventing infrastructure changes while allowing log retrieval.
Strands Box combines operating-system containment with policy enforcement at supported execution and network boundaries. Its design also allows rules to be shared across different agent applications through configuration and Dogwood policies.
AWS has chosen operating-system-level isolation for this project to let agents work within a developer's existing environment without requiring a separate guest operating system.
The company also acknowledges that running its policy enforcement components outside the agent's sandbox expands the trusted computing base. This is an important architectural trade-off rather than a claim that the system eliminates all security risks.
Strands Box Availability and System Requirements Strands Box is an early-stage open-source project available in developer preview. Its initial implementation supports local execution on macOS with Apple silicon.
Developers can explore the project, inspect its code, and follow the getting-started guide through the official GitHub repository.
The project is not yet presented as a universally supported sandbox for every operating system or production environment.
AWS has identified several areas for future development:
- Broader operating-system support: Expanding beyond the initial macOS implementation.
- Simplified setup: Developing a CLI that can detect installed agent harnesses and generate baseline sandbox configurations and policies.
- Deployment support: Exploring ways to package agents with their policies for environments such as Amazon Bedrock AgentCore, Amazon ECS, and Kubernetes.
- Additional policy capabilities: Extending Dogwood to express more complex governance requirements, including liveness conditions that describe actions an agent must eventually perform.
These are stated development priorities, not capabilities that should be assumed to be available in the current preview.
What Strands Box Means for AI Agent Developers Strands Box introduces another approach to AI agent security by combining sandbox containment with rules that can account for an agent's behavior over time.
For developers building autonomous coding assistants, operational agents, and tool-using AI systems, the project provides an opportunity to experiment with more granular access controls and external policy enforcement.
Its current developer-preview status and initial platform limitations mean developers should evaluate its security model, supported operations, and suitability for their own workloads before relying on it in production.
The project is open source, and AWS is inviting developers to contribute feedback, report bugs, and request features through its GitHub repository.


