Open to everyone Reading, lesson 62 of 100, 2 min read
Cloud identity and misconfiguration
Identity is the new perimeter
In the cloud there is no office wall. Anyone in the world with the right credentials can reach your console. Identity and access management (IAM) becomes the main control.
Cloud IAM essentials
- Protect the root account: the account that created the cloud subscription has unlimited power. Give it a long unique password and a hardware security key, then lock it away and do not use it for daily work.
- Individual accounts for each administrator, with MFA.
- Roles with least privilege: a developer who deploys the website does not need permission to delete backups.
- Short-lived credentials instead of long-lived access keys where possible.
- No keys in code: use the provider's secret manager or managed identities.
- Review permissions and remove unused ones.
The most common misconfigurations
| Misconfiguration | Result |
|---|---|
| Storage bucket set to public | Files (sometimes millions of records) readable by anyone |
| Database open to the internet | Scanned and attacked within hours |
Security group allowing 0.0.0.0/0 on SSH or RDP | Constant password-guessing attempts |
| Logging switched off | No evidence of what happened |
| Default encryption off | Data at rest unprotected |
| Old snapshots and test servers forgotten | Unpatched, unmonitored copies of real data |
Finding mistakes before attackers do
- Use the provider's built-in security recommendations dashboard.
- Turn on alerts for public storage and risky changes.
- Describe infrastructure as code (configuration files kept in version control), so changes are reviewed like any other code.
- Tag every resource with an owner, so nothing becomes an orphan.
Warning
Attackers run automated searches for public cloud storage and leaked keys every day. A mistake can be found within minutes, not months.