Researcher Uses Claude AI to Find 100+ Flaws in UK Government Code

Researcher Uses Claude AI to Find 100+ Flaws in UK Government Code

A security researcher says he used Claude AI models to find more than 100 serious vulnerabilities in publicly available UK government code. The scan covered 349 public sector codebases, and about two thirds had problems. The work shows how AI vulnerability scanning can turn up real weaknesses cheaply, even on an ordinary laptop.

The organizations involved say the issues have since been dealt with.

What AI Vulnerability Scanning Found

Chris Nesbitt-Smith, a security researcher at ControlPlane, scanned code across 33 UK public sector organizations. He used Anthropic’s Opus and Sonnet models, and says they were consumer-grade versions running from a laptop. Many of the flaws, he says, were basic issues that a routine IT health check would have caught.

His own description is blunt: none of it reached the level of sophistication that people fear from AI-powered attacks. It was, in his words, “daft stuff.”

The most serious case

The worst example involved the Planning Inspectorate, which handles land-use matters in England. Login credentials were accidentally committed to a public GitHub repository and were not fully removed. According to the researcher, they gave broad read and write access to SharePoint sites and private employee OneDrive accounts, including HR records and evidence held under legal hold.

The agency says its monitoring tools detected the activity in August and that it fixed the problem within 20 minutes of the report. It says no data breach occurred.

Other issues

Problems also appeared in Department for Education code, including a school procurement service, a teacher application service holding personal details and identity documents, and the national register of training providers. A Scottish Government open data portal had a flaw that would have let any visitor read administrative account information and change site settings.

DetailReported figure
Codebases scanned349
Organizations covered33
Share with vulnerabilitiesAbout two thirds
Serious flaws foundMore than 100
Time to fix worst case20 minutes, per the agency

Should Governments Stop Publishing Code?

The UK has published publicly funded code by default for about a decade, citing transparency and cost savings. Now that AI speeds up vulnerability hunting, some argue departments should stop. The NHS reportedly told technology teams in May to move away from open source code over concerns about AI models.

Nesbitt-Smith warns that closing the code without fixing the underlying problems is the worst outcome. It stops friendly researchers from finding the holes, while an attacker may already have copied the repositories. The head of the nonprofit OpenUK also said the Planning Inspectorate case was a housekeeping failure, not an open source security issue.

What AI Vulnerability Scanning Means for You

The story is a reminder that the same tools that help defenders can help attackers. Cheap, widely available models lower the effort needed to read through large amounts of code and spot mistakes. Related reading on this site covers the Claude Code workflow, how Claude works, and AI security assistants are growing as well.

  • Never commit passwords, keys or tokens to a repository, public or private.
  • If a secret leaks, revoke it at once instead of just deleting the file.
  • Give accounts and tokens the narrowest access they need, with expiry dates.
  • Run routine health checks and secret scans before an outsider does it with AI.
  • Keep fixing issues quickly; hiding the code does not remove the flaw.

Sources

Reporting from WIRED.

Conclusion

A single researcher with consumer AI models and a laptop found over 100 serious flaws in UK public code, mostly from basic neglect. The findings come from one report, and the figures are the researcher’s own. Still, they show that AI makes routine security hygiene more urgent, whether code is open or closed.

Newsletter

New AI tools in your inbox

The best new tools and the AI news that matters, in one short email. Unsubscribe any time.

Free · No spam · Unsubscribe any time

✓ Looks like you’re subscribed

Loading Google’s sign-up form…

Looks like you’re already subscribed

Thanks for reading! New AI tools and the AI news that matters will land in your inbox.

Not subscribed yet? Refresh the page to load the sign-up form.

The sign-up form couldn’t load. If you use an ad or content blocker, allow news.google.com and reload the page.

Free instant check before you pay. Takes a few seconds.

Scroll to Top