Databases hold an organisation's most valuable data, so securing them is critical — and reuses your IAM knowledge.
Access Control Models
The four ways systems decide what you are allowed to do.
Tap or hover a part to learn more.
Discretionary.
The resource owner decides who gets access (e.g. file permissions you set yourself). Flexible but easy to misconfigure.
Check your understanding
1. Which model attaches permissions to roles that users inherit?
2. Which model uses labels and clearances enforced by the system?
The essentials
- Least privilege — grant only the access a user or app needs with GRANT/REVOKE, ideally via roles, not per-user.
- SQL injection is the top database attack — always use parameterised queries, never string-concatenated input.
- Encryption — protect data at rest (storage) and in transit (TLS).
- Auditing — log access to sensitive data for detection and compliance.
Applications should connect with a limited account, not an admin one — a common and dangerous mistake. This ties to Cyber Security Fundamentals.
