The Software Security Code of Practice explained
The Software Security Code of Practice is a voluntary UK government code with 14 principles for organisations that develop and sell software. It is not part of the Cyber Security and Resilience Bill (CSRB) and is not a legal duty, but customers can use it in contracts and vendors can self-assess against it.
Last updated · Precursor SecurityStatus checked : the Bill passed the House of Lords on 2 November 2026 and returns to the Commons to consider Lords amendments (no date set). On 4 November 2026 the Commons extended its carry-over, so it lapses if not passed by the end of 29 April 2027. It is not yet law. References are to HL Bill 62 (as amended on Report), so wording and numbering may still change in the final Act. This guide is general information, not legal advice.
Key points
- The Software Security Code of Practice is voluntary, with 14 principles under four themes.
- It is not the code of practice in clause 37 of the Bill.
- A certification scheme is in development; vendors can self-assess now.
- The Lords added a review that must consider obligations on technology providers to supply safe services.
- Buyers can use the Code to set contract requirements for suppliers.
What is the Software Security Code of Practice?
It is a voluntary UK government code with 14 principles for organisations that develop and sell software. It was first published on 7 May 2025, launched at CYBERUK, with the page last updated on 15 January 2026. The NCSC helped develop it, and the Canadian Centre for Cyber Security co-seals it.
It is not part of the Cyber Security and Resilience Bill (CSRB), and following it is not a legal duty under the Bill.
Who is it for?
Its primary audience is senior leaders at software vendors, who it says should appoint a Senior Responsible Owner. Technical teams and buyers are secondary audiences.
| If you are... | The Code says you mainly need... |
|---|---|
| A software developer and distributor | All principles |
| A reseller | Principles 3 and 4 |
| A developer that does not sell software | Principles 1 and 2 |
| A buyer | Use it in negotiations and contracts |
Open-source developers and maintainers are not its primary audience.
What are the 14 principles?
They fall under four themes. The summaries below are shortened; use the full Code for exact wording.
1. Secure design and development
- 1.1 Follow an established secure development framework.
- 1.2 Understand the software's components, and assess risks from third-party components.
- 1.3 Have a clear process for testing software and updates before distribution.
- 1.4 Follow secure by design and secure by default principles.
2. Build environment security
- 2.1 Protect the build environment against unauthorised access.
- 2.2 Control and log changes to the build environment.
3. Secure deployment and maintenance
- 3.1 Distribute software securely to customers.
- 3.2 Implement and publish an effective vulnerability disclosure process.
- 3.3 Detect, prioritise and manage vulnerabilities in software components.
- 3.4 Report vulnerabilities to relevant parties where appropriate.
- 3.5 Provide timely security updates, patches and notifications to customers.
4. Communication with customers
- 4.1 Tell customers what level of support and maintenance is provided.
- 4.2 Give at least one year's notice before ending support or maintenance.
- 4.3 Make information available about notable incidents that may significantly affect customers.
What does good evidence look like for each theme?
Self-assessment is only useful if you can back it up. These examples are our suggestions, not requirements in the Code.
| Theme | Evidence a customer or auditor could ask for |
|---|---|
| Secure design and development | Your chosen framework (for example the NCSC's or NIST's secure development guidance), a software bill of materials or component inventory, release test records |
| Build environment security | Access list for the CI/CD pipeline, MFA on build and repository accounts, change logs for pipeline configuration |
| Deployment and maintenance | Published vulnerability disclosure policy, patch timelines by severity, signed releases |
| Communication with customers | Published support periods, end-of-life notices with at least 12 months' warning, a customer incident notification process |
What has happened since launch?
The Government has built activity around the Code rather than making it mandatory:
| Date | Development |
|---|---|
| 7 May 2025 | Code published at CYBERUK |
| 6 January 2026 | 13 organisations named as the first Software Security Ambassadors, alongside the Government Cyber Action Plan |
| 16 March 2026 | Innovate UK competition opened, with up to £5 million for projects supporting adoption, closing on 29 April 2026 |
| Ongoing | A certification scheme based on the NCSC's Principles Based Assurance approach is in development, with no launch date announced when we checked |
See the Government Cyber Action Plan and the Bill.
Is it the code of practice in the Bill?
No. "Code of practice" can mean three different things here:
| Document | What it is | Who it is aimed at |
|---|---|---|
| Software Security Code of Practice | Voluntary code, already published | Software vendors and buyers |
| Cyber Governance Code of Practice | Voluntary code for board-level cyber governance | Boards. See our guide |
| Code under clause 37 of the Bill | A possible future code describing recommended measures for meeting requirements under the NIS Regulations or clause 29 regulations | Regulated persons |
A clause 37 code would be issued by the Secretary of State after consultation and Parliamentary procedure. It does not exist yet, and you should not assume it will copy the Software Security Code. See the code of practice glossary entry.
Could software security become mandatory?
Not under the current text, but it is on the agenda. Clause 66 of HL Bill 62 (as amended on Report), added at Lords Report Stage, requires the Secretary of State to review the regime within 12 months of Royal Assent. That review must "review the critical vulnerabilities of technology platforms and identify what obligations could be placed on technology providers to supply safe services", and consider bringing software as a service into scope. The Commons could still change clause 66.
In the meantime, the Code matters to software companies in practice:
- Large SaaS and cloud firms may already be relevant digital service providers, with legal duties. See large SaaS and enterprise software.
- Suppliers to regulated organisations will be asked for evidence of secure development in questionnaires. See supplier questionnaire answers.
- Designated critical suppliers could face legal duties set by future clause 29 regulations (the Bill itself gives them none), and following the Code could help show good practice, though it would not prove compliance.
- Connected product makers have separate legal duties under PSTI. See PSTI and the Bill.
How should a vendor start?
- Appoint a Senior Responsible Owner.
- Work out your role for each product: developer, distributor or reseller.
- Do the quick checks. Is there a published vulnerability disclosure route? Do customers know your support periods?
- Check build security. Who can change your pipeline, and is every change logged?
- Inventory third-party components, and decide how fast you act when one is vulnerable.
- Write your customer incident process, so principle 4.3 is not invented during an incident.
- Complete the Government's self-assessment form, and record evidence and gaps.
How can buyers use it?
Ask suppliers whether they have self-assessed against the Code and request the result. Good follow-up questions: how much notice do you give before ending support, how do you tell customers about vulnerabilities and notable incidents, and how do you protect your build environment? For important suppliers, put the answers in the contract. See managed security services contracts for contract drafting points.
Sources
Frequently asked questions
No. It is a voluntary code published by the UK Government on 7 May 2025, developed with the NCSC. It is not part of the Cyber Security and Resilience Bill. Customers can still make it a contractual requirement, and a review added by the Lords will consider obligations on technology providers.
Fourteen, grouped under four themes: secure design and development (four principles), build environment security (two), secure deployment and maintenance (five) and communication with customers (three). They include publishing a vulnerability disclosure process and giving at least a year’s notice before ending support.
No. Clause 37 of HL Bill 62 lets the Secretary of State issue a separate code describing recommended measures for regulated persons to meet requirements under the NIS Regulations or clause 29 regulations. That code does not exist yet and would follow consultation and Parliamentary procedure. It may or may not draw on the Software Security Code.
Not yet. The Government says a certification scheme based on the NCSC’s Principles Based Assurance approach is in development, but had announced no launch date when we checked. Vendors can complete the Government’s self-assessment form now and share it with customers as evidence.