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
Alberta Government Used Claude to Find Vulnerabilities Across 466 Million Lines of Code
Source: Anthropic Blog. Collage: Hamidun News.
Listen to article
Article Fact Sheet & Key Figures
ParameterDetails
Primary sourceAnthropic Blog ↗
Editor-in-Chief
Anthropic case study publication dateJuly 6, 2026
Code reviewed466 million lines in 20 hours
Autonomous Claude Code agentsaround 50, working in parallel

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.

Story

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. 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

ZK
Zhemal Khamidun — CPO at Alpina Digital, product manager of AlpinaGPT. Building AI products since 2019. Hamidun News is a pet project that grew into a production aggregator with 6,000+ readers.
✦ Hands-On AI Engineering · Hamidun Academy

Build & Ship Production AI Agents Without Boilerplate Code

Start your free 72-hour trial at Hamidun Academy (academy.hamidun.com) — interactive lessons on Claude Code & Cursor, live Tech Radar, and production agent templates.

Start 72h Free Trial →Vibe-Coding Intensive
What do you think?
Loading comments…