Artificial Intelligence

Alberta Gov Taps Claude for Cyber Defense

Alberta's government uses Anthropic's Claude AI to scan millions of lines of code, finding and fixing cybersecurity vulnerabilities in hours.

StartupHub.ai Staff

By StartupHub.ai Staff, reviewed by Daniel Singer, Editor

3 min read

Government building with digital network overlay representing cybersecurity
Alberta's government is using AI to bolster its cybersecurity defenses.Credit: Anthropic News
Visual TL;DR
Cybersecurity VulnerabilitiesDriver
government systems burdened by legacy code and incomplete documentation
From the article 5 mentionsThe Government of Alberta has deployed Anthropic's Claude AI, including its Claude Code capabilities, to rapidly identify and remediate cybersecurity vulnerabilities across its vast digital infrastructure.
Blueprint for OthersOutcome
published technical white papers for other governments
From the article 3 mentionsThis case study offers a blueprint for how government agencies can employ AI at scale to secure critical systems, often burdened by legacy code and incomplete documentation.
Alberta GovCore
From the article 7 mentionsSince 2025, Alberta's Ministry of Technology and Innovation has utilized Claude Code, powered by both Opus and Sonnet models, to scrutinize millions of lines of code.
Anthropic's Claude AICore
using Claude Code with Opus and Sonnet models
From the article 9+ mentionsThe Government of Alberta has deployed Anthropic's Claude AI, including its Claude Code capabilities, to rapidly identify and remediate cybersecurity vulnerabilities across its vast digital infrastructure.
Scan Millions of LinesEffect
From the article 3 mentionsThe team successfully scanned 466 million lines in just 20 hours, addressing security gaps and enhancing system safety.
Find & Fix IssuesEffect
rapidly identify and remediate cybersecurity vulnerabilities
Accelerated ResultsOutcome
finding and fixing vulnerabilities in hours, not weeks
From the articleWorking with Claude, this team achieved remarkable results.
Automated RemediationEffect
modernizing systems and enhancing system safety
From the article 3 mentionsThese agents simulate external attacks and assess defenses against international security standards, generating remediation plans.
AI EducationContext
continuous security and AI education for government
Contents(4)

The Government of Alberta has deployed Anthropic's Claude AI, including its Claude Code capabilities, to rapidly identify and remediate cybersecurity vulnerabilities across its vast digital infrastructure. This initiative marks a significant step in leveraging artificial intelligence for public sector security and efficiency.

Since 2025, Alberta's Ministry of Technology and Innovation has utilized Claude Code, powered by both Opus and Sonnet models, to scrutinize millions of lines of code. The team successfully scanned 466 million lines in just 20 hours, addressing security gaps and enhancing system safety.

This case study offers a blueprint for how government agencies can employ AI at scale to secure critical systems, often burdened by legacy code and incomplete documentation. Alberta has also published technical white papers detailing its approach for other governments to learn from. This initiative 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. You can read them here.

Vast Scale, Accelerated Results

Alberta's Ministry of Technology and Innovation oversees systems for all 27 provincial ministries, managing approximately 1,280 applications and 3,400 code repositories. Much of this code had never undergone systematic security review, representing billions in technical debt.

The Ministry established a dedicated internal team in 2025, tasked with enhancing system security and maintainability. Working with Claude, this team achieved remarkable results.

Claude Code, with its roughly 50 autonomous agents, scanned systems for vulnerabilities, infrastructure weaknesses, and documentation gaps. The AI employed a two-stage process: an initial rules-based scan followed by a detailed review, flagging specific files and lines for developer verification. This comprehensive scan identified issues missed by traditional automated tools.

The entire process took around 20 hours, a stark contrast to the estimated 6.5 years a traditional review would require.

Automated Remediation and Modernization

Beyond identification, Claude Code demonstrated the ability to generate, test, and implement fixes for identified vulnerabilities. When automated tests were absent, Claude Code first developed them. For outdated or complex code, the AI rebuilt systems in modern, maintainable languages.

One notable achievement was the modernization of a 25-year-old subsidy program portal, originally coded in Java. Claude rebuilt the application in just four to five days, a process that would have taken five months for manual reconstruction.

All AI-generated fixes underwent rigorous review and approval by the Ministry's engineers before deployment, ensuring human oversight in the process.

Continuous Security and AI Education

Alberta's cybersecurity team also developed specialized Claude agents for continuous security review throughout the development lifecycle. These agents simulate external attacks and assess defenses against international security standards, generating remediation plans.

Additional agents monitor code quality and public-facing documentation clarity, with each application checked against approximately 95 security controls per pass. These agents leverage the Claude Agent SDK for robust analysis.

Concurrently, Alberta is fostering AI literacy through the Alberta AI Academy, training thousands of government employees and over 10,000 members of the public in effective AI usage.

Future Directions

Looking ahead, the Ministry plans to expand Claude's role to building entirely new software and tools alongside engineers. They aim to consolidate 185 legacy applications into 16 modern, reusable applications, significantly reducing complexity and maintenance costs.

The Government of Alberta Claude cybersecurity efforts serve as a valuable case study for other government agencies grappling with similar technical debt and security challenges worldwide.

Mentioned in this story

Sources

Get the free daily brief every morning

Every morning the day's AI news, new AI startups and new funding rounds. Free and takes a few minutes to read, unsubscribe at any time.

Join 64,000 other subscribers.

TopicsAICybersecurityGovernment TechnologyAnthropicClaude CodeAlbertaAI AgentsCode Modernization

StartupHub.ai StaffDaniel SingerWritten by StartupHub.ai Staff, Editorial teamReviewed by Daniel Singer, EditorAbout

StartupHub.ai Staff, Editorial team

The staff writers of StartupHub.ai, ranging from investment analysts to avid AI tool users, early adopters and critical enthusiasts. Backgrounds span engineering, business and the arts. We hold every piece to rigorous standards of research and review.

Daniel Singer, Editor

Daniel Singer is an AI expert who has been writing about, covering and building AI technology since 2018.

More from Daniel Singer

Test your Agent Readiness now

Paste your website. How well ChatGPT, Claude and the other agents can read and use a site, in about a minute.

Watch

The videos behind the news, one flip at a time

The feed mixes the videos from our articles with startup demos and you flip through them like TV channels for free with no signup.