Security by design

HSC Software Engineering · Unit 1: Secure software

Security by design notes

Fact-checked by a second, independent AI review.

Security by design means building software with safety and resilience from the outset. It covers threat modelling, secure requirements, and practices that reduce risks throughout the SDLC.

Threat modelling
Identify potential threats early using structured methods (e.g., STRIDE) to inform design decisions.
Least privilege
Give users and components only the permissions they need to perform their role.
Defense in depth
Use layered controls (authentication, authorization, input validation, logging) to reduce single points of failure.
Secure SDLC / secure coding practices
Incorporate security requirements, design reviews, and testing (static/dynamic analysis) throughout development.
Secure by design requirements
Translate security needs into measurable design and acceptance criteria (e.g., threat mitigation, data protection).

Remember it: Think of your software as a fortress: build walls (controls) inside and out, with checks at every door.

Exam tip: Markers look for explicit security requirements, clear justification of design decisions for risk reduction, and evidence of testing/verification of security controls.

Syllabus checklist

  • Security by design: core ideas
  • Terms and typical exam questions for "Secure software" in NSW HSC Software Engineering

Practice questions

  1. 1. Which principle minimizes privilege and access rights in secure design?

    Show answer

    Answer: Defense in depth. Least privilege reduces attack surface by granting only necessary rights.

  2. 2. In threat modeling, you first identify assets, then perform a ____.

    Show answer

    Answer: risk assessment. A risk assessment evaluates threats, vulnerabilities and impact on identified assets.

  3. 3. Security by design emphasizes building protections ____ development.

    Show answer

    Answer: during. Protections are integrated during development, not added later.

  4. 4. Security by design can reduce the cost of fixes later.

    Show answer

    Answer: True. Addressing security early lowers remediation costs after release.

  5. 5. A ____ policy states that only necessary components run with elevated privileges.

    Show answer

    Answer: least privilege. A least privilege policy limits privilege to what is strictly needed.

Practise security by design as a game

Hearts, combos, streaks and an AI tutor that explains every answer. Start free.

Start free

More from Unit 1: Secure software