返回新闻
安全AI Understanding 简报

GitHub Copilot app adds local sandboxing for AI sessions

GitHub has introduced a local sandboxing feature in the Copilot app, allowing developers to restrict AI agent access to files, network resources, and credentials on their machines to mitigate the risks of unintended commands.

4 min readRead the primary source
Source-provided image accompanying GitHub Copilot app adds local sandboxing for AI sessions
主要来源文件来源记录
出版商
github.blog
来源链接
github.bloghttps://github.blog/changelog/2026-09-23-local-sandboxing-in-the-github-copilot-app
来源类型
主要文件——我们直接阅读的官方公告、文件、文件或第一方页面。
背景60 秒内了解这一点

从这里开始

关键术语

护栏
限制不安全或不需要的模型行为的规则、检查和控制。
人工智能代理
一种可以观察、推理并采取行动来实现目标的软件系统,通常使用工具和内存。
特征
模型用来进行预测的输入变量。
测试一下自己AI 代理测验

发生了什么

GitHub released a public preview of local sandboxing for the GitHub Copilot app. This allows users to configure per-project policies that limit the AI's access to local files, network resources, and credentials during local repository and working tree sessions. The sandbox is off by default and can be enabled via app settings or the /sandbox command for active sessions. If the operating system cannot enforce the requested policy, the session fails rather than running without protection.

GitHub has introduced a local sandboxing in the GitHub Copilot app, currently in public preview. This feature is designed to reduce the potential impact of unintended commands generated by AI agents by limiting their access to files, network resources, and credentials on the user's machine.

The sandboxing is configured on a per-project basis for local repository and working tree sessions. Users can define the policy that the app requests when a sandboxed session starts. It is important to note that if enterprise-managed settings are applied, the effective policy may be more restrictive than the local configuration.

The is off by default. To enable it, users must open the app settings, select the specific project, and turn on 'Sandbox new sessions' under the 'Sandbox' section. This setting applies only to new sessions; existing running sessions are not affected until they restart. For active local sessions, users can enable sandboxing immediately by entering the command /sandbox on, which changes the session state without altering the project default.

The system includes a fail-safe mechanism: if the operating system cannot enforce the requested sandbox policy, the sandboxed shell will fail with an error rather than running without a sandbox. This ensures that the security boundary is not silently bypassed.

Local sandboxing does not apply to cloud sandbox sessions or sessions running on a remote host. Additionally, the sandbox settings for the GitHub Copilot app and the Copilot CLI are configured separately, meaning users must manage these configurations independently.

来源详情: github.blog

为什么这很重要

As AI coding agents gain the ability to execute commands and modify code, the risk of unintended or malicious actions increases. Local sandboxing provides a critical security layer by isolating the AI's environment, preventing it from accessing sensitive data or making unauthorized network calls. This addresses a growing concern in the developer community regarding the safety of autonomous AI tools and aligns with broader industry efforts to implement for AI agents. By making this a configurable, per-project setting, GitHub empowers developers to balance productivity with security according to their specific risk tolerance.

The rise of AI coding agents that can execute shell commands and modify codebases has introduced new security risks, including the potential for data exfiltration or accidental system damage. Local sandboxing directly addresses these risks by creating an isolated environment for the AI's operations.

By limiting access to files, network resources, and credentials, the prevents the AI from interacting with parts of the system that are not explicitly permitted. This is particularly important for developers working with sensitive codebases or proprietary data.

The per-project configuration allows for granular control, enabling developers to apply stricter security measures to high-risk projects while maintaining flexibility for others. This approach supports a risk-based security strategy.

The fail-safe behavior, where the session fails if the sandbox cannot be enforced, is a significant design choice that prioritizes security over convenience. It prevents a common vulnerability where security controls are silently disabled due to system limitations.

This move by GitHub reflects a broader industry trend toward integrating security controls directly into AI development tools. It sets a precedent for how AI agents should be managed in local development environments, potentially influencing other vendors to adopt similar safeguards.

Interactive Mechanism

互动机制:它实际上是如何运作的

以交互方式探索这一发展背后的基础技术。

Agent Lifecycle Stage:
1
User Intent & Planning: "Audit customer refund request #4092 and settle payment."
2
Tool Calling: Emits structured JSON call crm_get_transaction(id='4092').
3
Guardrail & Verification:🛡️ Paused: High-value action requires human operator sign-off.
4
Final Settlement: Refund recorded, email receipt dispatched, and audit log stored.
Core takeaway: An AI agent is not just a language model—it is a closed loop of planning, tool invocation, and environment feedback. Production systems require self-healing retries and strict human approval guardrails.
交互式概念检查+10 Points
AI Agents Quiz

What most distinguishes an AI agent from a basic chatbot?

接下来看什么

Monitor the evolution of sandboxing policies as the moves from public preview to general availability. Watch for enterprise-specific management options that may override local settings. Additionally, observe how other AI coding tools respond to this security standard, potentially leading to industry-wide adoption of similar isolation mechanisms for AI agents.

As the moves from public preview to general availability, watch for changes in the default configuration. GitHub may choose to enable sandboxing by default for new projects to enhance security out of the box.

Enterprise customers should monitor the development of centralized management tools for sandboxing policies. The ability to enforce consistent security standards across an organization will be crucial for widespread adoption in corporate environments.

Observe how the sandboxing interacts with other security tools, such as secret scanners and code linters. Integration with existing security workflows will determine its practical utility for developers.

Watch for community feedback and third-party audits of the sandboxing implementation. Understanding the limitations and potential bypasses will be important for developers to make informed decisions about its use.

Monitor the response from other AI coding tool providers. If GitHub's approach is well-received, it may lead to a standardization of sandboxing practices across the industry, raising the overall security bar for AI-assisted development.

相关指南和测验

人工智能代理AI 伦理AI 的未来测试你所知道的——尝试免费的人工智能测验在我们的词汇表中查找人工智能术语
觉得这有用吗?