Find a course

Module 4: Security and CostLesson 9 of 1212 min

Shared Responsibility and Cloud Security

Learn who secures what in the cloud, apply least privilege with IAM and MFA, encrypt data, and avoid the misconfigurations behind most breaches.

Step 1 of 13Learn

The open bucket

A marketing agency stored campaign files, including spreadsheets of customer names and email addresses, in a cloud storage bucket. To share a folder with a client quickly, someone set the bucket to public. Months later a security researcher scanning for open buckets found it and reported it. Nothing had been "hacked": the cloud provider's systems worked perfectly. The data was exposed because of a single setting the customer chose.

Stories like this are common. Industry reports consistently find that most cloud security incidents come from customer-side misconfiguration and weak credentials, not from failures of the provider's infrastructure.

That's the core of the shared responsibility model:

  • The provider is responsible for security of the cloud: physical data centers, hardware, the global network, the hypervisor and the managed services' underlying software.
  • The customer is responsible for security in the cloud: their data, user accounts and permissions, network and firewall settings, operating systems on their VMs, application code and encryption choices.

Where the line falls depends on the service model. With IaaS, you patch and harden the operating system. With PaaS, the provider does that, but you secure your code and configuration. With SaaS, you still manage users, access and data. In every model, your data and your identities are your responsibility.

Step 2 of 13Diagram

Anatomy of an open-bucket leak

Anatomy of an open-bucket leakProcess diagram: Bucket made public → Scanners find it → Data copied → Breach reported.Bucket madepublicScannersfind itData copiedBreachreported

Tap a shape with to see more.

Bucket made public

A quick way to share one folder with a client.

Scanners find it

Automated tools constantly search for public buckets.

Data copied

Customer names and emails downloaded.

Breach reported

The provider's infrastructure worked perfectly; the configuration was the customer's.

Step 3 of 13Practice · Sort into groups

Under the shared responsibility model for IaaS virtual machines, sort each task.

Tap an item, then tap its group (or drag it there).

Step 4 of 13Practice · Diagram

Shared responsibility for an IaaS VM

Tap the lowest layer the customer is responsible for on IaaS.

Tap the shape that answers the question, then press Check.

Shared responsibility for an IaaS VMLayer diagram: Data and encryption, Identities and access, Network rules (security groups), Guest OS and patches, Hypervisor, Servers, disks, network, Data center buildings.Data and encryptionIdentities and accessNetwork rules (security groups)Guest OS and patchesHypervisorServers, disks, networkData center buildings
Data and encryption

Customer

Identities and access

Customer

Network rules (security groups)

Customer

Guest OS and patches

Customer

Hypervisor

Provider

Servers, disks, network

Provider

Data center buildings

Provider

Step 5 of 13Learn

Identity is the new perimeter

In a traditional office, the network firewall was the main defense. In the cloud, anyone with valid credentials can manage your resources from anywhere in the world, so identity and access management (IAM) becomes the most important control.

Core practices:

  • Protect the root account. The account owner or root user can do everything, including closing the account. Turn on multi-factor authentication (MFA), store its credentials safely and don't use it for daily work.
  • Give every person their own identity, ideally through single sign-on with your company directory, so you can remove access when someone leaves.
  • Least privilege. Grant only the permissions a person or program needs. A developer who deploys to one project doesn't need rights to delete production databases or read billing. Start narrow and add permissions when needed, rather than granting broad admin access "for now".
  • Use roles for applications. Programs running in the cloud should use roles with temporary credentials issued automatically, not long-lived access keys pasted into code.
  • Never commit secrets to code repositories. Automated bots scan public repositories and can abuse leaked cloud keys within minutes, often to run expensive cryptocurrency mining. Store secrets in a secrets manager.
  • MFA for everyone with console access, and phishing-resistant methods such as security keys or passkeys for administrators.
  • Review access regularly and remove unused accounts, keys and permissions.

Step 6 of 13Practice · Spot the mistake

A startup wrote down its cloud access practices. Tap the three practices that are risky.

Step 7 of 13Learn

Encryption, logging and posture

Encryption protects data if storage media or network traffic is exposed.

  • In transit: use TLS (HTTPS) for all connections, including between your own services and to databases.
  • At rest: most cloud storage and databases encrypt data at rest, often by default. Keys are managed by a key management service (KMS); you can use provider-managed keys or customer-managed keys for more control, such as the ability to revoke access by disabling a key.

Encryption doesn't fix access problems, though. If a bucket is public, the service decrypts and serves the data to anyone who asks, because they're accessing it through the legitimate path.

Logging and monitoring let you see what happened:

  • Audit logs record every API call: who did what, when and from where, for example AWS CloudTrail, Azure Activity Log and Google Cloud Audit Logs. Turn them on in every account and store them where attackers can't delete them.
  • Threat detection services flag unusual behavior, such as logins from new countries, API calls that disable logging, or instances contacting known malicious addresses.

Cloud security posture management (CSPM) tools continuously check configurations against best practices and flag issues like public buckets, open SSH ports, unencrypted volumes or users without MFA. Providers offer built-in versions, such as AWS Security Hub, Microsoft Defender for Cloud and Google Security Command Center. Guardrails, such as account-wide settings that block public access to storage, prevent the mistake in the first place, which beats detecting it later.

Step 8 of 13Practice · Match the pairs

Match each control to the risk it addresses most directly.

Tap an answer, then tap the place where it belongs (or drag it there).

  1. MFA on all accounts
  2. TLS for all connections
  3. Audit logging of API calls
  4. Account-wide "block public access" for storage
  5. Least-privilege IAM roles

Step 9 of 13Flashcards

Core cloud security controls

Tap a card to flip it.

Step 10 of 13Note

Step 11 of 13Practice · True or false

If data in a cloud storage bucket is encrypted at rest, it stays protected even if the bucket is accidentally made public.

Step 12 of 13Practice · Fill in the blanks

Fill in the blanks

The provider is responsible for security the cloud, while the customer is responsible for security the cloud.

Step 13 of 13Practice · What would you do?

What would you do?

An engineer notices a monthly cloud bill jumped from $800 to $14,000. Dozens of large GPU instances are running in regions the company never uses. What should happen first?