Security by design
Also known as: secure by design
Thinking security into systems and processes from the very start, instead of adding it at the end.
Draft - this entry has not been reviewed yet.
Formal
The principle that security needs are set out and met in every stage of building a system or process - from first idea through design, building and running it - with safe settings as the default.
In plain English
Like planning the wiring before the walls go up - doing it later means tearing down walls.
In practice
Before a Danish municipality has a new self-service portal built for citizens, the project group requires MFA for staff logins and storing as little personal data as possible, and writes both into the supplier contract.
Why it matters
Fixing a weakness after launch costs far more than avoiding it on paper, and some weaknesses cannot be fixed at all without starting over.
Technical deep dive
Security by design is the principle that security requirements are derived, implemented and verified throughout a system's development lifecycle rather than bolted on before release, and that systems ship in a secure configuration by default. It is often paired with the related idea of secure by default: the shipped state minimises attack surface (unnecessary services off, no default passwords, least-privilege defaults, encryption on) so that a user who changes nothing is still reasonably protected. The economic argument is well established: defects are far cheaper to remove early, and some architectural weaknesses - a flawed trust model, missing tenant isolation, an authentication scheme that cannot be retrofitted - cannot be patched later without redesign, which is why the discipline emphasises the requirements and design phases, not just secure coding.
In engineering practice this is operationalised through a secure development lifecycle (Microsoft SDL, OWASP SAMM, BSIMM as a maturity yardstick). Core activities include threat modelling during design (STRIDE to enumerate spoofing, tampering, repudiation, information disclosure, denial of service and elevation of privilege; attack trees; data-flow diagrams with trust boundaries), abuse-case analysis alongside use cases, and the selection of proven design principles articulated by Saltzer and Schroeder in 1975 - economy of mechanism, fail-safe defaults, complete mediation, open design, least privilege, separation of privilege, least common mechanism and psychological acceptability. Later phases add secure coding standards, SAST and DAST in the pipeline, software composition analysis for dependencies, and security testing gates before release. NIST SP 800-160 Vol. 1 (Engineering Trustworthy Secure Systems) provides the systems-engineering framing.
The concept has moved from good practice toward obligation. GDPR Article 25 makes "data protection by design and by default" a legal requirement for personal-data processing, so privacy-relevant design decisions must minimise data and default to the most protective settings. The EU Cyber Resilience Act imposes essential cybersecurity requirements on products with digital elements, including secure-by-default configuration and vulnerability handling, with obligations phasing in and the reporting duties applying from 11 September 2026. CISA's international "Secure by Design" guidance further pushes the responsibility toward manufacturers rather than end users. NIS2 Article 21 reinforces the same expectation for essential and important entities.
A persistent misconception equates security by design with merely running a penetration test before launch; testing at the end validates but cannot substitute for design decisions already baked in, and a pentest that finds an architectural flaw usually finds it too late to fix cheaply. Another is treating "secure by default" as absolute - defaults reduce risk for the median deployment but cannot anticipate every environment, so documented hardening guidance still matters. Security by design differs from defence-in-depth (which layers runtime controls) in that it concerns how the system is conceived and built; the two are complementary, since good design decides where those layers belong.
What to learn first
Everything this builds on, foundations first.
- CIA triad
- →Security by design
Relationships
- Requires
- CIA triad
- Implemented by
- DevSecOpsSecure development lifecycle (SDL)
- Don't confuse with
- Privacy by design
- Mitigates
- Vulnerability
- Mandated by
- Cyber Resilience Act (CRA)
- Used with
- Zero Trust
Sources & further reading
Standards & official texts
- NIST SP 800-160 Vol. 1 Rev. 1 - Engineering Trustworthy Secure Systems · NIST
Course material
- Cyber Security Fast Track - Ordliste
Where this data comes from
This entry was drafted by an AI from the sources above and has not yet been checked by a person. Treat it as a starting point, and check anything important against the sources.
See the review queueSuggest a correction on GitHubThis term as JSON
Check yourself
Loading…