Kiro permissions and sandbox: what the agent may run and change

Kiro gates shell, file, MCP and web actions through permissions.yaml and an optional OS-level sandbox, and an organization can enforce deny and ask rules centrally. The sandbox is not a guarantee of isolation, and some tools run outside it.

On this page

Does Kiro let an organization control what the agent may run and change?

Yes, but only in part, and the control depends on which client and plan the organization uses. Kiro decides each action through permission rules in permissions.yaml, which gate fs_read, fs_write, shell, web_fetch, web_search, mcp and subagent with the effects deny, ask, allow and evaluate. Anything no rule covers prompts for approval. Enterprise administrators can set deny and ask rules centrally in managed-settings.json for Kiro Enterprise, and the Kiro console in the AWS Management Console sets administrative settings through a Kiro profile for one AWS account and Region. Evaluation is deny-overrides, so a deny anywhere wins, and workspace permission files live per user outside the repository, which stops a cloned project from injecting its own allow rules. Confirm with AWS which rule scopes an enterprise policy can override before relying on them as a hard boundary. The full rule syntax is in the Kiro permissions documentation.

The OS-level sandbox is a second layer, not a substitute for the first. It is off by default, uses Seatbelt on macOS and Bubblewrap on Linux, and in its default DEFAULT_BLOCKED mode blocks outbound network access except hosts named in a sandbox_network rule. Organization-managed sandbox requirements need Kiro CLI 3.4.0 or Kiro IDE 1.4.215 or later, and the sandbox itself needs Kiro IDE 1.3 or later or Kiro CLI 2.31 or later. Verify that every workstation runs at least these versions before you treat the sandbox as enforced. Its gaps matter as much as its features: the sandbox reduces what a command can do but does not guarantee isolation, built-in file tools and remote HTTP MCP servers run outside it, and protected paths such as .git/ and mcp.json are enforced only in the IDE. The Kiro sandbox documentation lists the exact limits.

Two points should be settled in the security review. Supervised mode is a code review workflow, not a security control, and both Autopilot and Supervised modes can create, modify and delete files and run commands. Treat permission rules and the sandbox as the controls, and treat human review as an extra check. Model and MCP server governance, including which servers and tools are approved, is covered separately, so the permission rules here should be written for local actions and network reach only. Confirm with AWS how the enterprise settings apply to each client, and test a sample deny rule on a managed device before rollout.

Permission and sandbox capabilities by Kiro edition and client

This table shows which Kiro permission and sandbox controls are built in, which depend on a paid edition, and which need a component outside Kiro. Read each row against the client you plan to deploy, since the IDE and CLI have different sandbox versions and protected path enforcement. Confirm edition eligibility for managed settings with AWS before you rely on them in a quote or rollout.

Capability or controlBuilt inPaid edition onlyOutside component needed
Rules for fs_read, fs_write, shell, web_fetch, web_search, mcp and subagentYes. Per-user permissions.yaml; unmatched actions prompt for approvalNot applicableNot applicable
Effects: deny, ask, allow and evaluateYes. Evaluated deny first, then ask, then allow, then evaluateNot applicableNot applicable
Enterprise managed-settings.json policiesLimited to deny and ask effects onlyConfirm with AWS which Kiro plan supports itNot applicable
OS-level sandbox (Seatbelt on macOS, Bubblewrap on Linux)Available in IDE 1.3 and later and CLI 2.31 and later; off by defaultNot applicableNot applicable
Organization-managed sandbox requirementsRequire CLI 3.4.0 or IDE 1.4.215 or laterConfirm whether tied to Kiro EnterpriseNot applicable
DEFAULT_BLOCKED network mode with sandbox_network rulesBlocks outbound network except hosts named in sandbox_network rulesNot applicableNot applicable
Protected paths such as .git/ and mcp.jsonEnforced only in the IDE; confirm CLI behavior with AWSNot applicableNot applicable
Built-in file tools and remote HTTP MCP serversRun outside the sandboxNot applicablePermission rules and review must cover these paths

How Kiro decides whether a command, write, MCP call or web request is allowed

Kiro checks its permission rules in a fixed order: deny, then ask, then allow, then evaluate. Rules in permissions.yaml gate capabilities including fs_read, fs_write, shell, web_fetch, web_search, mcp and subagent, each with an effect of deny, ask, allow or evaluate. Evaluation is deny-overrides, and the documentation states there is no precedence between scopes, so a deny in any scope wins over an allow in another. Anything no rule covers falls through to an approval prompt. For a reviewer, the practical test is whether a given capability is listed with a deny or ask rule at every level that applies, and whether the team has confirmed that an uncovered action still prompts in their own build. Enterprise policies in managed-settings.json may only use deny and ask, so an organization can block or force approval centrally but cannot grant broad allows that way.

Workspace permission files are stored per user outside the repository, which is the control that stops a cloned repository from injecting its own allow rules. Reviewers should still ask who can edit those per-user files on managed laptops and whether the rules they hold match the organization's baseline. Protected paths such as .git/ and mcp.json are enforced only in the IDE according to AWS's privacy and security documentation, so a team using the CLI should not assume the same protection applies there. Confirm that point against the current docs before approving CLI use on sensitive repositories.

The OS-level sandbox sits after the permission decision for shell commands. Its use is off by default, uses Seatbelt on macOS and Bubblewrap on Linux, and in the default DEFAULT_BLOCKED mode blocks outbound network access except hosts named in a sandbox_network rule. The sandbox reduces what a command can do but is not a guarantee of isolation. Built-in file tools and remote HTTP MCP servers run outside it, so a file write made by the agent's own tools or a call to a remote MCP server is not constrained by the sandbox. Organization-managed sandbox requirements need Kiro CLI 3.4.0 or Kiro IDE 1.4.215 or later, and the sandbox itself needs Kiro IDE 1.3 or Kiro CLI 2.31 or later. Ask the vendor or check the Kiro sandbox documentation to confirm the current behavior for each client version in use.

Decisions to make before setting Kiro permissions and sandbox policy

Kiro's permissions, sandbox, operating mode and protected paths each control a different part of what the agent may run or change. The choices below connect because a rule set centrally in managed settings, a sandbox allowlist and a remote MCP scope all decide the same question: what happens after the agent acts on a developer's machine.

Central deny or ask rules

Decide which capabilities (fs_read, fs_write, shell, web_fetch, web_search, mcp and subagent) an organization blocks or requires approval for in managed-settings.json, and which stay with users. Enterprise policies there may only use deny and ask, so you cannot centrally grant allow. Because evaluation is deny-overrides, a central deny cannot be reversed by a user's workspace file. Confirm with your Kiro administrator which rules your edition enforces on developer machines before you publish a baseline.

Kiro permissions docs

Sandbox on or off

The sandbox is off by default, so enabling it is an explicit policy decision. It uses Seatbelt on macOS and Bubblewrap on Linux and limits what running commands can do, but it is not a guarantee of isolation. Decide whether your baseline requires it for shell commands, and document that built-in file tools run outside it. Test the setting on each operating system your developers use.

Default network mode
DEFAULT_BLOCKED
Kiro sandbox docs

Sandbox network allowlists

In DEFAULT_BLOCKED mode, outbound network access from sandboxed commands is blocked except for hosts named in a sandbox_network rule. Each host you add, such as a package registry or internal Git server, widens what a command can reach. Build the list from the tasks developers actually need, review it with the security team, and record who approved each entry. Unlisted hosts stay blocked for sandboxed commands.

Minimum client versions

Sandbox support starts at Kiro IDE 1.3 and Kiro CLI 2.31, but organization-managed sandbox requirements need Kiro CLI 3.4.0 or Kiro IDE 1.4.215 or later. Standardize on the managed-requirements versions if you want administrators to enforce sandbox settings, and block older clients from your managed fleet. Confirm the version your package manager or device management tool distributes before you write the requirement into policy.

Autopilot or Supervised mode

Both Autopilot and Supervised modes can create, modify and delete files and run commands. Supervised mode is a code review workflow, not a security control, so it should not replace permission rules or the sandbox. Decide whether Autopilot is allowed at all, and if it is, pair it with deny and ask rules for high-risk capabilities. Document the mode each team uses so reviewers know what the agent could have done before a human saw the diff.

IDE-only protected paths

Protected paths such as .git/ and mcp.json are enforced only in the IDE, so a CLI session may not respect them. Decide whether your rules for those paths rely on IDE behavior or on controls that apply to every client, such as repository hooks, branch protection and code review. Ask developers to use the IDE for work touching protected files, and test whether a CLI write to mcp.json is blocked in your setup.

Remote HTTP MCP scope

Remote HTTP MCP servers run outside the sandbox, so the sandbox network allowlist does not limit what they reach. Decide which remote servers are approved, which tools each may expose, and which mcp rules apply to them. Permission rules still gate MCP calls, so make the mcp capability ask or deny by default for unapproved servers. Review how each server authenticates and what data it can return to the agent.

How the permission and sandbox answer changes by situation

Teams that use Kiro only in the IDE get the permission rules, the sandbox option and the IDE-only protected paths. Both Autopilot and Supervised modes can create, modify and delete files and run commands, so the answer depends on the rules in permissions.yaml and on whether the sandbox is turned on.

  • Permission rules: Set fs_write, shell, web_fetch and mcp rules in permissions.yaml. Any action without a matching rule prompts for approval.
  • Protected paths: .git/ and mcp.json are enforced only in the IDE, so this protection does not carry over to other clients.
  • Client version: The sandbox needs IDE 1.3 or later. Organization-managed sandbox requirements need IDE 1.4.215 or later.
  • Supervised mode: Treat it as a code review step, not as a security control.
  • Per-user files: Permission files live per user outside the repository, so an administrator must confirm that each developer's file holds the intended rules.

Confirm which IDE build each developer runs, then test in a sample workspace that a blocked shell command is refused and a prompted write waits for approval.

Order of work to put Kiro permissions and sandboxing in production

This sequence moves Kiro from default settings to a controlled baseline in which permissions, sandbox limits and protected paths are set, tested and monitored, and the remaining risk is written down for approvers. Each step closes with a check that the control behaves as the documentation describes.

  1. Confirm client versions across the fleet

    The IT or endpoint team inventories every Kiro IDE and Kiro CLI installation and records its version. The sandbox is available in Kiro IDE 1.3 and later and Kiro CLI 2.31 and later, and organization-managed sandbox requirements need Kiro CLI 3.4.0 or Kiro IDE 1.4.215 or later. Done means every device is on a version that supports each control you plan to enforce, and older clients are upgraded or excluded from the rollout.

  2. Define the baseline permissions and managed deny and ask rules

    The security team writes the baseline rules for fs_read, fs_write, shell, web_fetch, web_search, mcp and subagent in permissions.yaml, and places enterprise rules in managed-settings.json. Enterprise policies accept only deny and ask, and evaluation is deny-overrides, so a deny rule at the enterprise level cannot be relaxed by a user file. Done means a reviewer can read the policy and confirm that every capability not explicitly allowed still prompts for approval.

  3. Enable and test the sandbox with a host allowlist

    The platform team turns the sandbox on, since it is off by default, and tests it on each supported operating system family, Seatbelt on macOS and Bubblewrap on Linux. In the DEFAULT_BLOCKED mode, outbound network access is blocked except for hosts named in sandbox_network rules, so each approved host is added deliberately and recorded. Done means blocked hosts fail as expected in a test session and approved hosts succeed. Confirm with the vendor that the sandbox behaves the same way on your managed image.

  4. Verify the sandbox limits and their gaps

    The security team documents what the sandbox does not cover. The sandbox reduces what a running command can do but does not guarantee isolation, and built-in file tools and remote HTTP MCP servers run outside it. Testers confirm that file tools and remote MCP calls are governed only by permissions rules and approvals. Done means the gaps are listed in the control register and each has a named compensating control or an accepted-risk entry.

  5. Verify protected paths in the IDE

    Testers confirm that protected paths such as .git/ and mcp.json are enforced in the Kiro IDE. Kiro's privacy and security documentation states that these protections apply only in the IDE, and both Autopilot and Supervised modes can create, modify and delete files and run commands. Done means the test results show the IDE blocks changes to protected paths, and the CLI and any non-IDE workflow are recorded as having no equivalent guard so they can be covered by other controls.

  6. Test that a cloned repository cannot inject rules

    Testers clone a repository containing a permissions file or other workspace configuration that tries to loosen rules, then start a session as a standard user. Kiro stores workspace permission files per user outside the repository, so a cloned repository should not change the effective rules. Done means the test shows the enterprise deny and ask rules still apply and the repository-supplied settings have no effect. Record the test so it can be repeated after each client upgrade.

  7. Pair the controls with endpoint and egress monitoring

    The security operations team connects endpoint telemetry and network egress logs for developer devices to the rollout. Kiro's sandbox and rules are one layer, so monitoring should show process launches from the agent, outbound connections and changes to protected files. Kiro's privacy and security documentation covers firewalls, proxies and VPC endpoints, which can be used to route traffic through inspection. Done means alerts fire in a test scenario and the team knows who responds to them.

  8. Document residual risk and approval conditions

    The security lead writes a residual risk statement covering the sandbox limits, the IDE-only protections, the Supervised mode caveat and any MCP or web access allowed. Kiro's documentation says the shared responsibility model places configuration on the customer, and that Supervised mode is a code review workflow rather than a security control. Done means the statement is signed by the approving owner, lists the re-test triggers such as client upgrades or new AWS security bulletins, and is reviewed on a schedule the organization sets.

Decision path for a Kiro agent action

The diagram starts when Kiro requests a capability such as a shell command, file write, MCP call or web request. Enterprise deny and ask rules from managed settings are checked first, then the user's workspace permission file, and anything not matched prompts for approval. Shell commands then pass through the OS-level sandbox, where outbound network access is blocked unless a sandbox_network rule allows the host. Built-in file tools and remote HTTP MCP servers sit outside that sandbox, so a reviewer should confirm which of these paths their policy actually covers.

How a requested Kiro action moves through policy checks and the sandbox.

What a security reviewer asks to see for Kiro permissions and sandboxing

This table lists what a security reviewer should request for Kiro permissions and sandboxing, the evidence that answers each request, where that evidence lives in the tool, and who in the organization should own it. Use it as a checklist before approving a rollout, and confirm each item against the version your staff actually run. The main takeaway is that enterprise policy, per-user rules, sandbox settings and client versions each cover different parts of the risk, so no single artifact answers the whole question.

Reviewer requestEvidence to collectWhere it livesOwner
Which enterprise rules cannot be overridden locallyExported managed-settings.json with deny and ask rules, reviewed line by lineEnterprise managed-settings.json, deployed to user machinesSecurity architecture
Which capabilities each user can approve for themselvesPer-user permissions.yaml for a sample of users, showing allow and evaluate rulesPer-user workspace file, stored outside the repositoryPlatform engineering
Whether a cloned repository can change agent rulesTest showing a repository-level config file has no effect on permissionsPermission evaluation behavior, verified in a test workspaceApplication security
Whether command execution is sandboxed and for which platformsSandbox configuration with mode noted, plus proof it is enabled on macOS and Linux endpointsSandbox configuration and organization-managed sandbox requirementsEndpoint engineering
Which hosts a sandboxed command may reach over the networkCurrent sandbox_network allowlist with a named owner for each hostsandbox_network rules in the sandbox configurationNetwork security
Which tools run outside the sandboxList of built-in file tools and remote HTTP MCP servers in use, with compensating controlsSandbox documentation scope and the organization's MCP inventorySecurity architecture
Which client versions are deployedInventory of Kiro IDE and CLI versions against the minimum that supports organization-managed sandbox requirementsEndpoint management tool and Kiro client version reportingIT operations
Whether protected paths hold in the IDE and CLITest results for writes to .git/ and mcp.json in each client, with the IDE and CLI results recorded separatelyTest records kept by the security team, based on the privacy and security documentationSecurity testing
Whether AWS security bulletins are reviewed and acted onDated log of each published bulletin, affected versions, fix applied and owner sign-offSecurity bulletins published by AWS and the organization's change recordsVulnerability management

Questions buyers ask about Kiro permissions and sandboxing

Is the Kiro sandbox turned on by default?

No. The Kiro sandbox is off by default, so an organization has to enable it deliberately before relying on it. When it is on, Kiro uses Seatbelt on macOS and Bubblewrap on Linux. In the default DEFAULT_BLOCKED mode, it blocks outbound network access from running commands except to hosts allowed by a sandbox_network rule. Security reviewers should confirm the sandbox state on every device and in any organization-managed configuration before approving the tool, because a user can run the agent without it unless an admin requirement is in place. Check the exact behavior in the Kiro sandbox documentation.

Which Kiro client versions do we need for sandbox and admin requirements?

The sandbox is available in Kiro IDE 1.3 and later and Kiro CLI 2.31 and later. Organization-managed sandbox requirements need Kiro CLI 3.4.0 or Kiro IDE 1.4.215 or later. Older clients may run the agent without these controls, so the version check belongs in the rollout checklist. Ask your DeployOpen or internal team to inventory client versions on each developer machine, and confirm the minimum versions against the current Kiro sandbox documentation before you publish an approved client baseline.

Can admins force deny rules on users?

Yes, in part. Rules in permissions.yaml gate capabilities such as fs_read, fs_write, shell, web_fetch, web_search, mcp and subagent. Enterprise policies in managed-settings.json may only use the deny and ask effects, so an organization can block or require approval for an action but cannot grant a capability centrally through that file. Evaluation is deny-overrides, meaning a deny always wins over an ask or allow, and there is no precedence between scopes. Confirm with AWS which settings a user cannot override on your client version before you describe the control as enforced in your policy.

Can a cloned repository change the agent's permissions?

No, according to Kiro's permissions documentation. Workspace permission files are stored per user outside the repository, so a cloned repository cannot inject allow rules that change what the agent may do. This matters for untrusted code and third-party repositories. It does not remove the need for review, because files inside the repository can still contain instructions the agent reads. Test this on your own clients during a pilot, and record the result as part of the evidence for your review.

What drives the cost and effort of setting up Kiro permissions, and what can our team do alone?

Effort depends on how many policies you need, how many client versions and operating systems you support, and how much testing you require. Your team can do much of the work alone: list the capabilities you want to restrict, write permissions.yaml and managed-settings.json rules, roll them out to a pilot group, and verify that deny and ask rules hold. Ongoing costs come from client updates and policy reviews. Kiro subscription costs are set by AWS, so confirm the figures in the written quote from AWS and any partner, not from this page. DeployOpen scopes this work in writing before it starts.

Does the sandbox stop prompt injection?

No. The sandbox limits what a running command can do, such as restricting outbound network access, but it does not prevent prompt injection from reaching the agent or stop the agent from proposing harmful actions. Kiro's documentation also says the sandbox is not a guarantee of isolation, and built-in file tools and remote HTTP MCP servers run outside it. Treat the sandbox as one layer. Pair it with narrow deny rules on shell, fs_write and mcp, approval prompts, and review of agent changes. Prompt injection bulletins from AWS are covered on their own page.

What do we need from the AWS Enterprise setup for permissions to apply?

Kiro Enterprise requires enterprise authentication through AWS IAM Identity Center or an external identity provider, so sign-in must be configured before users can be governed. Administrative settings are managed in the Kiro console in the AWS Management Console, through a Kiro profile that defines and enforces settings for one AWS account and Region. Plan for one profile per account and Region, and confirm with AWS how that profile applies to client policy files. Ask your AWS account team to confirm these requirements in the written scope.

How DeployOpen works on this

DeployOpen helps security and engineering leaders decide what a Kiro agent may run, read and change before anyone relies on it. We scope the permission rules, sandbox settings and managed policies in writing, then document and hand over the configuration and the evidence behind it. Our work covers the controls an organization can enforce and the ones it must still review as human process.

How we scope

  • We map which capabilities (file reads, file writes, shell, web fetch, web search, MCP and subagents) each user group needs.
  • We identify which rules can be enforced centrally and which must live in individual user workspace files.
  • We agree the scope, deliverables and timeline in writing before any work starts, as engagements are fixed-scope.
  • We record which sandbox limits apply to each platform, IDE and CLI version in the environment.

How we build

  • We draft the enterprise policy file and the permission rules, then test deny, ask, allow and evaluate outcomes against real command samples.
  • We configure and test the OS-level sandbox on the supported platforms and document the network allowlist for each approved host.
  • We test whether built-in file tools and remote HTTP MCP servers stay within the rules, since they run outside the sandbox.
  • We run security testing against the configuration, including attempts to bypass rules from a cloned repository.

How we hand over

  • We deliver the final policy files, sandbox settings and a written permission matrix that reviewers can audit.
  • We document which controls are enforced and which depend on user discipline, such as Supervised mode being a review workflow only.
  • We train administrators and developers on the rules, the sandbox limits and the approval process for exceptions.
  • We provide a list of checks to confirm after each Kiro release, including the AWS security bulletins that apply to the version in use.

How we support

  • We support rule changes and version upgrades under an ongoing retainer when the organization needs continuing help.
  • We can run recurring security testing of agent behavior, including prompt injection scenarios, as a retained service.
  • We keep the documentation current as Kiro's sandbox requirements and managed settings change.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.