Open to everyone Reading, lesson 6 of 100, 2 min read
Defence in depth and least privilege
No single wall
Defence in depth means using several layers of protection, so that when one fails (and one always does eventually) the next one still stands. Think of a bank: a guard at the gate, a locked door, cameras, a vault, and staff who must approve large withdrawals together.
For a school's student records, the layers might be:
- Staff trained to recognise phishing.
- Two-step sign-in on every account.
- Laptops updated automatically and encrypted.
- A firewall that only lets in what is needed.
- Access limited to the staff who need each record.
- Logs that show who looked at what.
- Backups kept offline, tested every term.
An attacker must get past all of them, and every layer gives defenders another chance to notice.
Least privilege
Least privilege means each person, program and device gets only the access it needs for its job, and no more. A class teacher can see their own classes' results, not the whole school's payroll. A web server's database account can read and write the website's tables, not drop every database on the server.
When an account with least privilege is stolen, the damage is limited to what that account could do.
Related principles
- Need to know: even someone with the right level of access only sees the information their task requires.
- Separation of duties: important actions need two people. The person who adds a new supplier should not be the one who approves paying it.
- Secure by default: new systems start locked down, and features are switched on only when needed.
- Zero trust: do not trust a request just because it comes from inside the office network; check who and what is asking every time.
Tip
When you design anything, ask "if this layer failed tomorrow, what would stop the attacker next?" If the answer is "nothing", add a layer.