Security by Design ยท Beginner Level ยท 2026
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! ]
This module teaches you the six main principles of secure design. Each principle helps you build safer systems from the start.
By the end of this module, you will be able to:
You will learn six principles of secure design and how to apply them in daily life.
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
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.
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.
A principle is a rule or guide that helps you make good decisions. It is a simple idea you follow again and again.
Principles help you stay consistent. When you follow good principles, you make fewer mistakes.
Think of a football coach. They have principles like "always pass the ball" and "keep your shape." A security designer has principles too.
A carpenter follows the principle "measure twice, cut once."
A student follows the principle "read the question twice before answering."
Your family follows the principle "lock the door before going out."
A trader follows the principle "count your money twice before closing."
PRINCIPLES ARE GUIDES
=====================
[ Principle ] -> [ Good decision ]
[ Principle ] -> [ Good decision ]
[ Principle ] -> [ Good decision ]
|
V
[ Consistent, safe results ]
A principle is a rule or guide that helps you make good decisions. Principles keep you consistent.
Keep It Simple means designing things in the easiest way possible. It means avoiding unnecessary parts.
Simple systems are easier to understand and easier to protect. Complicated systems have more places for problems.
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.
A bank login page asks for your username and password. It does not ask for 20 other details. It is simple.
A school portal asks for your exam number and password. Simple.
Your Wi-Fi password is one strong phrase. It does not have a hundred rules.
A POS machine asks for the amount and PIN. It does not ask for unnecessary details.
KEEP IT SIMPLE
==============
Simple: [ User ] -> [ Password ] -> [ Login ]
Complex: [ User ] -> [ Password ] -> [ OTP ]
-> [ Secret Question ] -> [ Birthday ]
-> [ Colour ] -> [ Pet Name ] -> [ Login ]
Simple is easier to protect.
Keep It Simple means designing things in the easiest way possible. Simple systems are easier to protect.
Least Privilege means giving each person only the access they need to do their job. Nothing more.
If someone has more access than they need, a mistake or hack can cause more damage.
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.
A bank teller can help customers. They cannot access the bank's main vault. That is least privilege.
A student can check their own results. They cannot change anyone's scores.
Your younger brother can watch TV. He cannot change the family bank account.
A POS operator can collect payments. They cannot access the business owner's full bank account.
LEAST PRIVILEGE =============== [ Head Teacher ] -> All rooms [ Teacher ] -> Classroom + Staff Room [ Student ] -> Classroom only [ Visitor ] -> Front gate only Each has only what they need.
Least Privilege means giving each person only the access they need. Nothing more.
Defence in Depth means using many layers of protection. If one layer fails, the others still protect you.
No single protection is perfect. Many layers make you much safer.
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.
A bank has security guards, cameras, alarms, and vaults. Many layers.
A school has a gate, a fence, and a watchman. Many layers.
Your house has a gate, a door lock, and a window lock. Many layers.
A Nigerian bank has guards, cameras, alarms, and vault doors. Many layers of protection.
DEFENCE IN DEPTH
================
[ Password ]
|
V
[ 2FA ]
|
V
[ Antivirus ]
|
V
[ Firewall ]
|
V
[ Backup ]
Many layers. Attackers must pass them all.
Defence in Depth means using many layers of protection. If one fails, the others still protect you.
Fail Safely means that when something goes wrong, the system should protect users instead of exposing them.
Systems will fail sometimes. The way they fail matters. Failing safely prevents damage.
Think of a door that locks automatically when the power goes off. That is failing safely.
When a bank ATM loses network, it stops giving money. That is failing safely.
If the school portal fails, students cannot change scores. That is failing safely.
If the Wi-Fi goes down, your devices do not share your passwords. That is failing safely.
If a Nigerian bank's mobile app fails, it locks your account until you log in again. That is failing safely.
FAIL SAFELY
===========
[ Something goes wrong ]
|
V
[ System locks down ]
|
V
[ No data is exposed ]
|
V
[ Users are protected ]
Fail Safely means that when something goes wrong, the system protects users instead of exposing them.
Do Not Trust Input means always checking what users type or send. Never assume it is safe.
Attackers use input to break into systems. If you check everything, you stay safe.
Think of a teacher marking exams. They check every answer. They do not assume every answer is correct.
A website asks for your phone number. It checks that you typed numbers, not letters.
A school portal checks that your exam number has the correct format.
Your family checks a text message before clicking any link.
A Nigerian bank checks every transaction for suspicious details before allowing it.
DO NOT TRUST INPUT
==================
[ User input ] -> [ Check it ] -> [ If good, accept ]
-> [ If bad, reject ]
Never trust input directly.
Do Not Trust Input means always checking what users type or send. Never assume it is safe.
Keep It Open means not relying on secrecy as your only protection. Your design should be safe even if everyone knows how it works.
Secrets often leak. If your system is safe without secrets, you are stronger.
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.
Everyone knows how a bank's security cameras work. But the cameras still protect the bank.
Everyone knows how the school's exam rules work. But students still cannot cheat.
Everyone knows how a house lock works. But only your family has the key.
Everyone knows how Nigerian bank cards work. But only you have your PIN.
KEEP IT OPEN
============
[ Everyone knows how the lock works ]
|
V
[ But only you have the key ]
|
V
[ System stays safe ]
Keep It Open means not relying on secrecy as your only protection. Your design should be safe even if everyone knows how it works.
Using principles together means applying more than one rule at the same time. This makes your design even stronger.
Each principle protects you in a different way. Together, they build a much safer system.
Think of a football team. Passing, defending, and scoring all matter. Using them together wins matches.
A bank uses all six principles at once. That is why banks are hard to rob.
A school uses simple portals, limited access, and backups. All together.
Your home uses locks, alarms, and safe habits. All together.
Nigerian banks use all six principles to protect customers.
ALL PRINCIPLES TOGETHER
=======================
[ Keep It Simple ]
[ Least Privilege ]
[ Defence in Depth ]
[ Fail Safely ]
[ Do Not Trust Input ]
[ Keep It Open ]
|
V
[ Very strong design ]
Using principles together makes your design much stronger. Each one protects you in a different way.
Principles in real life means seeing how these ideas are used in banks, hospitals, schools, and homes.
Seeing them in real life helps you remember and apply them.
Think of a hospital. Patients have different access. Doctors have their own access. Visitors stay in the waiting area. That is least privilege.
A bank uses passwords (simple) and cameras (defence in depth).
A school uses simple portals and checks every exam number.
Your home uses locked doors (defence in depth) and safe habits (keep it simple).
Nigerian banks use many principles together to protect customer money.
PRINCIPLES IN REAL LIFE ======================= Banks: Simple + Defence Hospitals: Least Priv + Fail Safe Schools: Simple + No Trust Homes: Defence + Open
Principles are used everywhere โ banks, hospitals, schools, and homes.
Principles in daily habits means using these ideas in small, everyday actions.
Small habits build strong security over time.
Think of brushing your teeth. It is small. But doing it daily protects you. Same for security principles.
A student checks their messages before clicking any link.
A student uses a different password for the school portal.
Your family sets a strong Wi-Fi password.
A Nigerian family covers their PIN at the ATM.
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
Small daily habits use the principles of secure design. Together, they protect you.
Spotting missing principles means noticing when a design has forgotten one of the six principles.
When a principle is missing, the design is weaker. Spotting it helps you fix problems before they happen.
Think of a football team missing a goalkeeper. Anyone can score. That is a missing principle.
A website that asks for 20 details to log in is missing "Keep It Simple."
A portal where every student can see all results is missing "Least Privilege."
A Wi-Fi router without a password is missing "Defence in Depth."
A bank without OTPs is missing "Defence in Depth."
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
Spotting missing principles helps you fix problems before they cause harm.
A secure designer is someone who uses the six principles every time they plan something.
This habit protects you, your family, and your projects. It prepares you for future work.
Think of a careful planner. They always consider safety, cost, and time. A secure designer always considers the six principles.
A student designs their class project with the six principles.
A student helps build a safer class portal.
Your family uses all six principles to protect their devices.
Nigerian cybersecurity professionals use the six principles daily.
BECOMING A SECURE DESIGNER
==========================
[ Learn principles ]
|
V
[ Ask which is missing ]
|
V
[ Apply in daily life ]
|
V
[ Teach others ]
|
V
[ Review and improve ]
A secure designer uses the six principles every time they plan something. Anyone can become one.
| 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. |
These words are the foundation of secure design. Use them often so they become easy.
Rules help you make good decisions again and again.
Simple systems are easier to protect and harder to break.
If one protection fails, the others still protect you.
Do not trust input. Do not rely on secrecy. Always verify.
When something goes wrong, the system should protect users.
These five concepts are the heart of Module 2. Read them again before moving on.
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! ]
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
FIXING A WEAK DESIGN
====================
[ Identify missing principle ]
|
V
[ Plan the fix ]
|
V
[ Make the change ]
|
V
[ Test ]
|
V
[ Review ]
Applying principles, spotting missing ones, and fixing weak designs all follow simple steps. Follow them, and your design stays strong.
A bank uses all six principles: simple logins, limited access, many layers, safe failure, input checks, and open designs.
A hospital uses least privilege (doctors, nurses, visitors) and fail safely (protect records on failure).
A school uses simple portals, limited access, and input checks.
An online shop uses many layers and does not trust input.
A government office uses all six principles to protect national data.
The six principles are used in banks, hospitals, schools, shops, and government offices.
Nigerian banks use all six principles to protect customer money.
Paystack and Flutterwave use many layers and check every input.
Nigerian universities give different access to staff and students.
NITDA uses least privilege and defence in depth.
Families use defence in depth (locks, PINs, passwords).
Nigeria uses the six principles in banks, fintechs, schools, government, and families.
Each player has a role (least privilege). The coach plans many defences (defence in depth).
Each compartment holds a different food (keep it simple). You check food before eating (do not trust input).
Each item has a place (keep it simple). You zip it closed (defence in depth).
If one card falls, the house falls. Many layers would make it strong.
Games have many levels of defence (health, shields, armour).
The principles appear in football teams, lunchboxes, pencil cases, card houses, and video games.
| 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 |
Even simple daily actions use the six principles. Now you can see them everywhere.
Parents can teach the principles at home through daily conversations and simple examples.
The six principles are powerful and used everywhere.
The six principles are full of surprises. The more you learn, the more useful they become.
These ten points are the heart of Module 2. Read them again before moving on.
Avoiding these mistakes will make your designs stronger than most.
These ten practices will help you build strong, safe designs.
SIX PRINCIPLES OF SECURE DESIGN =============================== [ Keep It Simple ] [ Least Privilege ] [ Defence in Depth ] [ Fail Safely ] [ Do Not Trust Input ] [ Keep It Open ]
KEEP IT SIMPLE ============== Simple: [ User ] -> [ Password ] -> [ Login ] Complex: [ User ] -> [ Many steps ] -> [ Problems ]
LEAST PRIVILEGE =============== [ Head Teacher ] -> All rooms [ Teacher ] -> Classroom + Staff Room [ Student ] -> Classroom only [ Visitor ] -> Front gate only
DEFENCE IN DEPTH
================
[ Password ]
|
V
[ 2FA ]
|
V
[ Antivirus ]
|
V
[ Firewall ]
|
V
[ Backup ]
FAIL SAFELY
===========
[ Problem happens ]
|
V
[ System locks down ]
|
V
[ Users protected ]
BECOMING A SECURE DESIGNER
==========================
[ Learn principles ]
|
V
[ Spot missing ones ]
|
V
[ Apply daily ]
|
V
[ Teach others ]
|
V
[ Review and improve ]
These diagrams help you see the six principles clearly. Draw them yourself to remember them better.
| 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. |
| 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 |
| One Layer | Many Layers |
|---|---|
| One protection only | Many protections |
| Easy to break | Hard to break |
| Risky | Safe |
| Example: password only | Example: password + 2FA + antivirus |
Comparing ideas side by side helps you remember the differences clearly.
| 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. |
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.
A principle is a rule or guide that helps you make good decisions.
Design things in the easiest way possible. Avoid extra parts.
Give each person only the access they need. Nothing more.
Use many layers of protection. If one fails, the others still protect you.
When something goes wrong, the system should protect users instead of exposing them.
Attackers use input to break into systems. Always check what users send.
Do not rely on secrecy alone. Your design should be safe even if everyone knows how it works.
Yes. Using many together makes your design stronger.
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.
You will learn how to think about threats and build safe systems from the start.
| 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
| 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
Matching helps you connect principles to meanings quickly.
A school is building a new portal. Any student can see any result. Anyone can change anything.
Questions:
Your family's Wi-Fi router has no password. Anyone can use it.
Questions:
An online shop takes the customer's name and address without checking. It also exposes customer data on errors.
Questions:
These scenarios help you apply what you have learned to real situations.
Group size: 3โ5 students
Time: 40 minutes
Materials: Paper, pencil
Instructions:
Goal: To practise applying all six principles together.
Time: 20 minutes
Materials: Notebook, pencil
Instructions:
Goal: To connect principles to your own life.
Time: 1โ2 hours
Materials: Paper, pencil, colour pencils
Instructions:
Goal: To practise using all six principles in one design.
Time: 1 week
Materials: Notebook, pencil
Instructions:
Goal: To practise spotting missing principles in real life.
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.
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