d4 · Secure by Design

Security that is designed in, not bolted on.

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 in three minutes. The captions are part of the picture, so it works with the sound off.
01

What it means

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.

02

From thought to switch-off

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.

  1. 01Thought

    Name an owner before anything is built

    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

  2. 02Risk

    Work out what could go wrong

    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

  3. 03Supply

    Check what you buy in

    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

  4. 04Design

    Keep only what you need, and layer the rest

    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

  5. 05Build

    Write it cleanly and protect the workshop

    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

  6. 06Test

    Test all the way through, and plan for flaws

    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

  7. 07Release

    Safe out of the box

    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

  8. 08In life

    Assume something will go wrong, and stay patched

    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

  9. 09Assurance

    Keep proving that it works

    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

  10. 10Change

    Treat every change like the first design

    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

  11. 11Retirement

    Switch it off properly

    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

03

The ten government principles

The UK Government's Secure by Design principles, in their official order, each with a one-line reading in plain English.

1

Create responsibility for cyber security risk

A named risk owner is accountable for the service through its whole life.

2

Source secure technology products

Do security due diligence on everything you buy in or build on.

3

Adopt a risk-driven approach

Set a risk appetite, assess the risks, and keep that assessment current.

4

Design usable security controls

Research how people really use the service, and make the secure route the easy one.

5

Build in detect and respond security

Design for the inevitability of vulnerabilities and incidents.

6

Design flexible architectures

Make it easy to add or swap security controls as threats change.

7

Minimise the attack surface

Use only the capabilities, software, data and hardware the service needs.

8

Defend in depth

Layer the controls so one failure does not hand over the whole system.

9

Embed continuous assurance

Keep proving the controls work, at delivery and throughout service.

10

Make changes securely

Weigh the security impact of every change alongside everything else.

04

Six questions for any system

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

Who owns the risk?

A name, not a department. If nobody can say, nobody does.

b

What did you leave out?

A team that minimised its attack surface can list the features, ports and accounts it chose not to have.

c

What happens when one control fails?

Defence in depth means there is always a second answer.

d

Is it safe as delivered?

Default passwords, optional hardening guides and security sold as an extra are all warning signs.

e

How fast do fixes arrive?

Ask how a flaw is reported, how long a patch takes, and how you would be told.

f

How does it end?

Ask how long it is supported, how much notice you get, and how your data comes out.

05

How d4 holds itself to it

A studio that writes about this should be checkable on it. These are things you can verify from outside, without taking our word.

a

Less to attack

This site sets no tracking cookies and loads no advertising or analytics scripts. Test any page with the tracker check.

b

Locked-down pages

Every page is served with a strict content security policy that refuses anything not explicitly allowed. Read it with the security headers tool.

c

Nothing kept that is not needed

The free tools do not keep a record of what you look up. The privacy notice says exactly what is held and why.

d

Credentials stay with you

The studio's apps keep your credentials on your own device, not on a server of ours.

e

Sources or silence

Decrypted does not publish a story without its sources, and this page follows the same rule.

06

Sources

Editions checked on 3 December 2026. Guidance changes: always read the current issue.

Read the film as text
  1. Most security gets added at the end, like a padlock bolted on to a house that is already built.
  2. Secure by Design turns that round. Security is part of the thinking from the first sketch, and stays for the whole life of the system.
  3. It starts before anything is built. Someone is named as the owner of the risk, and stays accountable for it.
  4. Then you ask what could go wrong, who might attack, and how much risk you are prepared to carry.
  5. You check what you buy in. Every product and supplier becomes part of your system.
  6. In design, you keep only what you need. Every extra door, feature or account is one more way in.
  7. You layer the defences, so that if one fails, the next still stands.
  8. And you make the secure way the easy way, because people work round controls that get in their way.
  9. During the build, you keep the code clean, protect the repository and secure the pipeline that ships it.
  10. You test security all the way through, not once at the end. And you plan for flaws, because there will be some.
  11. At release, it should be safe out of the box. No default passwords, and nothing switched on that is not needed.
  12. In life, you assume something will go wrong one day. So you build in the means to spot it and respond.
  13. You keep it patched. Updates go on by default, and someone owns the risk of anything left undone.
  14. You keep checking that the controls still work. Assurance is never a one-off stamp.
  15. When things change, you weigh the security impact first. Every change gets the same care as the first design.
  16. And at the end of its life, you retire it safely. Data removed, access closed, nothing left behind.
  17. Owned from the first thought, built in at every stage, and proven for as long as it lives.
  18. Secure by Design. From first thought to final switch-off.

This page is general explanation, not advice for your particular system.