DML School of Technology
Menu

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

  1. 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.
  2. Individual accounts for each administrator, with MFA.
  3. Roles with least privilege: a developer who deploys the website does not need permission to delete backups.
  4. Short-lived credentials instead of long-lived access keys where possible.
  5. No keys in code: use the provider's secret manager or managed identities.
  6. Review permissions and remove unused ones.

The most common misconfigurations

MisconfigurationResult
Storage bucket set to publicFiles (sometimes millions of records) readable by anyone
Database open to the internetScanned and attacked within hours
Security group allowing 0.0.0.0/0 on SSH or RDPConstant password-guessing attempts
Logging switched offNo evidence of what happened
Default encryption offData at rest unprotected
Old snapshots and test servers forgottenUnpatched, 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.