Back to Browse sources
Full recordVoluntary

Code of Practice for the Cyber Security of AI

Code of conduct State lawNorthern Europe · GBin force

This voluntary Code of Practice establishes security requirements and recommendations for the AI supply chain across the entire AI lifecycle. Developed by the UK government, it covers thirteen principles spanning secure design, development, deployment, maintenance, and end of life. The code aims to help organisations manage AI-specific cyber security risks such as data poisoning and model inversion while aligning with upcoming international standards.

Summary and content fields are drawn from the document text and are pending editorial review.

Who issued it

Department for Science, Innovation and TechnologyGovernment
Lead issuer
Department for Digital, Culture, Media & SportGovernment (executive) · GB
Co-issuer
Legal forceVoluntary
Under whose authorityState law
Judged fromfull text

Who it governs

AI developers and providersPublic sector bodiesCompaniesAI deployers and users

This is for developers, system operators, data custodians, and organisations involved in the AI supply chain to secure their AI systems and data.

Sectors
Cross-sectorTelecommunications and digital services · AI systems and software

What the document contains

What's covered

The document covers cyber security requirements and recommendations for AI systems, addressing threats such as data poisoning, prompt injection, and model inversion. It details expectations for risk assessments, asset inventories, access controls, supply chain security, and incident management across the AI lifecycle.

What's missing

It does not provide legal enforcement mechanisms or statutory penalties for non-compliance, as the code is voluntary. It also excludes academic research activities where AI systems are not intended for deployment.

Key takeaways
  • The Code provides a voluntary framework focused specifically on the distinct cyber security risks of AI systems.
  • Principles are structured across five lifecycle phases: secure design, development, deployment, maintenance, and end of life.
  • The document defines key stakeholder responsibilities across developers, system operators, data custodians, and end-users.
  • Organisations are required to implement robust threat modelling, access controls, asset tracking, and vulnerability management.
  • The framework serves as an addendum to the Software Code of Practice and is intended to inform future international standards.
Principles it states
Principle 1: Raise awareness of AI security threats and risksPrinciple 2: Design your AI system for security as well as functionality and performancePrinciple 3: Evaluate the threats and manage the risks to your AI systemPrinciple 4: Enable human responsibility for AI systemsPrinciple 5: Identify, track and protect your assetsPrinciple 6: Secure your infrastructurePrinciple 7: Secure your supply chainPrinciple 8: Document your data, models and promptsPrinciple 9: Conduct appropriate testing and evaluationPrinciple 10: Communication and processes associated with End-users and Affected EntitiesPrinciple 11: Maintain regular security updates, patches and mitigationsPrinciple 12: Monitor your system’s behaviourPrinciple 13: Ensure proper data and model disposal
Outline
· Introduction
· Scope
· Implementation guide
· Audience
· Terminology
· Structure of the voluntary Code of Practice
· Code of Practice Principles
  - Secure Design
  - Secure Development
  - Secure Deployment
  - Secure Maintenance
  - Secure End of Life
· Annex A: Glossary of terms
Issued2025
Length4,683 words
FormatNot recorded
Scopenational

How it scores

Pending review

Each score is backed by a quote verified against the document text. Editorial review has not yet confirmed them.

Accountability

4/5

Clear responsibility for AI outcomes

4.1 When designing an AI system, Developers and/or System Operators should incorporate and maintain capabilities to enable human oversight.

Principle 4

screening score · 2026-11-26

Fairness

0/5

Non-discrimination and equitable treatment

screening score · 2026-11-26

Human Dignity

0/5

Respect for the inherent worth of persons

screening score · 2026-11-26

Human Oversight

4/5

Humans remain in control of consequential decisions

Where human oversight is a risk control, Developers and/or System Operators shall design, develop, verify and maintain technical measures to reduce the risk through such oversight.

Principle 4

screening score · 2026-11-26

Privacy

4/5

Protection of personal data and private life

All stakeholders included in the table below should note that when the data used for an AI system is personal (including pseudonymized data), they may have data protection obligations

Audience

screening score · 2026-11-26

Transparency

4/5

Openness about how AI systems work and are used

Developers shall document and maintain a clear audit trail of their system design and post-deployment maintenance plans.

Principle 8

screening score · 2026-11-26

Enforcement

0/5

Consequences and compliance mechanisms with real force

screening score · 2026-11-26

Impact Assessment

4/5

Required assessment of an AI system's risks/impacts before or during use

As part of deciding whether to create an AI system, a System Operator and/or Developer shall conduct a thorough assessment that includes determining and documenting the business requirements

Principle 2

screening score · 2026-11-26

Topics

cyber security ai lifecycle risk management supply chain governance