AP Cybersecurity · Study guide

Secure by Design & Default

AP® Cybersecurity · Unit 5 · Applications, Data & Cryptography

Secure by Design & Default

What it means to build security into every phase of a product, the three secure-by-design principles, and why security features should be on out of the box.

1Security from the start

Secure by design is an initiative that encourages companies to include security in all phases of product development, starting with design. Security becomes a design principle, not a technical feature added at the end. Fixing a weakness on paper during design costs far less than recalling a product, or patching millions of devices after attackers find the flaw.

Figure 1. Secure by design is about how a company works, not one feature. Secure by default is the part a customer sees first: a product that is safe the moment it is switched on.

2The three principles

PrincipleWhat it meansWhat it looks like
Take ownership of customer security outcomesBuild products that meet customers' security needs, instead of expecting customers to secure themUpdates install themselves; strong settings need no expert to turn on
Embrace radical transparency and accountabilityShare relevant security news and updates quicklyPublishing a vulnerability notice and the fix as soon as it is ready
Build organizational structure and leadershipHave leaders focused on security, with a security-first postureA senior security leader who can delay a launch until a flaw is fixed

3Secure by default

Secure by design includes secure by default: security features for software and devices should be enabled by default, so the product is secure to use out of the box. Most people never change factory settings. Whatever the default is, that is the security most customers will have.

Compare the factory settings of two home security cameras:

Camera A: factory settings
Admin password                     admin / admin (same on every unit)
Remote access from the internet    on
Video stream encryption            off
Automatic security updates         off
Old Telnet service                 running
Failed-login lockout               none
Camera B: factory settings
Admin password                     unique, printed on the label; must change at first login
Remote access from the internet    off until the owner turns it on
Video stream encryption            on
Automatic security updates         on
Old Telnet service                 removed
Failed-login lockout               after 5 tries

Camera A works, but all 6 settings leave it exposed until the owner fixes them, and many owners never will. Its shared default password is the kind that credential-stuffing attacks try first. Camera B is secure by default: the owner has to choose to open it up.

4Spotting the difference

Insecure defaultSecure by default
Same default password on every deviceUnique password per device, or a forced change at setup
Updates off; the user must checkAutomatic security updates on
Every feature and service turned onUnused services off until needed
Encryption available in a settings menuEncryption on from the start
Multifactor authentication optional and hiddenMultifactor authentication offered or required at signup
The key idea

Secure by design puts security into every phase of development and into how the company is run: own customers' security outcomes, be transparent and accountable, and lead with security. Secure by default means security features are on out of the box.

5Worked examples

Worked Example 1 Identify the principle

Which principle?

Name the secure-by-design principle in each: (a) a company posts a public notice about a flaw the same day its fix is released; (b) a router maker makes updates install automatically so customers don't have to; (c) a company's chief security officer can stop a product launch.

  1. 1
    (a) Sharing security news quickly: radical transparency and accountability.
  2. 2
    (b) Taking on the security work for the customer: ownership of customer security outcomes.
  3. 3
    (c) A security-first leader with real authority: organizational structure and leadership.
Answer: (a) transparency, (b) ownership of outcomes, (c) leadership.
Worked Example 2 Secure by default?

The new smart lock

A smart lock ships with Bluetooth unlocking from any distance, a 4-digit default PIN of 0000, and a “security mode” that users can turn on in settings. Is it secure by default? What should change?

  1. 1
    The strongest protections are off until the user finds them.
  2. 2
    A shared default PIN can be guessed by anyone.
  3. 3
    Secure by default would mean security mode on, a unique code required at setup, and unlocking limited to short range.
Answer: No. Security features must be on out of the box, not hidden in settings.
Worked Example 3 Explain the benefit

Why defaults matter

A company says, “Our app supports two-factor login. It's in the settings for anyone who wants it.” Why is this weaker than secure by default?

  1. 1
    Most users never change default settings.
  2. 2
    So most accounts will have only a password.
  3. 3
    Turning two-factor on by default (or at signup) protects most users, not just the few who look for it.
Answer: Optional security protects few users. Default security protects most.
Worked Example 4 Design or bolt-on?

Late security

A team finishes building a school messaging app, then asks the security team to “add security” the week before launch. They find student messages are stored unencrypted, and fixing it means redesigning the database. Which approach would have prevented this?

  1. 1
    Security was treated as a feature added at the end.
  2. 2
    The storage design was settled before anyone considered encryption.
  3. 3
    Secure by design includes security from the first design phase.
Answer: Secure by design. Planning encryption during design would have avoided the late redesign.

6Common mistakes

Common Mistake 1 · Treating security as one feature

Secure by design is about every phase and the company's leadership, not adding a login screen at the end.

Common Mistake 2 · Mixing up design and default

Secure by design is the overall approach; secure by default is one part of it: security on out of the box.

Common Mistake 3 · Counting optional security as default

If the user has to find and enable it, it is not secure by default.

Explain secure by default like this

“Camera B is secure by default because its protections are already on when it is unboxed: a unique password, encrypted video, automatic updates, and remote access turned off. Owners who never change a setting are still protected.”

Name the settings that are on by default and explain why that protects users who never change them.