TLDRocket
Sign in

Government of Alberta uses Claude to find and fix cybersecurity vulnerabilities

Anthropic

Alberta's government had Claude scan 466 million lines of its code for security holes in just 20 hours. That's a job the team says would've taken about 6.5 years by hand.

Based on reporting by Anthropic — read the original for the full story.

Summary, retelling and take written by AI under human oversight; images are AI-generated illustrations. How we work · Report an error

Government IT systems are famously creaky, and Alberta's is no exception. The province's Ministry of Technology and Innovation runs the digital plumbing for all 27 provincial ministries — everything from social services to wildfire response — which adds up to roughly 1,280 applications spread across 3,400 code repositories. Most of that code had never been through a proper security review, and the ministry says the accumulated technical debt runs into the billions of dollars.

So in 2025 the ministry stood up an internal team and turned Claude Code loose on the problem, running both Opus and Sonnet models. About 50 agents worked in parallel, first sweeping every repository with a rules engine to flag suspicious patterns, then reviewing those flags and pointing developers to the exact file and line for each issue. The whole scan — 466 million lines — took about 20 hours. The team's own estimate is that a traditional review of that scope would have taken around six and a half years.

Finding problems is one thing; fixing them is another, and this is where the project gets more interesting. Claude Code didn't just flag vulnerabilities, it often generated the fix, wrote missing tests to confirm the patch was safe, and in cases where the underlying code was too old or tangled to patch, rebuilt it from scratch in a more modern language. One example stands out: a subsidy program portal originally hand-coded in Java about 25 years ago, which took five months to build the first time, was rebuilt in as little as four to five days. Every patch still went through the ministry's own engineers before shipping.

Beyond one-off fixes, Alberta built specialized review agents that now run continuously through development — a red team agent that probes applications the way an attacker would, and a blue team agent that checks defenses against an international security standard and drafts a remediation plan. Every application gets checked against roughly 95 security controls on each pass. Alongside this, the province has been training people through its Alberta AI Academy, which thousands of government workers and more than 10,000 members of the public have already used.

None of this wraps up the story. One ministry alone has 185 legacy applications it wants consolidated into just 16 modern, reusable ones, and Alberta plans to use Claude Code to figure out what those old systems actually do before merging them. The province has also published technical white papers on its approach and is hosting an industry day in Edmonton in July, with a broader rollout planned for this fall — the clear intent being that other governments, sitting on their own piles of undocumented legacy code, don't have to start from zero.

My take — AI-written commentary, not fact-checked reporting

Government IT is the least glamorous corner of the AI conversation, which is exactly why this story matters more than another chatbot demo. Every province and federal agency on earth is sitting on decades of undocumented, insecure code that nobody wants to touch, and if AI tooling can actually shrink a multi-year security audit into a weekend, that's a far bigger public good than any benchmark chart. The real test isn't the 20-hour scan, it's whether Alberta's white papers actually get other governments to copy the homework instead of quietly commissioning another five-year consulting contract.

Read more about this at: Anthropic

Related stories

The daily briefing

Every AI story that matters, in your inbox by 8am.

TLDRocket reads all relevant sources, removes duplicate coverage, and summarises the day in two minutes. Follow companies and topics for alerts, or get the briefing in Slack. Free, no spam, unsubscribe anytime.