# How do Claude Code permissions and sandboxing work together?

Exam: CCDV-F — Claude Certified Developer - Foundations
Knowledge domain: Claude Code
Updated: 2026-11-25T08:30:05.922601+00:00
HTML: https://learningpathx.com/faq/CCDV-F/ccdvf-claude-code-permissions-sandbox.html

## Also asked as

- Which Claude Code controls restrict file tools versus shell access?
- Can Claude Code sandbox settings replace per-tool permission rules?

Use Claude Code permission rules to control tool requests and the shell sandbox to constrain filesystem and network access for covered commands on supported platforms. Built-in file tools such as Read, Edit, and Write use permissions. Hooks, local MCP servers, and other separate processes require controls appropriate to their execution environment. [Configure Claude Code permissions](https://code.claude.com/docs/en/permissions) [Configure the shell sandbox](https://code.claude.com/docs/en/sandboxing)

Start with least privilege. Use allow, ask, and deny rules for the appropriate tools and targets, and place organization requirements in supported managed settings. Deny is evaluated before ask and allow. Configure shell filesystem and network restrictions independently. Review platform support, excluded commands, potential unsandboxed retries, and what the deployment does if sandbox startup fails. [Configure Claude Code permissions](https://code.claude.com/docs/en/permissions) [Configure the shell sandbox](https://code.claude.com/docs/en/sandboxing)

Test allowed and denied paths with harmless fixtures on each surface you actually use. For a sensitive file, check direct file-tool access and the covered shell path separately, and restrict credentials and other processes that can reach the file. When a workflow needs a boundary around the entire Claude Code process and its extensions, use an appropriate host or container boundary. [Configure the shell sandbox](https://code.claude.com/docs/en/sandboxing) [Claude Code security](https://code.claude.com/docs/en/security)

Source: [Securing Claude Applications with Guardrails, Hooks, and Secret Management](https://learningpathx.com/news/securing-claude-applications-with-guardrails-hooks-and-secret-management.html)
