01 / 20

Cloud
Misconfigurations

Discover how simple settings mistakes in cloud environments create major security vulnerabilities, and learn to recognize them before attackers do.

Cyber Security

What is the Cloud?

The "cloud" refers to servers, storage, and services hosted by providers like Amazon Web Services (AWS), Microsoft Azure, and Google Cloud. Instead of running your own physical hardware, you rent computing resources over the internet.

Storage
Files, databases, and backups stored on remote servers (e.g., S3 buckets)
Compute
Virtual machines and containers running applications on demand
Identity
IAM systems controlling who can access what resources

What is a Misconfiguration?

A cloud misconfiguration is a security setting that is left at its default, set too permissively, or simply overlooked during setup. It is not a software bug: it is a human error in how the cloud service is configured.

Correct Config Access: Private Encryption: ON Logging: Enabled ✓ Misconfigured Access: Public Encryption: OFF Logging: Disabled ✕

Why Misconfigurations Matter

Cloud misconfigurations are the leading cause of cloud data breaches. According to industry reports, over 65% of cloud security incidents stem from misconfigurations: not from sophisticated hacking, but from simple settings left wrong.

The Shared Responsibility Model

Cloud providers secure the infrastructure (physical servers, networking, hypervisors). You, the customer, secure everything you configure: access controls, data encryption, network rules, and application settings.

Cloud Provider Responsibility Physical Security Networking Hypervisor Hardware Customer Responsibility (YOU) IAM Policies Data Encryption Firewall Rules Bucket Policies App Settings Logging RESPONSIBILITY BOUNDARY

The Principle of Least Privilege

The Principle of Least Privilege states that every user, service, or application should be granted only the minimum permissions necessary to perform its intended function: nothing more.

Overly Broad IAM Admin: *.* Read ALL buckets Delete ANY resource Modify IAM roles Launch instances Needed ✕ Excessive access Least Privilege Read 1 bucket Write logs only ✓ Minimal access

Public vs Private Storage

One of the most common cloud misconfigurations is leaving storage buckets publicly accessible. Cloud storage (like AWS S3) defaults can vary: some services default to private, but a single policy change can expose everything to the internet.

Public Bucket
Anyone on the internet can list and download files. No authentication required. Data is exposed.
Private Bucket
Only authenticated users with explicit permissions can access the data. This is the secure default.

Top 5 Cloud Misconfigurations

1
Public Storage Buckets: S3 or Blob storage left open to the internet without authentication
2
Overly Broad IAM Policies: Giving users or services full admin access instead of specific, minimal permissions
3
Unrestricted Security Groups: Firewall rules that allow traffic from 0.0.0.0/0 (the entire internet) on sensitive ports
4
Disabled Logging and Monitoring: CloudTrail, access logs, or flow logs turned off, leaving no audit trail
5
Unencrypted Data: Sensitive data stored at rest or transmitted without encryption

IAM: Identity and Access Management

IAM policies define who can do what to which resources. Each policy is a JSON document with three core elements:

Principal
WHO is allowed or denied access (a user, role, or service)
Action
WHAT they can do (e.g., s3:GetObject, ec2:TerminateInstances)
Resource
WHICH specific resource (e.g., a single bucket, a specific database)

Cloud Security Checklist

1
Audit storage access: Verify all buckets/blobs are set to private. Explicitly enable public access only when intentional.
2
Apply least privilege: Review all IAM policies. Replace wildcard (*) permissions with specific actions and resources.
3
Restrict network access: Lock down security groups. Allow only necessary IP ranges and ports: never 0.0.0.0/0 on SSH (port 22).
4
Enable logging: Turn on CloudTrail, access logs, and flow logs for complete audit trails.
5
Encrypt everything: Enable encryption at rest and in transit for all sensitive data stores.
6
Use automated scanning: Deploy tools like AWS Config, Azure Policy, or open-source scanners (e.g., ScoutSuite) to detect misconfigurations.

Example: Public S3 Bucket

Internet Attacker No Auth S3 Bucket ACL: Public customer-data.csv api-keys.json DATA LEAKED ✕ Fix: Set ACL to Private + Block Public Access

Example: Overly Broad IAM

Dangerous Policy Effect: "Allow" Action: "*" Resource: "*" Grants FULL admin access to ALL resources ✕ Secure Policy Effect: "Allow" Action: "s3:GetObject" Resource: "arn:...my-bucket/*" Grants read-only access to one specific bucket ✓

Example: Open Security Group

Internet 0.0.0.0/0 Security Group Port 22: 0.0.0.0/0 Port 3389: 0.0.0.0/0 Port 3306: 0.0.0.0/0 EC2 Server Database inside Secure Configuration Port 22: 10.0.1.0/24 (VPN only) Port 3306: Internal SG only

Detecting Misconfigurations

Organizations use automated scanning tools and cloud-native services to continuously monitor for misconfigurations. Manual audits are too slow and error-prone for dynamic cloud environments.

AWS Config
Evaluates resource configurations against rules and alerts on non-compliance
Azure Policy
Enforces organizational standards and assesses compliance at scale
ScoutSuite
Open-source multi-cloud auditing tool that scans for security risks

Common Mistakes

✕ "It's Just a Test"
Leaving test resources with public access or admin permissions because "it's only temporary." Temporary becomes permanent.
✕ Copy-Paste Policies
Copying a broad IAM policy from Stack Overflow or documentation examples without tailoring it to your specific use case.
✕ Ignoring Defaults
Assuming default settings are secure. Many cloud services default to less restrictive configurations for ease of use.
✕ No Monitoring
Disabling logging to save costs. Without audit trails, breaches go undetected for weeks or months.

Misconfiguration Summary

Misconfiguration Risk Fix
Public Storage Bucket Data exposure Block public access
Wildcard IAM Policy Full account takeover Least privilege permissions
Open Security Group Unauthorized access Restrict IP ranges/ports
Disabled Logging No breach detection Enable CloudTrail/logs
Unencrypted Data Data theft in transit/rest Enable encryption

Question 1 of 5

A company stores customer financial records in an AWS S3 bucket. An auditor discovers the bucket's Access Control List is set to "public-read." What is the primary risk?

Question 2 of 5

An IAM policy has Action: "*" and Resource: "*" with Effect: "Allow." This configuration violates which security principle?

Question 3 of 5

A security group rule allows inbound SSH (port 22) from the source 0.0.0.0/0. What does this mean?

Question 4 of 5

Under the Shared Responsibility Model, which of the following is the customer's responsibility, not the cloud provider's?

Question 5 of 5

A developer says: "I'll set up broad permissions now for testing and tighten them later before production." Why is this approach dangerous?