UK code

The UK AI cyber security code of practice explained

The government's code is voluntary and sets out 13 principles for securing AI systems. It works as a checklist even if you only buy AI tools.

Last reviewed against NCSC, Department for Science, Innovation and Technology and OWASP GenAI Security Project. Sources

Sack marked FINE beside stacks of coins and a gavel

What it is

Status and scope

The Department for Science, Innovation and Technology released the code and an implementation guide on 31 January 2025 [5]. The code is voluntary. It covers AI systems, including deep neural networks such as generative AI, and arranges its requirements around design, development, deployment, maintenance and the end of a system's life [6]. Academic research systems that will never be deployed are left out [6].

Next steps are international. The government said it intends to put the code and guide forward to ETSI, to underpin a new standard (TS 104 223) and guide (TR 104 128), and to revise its own documents to match once that standard exists [5].

Who it covers

Four roles

The code allocates its principles by role [6]. One organisation can hold several roles at the same time [6].

If you buy and configure AI tools, you are most likely a system operator.

Key points

  • Developers create or adapt an AI model or system, including open-source models [6]
  • System operators embed or deploy a model or system within their own infrastructure [6]
  • Data custodians control data permissions and integrity [6]
  • End-users and affected entities are not primary owners, but several provisions protect them [6]
Five software windows with bugs and a Computer Hacked warning

The principles

All thirteen

No.Principle
1Raise awareness of AI security threats and risks
2Design your AI system for security as well as functionality and performance
3Evaluate the threats and manage the risks to your AI system
4Enable human responsibility for AI systems
5Identify, track and protect your assets
6Secure your infrastructure
7Secure your supply chain
8Document your data, models and prompts
9Conduct appropriate testing and evaluation
10Communication and processes associated with end-users and affected entities
11Maintain regular security updates, patches and mitigations
12Monitor your system's behaviour
13Ensure proper data and model disposal

The wording of all thirteen is taken from the code [6].

Bundle of dynamite sticks with a dial and coiled wires

How to use it

A checklist for buyers

Principles 1, 4, 5, 7, 11 and 12 suit an organisation that deploys other people's tools: awareness, human responsibility, asset tracking, supply chain, updates and monitoring [6]. Score yourself against each, then take the gaps into the practical plan.

The code builds on the NCSC's earlier guidelines for secure AI system development, which the controls guide covers.

How CyPro can help

Need a hand planning for this?

Understanding the change is one job. Working out what it means for your systems, your suppliers and your roadmap is several more. CyPro's consultants can take any of them on.

Security lead advising a board

Fractional CISO for the board

A senior security lead who advises the board on what to fix first, what to accept and what to tell customers, and owns the decision record.

More on cypro.co.uk
Cyber security consultants planning hardening work

Hardening and segmentation

Our consultants put the controls in place that limit the damage when something is missed: firewall rules, network isolation and tighter admin access.

More on cypro.co.uk
Penetration tester probing an application for weaknesses

Penetration testing

A focused test of your systems and the controls around them, so you know they hold before an attacker finds out for you.

More on cypro.co.uk
Scanner checking internet-facing systems for weaknesses

Vulnerability scanning

Find every internet-facing system you run, including the forgotten ones, and see which are still on a vulnerable build.

See the scanning service
Security analysts monitoring systems around the clock

24/7 security monitoring

Our SOC analysts watch your systems day and night for the signs of an attack in progress: unexpected processes, new outbound connections, logins that do not fit.

More on cypro.co.uk
Incident responders containing an attack

Incident response

If you may already be compromised, our responders contain it, preserve the evidence, find out what was touched and get you running again safely.

More on cypro.co.uk
Rocket launching from a cloud

Plan ahead

Want a plan for your organisation?

AI security starts with knowing which tools are in use, who owns them and what they can reach. CyPro can help set the governance, accountability and controls around that.