Security

GitHub just made agent sandboxing "GA." Don't treat it as a security boundary yet

Every coding-agent vendor is racing to ship sandboxing this year, and on the surface that's good news: autonomous agents running shell commands against your repo is a real risk, and "yes, we isolate that now" sounds…

Every coding-agent vendor is racing to ship sandboxing this year, and on the surface that's good news: autonomous agents running shell commands against your repo is a real risk, and "yes, we isolate that now" sounds like the industry growing up. On October 7, 2026, GitHub announced that local sandboxing for Copilot — CLI, the Copilot app, and VS Code sessions on Agent Host — is generally available, at no extra cost. That's the headline. The more useful story is what "GA" actually buys you, and where the marketing gets ahead of the underlying tech.

What shipped

Per GitHub's changelog, local sandboxing restricts what tools and commands Copilot runs on your behalf: filesystem access (which directories it can read or write), network access (internet and local network), and credentials (Git and GitHub CLI credentials, and on macOS, optionally the keychain). Sandboxing can also extend to local MCP servers and language servers "where supported." Policy can be set per developer or pushed down centrally — enterprises can require sandboxing and lock settings so individual developers can't loosen them. (evidenced — GitHub's own changelog and docs)

The defaults matter more than the feature list. Per GitHub's configuration docs: sandboxing is off by default unless an org requires it. When it's on, a session gets read/write access to your working directory and .git, plus read access to the rest of the repo — reasonably sane out of the box. Outbound internet is allowed by default; local network access is off by default in the CLI (on by default in the app, which is an inconsistency worth knowing before you assume parity across surfaces). Git and GitHub CLI credentials are available by default in both. You have to go opt into the tighter posture — deny-listing paths, masking environment variables, blocking local network — it isn't handed to you. (evidenced)

The enforcement layer is Microsoft eXecution Container (MXC), a cross-platform engine that translates one policy into native OS controls: Seatbelt on macOS, Bubblewrap on Linux, a container primitive on Windows (which needs a fairly recent Windows 11 build — 25H2 with a specific KB, or 26H1). If your OS can't enforce the policy, GitHub says the sandboxed command fails rather than silently running unsandboxed. That fail-closed behavior is the right call and worth confirming if you're rolling this out across a fleet with mixed OS versions.

The gap nobody's advertising

Here's the part that matters more than the "GA" label. MXC is the same engine Anthropic and others are converging on for OS-level agent isolation, and its own project documentation — as recently as August 2026 — stated plainly that no MXC profiles should be treated as security boundaries currently, and that its default generated policies are "overly permissive." One independent write-up summarized the right posture as: treat it as a guardrail against accidents, not a boundary against a determined attacker, at least for now. (disputed / unverified at GA) — I could not confirm whether GitHub's GA announcement means MXC itself crossed that threshold, or whether GitHub is shipping a hardened fork, or whether the "not a security boundary" caveat simply didn't get updated yet. That's a real gap in the public record right now, and it's the first thing I'd ask GitHub directly if I were betting an engineering org's threat model on this.

This isn't a reason to skip the feature — it's a reason to be precise about what problem it solves. "Guardrail against accidents" is still valuable: it stops a misbehaving agent from rm -rf-ing outside its lane, hitting your credentials, or phoning home to an unexpected host. That's most of what goes wrong with autonomous coding agents in practice — not sophisticated escapes, but scope creep. It is not yet, on the public evidence, something you should rely on to contain a genuinely malicious prompt injection or a compromised MCP server.

How this compares to what else is out there

Both GitHub Copilot CLI and Claude Code now wrap agent-run shell commands in OS primitives (Seatbelt/Bubblewrap), and by most third-party comparisons, Claude Code's network control is the stronger of the two — an empty allowlist by default, routed through a proxy that enforces domain restrictions, versus Copilot's "internet on by default." (vendor claim / secondary sources — I did not independently verify Claude Code's current default policy against its own docs for this piece, so treat the comparison as directional, not exact.) The point isn't picking a winner. It's that "sandboxed" is doing a lot of work as a marketing word right now, and the actual default posture — what's open versus closed on day one — varies a lot between tools that all use the same word.

Why it matters for a working team

  • Cost: free, bundled with existing Copilot seats — no separate line item to justify.
  • Review burden: doesn't reduce code review. It reduces blast radius while the agent is working, before a human ever reviews a diff. Different problem, don't conflate them.
  • Security and compliance posture: if you're answering a vendor security questionnaire or an internal AppSec review about AI coding tools, "sandboxed by default" and "sandboxed, opt-in, enforced centrally" are different answers. Right now Copilot is the second one.
  • Governance: the enterprise-managed, developer-can't-loosen setting is the actually useful lever for a platform team. That's the thing to turn on this quarter, not the marketing bullet.

Checklist

  • Confirm your org's current Copilot sandbox default — don't assume it's on just because GitHub called it GA.
  • If you manage a fleet, turn on enterprise-managed sandbox policy and lock it, rather than leaving it to individual opt-in.
  • Explicitly deny-list credential paths and the local network if your agents don't need them — don't rely on the shipped defaults.
  • Check your Windows build version against GitHub's listed requirements before promising this works org-wide.
  • Write down, internally, what this sandbox is and isn't defending against — "accidental scope creep" yes, "malicious prompt injection containment" not yet proven. Make sure whoever signs off on your AI tooling security review sees that distinction.
  • Re-check MXC's own security-boundary language before your next compliance cycle — it's the kind of caveat that changes quietly between preview and GA without a press release.

Unverified claims or gaps

  • Whether GitHub's October 7 GA release addresses MXC's "not a security boundary" caveat, or whether that caveat still applies to the shipped product — the primary sources I found don't say.
  • The claim that Copilot's local network access defaults differently between the CLI (off) and the app (on) comes from GitHub's own docs but is easy to misread; worth a second read of the current docs page before publishing anything that depends on it.
  • The comparison between Claude Code's and Copilot's default network posture relies on secondary/third-party sources, not a direct read of Anthropic's current sandboxing docs — treat as directional.
  • Windows platform requirements (25H2/26H1 with specific KBs) are drawn from GitHub's docs page and could change without a changelog entry.

Sources

  1. Local sandboxing for GitHub Copilot now generally available — GitHub Changelog, October 7, 2026.
  2. Configuring local sandbox settings — GitHub Docs (accessed October 12, 2026).
  3. Microsoft eXecution Container (MXC) — dsebastien.net, August 21, 2026 (third-party summary of MXC project documentation, including the "not a security boundary" and "overly permissive defaults" language).
  4. Cloud and local sandboxes for GitHub Copilot now in public preview — GitHub Changelog, June 23, 2026 (earlier preview announcement, for context on the GA timeline).
  5. Local sandboxing in the GitHub Copilot app — GitHub Changelog, September 23, 2026.
Next essay

Your CI Gate Doesn't Check the Thing That's Actually Broken

6 min read