← Anthropic News

Government of Alberta uses Claude to find and fix cybersecurity vulnerabilities

Anthropic News · July 7, 2026
The Government of Alberta has used Claude Code with Opus and Sonnet models since 2025 to scan, remediate, and secure its systems, assessing 466 million lines of code across 1,280 applications in 20 hours—a task estimated to require 6.5 years using traditional approaches. The Ministry of Technology and Innovation deployed roughly 50 autonomous agents to identify security vulnerabilities, fix them through code generation and rebuilding, and run continuous security reviews using specialized red team and blue team agents. Alberta has published technical white papers documenting its approach and plans to scale these efforts across all provincial ministries, with one ministry consolidating 185 legacy applications into 16 modern applications.

Detailed Analysis

The Government of Alberta's deployment of Claude Code represents one of the most substantial public-sector case studies yet published for AI-driven cybersecurity remediation at scale. Working through its Ministry of Technology and Innovation, Alberta used Claude Opus and Sonnet models to scan 466 million lines of code across roughly 1,280 applications and 3,400 repositories in just 20 hours—a task the ministry estimates would have taken approximately 6.5 years using traditional methods. Approximately 50 Claude Code agents operated autonomously and in parallel, running a two-stage process that first flagged known vulnerability patterns with a rules engine, then had Claude review those flags with citations to exact file and line locations, allowing human engineers to verify each finding before any fix shipped. This scan-fix-verify workflow reportedly caught vulnerabilities that conventional automated scanning tools had missed entirely.

The significance of this deployment extends beyond raw scanning speed. Claude was also used to generate, test, and build fixes for identified vulnerabilities, including writing missing automated tests where none existed to safely validate patches. In cases where legacy code was too outdated to patch incrementally, Claude rebuilt entire systems in modern languages—one subsidy portal originally hand-coded in Java over 25 years ago, which took five months to build initially, was reconstructed in four to five days. Beyond one-time remediation, Alberta built persistent "red team" and "blue team" Claude agents using the Claude Agent SDK: the red team agent simulates external attackers probing applications for weaknesses, while the blue team agent evaluates defenses against international security standards and produces remediation plans referencing specific files. Every application now undergoes checks against roughly 95 security controls on each pass, embedding continuous AI-assisted security review into the software lifecycle rather than treating it as a one-off audit.

This case matters because it addresses a chronic, underappreciated problem in public administration: government IT systems are frequently decades old, poorly documented, and accumulate technical debt that runs into the billions of dollars, yet they hold some of the most sensitive citizen data—tax records, procurement data, social services case files—making them high-value targets for attackers. Most government agencies lack the engineering capacity to conduct systematic, codebase-wide security reviews, so vulnerabilities can persist for years undetected. Alberta's willingness to publish detailed technical white papers documenting its methodology signals an effort to establish a replicable template for other provincial, state, and national governments grappling with similar legacy infrastructure and constrained cybersecurity budgets.

More broadly, this deployment fits into a growing trend of enterprises and institutions using agentic AI coding tools not just for greenfield development but for the unglamorous, high-stakes work of legacy modernization and security hardening—domains traditionally seen as too labor-intensive or risky to tackle comprehensively. Alberta's plan to next consolidate 185 legacy applications into 16 modern, reusable systems, combined with its Alberta AI Academy training thousands of government workers and over 10,000 members of the public, suggests an institutional bet that AI-assisted engineering will become standard practice in public-sector IT rather than a novelty. For Anthropic, the case also serves as a flagship example of Claude Code being used in high-trust, high-consequence environments where human oversight (engineers reviewing and approving every patch) remains central, reinforcing a narrative of AI augmenting rather than replacing government technical staff while dramatically compressing timelines for work that previously seemed intractable at scale.

Article image Read original article →