Security
GitHub Will Now Auto-Fix Your Security Vulnerabilities. Should You Let It?
On October 15, 2026, GitHub shipped two security features to general availability on the same day: agentic autofix for code scanning alerts, and AI Scan for pull requests. A week earlier, on October 7, local sandboxing…
On October 15, 2026, GitHub shipped two security features to general availability on the same day: agentic autofix for code scanning alerts, and AI Scan for pull requests. A week earlier, on October 7, local sandboxing for Copilot also went GA. Put together, the pitch is simple: an agent finds the vulnerability, writes the patch, verifies it, and opens the PR — and now it's allowed to do all of that inside a sandbox on your machine too.
That's a real capability shift, not a demo. But "generally available" doesn't mean "safe to merge on trust." The same month this shipped, independent research on AI-generated security patches put a hard number on how often these fixes are wrong — and it's not a small number. If your team is about to turn this on, the interesting question isn't whether it works. It's what it changes about who reviews what, and how carefully.
What actually shipped
Agentic autofix for code scanning (GA, Oct 15, 2026) replaces the old one-shot "Generate Fix" button with an agent that explores the codebase, proposes a fix, reruns CodeQL to confirm the alert actually closes, iterates if it doesn't, and opens a draft PR explaining what it did and why. You can assign a single alert to Copilot, batch up to 25 alerts into one PR, or trigger it via the REST API. It only works on alerts on the default branch — not on PR branches. It requires GitHub Code Security or Advanced Security on Enterprise Cloud, an enterprise-level policy toggle, and a Copilot billing method; usage draws from AI Credits plus Actions minutes. (Evidenced — GitHub Changelog, Oct 15, 2026)
AI Scan for pull requests (GA, same day) complements CodeQL by scanning languages CodeQL doesn't cover — PHP, Shell/Bash, Terraform/HCL, Dockerfiles, JSP, Blazor — directly on PR diffs, flagging findings with an "AI" badge and an optional suggested fix. Crucially, these findings are advisory only: they can't fail the check or block a merge via rulesets, and they skip fork PRs and Dependabot PRs. It rolled out from a July 2026 preview through a September API preview to this GA. (Evidenced — GitHub Changelog, Oct 15, 2026)
Local sandboxing for Copilot (GA, Oct 7, 2026) runs Copilot CLI, the Copilot app, and VS Code Agent Host sessions inside a Microsoft eXecution Container (MXC) policy that can restrict filesystem access, network access, and Git/GitHub credentials, on Windows, macOS, and Linux, at no extra cost. GitHub's own page doesn't state whether it's on by default; a related Sept 23 changelog entry says it's off by default in the Copilot app specifically. (Evidenced — GitHub Changelog, Oct 7, 2026, with that one gap noted)
Why it matters in practice
Scanning more languages and running fixes end-to-end is useful — most teams have Terraform, Dockerfiles, and shell scripts that CodeQL never touched. And a sandboxed agent is strictly safer than an unsandboxed one. None of that is in question.
What should give you pause is treating "agent verified it" as equivalent to "a human verified it." Agentic autofix's own verification loop is reruns of CodeQL — the same tool that found the bug — not independent review. That's a narrower bar than it sounds.
What the evidence says about AI-written patches
This is where the research gets uncomfortable. 1Password's Off-by-1 Labs tested 6,080 patches from ChatGPT 5.5 and Claude Opus 4.8 against six recently disclosed CVEs. Only 26.0% fully resolved the vulnerability without changing application behavior. 53.9% either failed to remediate the target flaw, introduced a new one, or both — a result they labeled FLAWED. Cost per attempted patch-and-validation cycle: $2.11 (ChatGPT 5.5) to $2.81 (Claude Opus 4.8). (Evidenced for the headline numbers — 1Password blog, Aug 6, 2026; note a Flying Penguin critique disputes the grading methodology, arguing the models graded their own and each other's patches — disputed, unverified by me against the paper itself.)
Separately, an academic study of over 33,000 agent-authored PRs on GitHub (the AIDev dataset) found 1,293 security-related PRs — about 4% of agent activity — and reported that security-related agent PRs have lower merge rates and longer review latency than non-security PRs, i.e., maintainers already treat AI security PRs with more suspicion, not less. (Evidenced — "Security in the Age of AI Teammates," Siddiq et al., submitted Jan 2026, revised Sept 2026.)
And there's a cautionary tale on the reporting side, not just the fixing side: curl ended its paid bug bounty program in January 2026 after a wave of AI-generated vulnerability reports — none describing a real vulnerability in the week before the decision — overwhelmed the maintainers' ability to triage. Maintainer Daniel Stenberg's reasoning: the incentive structure, not the AI itself, created an unsustainable load. (Evidenced — The Register, Jan 21, 2026.)
Context and debate
The honest disagreement isn't "does this work" — it clearly works often enough to be useful — it's "what's the right default for merge gates." GitHub's own design answer for AI Scan is explicit: advisory only, can't block merges. That's a defensible, conservative choice. Agentic autofix is less conservative: it opens PRs that look review-ready, with an explanation and "validation steps" baked in, which is exactly the kind of polish that makes reviewers move faster and look closer less.
The 1Password number and the curl precedent point at the same underlying risk from different directions: AI output that looks confident and complete is not evidence it's correct, and the people on the receiving end — reviewers, maintainers, security teams — bear the triage cost regardless of who or what generated the artifact.
Suggested outline (strongest angle: "advisory, not autonomous — and your review process needs to catch up")
- Hook: GitHub shipped autonomous security-fixing PRs the same month research showed roughly half of AI security patches are flawed. Open with that juxtaposition, not a feature list.
- What shipped, concretely: the three GA features, dates, what each actually does and doesn't do (advisory vs. merge-blocking, default-branch-only, sandboxing not-on-by-default).
- The uncomfortable number: 1Password's 53.9% FLAWED rate, with the methodology caveat and the disputed-grading critique stated plainly — don't launder a vendor stat into a fact.
- The quieter finding: AI security PRs already get merged less and reviewed longer than other PRs — maintainers are compensating already, whether or not tooling tells them to.
- The curl lesson, generalized: when the artifact-generation cost drops to near zero, the bottleneck moves entirely to review capacity — and that's true for bug reports and for autofix PRs alike.
- What to actually change this week: treat autofix/AI Scan output as a draft from a fast, inexperienced contributor — always diffed, always tested, never auto-merged regardless of what the tool's own "validation" claims.
- Checklist:
- If you enable agentic autofix, keep it opt-in per-repo first; don't flip the enterprise policy org-wide on day one.
- Require the same review SLA for autofix PRs as human PRs — don't let "AI already verified it" shortcut a second pass.
- Treat AI Scan findings as a lead to investigate, not a pass/fail gate — it's advisory by GitHub's own design.
- Check your sandboxing default (on/off) per surface — CLI, app, VS Code — don't assume GA means enabled.
- If you run a bug bounty or accept external security reports, decide your AI-slop triage policy before volume forces the decision, as it did for curl.
Unverified claims or gaps
- Whether local sandboxing is on by default varies by surface per GitHub's own changelogs (off by default in the Copilot app per a Sept 23, 2026 entry); the Oct 7 GA page doesn't state a global default — unresolved.
- The 1Password FLAWED methodology is disputed by at least one external critique (Flying Penguin) alleging the grading models scored their own and each other's output; I could not verify this against the full paper text.
- Dark Reading's coverage of the 1Password study cites 540 patches where other outlets cite 6,080 — likely a reporting error on Dark Reading's part, not confirmed which is correct from the primary source alone.
- I could not find a specific percentage for how often AI-generated security PRs introduce new vulnerabilities in the AIDev/Siddiq study; the abstract reports lower merge rates and longer review latency but not that specific rate.
- No GitHub-published rollout numbers (adoption rate, fix-acceptance rate) exist yet for agentic autofix or AI Scan since both only reached GA on Oct 15, 2026 — too new for usage data.
Sources
- "Agentic autofix for code scanning alerts general availability," GitHub Changelog, Oct 15, 2026 — https://github.blog/changelog/2026-10-15-agentic-autofix-for-code-scanning-alerts-general-availability
- "AI Scan for pull requests generally available," GitHub Changelog, Oct 15, 2026 — https://github.blog/changelog/2026-10-15-ai-scan-for-pull-requests-generally-available/
- "Local sandboxing for GitHub Copilot now generally available," GitHub Changelog, Oct 7, 2026 — https://github.blog/changelog/2026-10-07-local-sandboxing-for-gitHub-copilot-now-generally-available
- "Local sandboxing in the GitHub Copilot app," GitHub Changelog, Sept 23, 2026 — https://github.blog/changelog/2026-09-23-local-sandboxing-in-the-github-copilot-app
- "Code scanning shows AI security detections on pull requests," GitHub Changelog, Jul 14, 2026 — https://github.blog/changelog/2026-07-14-code-scanning-shows-ai-security-detections-on-pull-requests/
- Keith Hoodlet (Off-by-1 Labs), "Why AI-generated vulnerability patches still require expert human review," 1Password Blog, Aug 6, 2026 — https://1password.com/blog/why-ai-generated-patches-still-require-human-review
- Siddiq, Zhao, Lopes, Casey, Santos, "Security in the Age of AI Teammates: An Empirical Study of Agentic Pull Requests on GitHub," arXiv, submitted Jan 1 2026, revised Sept 3 2026 — https://arxiv.org/abs/2601.00477
- "Curl shutters bug bounty program to remove incentive for submitting AI slop," The Register, Jan 21, 2026 — https://www.theregister.com/2026/01/21/curl_ends_bug_bounty/