Code of Practice for the Cyber Security of AI
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
Who it governs
This is for developers, system operators, data custodians, and organisations involved in the AI supply chain to secure their AI systems and data.
What the document contains
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.
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.
- 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.
· 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
How it scores
Each score is backed by a quote verified against the document text. Editorial review has not yet confirmed them.
Accountability
4/5Clear 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/5Non-discrimination and equitable treatment
screening score · 2026-11-26
Human Dignity
0/5Respect for the inherent worth of persons
screening score · 2026-11-26
Human Oversight
4/5Humans 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/5Protection 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/5Openness 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/5Consequences and compliance mechanisms with real force
screening score · 2026-11-26
Impact Assessment
4/5Required 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