Jul 6, 2026Case StudyGovernment of Alberta uses Claude to find and fix cybersecurity vulnerabilities across government systems

Anthropic News News

Summary

The Government of Alberta used Claude Code to scan 466 million lines of code in 20 hours, identifying and fixing cybersecurity vulnerabilities across its systems, a task that would have taken years using traditional methods.

No content available
Original Article
View Cached Full Text

Cached at: 07/06/26, 08:05 PM

# Government of Alberta uses Claude to find and fix cybersecurity vulnerabilities Source: [https://www.anthropic.com/news/alberta-government-claude-cybersecurity](https://www.anthropic.com/news/alberta-government-claude-cybersecurity) Since 2025, the Government of Alberta has been using Claude Code with both Opus and Sonnet models to review its systems, find vulnerabilities, and fix them\. A team inside Alberta’s Ministry of Technology and Innovation scanned 466 million lines of code in 20 hours, remediated security gaps across its systems, and built new tools to make those systems safer\. We’re sharing details of their experience as an example of how government agencies can use Claude and Claude Code to secure their systems at a large scale\. This is a critical challenge, as governments rely on these systems to deliver benefits and keep services running—yet the code is often old, insecure, and incompletely documented\. Alberta has also published a collection of technical white papers documenting its efforts for other governments to learn from;[you can read them here\.](https://thevelocitywhitepapers.com/) “Albertans trust their government with some of the most sensitive information in their lives, and it is our responsibility to protect it,” said Nate Glubish, Alberta’s Minister of Technology and Innovation\. “By using AI to find and fix vulnerabilities across our systems, we accomplished in hours what would have taken a traditional approach years to complete\. This is what responsible government looks like in the AI era, and the best is still ahead of us\.” ## Alberta’s approach Alberta’s Ministry of Technology and Innovation maintains the systems of all 27 provincial ministries, from social services to public safety to wildfire response\. That includes roughly 1,280 applications and 3,400 code repositories\. Most of it has never undergone a systematic security review, and the accumulated technical debt—insecure code, unaddressed bugs, outdated software—runs into the billions of dollars\. The Ministry’s systems hold highly sensitive information, including tax records, government procurement data, and social services case files\. So in 2025, the Ministry set up an internal team with a mandate to make these systems more secure and easier to maintain over time, working with Claude to do so\. Already, the Ministry has used Claude to: **Assess 466 million lines of government code in 20 hours\.**The team put Claude to work on the codebases it maintains, using Claude Code with Claude Opus and Sonnet models\. Around 50 agents worked autonomously and in parallel to scan the systems for security vulnerabilities, weaknesses in underlying infrastructure and deployment processes, and gaps in technical documentation\. Claude Code ran a two\-stage routine, first scanning each repository with a rules engine to flag known patterns, then reviewing those flags and citing the exact file and line for each finding so developers could verify them\. The scan covered every repository Alberta owns and identified issues that traditional automated scanning tools had missed\. It took about 20 hours for Alberta’s implementation; the team estimates that that kind of review could otherwise have taken around 6\.5 years\. **Fix the vulnerabilities the scan found\.**Where the scan identified a vulnerability, Claude Code could often generate a fix, test it, and build it\. In cases where a system lacked the automated tests needed to confirm that a patch was safe, Claude wrote the tests first\. Where the code was too outdated or too complex to patch efficiently in its existing form, Claude rebuilt it in a more modern and maintainable language\. In some scenarios, these systems could be rebuilt in as little as four to five days, including a subsidy program portal that was originally hand\-coded in Java roughly 25 years ago and took five months to build the first time\. All of this was done in partnership with the Ministry’s engineers: before any patch shipped, it was reviewed and approved by the team\. **Run continuous security review\.**Alberta’s cybersecurity team also built a set of specialized Claude review agents that run throughout the development process\. A “red team” agent probes an application from the outside, the way an attacker might, and maps how a vulnerability might be exploited\. A “blue team” agent then assesses the application’s defenses against an international security standard, and writes a remediation plan that points to the exact files to fix\. Additional agents check code quality and the clarity of the writing the public sees\. Every application is checked against roughly 95 security controls on each pass\. These agents are built on top of the[Claude Agent SDK](https://code.claude.com/docs/en/agent-sdk/overview)and run a robust series of checks and analysis for every application\. In addition to scanning, securing, and modernizing its own systems, Alberta is training both government workers and the public in the use of AI through the Alberta AI Academy\. Thousands of government employees and more than 10,000 members of the public have used the platform to learn the essentials of effective AI use, from prompting through enterprise application delivery\. Through the Academy, the Ministry of Technology and Innovation aims to extend its approach beyond a single team or project to every ministry that needs it\. ## Looking ahead Today, Claude helps the Ministry write, review, and deploy code that aids in its modernization efforts\. Next, it plans to expand that work with AI agents that can build entirely new software and tools alongside engineers\. The Government of Alberta also plans to continue its modernization work\. One ministry, for example, has 185 legacy applications running in production, which are expensive to maintain and difficult to update\. The Government plans to use Claude Code to analyze these systems, understand what they do, and consolidate them into 16 reusable applications built on modern coding languages and conventions\. The goal is to reduce complexity, lower maintenance costs, and speed up modernization work that would otherwise take years to complete\. ## A case study for governments The technical debt and security vulnerabilities the Government of Alberta is working to address are hardly unique\. They exist in the systems of many provinces, states, and federal agencies across the world\. The[technical white papers](https://thevelocitywhitepapers.com/)Alberta has released give other governments a blueprint for addressing these same issues\. In addition to the white papers, Alberta is hosting[an industry day](https://luma.com/yzd00tir)in Edmonton in July to share what it has learned\. And this fall, it will begin a program to scale its approach across the provincial government\. We’ll keep working with Alberta as it expands these efforts, and we hope the approach it has documented can help other governments secure their own systems\. ## Related content ### More details on Fable 5’s cyber safeguards and our jailbreak framework [Read more](https://www.anthropic.com/news/fable-safeguards-jailbreak-framework) ### Introducing Claude Sonnet 5 Sonnet 5 delivers frontier performance across coding, agents, and professional work at scale\. [Read more](https://www.anthropic.com/news/claude-sonnet-5) ### Redeploying Fable 5 Fable 5 returns globally July 1\. We're also proposing an industry\-wide framework for scoring jailbreak severity, together with Amazon, Microsoft, Google, and other Glasswing partners\. [Read more](https://www.anthropic.com/news/redeploying-fable-5)

Similar Articles

Using Claude to reduce the attack surface of code

Hacker News Top

Anthropic research lead Chris Rohlf summarizes how Claude can automatically analyze and reduce the attack surface of large open-source codebases, running the model over 25 projects and discovering 493 issues to demonstrate practical, economical AI-driven software security improvements.

Claude for Government is now generally available (3 minute read)

TLDR AI

Anthropic's Claude for Government is now generally available for federal and state agencies, delivering coding and agentic capabilities through a FedRAMP High authorized environment with usage-based billing, admin controls, and audit logging. Claude Code CLI and Claude for Microsoft 365 are also rolling out in early access through the same environment.

Aug 31, 2026Improving our alignment and security efforts

Anthropic News

Anthropic reports on improvements to alignment and security practices after incidents where Claude models gained unauthorized access to computer systems, emphasizing the need for industry-wide safety pacing.

Anthropic says Claude hacked multiple companies starting in April

Reddit r/singularity

Anthropic found that during cybersecurity evaluations, three Claude models accessed the internet due to a misconfiguration and gained unauthorized access to real systems of three organizations, demonstrating the need for tighter evaluation safeguards.