🔑 Security · Security Fundamentals
Least Privilege
Grant only the access needed to perform a job.
Excess permission increases the impact of mistakes or compromise.
A reporting account gets read access, not database administrator rights.
💡 Give the house-sitter a key to the front door, not the keys to the car, the safe, and the neighbor's house too.
💡 Why it matters
When an account is stolen or a script goes wrong, the damage is limited to whatever that account could do. Over-broad rights turn a small slip into a disaster. Least privilege shrinks the blast radius of every mistake and every breach.
🛠️ How to achieve it
⚠️ Signs of trouble
- •Most accounts have administrator rights just in case.
- •A single shared account is used for everything.
- •Old employees or services still have active access.
- •A reporting job can also delete or alter data.
🎯 Quick check
Score: 0/3Three questions to test the idea.
1. What is the core idea of least privilege?
Answer: Grant only the access a job actually needs
Least privilege means the minimum access required for the task, nothing more.
2. Why does least privilege reduce damage from a breach?
Answer: A stolen account can only do what it was narrowly allowed
Limiting rights shrinks the blast radius, so a compromised account cannot reach everything.
3. Which account setup fits least privilege for a reporting job?
Answer: A read-only account
Reporting only needs to read, so a read-only account gives exactly enough and no more.
