Join our Newsletter — 33% off our NHI Course
Home› Guides› Security by Design and by Default Guide: Principles,…
Guide Security Leadership & Governance

Security by Design and by Default Guide: Principles, Pledges and Practice

PDF for newsletter subscribers · free to read online

← All guides
By NHI Mgmt Group, edited by Lalit Choda Updated 26 October 2026 13 min read
On this page

Security by design means a product is built so that security is a core requirement from the first design decision, and security by default means it ships in its most secure configuration, with no extra setup or cost for the customer. Put simply, the maker carries the burden of security instead of leaving it to every buyer to harden, patch and configure. Governments now push this hard: CISA's Secure by Design programme and pledge, joint guidance from the Five Eyes and partner agencies, the UK PSTI regime, and the EU Cyber Resilience Act all turn the idea into expectations or law. This guide explains the principles in plain language, then covers what the pledge and regulations ask for, concrete secure defaults, how to implement the approach in a software or product organisation, how to measure it and where it fails. It is for product security leads, engineering managers, architects and buyers who want to hold suppliers to the standard.

Key takeaways

  • Design and default are different promises. Secure by design reduces the flaws that get built in; secure by default makes sure the safe settings are on when the product arrives.
  • The burden shifts to the manufacturer. CISA describes secure by default products as secure out of the box, needing little or no configuration, at no additional cost.
  • The pledge sets seven measurable goals, from MFA and no default passwords to eliminating whole vulnerability classes and giving customers evidence of intrusions.
  • Some of it is now law. The UK PSTI regime has banned universal default passwords on consumer connectable products since 29 April 2024, and the EU Cyber Resilience Act brings essential requirements for products with digital elements.
  • Identity defaults matter most. MFA on by default, no shared or hard-coded credentials, and logging of identity events prevent many of the incidents that keep recurring.

What security by design and by default mean

A useful comparison is car safety. Seatbelts, crumple zones and airbags are designed in, and they work without the driver configuring anything. Software has historically been the opposite: products shipped with features switched on, weak settings, and long hardening guides for customers to follow. Secure by design and by default reverse that.

ConceptPlain meaningExampleOpposite
Secure by designSecurity is a business and engineering requirement from the design phase, so classes of flaw are prevented rather than patched laterWriting new components in a memory-safe language; using parameterised queries everywhere through a framework"Bolt-on" security after release
Secure by defaultThe shipped configuration is the secure one; customers must deliberately weaken it, and are warned when they doMFA enforced for administrators at first login; logging on and retained at no extra chargeHardening guides and paid security tiers
Secure by demandBuyers require these properties in procurementAsking suppliers for their pledge progress, update period and vulnerability disclosure policyBuying on features and price alone

The joint international guidance led by CISA frames secure by design around three principles: take ownership of customer security outcomes, embrace radical transparency and accountability, and lead from the top, meaning executives own security as a business outcome. A related idea in that guidance is replacing customer "hardening guides" with "loosening guides" that explain the risk of each setting a customer chooses to relax.

The UK NCSC's secure by default principles express the same thinking from an engineering angle: start early, fix causes rather than symptoms, keep going for the life of the product, put usability first, work without setup, stay ahead of attackers, use no hidden defences (do not rely on secrecy of design), and require no expertise from the user.

The CISA Secure by Design pledge

CISA launched its voluntary Secure by Design pledge for enterprise software manufacturers in May 2024. Signers commit to a good-faith effort to make measurable progress on seven goals within one year of signing. The pledge is not legally binding, and CISA states that hundreds of companies have signed. Its goals are a practical checklist for any vendor, signed or not.

Pledge goalWhat it asksEvidence a buyer can request
1. Multi-factor authenticationMeasurably increase MFA use across products, favouring phishing-resistant methods, especially for administratorsPercentage of customer admins on MFA; whether MFA is enforced by default
2. Default passwordsEliminate universally shared default passwords, prioritising internet-facing productsSetup flow that forces a unique credential; no shared factory login
3. Reducing entire classes of vulnerabilityPick classes such as SQL injection, cross-site scripting or memory safety flaws and reduce them across productsTrend of CVEs by CWE; framework or language changes made
4. Security patchesMake patching easier, for example automatic updates, and vendor-side patching for cloud and SaaSDefault update setting; time to patch for customers
5. Vulnerability disclosure policyPublish a policy that authorises good-faith testing, commits not to pursue legal action against good-faith researchers, and gives a reporting channelPublic VDP URL, security.txt
6. CVEsIssue timely CVEs for critical, high-impact or exploited flaws, with accurate CWE and CPE fieldsCVE history and completeness of records
7. Evidence of intrusionsGive customers logs of configuration changes, identity events and data access, retained for a set period, at no extra costLog categories available in the base licence and retention period

Note how many goals are identity controls: MFA, default passwords and logs of identity events. See the Phishing-Resistant MFA Guide.

Regulation: where secure by design becomes mandatory

  • UK PSTI Act product security regime: in force since 29 April 2024 for consumer connectable products. Three requirements: passwords must be unique per product or set by the user and not easily guessable; manufacturers must publish how to report security issues and the timeframes for acknowledgement and updates; and they must publish the minimum security update period, including an end date. The Office for Product Safety and Standards enforces it. See the UK PSTI Act Guide and the ETSI EN 303 645 Consumer IoT Guide, the standard the regime's requirements draw on.
  • EU Cyber Resilience Act: sets essential cybersecurity requirements for products with digital elements placed on the EU market, including secure by default configuration and vulnerability handling, with obligations applying in stages. We do not repeat the detail here: see the EU Cyber Resilience Act Guide for scope, dates and conformity routes.
  • US federal software attestation: NIST SP 800-218, the Secure Software Development Framework (SSDF) version 1.1, final since February 2022, was published in response to Executive Order 14028 and is the practice baseline US federal buyers point suppliers to. See the NIST Secure Software Development Framework (SSDF, SP 800-218) Guide.

Requirements and dates in these regimes can change through amending legislation and guidance; check the official source before relying on a date for compliance planning.

Secure defaults in practice: what to ship switched on

AreaSecure defaultWhy it matters
Administrator accessMFA enforced at first login, phishing-resistant options offered; SSO supported in the base tierStolen passwords are the commonest initial access route (MITRE ATT&CK T1078 Valid Accounts)
CredentialsNo universal default password, no hard-coded or backdoor accounts; unique credential set during setupDefault accounts are a named ATT&CK technique, T1078.001 Default Accounts
Machine credentialsAPI keys scoped and expiring by default; secrets never written to logs or client code; workload identity supportedLong-lived keys leak through repositories and builds
ExposureManagement interfaces off the internet by default; unused services and ports disabled (least functionality)Reduces attack surface without customer effort
LoggingIdentity, configuration and data access events logged and retained at no extra costCustomers can detect and investigate (pledge goal 7)
UpdatesAutomatic security updates on; published support end dateMatches the pledge patching goal and PSTI update period
Transport and storageTLS enforced, plaintext protocols disabled; data encrypted at restRemoves configuration choices that customers get wrong
PermissionsNew users and integrations start with least privilege; authorisation checked on every objectPrevents broken object-level authorisation and over-privileged tokens

For machine identities specifically, see the API Key Management Guide and the Workload Identity Federation Guide.

Secure by design in the development lifecycle

  • Threat model at design time: identify trust boundaries and abuse cases before code exists. See the Threat Modelling Guide.
  • Eliminate classes, not instances: choose frameworks that make the safe path the easy path, such as templating that escapes output (cross-site scripting) and data access layers that only allow parameterised queries (SQL injection).
  • Memory-safe languages and roadmaps: memory safety flaws are a major class in C and C++ code. CISA and partners have urged manufacturers to publish memory-safe roadmaps showing how they will move new and high-risk code to languages such as Rust, Go, Java, C# or Swift. See the Memory-Safe Languages Guide.
  • Follow a recognised practice framework: the SSDF organises practices into four groups: Prepare the Organisation (PO), Protect the Software (PS), Produce Well-Secured Software (PW) and Respond to Vulnerabilities (RV). Map your secure SDLC to it. See the Secure Software Development Lifecycle (SSDLC) Guide.
  • Secure the supply chain: know your components (SBOM), sign builds, and protect the build pipeline's own credentials. See the SBOM Guide and the Software Supply Chain Security Guide.
  • Test and verify: static and dynamic testing, code review and release gates. OWASP ASVS gives verifiable requirements. See the Application Security Guide.
  • Be transparent: publish a vulnerability disclosure policy, complete CVE records with CWE, and security update periods.

Implementing the approach: a phased rollout

  1. Executive ownership (month 0 to 1): name an accountable executive, set secure by design as a product requirement, and decide whether to sign the CISA pledge. Small companies can adopt the seven goals informally.
  2. Baseline (months 1 to 3): measure current state against the pledge goals and SSDF: MFA adoption among customer admins, any shared default or hard-coded credentials, top CWEs in your CVE history, default update behaviour, logging available in the base tier.
  3. Quick wins (months 3 to 6): remove default passwords from setup flows, enforce MFA for new admin accounts, publish a VDP and security.txt, and move security logs into the base licence.
  4. Pilot changes safely: introduce new defaults for new tenants or installations first, then existing customers with notice. Use feature flags so a default can be reverted quickly if it breaks integrations, and publish a loosening guide that explains the risk of opting out.
  5. Structural work (6 to 24 months): pick one or two vulnerability classes and eliminate them through frameworks; publish a memory-safe roadmap; integrate SSDF practices into CI/CD gates.
  6. Report progress: publish what changed, as the pledge expects within one year, and feed regulatory evidence for PSTI or CRA.
  7. Rollback and exceptions: keep a documented, time-limited exception process for customers who cannot yet accept a default (for example legacy integrations that cannot do MFA), with an expiry date and a compensating control.

Decision guidance

  • Enforce versus encourage: enforce for administrators and internet-facing products; for end users, default on with an opt-out that is logged and warned about. Usability first, as the NCSC puts it, but not usability instead of security.
  • Backward compatibility versus security: the joint guidance favours forward-looking security over backward compatibility. Give long deprecation notice for insecure protocols, then remove them.
  • Small vendors: focus on credentials, MFA, automatic updates and a VDP; these need little engineering. Large vendors should add class elimination programmes, memory-safe roadmaps and public metrics.
  • Buyers: ask suppliers for the evidence column in the pledge table above and include it in contracts. See the Software Supply Chain Security Buyer's Guide.

Detection and measurement

Monitor product telemetry for: tenants or devices still on initial credentials, admins without MFA, customers who disabled default protections, logging disabled or retention reduced, and devices past their published update period.

KPITarget direction
Share of customer administrator accounts using MFA (and phishing-resistant MFA)Rising towards 100%
Products or SKUs with any universal default or hard-coded credentialZero
CVEs per release in the targeted CWE classesFalling, ideally to zero for eliminated classes
Proportion of new code in memory-safe languagesRising against the published roadmap
Customers on automatic updates; median time to patchedRising share; falling time
Length of the hardening guide (settings customers must change to be secure)Shrinking

Framework mapping

ThemeNIST SP 800-53 Rev. 5NIST CSF 2.0ISO/IEC 27001:2022 Annex ACIS Controls v8.1
Design principlesSA-8 Security and Privacy Engineering PrinciplesPR.PS-068.27 Secure system architecture and engineering principlesControl 16 Application Software Security
Secure development process and testingSA-15, SA-11PR.PS-068.25 Secure development life cycle, 8.28 Secure coding, 8.29 Security testingControl 16
Secure configuration defaultsCM-6 Configuration Settings, CM-7 Least FunctionalityPR.PS-018.9 Configuration managementControl 4 Secure Configuration
Authentication defaultsIA-2, IA-5PR.AA-038.5 Secure authenticationControl 6
Supply chainSR-3GV.SC-015.21 ICT supply chain securityControl 15 Service Provider Management

Common failure patterns

  • Dormant default and test accounts: in the McHire default password flaw, a test administrator account with 123456 as username and password, no MFA, and an API without object-level authorisation checks exposed access to an estimated 64 million applicant records.
  • Hard-coded credentials in firmware: HPE Aruba Instant On CVE-2025-37103 shipped a built-in administrator login the owner could not change or disable, rated CVSS 9.8. This is exactly what pledge goal 2 and the PSTI password rule prohibit.
  • MFA available but not enforced: the Change Healthcare breach started on a remote access portal without MFA. If a product allows remote access without MFA by default, someone will deploy it that way.
  • Security logging as a paid add-on: customers on the base tier cannot see identity or configuration events, so intrusions go unnoticed.
  • Pledges without metrics: signing and announcing without baselines or published progress turns the pledge into marketing.
  • Defaults applied only to new installs: the existing customer base stays on insecure settings indefinitely because nobody plans a migration.

Practitioner checklist

  • Name an accountable executive and record secure by design as a product requirement.
  • Remove every universal default and hard-coded credential; force a unique credential at setup.
  • Enforce MFA for administrators by default and offer phishing-resistant methods.
  • Include identity, configuration and data access logs in the base product with a stated retention period.
  • Turn on automatic security updates and publish the support end date.
  • Publish a vulnerability disclosure policy and issue complete CVE records with CWE.
  • Choose vulnerability classes to eliminate and publish a memory-safe roadmap.
  • Map the SDLC to SSDF practice groups PO, PS, PW and RV.
  • Replace hardening guides with loosening guides and track how many customers loosen defaults.
  • Ask your own suppliers for the same evidence before you buy.

Standards and references

Related NHI Mgmt Group resources: Core Security Principles Guide · Secure Software Development Lifecycle (SSDLC) Guide · EU Cyber Resilience Act Guide · DevSecOps Guide · Application Security Guide

PDF for subscribers

Take this guide with you

Every section, table and checklist in one PDF, with links to the sources and related guides. Subscribe to our weekly NHI & AI Identity Journal and we’ll email you a download link.

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.

NHIMG Editorial Note
Researched and written by the NHI Mgmt Group editorial team using AI tools, under the editorial direction of Lalit Choda. Facts are drawn from the sources listed on this page and checked by our automated quality process. Last updated 26 October 2026. Spotted an error? Use our contact page.
NHI Mgmt Group, the independent authority on Non-Human Identity, IAM and Agentic AI security. nhimg.org

PDF Downloads for Newsletter Subscribers

Get the guide

Enter your details and we’ll email you a download link.

The full guide is free to read online. The PDF is a thank you for subscribing.

Fill in all fields marked * and tick the PDF box to continue.