Hiring Partners
Segilola Resources Operating LimitedTaviatech TechnologiesFCMBMTN NigeriaAdvans La Fayette Microfinance BankAboki AfricaFirst Bank of NigeriaOPay
โ† Security by Design ยท Lesson 3 of 4

Principles of Secure Design

๐Ÿ“– Every lesson in this course is free to read right here, no account needed. Create a free account to track your progress, take the exam, and earn your certificate.
3
Module 2 ยท Principles of Secure Design

โฌ… Back to Course Outline

๐Ÿงฉ Module 2 โ€” Principles of Secure Design

Security by Design ยท Beginner Level ยท 2026


1. Module Introduction

Welcome to Module 2. In Module 1, you learned what Security by Design means. You learned that it is about planning for safety from the very beginning. You also learned why it saves time, money, and stress.

Now we go one step further. You will learn the main principles of secure design. A principle is like a rule or a guide. When you follow good principles, your design stays safe.

Think of building a bridge. Engineers follow principles like "use strong materials," "build on solid ground," and "test before opening." Security has its own principles too.

In this module, you will learn six big principles. You will learn to keep things simple. You will learn about least privilege, defence in depth, failing safely, not trusting input, and keeping your design open. Each one protects you in a different way.

This module is written for complete beginners. You do not need to know any coding. Every new word is explained in very simple language. Every principle comes with examples from real life, school, home, and Nigeria. So relax, read slowly, and let us begin.

YOUR LEARNING JOURNEY IN MODULE 2
=================================

[ Start ]
    |
    V
Keep It Simple
    |
    V
Least Privilege
    |
    V
Defence in Depth
    |
    V
Fail Safely
    |
    V
Do Not Trust Input
    |
    V
Keep It Open
    |
    V
[ You know the principles of secure design! ]

Summary of the Introduction

This module teaches you the six main principles of secure design. Each principle helps you build safer systems from the start.


2. Learning Objectives

By the end of this module, you will be able to:

  1. Explain what a principle is in your own words.
  2. Describe the principle of keeping it simple.
  3. Explain least privilege and why it matters.
  4. Describe defence in depth and its purpose.
  5. Explain what it means to fail safely.
  6. Describe why we should not trust input.
  7. Explain the principle of keeping it open.
  8. Give real-life examples of each principle.
  9. Spot which principle is missing in a bad design.
  10. Feel confident and curious to continue to Module 3.

Summary of Learning Objectives

You will learn six principles of secure design and how to apply them in daily life.


3. Warm-up Story โ€” Tunde's Locked Boxes

Tunde is a 12-year-old boy who lives in Ibadan. He loves collecting special things โ€” coins, stamps, and small toys. He keeps them in a wooden box in his room.

One day, Tunde's mother gave him three smaller boxes. "You can use these to organise your collection," she said.

Tunde thought about it. He had an idea.

First, he put all his coins in Box A. Then he put his stamps in Box B. Then he put his small toys in Box C. He labelled each box clearly.

Next, he placed all three small boxes inside the big wooden box. He locked the big box with a key.

But that is not all. He also placed a small padlock on each of the three smaller boxes.

His friend Chidi came to visit. "Why so many locks?" Chidi asked.

"Because if someone opens the big box, they still cannot open the small boxes without their own keys," Tunde said.

"But why organise them in small boxes?" Chidi asked.

"Because it is easier to find things. And if one box is broken, the others are still safe."

Chidi was impressed. "You have designed your collection well!"

Tunde smiled. He had used several principles without knowing their names. He had kept things simple. He had used many layers of protection. He had given each box only what it needed. His design was strong.

TUNDE'S BOXES
=============

[ Big Box with Lock ]
     |
     +-- [ Small Box A ] + padlock
     +-- [ Small Box B ] + padlock
     +-- [ Small Box C ] + padlock

Many locks = Defence in Depth
Small boxes = Keep It Simple
Each box has its key = Least Privilege

Summary of the Warm-up Story

Tunde organised his collection with three small boxes inside a big box. He used several locks and separate keys. Without knowing their names, he used the principles of secure design. This story introduces the whole module.


4. Main Lessons

In this section, you will go through 12 short lessons. Each lesson teaches one big idea. Each lesson ends with a mini summary. Read slowly. Think about the examples. Ask questions. That is how you learn.

Lesson 1 โ€” What is a Principle?

Definition

A principle is a rule or guide that helps you make good decisions. It is a simple idea you follow again and again.

Why it is important

Principles help you stay consistent. When you follow good principles, you make fewer mistakes.

Simple explanation

Think of a football coach. They have principles like "always pass the ball" and "keep your shape." A security designer has principles too.

Examples of Principles

  • In cooking: taste before serving.
  • In sports: warm up before playing.
  • In school: study a little every day.
  • In security: plan for safety first.

Real-life example

A carpenter follows the principle "measure twice, cut once."

School example

A student follows the principle "read the question twice before answering."

Home example

Your family follows the principle "lock the door before going out."

Nigerian example

A trader follows the principle "count your money twice before closing."

Illustration

PRINCIPLES ARE GUIDES
=====================

[ Principle ] -> [ Good decision ]
[ Principle ] -> [ Good decision ]
[ Principle ] -> [ Good decision ]
        |
        V
[ Consistent, safe results ]

Mini summary

A principle is a rule or guide that helps you make good decisions. Principles keep you consistent.


Lesson 2 โ€” Keep It Simple

Definition

Keep It Simple means designing things in the easiest way possible. It means avoiding unnecessary parts.

Why it is important

Simple systems are easier to understand and easier to protect. Complicated systems have more places for problems.

Simple explanation

Think of a bicycle. It has two wheels, a chain, and brakes. A car has thousands of parts. A bicycle is easier to fix. Simple designs are safer.

How to Keep It Simple

  • Do only what is needed.
  • Remove extra features.
  • Use clear names and steps.
  • Do not add things "just in case."

Real-life example

A bank login page asks for your username and password. It does not ask for 20 other details. It is simple.

School example

A school portal asks for your exam number and password. Simple.

Home example

Your Wi-Fi password is one strong phrase. It does not have a hundred rules.

Nigerian example

A POS machine asks for the amount and PIN. It does not ask for unnecessary details.

Illustration

KEEP IT SIMPLE
==============

Simple:   [ User ] -> [ Password ] -> [ Login ]

Complex:  [ User ] -> [ Password ] -> [ OTP ]
       -> [ Secret Question ] -> [ Birthday ]
       -> [ Colour ] -> [ Pet Name ] -> [ Login ]

Simple is easier to protect.

Mini summary

Keep It Simple means designing things in the easiest way possible. Simple systems are easier to protect.


Lesson 3 โ€” Least Privilege

Definition

Least Privilege means giving each person only the access they need to do their job. Nothing more.

Why it is important

If someone has more access than they need, a mistake or hack can cause more damage.

Simple explanation

Think of a school. The head teacher has keys to every room. A student only has access to their classroom. Students do not need keys to the staff room.

How to Use Least Privilege

  • Give each person only what they need.
  • Do not give admin access to everyone.
  • Remove access when it is no longer needed.
  • Check access regularly.

Real-life example

A bank teller can help customers. They cannot access the bank's main vault. That is least privilege.

School example

A student can check their own results. They cannot change anyone's scores.

Home example

Your younger brother can watch TV. He cannot change the family bank account.

Nigerian example

A POS operator can collect payments. They cannot access the business owner's full bank account.

Illustration

LEAST PRIVILEGE
===============

[ Head Teacher ] -> All rooms
[ Teacher ]      -> Classroom + Staff Room
[ Student ]      -> Classroom only
[ Visitor ]      -> Front gate only

Each has only what they need.

Mini summary

Least Privilege means giving each person only the access they need. Nothing more.


Lesson 4 โ€” Defence in Depth

Definition

Defence in Depth means using many layers of protection. If one layer fails, the others still protect you.

Why it is important

No single protection is perfect. Many layers make you much safer.

Simple explanation

Think of a castle. It has a moat, walls, gates, and guards. If someone crosses the moat, they still face the walls. Defence in Depth is the same idea.

Layers of Protection

  • Strong passwords
  • Two-Factor Authentication (2FA)
  • Antivirus software
  • Firewalls
  • Regular backups

Real-life example

A bank has security guards, cameras, alarms, and vaults. Many layers.

School example

A school has a gate, a fence, and a watchman. Many layers.

Home example

Your house has a gate, a door lock, and a window lock. Many layers.

Nigerian example

A Nigerian bank has guards, cameras, alarms, and vault doors. Many layers of protection.

Illustration

DEFENCE IN DEPTH
================

[ Password ]
        |
        V
[ 2FA ]
        |
        V
[ Antivirus ]
        |
        V
[ Firewall ]
        |
        V
[ Backup ]

Many layers. Attackers must pass them all.

Mini summary

Defence in Depth means using many layers of protection. If one fails, the others still protect you.


Lesson 5 โ€” Fail Safely

Definition

Fail Safely means that when something goes wrong, the system should protect users instead of exposing them.

Why it is important

Systems will fail sometimes. The way they fail matters. Failing safely prevents damage.

Simple explanation

Think of a door that locks automatically when the power goes off. That is failing safely.

How to Fail Safely

  • Lock things down when a problem happens.
  • Do not reveal secret information in error messages.
  • Keep a backup ready.
  • Log what went wrong.
  • Alert the right people.

Real-life example

When a bank ATM loses network, it stops giving money. That is failing safely.

School example

If the school portal fails, students cannot change scores. That is failing safely.

Home example

If the Wi-Fi goes down, your devices do not share your passwords. That is failing safely.

Nigerian example

If a Nigerian bank's mobile app fails, it locks your account until you log in again. That is failing safely.

Illustration

FAIL SAFELY
===========

[ Something goes wrong ]
        |
        V
[ System locks down ]
        |
        V
[ No data is exposed ]
        |
        V
[ Users are protected ]

Mini summary

Fail Safely means that when something goes wrong, the system protects users instead of exposing them.


Lesson 6 โ€” Do Not Trust Input

Definition

Do Not Trust Input means always checking what users type or send. Never assume it is safe.

Why it is important

Attackers use input to break into systems. If you check everything, you stay safe.

Simple explanation

Think of a teacher marking exams. They check every answer. They do not assume every answer is correct.

What to Check

  • Names and emails
  • Passwords
  • Numbers (are they really numbers?)
  • File uploads
  • Links

Real-life example

A website asks for your phone number. It checks that you typed numbers, not letters.

School example

A school portal checks that your exam number has the correct format.

Home example

Your family checks a text message before clicking any link.

Nigerian example

A Nigerian bank checks every transaction for suspicious details before allowing it.

Illustration

DO NOT TRUST INPUT
==================

[ User input ] -> [ Check it ] -> [ If good, accept ]
                             -> [ If bad, reject ]

Never trust input directly.

Mini summary

Do Not Trust Input means always checking what users type or send. Never assume it is safe.


Lesson 7 โ€” Keep It Open

Definition

Keep It Open means not relying on secrecy as your only protection. Your design should be safe even if everyone knows how it works.

Why it is important

Secrets often leak. If your system is safe without secrets, you are stronger.

Simple explanation

Think of a lock. Everyone knows how a lock works. But only you have the key. The lock is safe even though its design is open.

How to Keep It Open

  • Do not rely only on hidden passwords.
  • Use well-tested methods.
  • Share your design for review.
  • Test openly with experts.

Real-life example

Everyone knows how a bank's security cameras work. But the cameras still protect the bank.

School example

Everyone knows how the school's exam rules work. But students still cannot cheat.

Home example

Everyone knows how a house lock works. But only your family has the key.

Nigerian example

Everyone knows how Nigerian bank cards work. But only you have your PIN.

Illustration

KEEP IT OPEN
============

[ Everyone knows how the lock works ]
        |
        V
[ But only you have the key ]
        |
        V
[ System stays safe ]

Mini summary

Keep It Open means not relying on secrecy as your only protection. Your design should be safe even if everyone knows how it works.


Lesson 8 โ€” Using Principles Together

Definition

Using principles together means applying more than one rule at the same time. This makes your design even stronger.

Why it is important

Each principle protects you in a different way. Together, they build a much safer system.

Simple explanation

Think of a football team. Passing, defending, and scoring all matter. Using them together wins matches.

Example Combination

  • Keep It Simple
  • Least Privilege
  • Defence in Depth
  • Fail Safely
  • Do Not Trust Input
  • Keep It Open

Real-life example

A bank uses all six principles at once. That is why banks are hard to rob.

School example

A school uses simple portals, limited access, and backups. All together.

Home example

Your home uses locks, alarms, and safe habits. All together.

Nigerian example

Nigerian banks use all six principles to protect customers.

Illustration

ALL PRINCIPLES TOGETHER
=======================

[ Keep It Simple ]
[ Least Privilege ]
[ Defence in Depth ]
[ Fail Safely ]
[ Do Not Trust Input ]
[ Keep It Open ]
        |
        V
[ Very strong design ]

Mini summary

Using principles together makes your design much stronger. Each one protects you in a different way.


Lesson 9 โ€” Principles in Real Life

Definition

Principles in real life means seeing how these ideas are used in banks, hospitals, schools, and homes.

Why it is important

Seeing them in real life helps you remember and apply them.

Simple explanation

Think of a hospital. Patients have different access. Doctors have their own access. Visitors stay in the waiting area. That is least privilege.

Real-Life Examples

  • Banks โ€” keep it simple + defence in depth
  • Hospitals โ€” least privilege + fail safely
  • Schools โ€” keep it simple + do not trust input
  • Homes โ€” defence in depth + keep it open

Real-life example

A bank uses passwords (simple) and cameras (defence in depth).

School example

A school uses simple portals and checks every exam number.

Home example

Your home uses locked doors (defence in depth) and safe habits (keep it simple).

Nigerian example

Nigerian banks use many principles together to protect customer money.

Illustration

PRINCIPLES IN REAL LIFE
=======================

Banks:     Simple + Defence
Hospitals: Least Priv + Fail Safe
Schools:   Simple + No Trust
Homes:     Defence + Open

Mini summary

Principles are used everywhere โ€” banks, hospitals, schools, and homes.


Lesson 10 โ€” Principles in Daily Habits

Definition

Principles in daily habits means using these ideas in small, everyday actions.

Why it is important

Small habits build strong security over time.

Simple explanation

Think of brushing your teeth. It is small. But doing it daily protects you. Same for security principles.

Daily Habits

  • Use a strong password (keep it simple).
  • Do not share your PIN (least privilege).
  • Use 2FA (defence in depth).
  • Log out on shared devices (fail safely).
  • Check messages before clicking (do not trust input).
  • Teach your family (keep it open).

Real-life example

A student checks their messages before clicking any link.

School example

A student uses a different password for the school portal.

Home example

Your family sets a strong Wi-Fi password.

Nigerian example

A Nigerian family covers their PIN at the ATM.

Illustration

DAILY HABITS
============

Strong password    -> Keep It Simple
Do not share PIN   -> Least Privilege
Use 2FA            -> Defence in Depth
Log out            -> Fail Safely
Check messages     -> Do Not Trust Input
Teach family       -> Keep It Open

Mini summary

Small daily habits use the principles of secure design. Together, they protect you.


Lesson 11 โ€” Spotting Missing Principles

Definition

Spotting missing principles means noticing when a design has forgotten one of the six principles.

Why it is important

When a principle is missing, the design is weaker. Spotting it helps you fix problems before they happen.

Simple explanation

Think of a football team missing a goalkeeper. Anyone can score. That is a missing principle.

How to Spot Missing Principles

  • Is the design too complicated? (Keep It Simple missing)
  • Does everyone have full access? (Least Privilege missing)
  • Is there only one layer of protection? (Defence in Depth missing)
  • Does the system expose data on failure? (Fail Safely missing)
  • Is input taken without checking? (Do Not Trust Input missing)
  • Is secrecy the only protection? (Keep It Open missing)

Real-life example

A website that asks for 20 details to log in is missing "Keep It Simple."

School example

A portal where every student can see all results is missing "Least Privilege."

Home example

A Wi-Fi router without a password is missing "Defence in Depth."

Nigerian example

A bank without OTPs is missing "Defence in Depth."

Illustration

SPOTTING MISSING PRINCIPLES
===========================

Too complex?           -> Keep It Simple missing
Everyone full access?  -> Least Privilege missing
One layer only?        -> Defence in Depth missing
Data exposed?          -> Fail Safely missing
Input unchecked?       -> Do Not Trust Input missing
Secrecy only?          -> Keep It Open missing

Mini summary

Spotting missing principles helps you fix problems before they cause harm.


Lesson 12 โ€” Becoming a Secure Designer

Definition

A secure designer is someone who uses the six principles every time they plan something.

Why it is important

This habit protects you, your family, and your projects. It prepares you for future work.

Simple explanation

Think of a careful planner. They always consider safety, cost, and time. A secure designer always considers the six principles.

How to Become One

  1. Learn the six principles.
  2. Ask "which principle is missing?"
  3. Apply them in daily life.
  4. Teach others.
  5. Review your designs regularly.

Real-life example

A student designs their class project with the six principles.

School example

A student helps build a safer class portal.

Home example

Your family uses all six principles to protect their devices.

Nigerian example

Nigerian cybersecurity professionals use the six principles daily.

Illustration

BECOMING A SECURE DESIGNER
==========================

[ Learn principles ]
        |
        V
[ Ask which is missing ]
        |
        V
[ Apply in daily life ]
        |
        V
[ Teach others ]
        |
        V
[ Review and improve ]

Mini summary

A secure designer uses the six principles every time they plan something. Anyone can become one.


5. Key Vocabulary

Word Simple Definition
Principle A rule or guide that helps you decide.
Keep It Simple Design in the easiest way possible.
Least Privilege Give each person only what they need.
Defence in Depth Use many layers of protection.
Fail Safely When something goes wrong, protect users.
Input What users type or send.
Do Not Trust Input Always check what users send.
Keep It Open Do not rely on secrecy alone.
Design The way something is built or arranged.
Layer One level of protection.
Access Being able to use or see something.
Secure Designer Someone who plans with the six principles.

Summary of Key Vocabulary

These words are the foundation of secure design. Use them often so they become easy.


6. Important Concepts

Concept 1 โ€” Principles Guide Design

Rules help you make good decisions again and again.

Concept 2 โ€” Simple Is Safer

Simple systems are easier to protect and harder to break.

Concept 3 โ€” Many Layers Beat One

If one protection fails, the others still protect you.

Concept 4 โ€” Check Everything

Do not trust input. Do not rely on secrecy. Always verify.

Concept 5 โ€” Failures Should Not Hurt Users

When something goes wrong, the system should protect users.

Summary of Important Concepts

These five concepts are the heart of Module 2. Read them again before moving on.


7. Step-by-step Explanations

Step-by-step: How to Apply the Six Principles

  1. Understand what you are building.
  2. Keep it simple. Remove extra parts.
  3. Give each person only what they need.
  4. Add many layers of protection.
  5. Plan how it will fail safely.
  6. Check every input.
  7. Do not rely on secrecy alone.
APPLYING THE SIX PRINCIPLES
===========================

[ Understand ]
        |
        V
[ Keep It Simple ]
        |
        V
[ Least Privilege ]
        |
        V
[ Defence in Depth ]
        |
        V
[ Fail Safely ]
        |
        V
[ Do Not Trust Input ]
        |
        V
[ Keep It Open ]
        |
        V
[ Safe design! ]

Step-by-step: How to Spot Missing Principles

  1. Look at the design.
  2. Is it complex? Check "Keep It Simple."
  3. Does everyone have full access? Check "Least Privilege."
  4. Is there only one layer? Check "Defence in Depth."
  5. Does it expose data on failure? Check "Fail Safely."
  6. Is input taken without checking? Check "Do Not Trust Input."
  7. Is secrecy the only protection? Check "Keep It Open."
SPOTTING MISSING PRINCIPLES
===========================

[ Complex? ]      -> Keep It Simple missing
[ Full access? ]  -> Least Privilege missing
[ One layer? ]    -> Defence in Depth missing
[ Data exposed? ] -> Fail Safely missing
[ Unchecked? ]    -> Do Not Trust Input missing
[ Secrecy? ]      -> Keep It Open missing

Step-by-step: How to Fix a Weak Design

  1. Identify the missing principle.
  2. Plan how to add it.
  3. Make the change.
  4. Test the change.
  5. Review again.
FIXING A WEAK DESIGN
====================

[ Identify missing principle ]
        |
        V
[ Plan the fix ]
        |
        V
[ Make the change ]
        |
        V
[ Test ]
        |
        V
[ Review ]

Summary of Step-by-step Explanations

Applying principles, spotting missing ones, and fixing weak designs all follow simple steps. Follow them, and your design stays strong.


8. Real-life Examples

Example 1 โ€” A Bank

A bank uses all six principles: simple logins, limited access, many layers, safe failure, input checks, and open designs.

Example 2 โ€” A Hospital

A hospital uses least privilege (doctors, nurses, visitors) and fail safely (protect records on failure).

Example 3 โ€” A School

A school uses simple portals, limited access, and input checks.

Example 4 โ€” An Online Shop

An online shop uses many layers and does not trust input.

Example 5 โ€” A Government Office

A government office uses all six principles to protect national data.

Summary of Real-life Examples

The six principles are used in banks, hospitals, schools, shops, and government offices.


9. Nigerian Examples

Example 1 โ€” Nigerian Banks

Nigerian banks use all six principles to protect customer money.

Example 2 โ€” Nigerian Fintechs

Paystack and Flutterwave use many layers and check every input.

Example 3 โ€” Nigerian Schools

Nigerian universities give different access to staff and students.

Example 4 โ€” Nigerian Government

NITDA uses least privilege and defence in depth.

Example 5 โ€” Nigerian Families

Families use defence in depth (locks, PINs, passwords).

Summary of Nigerian Examples

Nigeria uses the six principles in banks, fintechs, schools, government, and families.


10. Fun Examples Children Can Relate To

Example 1 โ€” A Football Team

Each player has a role (least privilege). The coach plans many defences (defence in depth).

Example 2 โ€” A Lunchbox

Each compartment holds a different food (keep it simple). You check food before eating (do not trust input).

Example 3 โ€” A Pencil Case

Each item has a place (keep it simple). You zip it closed (defence in depth).

Example 4 โ€” A House of Cards

If one card falls, the house falls. Many layers would make it strong.

Example 5 โ€” A Video Game

Games have many levels of defence (health, shields, armour).

Summary of Fun Examples

The principles appear in football teams, lunchboxes, pencil cases, card houses, and video games.


11. Everyday Examples

Situation Principle
Locking your door Defence in Depth
Using a PIN Least Privilege
Simple Wi-Fi password Keep It Simple
Checking messages Do Not Trust Input
Logging out Fail Safely

Summary of Everyday Examples

Even simple daily actions use the six principles. Now you can see them everywhere.


12. Parent Tips

  1. Teach the principles. Explain each one with examples.
  2. Use daily life. Point out principles in locks, PINs, and passwords.
  3. Ask "which principle is missing?". Do this with your child.
  4. Praise good design. When your child spots good design, praise them.
  5. Practice together. Design something simple as a family.
  6. Be patient. Learning takes time.
  7. Keep it fun. Use games and stories.
  8. Review often. Revisit the principles weekly.

Summary of Parent Tips

Parents can teach the principles at home through daily conversations and simple examples.


13. Interesting Facts

  1. Most cyber attacks succeed because one of the six principles is missing.
  2. Simple designs are 10 times easier to protect.
  3. Defence in depth is used in castles, banks, and space shuttles.
  4. Fail safely is used in elevators and ATM machines.
  5. Companies that follow all six principles save millions.
  6. Many Nigerian fintechs follow these principles strictly.
  7. Every smartphone uses defence in depth.
  8. Learning these principles helps you in any career.

Summary of Interesting Facts

The six principles are powerful and used everywhere.


14. Did You Know?

  • Did you know that "least privilege" is used in schools and banks?
  • Did you know that "defence in depth" comes from castle design?
  • Did you know that elevators use "fail safely"?
  • Did you know that "keep it open" is a principle used by scientists?
  • Did you know that many cybersecurity professionals use all six principles daily?
  • Did you know that simple designs save time and money?

Summary of Did You Know?

The six principles are full of surprises. The more you learn, the more useful they become.


15. Remember This

  • A principle is a rule or guide.
  • Keep It Simple means design in the easiest way.
  • Least Privilege means give only what is needed.
  • Defence in Depth means many layers.
  • Fail Safely means protect users on failure.
  • Do Not Trust Input means check everything.
  • Keep It Open means do not rely on secrecy.
  • Using principles together is strongest.
  • Spot missing principles in weak designs.
  • Anyone can become a secure designer.

Summary of Remember This

These ten points are the heart of Module 2. Read them again before moving on.


16. Common Mistakes

  1. Making things too complex. Simple is safer.
  2. Giving everyone full access. Use least privilege.
  3. Using only one layer of protection. Use defence in depth.
  4. Exposing data on failure. Fail safely.
  5. Trusting input. Always check.
  6. Relying on secrecy alone. Keep it open.
  7. Forgetting to test. Test your design.
  8. Ignoring small problems. They grow into big breaches.

Summary of Common Mistakes

Avoiding these mistakes will make your designs stronger than most.


17. Best Practices

  1. Keep designs simple.
  2. Give only what is needed.
  3. Use many layers.
  4. Plan for safe failure.
  5. Check all input.
  6. Do not rely on secrecy.
  7. Combine principles.
  8. Spot missing principles.
  9. Review designs regularly.
  10. Teach others the principles.

Summary of Best Practices

These ten practices will help you build strong, safe designs.


18. ASCII Illustrations, Diagrams, Flowcharts, and Timelines

Diagram 1 โ€” Six Principles

SIX PRINCIPLES OF SECURE DESIGN
===============================

[ Keep It Simple ]
[ Least Privilege ]
[ Defence in Depth ]
[ Fail Safely ]
[ Do Not Trust Input ]
[ Keep It Open ]

Diagram 2 โ€” Keep It Simple

KEEP IT SIMPLE
==============

Simple:   [ User ] -> [ Password ] -> [ Login ]

Complex:  [ User ] -> [ Many steps ] -> [ Problems ]

Diagram 3 โ€” Least Privilege

LEAST PRIVILEGE
===============

[ Head Teacher ] -> All rooms
[ Teacher ]      -> Classroom + Staff Room
[ Student ]      -> Classroom only
[ Visitor ]      -> Front gate only

Diagram 4 โ€” Defence in Depth

DEFENCE IN DEPTH
================

[ Password ]
        |
        V
[ 2FA ]
        |
        V
[ Antivirus ]
        |
        V
[ Firewall ]
        |
        V
[ Backup ]

Diagram 5 โ€” Fail Safely

FAIL SAFELY
===========

[ Problem happens ]
        |
        V
[ System locks down ]
        |
        V
[ Users protected ]

Diagram 6 โ€” Becoming a Secure Designer

BECOMING A SECURE DESIGNER
==========================

[ Learn principles ]
        |
        V
[ Spot missing ones ]
        |
        V
[ Apply daily ]
        |
        V
[ Teach others ]
        |
        V
[ Review and improve ]

Summary of Illustrations

These diagrams help you see the six principles clearly. Draw them yourself to remember them better.


19. Comparison Tables

Table 1 โ€” The Six Principles

Principle Meaning
Keep It Simple Design in the easiest way possible.
Least Privilege Give only what is needed.
Defence in Depth Use many layers of protection.
Fail Safely Protect users on failure.
Do Not Trust Input Always check what users send.
Keep It Open Do not rely on secrecy alone.

Table 2 โ€” Simple vs Complex Design

Simple Design Complex Design
Easier to protect Harder to protect
Fewer places for problems Many places for problems
Easier to fix Harder to fix
Users understand it Users get confused

Table 3 โ€” One Layer vs Many Layers

One Layer Many Layers
One protection only Many protections
Easy to break Hard to break
Risky Safe
Example: password only Example: password + 2FA + antivirus

Summary of Comparison Tables

Comparing ideas side by side helps you remember the differences clearly.


20. Summary After Every Lesson

Lesson Main Idea
Lesson 1 A principle is a rule or guide.
Lesson 2 Keep It Simple means design in the easiest way.
Lesson 3 Least Privilege means give only what is needed.
Lesson 4 Defence in Depth means many layers.
Lesson 5 Fail Safely means protect users on failure.
Lesson 6 Do Not Trust Input means check everything.
Lesson 7 Keep It Open means do not rely on secrecy.
Lesson 8 Using principles together is strongest.
Lesson 9 Principles appear in banks, hospitals, schools, homes.
Lesson 10 Small daily habits use the principles.
Lesson 11 Spotting missing principles prevents harm.
Lesson 12 Anyone can become a secure designer.

21. End-of-Module Summary

Congratulations! You have completed Module 2. Let us review what you have learned.

You began by learning that a principle is a rule or guide.

You learned to Keep It Simple โ€” design in the easiest way possible.

You discovered Least Privilege โ€” give each person only what they need.

You explored Defence in Depth โ€” use many layers of protection.

You learned to Fail Safely โ€” protect users when something goes wrong.

You discovered the principle of Do Not Trust Input โ€” always check what users send.

You explored Keep It Open โ€” do not rely on secrecy alone.

You learned how to use principles together for strong designs.

You found principles in real life โ€” banks, hospitals, schools, homes.

You saw how daily habits use the principles.

You learned to spot missing principles in weak designs.

Finally, you learned how to become a secure designer.

MODULE 2 SUMMARY MAP
====================

[ Keep It Simple ]
        |
        V
[ Least Privilege ] -> [ Defence in Depth ]
        |
        V
[ Fail Safely ] -> [ Do Not Trust Input ] -> [ Keep It Open ]
        |
        V
[ Use Together ] -> [ Spot Missing ] -> [ Secure Designer! ]

Well done! You now understand the six principles of secure design. In Module 3, you will learn how to think about threats and build safe systems from the start.


22. Frequently Asked Questions (10 Questions)

Question 1: What is a principle?

A principle is a rule or guide that helps you make good decisions.

Question 2: What does "Keep It Simple" mean?

Design things in the easiest way possible. Avoid extra parts.

Question 3: What is "Least Privilege"?

Give each person only the access they need. Nothing more.

Question 4: What is "Defence in Depth"?

Use many layers of protection. If one fails, the others still protect you.

Question 5: What does "Fail Safely" mean?

When something goes wrong, the system should protect users instead of exposing them.

Question 6: Why should I "Do Not Trust Input"?

Attackers use input to break into systems. Always check what users send.

Question 7: What does "Keep It Open" mean?

Do not rely on secrecy alone. Your design should be safe even if everyone knows how it works.

Question 8: Can I use more than one principle at the same time?

Yes. Using many together makes your design stronger.

Question 9: How do I spot missing principles?

Look at the design and ask if it is too complex, gives too much access, has only one layer, exposes data, trusts input, or relies on secrecy.

Question 10: What will I learn in Module 3?

You will learn how to think about threats and build safe systems from the start.


23. Matching Exercises

Exercise 1 โ€” Match the Principle to the Meaning

Column A (Principle) Column B (Meaning)
1. Keep It Simple A. Give only what is needed
2. Least Privilege B. Use many layers
3. Defence in Depth C. Protect users on failure
4. Fail Safely D. Design in the easiest way
5. Do Not Trust Input E. Always check what users send
6. Keep It Open F. Do not rely on secrecy

Answers: 1-D, 2-A, 3-B, 4-C, 5-E, 6-F

Exercise 2 โ€” Match the Situation to the Principle

Column A (Situation) Column B (Principle)
1. Locking your door A. Least Privilege
2. A student uses only their class portal B. Defence in Depth
3. Checking a link before clicking C. Do Not Trust Input
4. Using 2FA D. Defence in Depth

Answers: 1-B, 2-A, 3-C, 4-D

Summary of Matching Exercises

Matching helps you connect principles to meanings quickly.


24. Scenario-based Exercises

Scenario 1 โ€” The New School Portal

A school is building a new portal. Any student can see any result. Anyone can change anything.

Questions:

  1. Which principle is missing?
  2. What could go wrong?
  3. How can the school fix it?

Scenario 2 โ€” The Family Wi-Fi

Your family's Wi-Fi router has no password. Anyone can use it.

Questions:

  1. Which principle is missing?
  2. What could go wrong?
  3. How can the family fix it?

Scenario 3 โ€” The Online Shop

An online shop takes the customer's name and address without checking. It also exposes customer data on errors.

Questions:

  1. Which two principles are missing?
  2. What could go wrong?
  3. How can the shop fix it?

Summary of Scenario-based Exercises

These scenarios help you apply what you have learned to real situations.


25. Group Activity

Activity: Apply the Six Principles

Group size: 3โ€“5 students

Time: 40 minutes

Materials: Paper, pencil

Instructions:

  1. Choose a simple system (school portal, family app, small shop).
  2. List all six principles.
  3. Write how your system will use each one.
  4. Present your plan to the class.

Goal: To practise applying all six principles together.


26. Individual Activity

Activity: My Six Principles Plan

Time: 20 minutes

Materials: Notebook, pencil

Instructions:

  1. Write the six principles.
  2. Write one example of each in your daily life.
  3. Write one thing you will improve in your life using these principles.

Goal: To connect principles to your own life.


27. Mini Project

Project: Design a System Using All Six Principles

Time: 1โ€“2 hours

Materials: Paper, pencil, colour pencils

Instructions:

  1. Choose a system (class page, family app, small shop).
  2. Draw what it will look like.
  3. Show how each of the six principles is used.
  4. Present it to the class.

Goal: To practise using all six principles in one design.


28. Practical Assignment

Assignment: Spot the Missing Principles

Time: 1 week

Materials: Notebook, pencil

Instructions:

  1. Look around your home, school, or community.
  2. Find 5 designs and identify which principle they use.
  3. Find 2 designs missing a principle.
  4. Write what could go wrong.
  5. Suggest how to fix them.

Goal: To practise spotting missing principles in real life.


29. Key Takeaways

  1. A principle is a rule or guide.
  2. Keep It Simple means design in the easiest way.
  3. Least Privilege means give only what is needed.
  4. Defence in Depth means many layers.
  5. Fail Safely means protect users on failure.
  6. Do Not Trust Input means check everything.
  7. Keep It Open means do not rely on secrecy.
  8. Using principles together is strongest.
  9. Spot missing principles in weak designs.
  10. Anyone can become a secure designer.

30. Classroom Discussion Questions

  1. What is a principle in your own words?
  2. Which principle do you think is most important?
  3. Why is simple design safer than complex design?
  4. Can you give an example of least privilege in your school?
  5. Why do we need many layers of protection?
  6. What does it mean to fail safely?
  7. Why should we not trust input?
  8. Why should we keep our design open?
  9. How can you apply these principles in your own life?
  10. What did you enjoy most in this module?

31. Preparation for the Next Module

You have finished Module 2. Well done! Here is how to prepare for Module 3, which is all about Thinking About Threats and Building Safely.

  1. Review the six principles. Make sure you can explain each one.
  2. Notice principles around you. Look at home, school, and shops.
  3. Practice spotting missing principles. Look for weak designs.
  4. Think about threats. What could go wrong in systems you use?
  5. Bring your curiosity. Module 3 will teach you about threat models, planning for problems, and testing your design.
TRANSITION TO MODULE 3
======================

[ Module 2: Principles of Secure Design ]
          |
          V
[ Module 3: Thinking About Threats and Building Safely ]
          |
          V
[ You will learn: threat models, planning for mistakes,
  testing your design, and keeping systems safe ]

See you in Module 3. Keep thinking like a secure designer!


End of Module 2 โ€” Principles of Secure Design

โฌ… Back to Course Outline | Go to Module 3 โžก

Security by Design ยท Beginner Level ยท 2026

๐Ÿ† Get Certified

๐Ÿ”’

Earn this certificate

Every lesson is already free to read. Sign up, finish the lessons, pass the exam (โ‚ฆ2,000 or 20,000 coins), and get a verified certificate with your name on it.

๐ŸŽ“ Sign Up to Get Certified
๐Ÿ› ๏ธ Practice Tools
Hands-on simulators & labs - subscription required.
โ†’
๐ŸŽฏ Internship Tasks
Real-world tasks to build your portfolio - unlock them with a subscription.
โ†’