Artificial intelligence helped UK authorities identify and neutralize 1,352 vulnerabilities in the public sector’s digital services. Following successful testing across hundreds of government projects, the initiative will be scaled up across the entire government infrastructure.
AI Minister Kanishka Narayan announced the expansion of the security measures during a speech at Imperial College London. The initiative’s main goal is to make the UK one of the most difficult targets for cyberattacks using modern digital tools.
How AI Systems Inspected Government Software
The testing was conducted by the government’s Government Cyber Unit with the participation of experts from the National Cyber Security Centre (NCSC) and the AI Safety Institute. Specialists examined 548 code repositories belonging to 18 government institutions.
To scan the systems, engineers combined advanced language models with traditional auditing tools:
- A specialized six-stage pipeline based on autonomous AI agents was used.
- The model stack included popular security scanners:
Gitleaks,Trivy, andSemgrep. - The algorithms did more than search for signatures; they also mapped out potential attack vectors.
Despite the high degree of automation, the final decision remained with humans: NCSC specialists rechecked all identified issues, filtered out false positives, and coordinated the release of patches.
In one documented case, researchers discovered a serious vulnerability in an outdated GitHub Actions workflow used by one of the services. Any external user could leave a specific comment on a pull request, triggering an automated process that made it possible to execute arbitrary code on the server and intercept system authorization tokens.
During one of the four-week testing phases, the cost of AI tokens amounted to approximately £13,000, while no direct evidence of hacking or data leaks was found—all critical vulnerabilities were fixed before any compromise occurred.
Legislative Frameworks and Oversight of AI Agents
Alongside using AI to protect software, the UK government is concerned about the opposite risks—attacks organized by autonomous systems themselves. As a result, a number of new requirements are planned for inclusion in the forthcoming Cyber Security and Resilience Bill:
- Mandatory initial notification of security incidents within 24 hours for critical infrastructure operators, including the energy, healthcare, and water-supply sectors.
- Submission of a detailed technical incident report within 72 hours.
- Creation of mechanisms to investigate failures and abnormal situations caused by the behavior of autonomous AI agents.
Meanwhile, the UK AI Safety Institute continues to stress-test leading models, including Google’s Gemini 4 Argon, assessing their potential for cyberattacks before they become publicly available.