The UK government’s AI code scanning pilot produced 407 findings across nine organisations in one month for about £13,000 in AI token costs, according to a GOV.UK case study. The Government Cyber Coordination Centre (GC3) ran weekly hackathons with frontier AI models on public code repositories, and security staff still reviewed what the models flagged. This is a story from October 2026 that AI News reported on October 13, and I am covering it now because the case study publishes figures that few vendors will give you.
The Pilot Produced 407 Findings, Including Critical Ones, for About £13,000
GC3 is a partnership between the National Cyber Security Centre and the Department for Science, Innovation and Technology. Working with specialists from the AI Security Institute and the NCSC, it ran in-person weekly hackathons that pointed frontier AI at public government code repositories. The case study reports 407 findings in total, including critical weaknesses that exposed services to authentication bypass, data exposure and remote code execution. Some were already mitigated by other controls and others were previously unknown. All critical weaknesses have been remediated, and no evidence of exploitation was found for any finding. The government states the token bill for nine organisations over the month was £13,000.
Three Different Pipelines Reached Useful Results
Teams were given model access and left to build their own tooling. One team ran each repository through a six-stage agent pipeline of triage, validator, auditor, tracer, judge and summary, where each stage challenges the last. Escalation stayed manual, and a team member checked every line and re-verified exposure. A second team ran scanners first, including Gitleaks, Trivy, Semgrep and Hadolint, then layered three model stages on the ranked output. A third department packaged an organisation-wide audit into five reusable Claude Skills. The case study’s conclusion is that structure beat model choice: models worked best as tightly scoped components in a pipeline, and many near-frontier and frontier models scanned code comparably.
One Finding Shows How a Pull Request Comment Reached Code Execution
The case study describes a legacy GitHub Actions workflow behind a key government digital service. An external user could post a specially structured comment on an open pull request. Because the workflow was triggered by the comment, it bypassed the usual protections for pull requests from unknown contributors. Content from the comment was passed into deployment parameters and executed in an environment substitution step, giving arbitrary code execution on the runner. The case study says that could expose secrets and tokens, including the GitHub token used by the automation. Your CI configuration deserves the same scrutiny as your application code.
Triage Capacity Set the Real Limit, and the Wider Totals Are Less Clear
The case study says agents generate candidate findings far faster than humans can validate them, and it adds that “finding isn’t the same as fixing.” Findings had to enter the existing patch pipeline, and the authors say prioritisation, review and patch generation must fit human-centred processes without overwhelming them. GC3 plans a second phase with more departments, additional models and an extension from public code to closed-source estates. AI News also reports an October announcement of 1,352 vulnerabilities identified and addressed across two pilots and 548 repositories in 18 departments. I could not retrieve the government statement behind those totals, and AI News notes there is no severity breakdown and no confirmation of whether the 407 are included. Treat them as unverified.
Why This Matters for Engineering Leadership
The pilot gives a planning template. Budget for review capacity before you budget for tokens, because £13,000 of model spend was cheap next to the staff time needed to validate 407 findings. Put deterministic scanners in front of models, scope each run narrowly, and filter low-confidence output before a person sees it. Keep a human accountable for escalation, as the six-stage team did. Audit CI workflows that act on comments, issues and pull request text from outside contributors. Measure fixes shipped instead of findings listed, because the case study is explicit that finding and fixing are different jobs. Before expanding to closed-source code, decide what your policy is for sending that code to an external model provider.
FAQ
What did the UK government’s AI code scanning pilot find?
It identified 407 findings across nine organisations in one month, including critical weaknesses. All critical weaknesses were remediated, and no evidence of exploitation was found.
How much did the pilot cost in AI tokens?
The case study says about £13,000 in tokens for the month across nine government organisations. It does not include other programme costs.
Who ran the pilot?
The Government Cyber Coordination Centre, a partnership between the NCSC and the Department for Science, Innovation and Technology, working with the AI Security Institute and the NCSC.
Did AI replace human security reviewers?
No. Teams kept humans in the loop, and one team’s lead checked every line of escalated findings. The case study says triage is essential.
What was the GitHub Actions vulnerability?
A legacy workflow let an outside user trigger code execution on the runner by posting a crafted pull request comment. It could expose the automation’s tokens and secrets.
What is planned next?
A second phase with more departments, additional models and an extension from public code to closed-source estates.
