Alberta Government Used Claude to Find Vulnerabilities Across 466 Million Lines of Code
On July 6, 2026, Anthropic published a case study on the government of the Canadian province of Alberta, which has used Claude Code with Opus and Sonnet models since 2025 to find and fix vulnerabilities in its public-sector systems. Around 50 agents worked autonomously and in parallel, scanning 466 million lines of code in 20 hours across 1,280 applications and 3,400 repositories belonging to 27 ministries. Minister Nate Glubish said the effort accomplished in hours what would have taken years with a traditional approach.
AI-processed from Anthropic Blog; edited by Hamidun News
On July 6, 2026, Anthropic published a case study on the government of the Canadian province of Alberta, which has used Claude Code with Claude Opus and Claude Sonnet models since 2025 to find and fix vulnerabilities in its government IT systems.
What the Alberta team actually did
A team inside Alberta's Ministry of Technology and Innovation pointed Claude Code at the codebase the ministry maintains for all 27 provincial ministries, from social services to public safety and wildfire response. Around 50 agents worked autonomously and in parallel, checking systems for security vulnerabilities, infrastructure weaknesses, flaws in deployment processes, and gaps in technical documentation.
- Anthropic case study publication date: July 6, 2026
- Code reviewed: 466 million lines in 20 hours
- Autonomous Claude Code agents: around 50, working in parallel
- Scale of the ministry's systems: 27 provincial ministries, around 1,280 applications and 3,400 code repositories
- Models: Claude Code powered by Claude Opus and Claude Sonnet
Why the Alberta government needed this
Most of the ministry's codebase had never undergone a systematic security review, and the accumulated technical debt (insecure code, unpatched bugs, outdated software) is estimated at billions of dollars. Meanwhile, the ministry's systems hold highly sensitive data: tax records, government procurement data, and social services case files.
"Albertans trust their government with some of the most sensitive data in their lives, and it is our duty to protect it.
By using AI to find and fix vulnerabilities across all our systems, we did in hours what would have taken years with a traditional approach. This is what responsible governance looks like in the age of AI, and the best is yet to come," said Nate Glubish, Alberta's Minister of Technology and Innovation.
Alberta has also published a series of technical white papers describing its experience, so that other governments can build on it.
What this means
The Alberta case is one of the first public examples of a regional government using AI agents for a systematic security audit of hundreds of millions of lines of legacy government code, rather than for isolated pilot projects. It shows that such an audit is now measured in hours, not years.
Frequently asked questions
How much code did the Alberta team review, and how fast?
Around 50 agents built on Claude Code with Opus and Sonnet models scanned 466 million lines of code in 20 hours, covering roughly 1,280 applications and 3,400 repositories across 27 provincial ministries.
Since when has Alberta used Claude Code for security?
The team at Alberta's Ministry of Technology and Innovation has used Claude Code since 2025 to find and fix vulnerabilities, infrastructure weaknesses, and documentation gaps in government systems.
- Dec 2, 2026Ai2 Releases MolmoWeb2 Web Agents: 27B Model Solves 75.3% of Tasks
- Dec 2, 202650 AI Models Beat 62 Teams at 'Zakovat': 48.3% Correct Answers vs 39.8%
- Dec 2, 2026Claude Fable 5.2 ran 1,000 agents for eight days and built an operating system
- Dec 2, 2026Amazon Releases Ergo Open Weights for Coding: 1.1 Trillion Parameters and 2,200 Tokens per Second
Key Questions Answered
How much code did the Alberta team review, and how fast?
Around 50 agents built on Claude Code with Opus and Sonnet models scanned 466 million lines of code in 20 hours, covering roughly 1,280 applications and 3,400 repositories across 27 provincial ministries.
Since when has Alberta used Claude Code for security?
The team at Alberta's Ministry of Technology and Innovation has used Claude Code since 2025 to find and fix vulnerabilities, infrastructure weaknesses, and documentation gaps in government systems.
What the Alberta team actually did?
A team inside Alberta's Ministry of Technology and Innovation pointed Claude Code at the codebase the ministry maintains for all 27 provincial ministries, from social services to public safety and wildfire response. Around 50 agents worked autonomously and in parallel, checking systems for security vulnerabilities, infrastructure weaknesses, flaws in deployment processes, and gaps in technical documentation.
Free 2-Day Vibecoding & AI Agents Intensive
Day 1: the autonomous Hermes + DeepSeek AI agent — vibecoding and development on par with Claude Code / Codex / Gemini. Led by Jemal Hamidun, Head of AI at Alpina Digital and academic supervisor at MIPT. Right after you register with our bot Nika: the recording + 11 materials from the previous intensive.
Daily 60-sec AI Voice Brief + Weekly Production AI Agent Playbook
Listen to a 60-second AI news brief every morning and get a weekly hands-on playbook for shipping AI agents to production — tools, MCP servers and patterns that work. Curated by Jemal Hamidun, Head of AI at Alpina Digital.
