Core Security
Principles
Master the three foundational pillars of cybersecurity: Least Privilege, Defense in Depth, and Secure by Default.
Why Do Security Principles Matter?
Every system you use: your phone, your school network, your banking app: was built by humans. Humans make mistakes. Security principles are the design rules that limit the damage when mistakes happen.
The Three Pillars of Secure Design
From Theory to the Real World
In 2017, the Equifax breach exposed 147 million records. A single unpatched server with overly broad access led to the breach. If least privilege had limited that server's reach, and defense in depth had added internal firewalls, the damage could have been contained.
Principle 1: Least Privilege
Principle 2: Defense in Depth
Principle 3: Secure by Default
Key Distinctions Between the Principles
| Least Privilege | Defense in Depth | Secure by Default | |
|---|---|---|---|
| Focus | Access scope | Layer count | Initial state |
| Answers | "Who can do what?" | "How many barriers?" | "What happens day one?" |
| Failure mode | Over-permission | Single point of failure | Unsafe configuration |
| Analogy | Key to one room | Castle with moat + walls | Doors locked at install |
How to Apply These Principles
Example 1: School Network
A school gives every student full admin access to the network. A student accidentally installs malware that spreads to the grading system.
Example 2: Online Store
An e-commerce site protects its database with only a firewall. An attacker finds a firewall bypass. With no other defenses, they extract all customer credit cards.
Example 3: New Wi-Fi Router
A family buys a new router. Out of the box, the admin panel is accessible with the password "password", WPS is enabled, and the firewall is off. No one changes the defaults.
How the Principles Reinforce Each Other
Least Privilege: In Practice
Common Mistakes
Summary Comparison
| Least Privilege | Defense in Depth | Secure by Default | |
|---|---|---|---|
| Core Question | What is the minimum access? | How many barriers exist? | Is the initial state safe? |
| Key Technique | RBAC, time-limited access | Firewalls, IDS, encryption | Hardened configs, deny-all |
| Prevents | Lateral movement | Single point of failure | Misconfig exploits |
| Who Benefits | Every user and process | The entire organization | Non-technical end users |
Question 1 of 5
A company gives every employee full database access instead of limiting it by role. Which security principle is being violated?
Question 2 of 5
An organization protects its server room with a keycard lock, security cameras, a network firewall, and encrypted storage. Which principle does this best demonstrate?
Question 3 of 5
A new router ships with a unique random password, the firewall enabled, and remote management disabled. This is an example of:
Question 4 of 5
A developer is given temporary root access for 2 hours to deploy a patch, then the access automatically expires. This technique supports which principle?
Question 5 of 5
Which of the following is NOT a valid example of Defense in Depth?