d4 · Secure by Design
Most security is added at the end, like a padlock on a house that is already built. Secure by Design turns that round: security is part of the thinking from the first sketch, and it stays for the whole life of the system. This page explains what that means, stage by stage, in plain English and with sources.
Secure by Design is a way of working, not a product. It means the people who commission, design, build and run a system treat security as one of its requirements from the start, and keep treating it that way until the day it is switched off.
The National Cyber Security Centre puts the first rule bluntly: security should be built into
products from the beginning, because it can't be added in later
. Its third rule is the one most
often forgotten: security is a process, and it must continue throughout the lifetime of the product
.
The UK Government requires its departments and arm's length bodies to follow a Secure by Design approach, built on ten principles. The same ideas appear in the Software Security Code of Practice for software vendors and in the international guidance led by the US agency CISA. They are a sound model for any organisation, whatever its size.
Eleven stages in the life of a system. For each one: what Secure by Design asks for, the question worth asking, and where the guidance says so.
Security starts as a decision about responsibility. A named person owns the cyber risk of the service and stays accountable for it for as long as it runs. Without an owner, every later step is somebody else's job.
Ask Who answers for this system's security, by name?
UK Government Secure by Design, principle 1
Before design, you establish what you are protecting, who might attack it and how much risk you are prepared to carry. That assessment is kept up to date, and it drives where the effort goes.
Ask What are we protecting, from whom, and how much risk will we accept?
UK Government Secure by Design, principle 3
Almost nothing is built from scratch. Every product, library and supplier becomes part of your system, so each gets security due diligence before it is chosen, not after it is installed.
Ask What are we relying on that we did not build, and what do we know about it?
UK Government Secure by Design, principle 2
The design uses only the features, software, data and accounts the service needs, because anything extra is one more way in. Controls are layered so that one failure is not a total failure, and they are designed around how people really work, because people work round controls that get in their way.
Ask What can we remove? If this control fails, what stops the attacker next?
UK Government Secure by Design, principles 4, 6, 7 and 8
Secure development is everyone's concern, not one team's. Code is kept clean and maintainable, the repository is protected, and the pipeline that builds and ships the software is secured, since whoever controls the pipeline controls the product.
Ask Who can change the code, and who can change what gets shipped?
NCSC, Secure development and deployment guidance, principles 1, 3, 5 and 6
Security testing runs throughout the build, not once at the end. And because no test finds everything, there is a plan for the flaws that will turn up later: how they are reported, fixed and released.
Ask What happens on the day someone reports a hole?
NCSC, Secure development and deployment guidance, principles 7 and 8
The product should be secure the moment it is switched on, with no extensive configuration needed. No default passwords, nothing enabled that is not needed, and protection that does not depend on the user being an expert.
Ask Is it secure as delivered, or only after someone hardens it?
NCSC, Secure by Default; CISA Secure by Design pledge
A service in use is designed for the inevitability of vulnerabilities and incidents: it can detect them and respond. Updates go on by default, and where something cannot be updated, the organisation knowingly owns that risk.
Ask Would we notice an intrusion? How long does a fix take to reach every system?
UK Government Secure by Design, principle 5; NCSC, Vulnerability management guidance, principles 1 and 5
Confidence in the controls is needed on the day of delivery and on every day after it. Assurance is continuous: evidence is gathered and looked at throughout the working life of the service, not stamped once and filed.
Ask When did we last check that this control still does its job?
UK Government Secure by Design, principle 9
New features, new suppliers and new connections each alter the risk. The security impact of a change is weighed alongside cost and time before it is made.
Ask What does this change open up that was closed before?
UK Government Secure by Design, principle 10
The end of a system's life is part of its design. Components are retired securely: data is removed or moved, access is closed, and customers are told well before support ends.
Ask When this is switched off, where does its data go and who still has a key?
UK Government Secure by Design, activities; Software Security Code of Practice, principle 4.2
The UK Government's Secure by Design principles, in their official order, each with a one-line reading in plain English.
A named risk owner is accountable for the service through its whole life.
Do security due diligence on everything you buy in or build on.
Set a risk appetite, assess the risks, and keep that assessment current.
Research how people really use the service, and make the secure route the easy one.
Design for the inevitability of vulnerabilities and incidents.
Make it easy to add or swap security controls as threats change.
Use only the capabilities, software, data and hardware the service needs.
Layer the controls so one failure does not hand over the whole system.
Keep proving the controls work, at delivery and throughout service.
Weigh the security impact of every change alongside everything else.
You do not need to be an engineer to test whether a supplier, a project or your own team is working this way. Ask these, and listen for specific answers.
A name, not a department. If nobody can say, nobody does.
A team that minimised its attack surface can list the features, ports and accounts it chose not to have.
Defence in depth means there is always a second answer.
Default passwords, optional hardening guides and security sold as an extra are all warning signs.
Ask how a flaw is reported, how long a patch takes, and how you would be told.
Ask how long it is supported, how much notice you get, and how your data comes out.
A studio that writes about this should be checkable on it. These are things you can verify from outside, without taking our word.
This site sets no tracking cookies and loads no advertising or analytics scripts. Test any page with the tracker check.
Every page is served with a strict content security policy that refuses anything not explicitly allowed. Read it with the security headers tool.
The free tools do not keep a record of what you look up. The privacy notice says exactly what is held and why.
The studio's apps keep your credentials on your own device, not on a server of ours.
Decrypted does not publish a story without its sources, and this page follows the same rule.
Editions checked on 3 December 2026. Guidance changes: always read the current issue.
This page is general explanation, not advice for your particular system.