OS-Level Sandboxing for Kiro CLI
Kiro's permission model operates at the software level — users approve/deny bash commands before execution. But once a command is approved, it can spawn arbitrary subprocesses (Python, sed, curl, etc.) that read/write any file or contact any network host. There's no enforcement below the permission layer.
This means:
- A user cannot make a specific file truly read-only to Kiro
- An approved command can exfiltrate data to any server
- Approval fatigue leads users to rubber-stamp commands without reading them
Desired Behavior
Kiro should support OS-level sandboxing that enforces filesystem and network restrictions on bash commands and all their child processes, using kernel-level primitives (macOS Seatbelt, Linux bubblewrap).
- Filesystem: Configurable allow/deny paths for reads and writes, enforced at the OS level so no subprocess can bypass them
- Network: All outbound traffic routed through a proxy with a configurable domain allowlist
- UX: A /sandbox command or equivalent to enable and configure. Sandboxed commands should auto-execute without permission prompts; commands needing resources outside the sandbox fall back to the normal permission flow.
Prior Art
Claude Code shipped this in Oct 2025 and reports an 84% reduction in permission prompts. Their implementation is open-sourced under Apache 2.0.
🤖 Potential Duplicate Detected
This issue appears to be similar to:
- #4027: Generic Sandbox Enforcement Layer (85% similar)
What happens next?
- ⏰ This issue will be automatically closed in 3 days
- 🏷️ If this is not a duplicate, you can prevent automatic closure by adding a comment or reacting with 👎 to this message.
- 💬 Comment on the original issue if you have additional information
Why is this marked as duplicate? Both issues request OS-level sandboxing capabilities for Kiro CLI to constrain command execution within defined boundaries, though the new issue provides more specific implementation details about filesystem/network restrictions
This issue has been automatically closed as it appears to be a duplicate of #4027.
If you believe this is incorrect, please comment on this issue and a maintainer will review it.
Thank you for your feedback! 🙏
The duplicate label has been removed and this issue has been sent back for maintainer review.
A maintainer will review this issue shortly.