Cloud Security Basics: IAM, Encryption and Responsibility

Cloud 9 min readPublished 15 November 2026

Quick answer

Learn cloud security basics through shared responsibility, IAM and encryption. Includes practical AWS and Azure commands, examples and troubleshooting.

What are cloud security basics?

Cloud security basics are the controls used to protect cloud identities, data, workloads and configurations. Three essential areas are understanding shared responsibility, applying least-privilege identity and access management (IAM), and encrypting data both at rest and in transit.

Cloud platforms provide secure infrastructure and managed security capabilities, but customers must configure and operate those capabilities correctly. A storage service can support encryption and private access while still becoming exposed through an unsafe policy, leaked credential or incorrect network rule.

This article uses AWS and Microsoft Azure examples. The service names differ, but the core security decisions are similar across cloud platforms.

Students preparing for security operations can develop these skills further through practical labs in the Cybersecurity & SOC course. Cloud architecture learners can also practise identity, storage and key-management controls in the AWS Solutions Architect course.

How does the cloud shared responsibility model work?

The shared responsibility model divides security duties between the cloud provider and the customer. The provider generally secures the physical facilities, hardware and managed service foundation, while the customer secures identities, data, application settings and the cloud resources they configure.

A useful diagram in words is:

Cloud provider responsibility
        Physical data centre
        Hardware and core networking
        Hypervisor or managed service platform
---------------- Responsibility boundary ----------------
Customer responsibility
        Cloud configuration
        Identities and permissions
        Operating systems where customer-managed
        Applications and data

The exact boundary changes according to the service model.

Security areaIaaS virtual machineManaged databaseSaaS application
Physical facilityProviderProviderProvider
Hardware and hypervisorProviderProviderProvider
Guest operating systemCustomerProviderProvider
Database engine patchingCustomerUsually providerProvider
User accounts and accessCustomerCustomerCustomer
Data classificationCustomerCustomerCustomer
Application configurationCustomerSharedCustomer configuration
Physical disk disposalProviderProviderProvider

For example, AWS patches the hypervisor that runs Amazon EC2. The customer is normally responsible for patching the operating system inside the EC2 instance. With Amazon RDS, AWS manages more of the database platform, but the customer still controls database users, network access, encryption options and stored data.

Azure follows the same general pattern. Microsoft secures Azure facilities and physical infrastructure, while the customer manages resources such as Microsoft Entra identities, role assignments, network security groups and application secrets. Learners working with Azure administration can practise these controls in the Microsoft Azure AZ-104 course.

Common misunderstandings

Buying a cloud service does not transfer every security task to the provider. The following customer-side mistakes remain possible:

  • Giving a user or workload excessive permissions
  • Allowing storage access from the public internet
  • Leaving unused access keys active
  • Failing to patch a customer-managed virtual machine
  • Disabling audit logs or retaining them for too short a period
  • Storing passwords or API keys in source code
  • Creating encryption keys without planning rotation and recovery

Before deploying a service, check its official responsibility model. Fully managed services reduce operational work, but they do not remove the customer's responsibility for data, identities and safe configuration.

What is IAM and why is least privilege important?

IAM controls who or what can access cloud resources and which actions they can perform. Least privilege means granting only the permissions needed for a defined task, at the required scope and for the required period.

The four basic IAM questions are:

Who is making the request?
        ↓
How was the identity authenticated?
        ↓
Which action is requested on which resource?
        ↓
Does an applicable policy allow or deny it?

Human users should normally use federated sign-in and multi-factor authentication. Applications should use workload identities, instance roles or managed identities instead of long-lived access keys stored in files.

IAM elementAWS exampleAzure example
Human identity systemIAM Identity Center or federated IAM identityMicrosoft Entra ID
Workload identityIAM roleManaged identity or service principal
Permission definitionIAM policyAzure role definition
Permission attachmentUser, group, role or resource policyRole assignment at a scope
Temporary credentialsAWS STSMicrosoft Entra access token

AWS least-privilege policy example

The following identity policy allows an application to read objects only from one S3 prefix. It does not grant bucket administration or permission to upload and delete objects.

{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Effect": "Allow",
      "Action": "s3:GetObject",
      "Resource": "arn:aws:s3:::nr-training-data/reports/*"
    }
  ]
}

Do not replace the resource with * unless every resource is genuinely required. Also remember that an explicit deny in a service control policy, resource policy, permissions boundary or session policy overrides an allow.

Check the current AWS identity before troubleshooting permissions:

aws sts get-caller-identity

Typical output identifies the account and principal:

{
  "UserId": "AROAXAMPLE:lab-session",
  "Account": "123456789012",
  "Arn": "arn:aws:sts::123456789012:assumed-role/ReportReader/lab-session"
}

The Arn shows that this session is using the ReportReader role. Troubleshooting the policy of a different IAM user would not explain this request.

You can test an identity's effective policy decision with the IAM policy simulator API:

aws iam simulate-principal-policy \
  --policy-source-arn arn:aws:iam::123456789012:role/ReportReader \
  --action-names s3:GetObject \
  --resource-arns arn:aws:s3:::nr-training-data/reports/june.csv

This is useful for identity policies, but it does not replace checking every control involved in a live request, including resource policies and AWS Organizations restrictions.

Azure role assignment example

Azure role-based access control uses a role definition, a security principal and a scope. This command assigns the built-in Storage Blob Data Reader role to an identity at one storage account:

az role assignment create \
  --assignee-object-id 11111111-2222-3333-4444-555555555555 \
  --assignee-principal-type ServicePrincipal \
  --role "Storage Blob Data Reader" \
  --scope /subscriptions/<subscription-id>/resourceGroups/rg-security-lab/providers/Microsoft.Storage/storageAccounts/nrsecurestore

Confirm the signed-in Azure account and inspect assignments at the relevant scope:

az account show --output table

az role assignment list \
  --assignee 11111111-2222-3333-4444-555555555555 \
  --all \
  --output table

Avoid broad roles such as Owner when a data-reader or service-specific role is sufficient. Separate control-plane permissions, such as configuring a storage account, from data-plane permissions, such as reading a blob.

How does cloud encryption protect data?

Encryption converts readable plaintext into ciphertext using an algorithm and a key. Cloud systems normally apply encryption at rest to stored data and encryption in transit to network connections, but each protects against different threats.

Encryption stateProtectsCommon implementationDoes not automatically prevent
At restData on disks, snapshots and backupsAES-based service encryption with managed keysAn authorised identity downloading data
In transitData moving across networksTLS and HTTPSMisuse after the endpoint decrypts data
In useData being processedSpecialised confidential-computing controlsEvery application-level attack

Encryption at rest

Cloud storage services commonly support provider-managed keys and customer-managed keys. Provider-managed keys reduce administration, while customer-managed keys provide more control over key policy, rotation and auditing. Greater control also creates greater responsibility: disabling or deleting the wrong key can make data unavailable.

Check an S3 bucket's default encryption configuration:

aws s3api get-bucket-encryption --bucket nr-training-data

Configure default AWS KMS encryption with a customer-managed KMS key:

aws s3api put-bucket-encryption \
  --bucket nr-training-data \
  --server-side-encryption-configuration '{"Rules":[{"ApplyServerSideEncryptionByDefault":{"SSEAlgorithm":"aws:kms","KMSMasterKeyID":"arn:aws:kms:ap-south-1:123456789012:key/11111111-2222-3333-4444-555555555555"},"BucketKeyEnabled":true}]}'

The caller needs permission to change the bucket configuration. Applications reading KMS-encrypted objects may also need kms:Decrypt, and the KMS key policy must permit the required use.

For an Azure storage account, inspect blob encryption and minimum TLS settings:

az storage account show \
  --name nrsecurestore \
  --resource-group rg-security-lab \
  --query "{blobEncryption:encryption.services.blob.enabled,minTls:minimumTlsVersion,httpsOnly:enableHttpsTrafficOnly}" \
  --output table

Azure Storage encrypts data at rest by default. Security teams should still verify key ownership requirements, HTTPS enforcement, network exposure and who has data-plane access.

Encryption in transit

TLS protects the confidentiality and integrity of network traffic between endpoints. Applications should validate certificates and hostnames rather than simply opening an encrypted connection.

Inspect a public endpoint's certificate and TLS negotiation with OpenSSL:

openssl s_client -connect example.com:443 -servername example.com </dev/null

Look for the certificate subject, issuer, validity period and Verify return code: 0 (ok). A successful TCP connection alone does not prove that certificate validation succeeded.

Test an HTTPS response with curl:

curl -I https://example.com

Do not use curl -k as a permanent fix. It disables certificate verification and can hide an expired certificate, hostname mismatch or untrusted issuer.

How do IAM and encryption work together?

IAM and encryption are separate but connected controls. IAM decides whether a principal may request data or use a key, while encryption protects the data's stored or transmitted form.

Consider this diagram in words:

Application role
   ├── permission to read one S3 object
   └── permission to use one KMS key
              ↓
      S3 checks object access
              ↓
      KMS checks key access
              ↓
      Object is decrypted and returned through TLS

If S3 access is allowed but KMS access is denied, the encrypted object cannot be read. If KMS access is allowed but S3 access is denied, access still fails. This is defence in depth: all required authorisation checks must succeed.

A sound key-management plan should cover:

  • Who can administer keys and who can use them
  • Key rotation requirements
  • Logging of key-management operations
  • Protection against accidental deletion
  • Backup and recovery dependencies
  • Separation between production and non-production keys
  • Procedures for revoking access after an incident

Never place encryption keys, cloud secrets or tokens directly in source code. Use services such as AWS Secrets Manager, AWS Systems Manager Parameter Store, Azure Key Vault or an approved external secrets platform, depending on the workload.

How can common cloud security failures be troubleshot?

Troubleshoot cloud security failures by verifying identity, scope, policy, encryption keys, network access and audit evidence in a fixed order. Avoid adding broad permissions as a quick test because that can hide the original cause and create a new security risk.

Problem 1: Access is denied even though a policy allows it

  1. Confirm the active principal with aws sts get-caller-identity or az account show.
  2. Check whether the action and resource match exactly.
  3. Look for explicit denies, permissions boundaries or organisation-level policies.
  4. Verify whether the request needs a second permission, such as kms:Decrypt.
  5. Check whether a resource policy, storage firewall or private endpoint limits access.
  6. Allow time for a recent role assignment to propagate, then test again.

Problem 2: An application cannot decrypt stored data

First confirm that the application is using the expected workload identity. Then check the key identifier, key state, key policy, IAM or RBAC permission, region and encryption context where applicable.

For AWS KMS, inspect key metadata:

aws kms describe-key --key-id <key-id-or-arn>

A key in a disabled or pending-deletion state cannot be used normally. Do not cancel deletion or change policies until the key's ownership and intended lifecycle have been confirmed.

Problem 3: HTTPS works in a browser but fails in automation

Check the full certificate chain, hostname, system clock and trusted certificate authority store. Browsers and servers may have different trust stores, so a browser result does not prove that a Linux agent or container trusts the same issuer.

date -u
curl -v https://service.example.com

Use verbose output to locate the TLS stage that failed. Fix the certificate chain or trust configuration rather than disabling verification.

Problem 4: A security change cannot be explained

Review the cloud audit trail for the actor, source address, timestamp, action and affected resource. AWS CloudTrail records supported AWS API activity, while Azure Activity Log records subscription-level control-plane events; service-specific data logs may need separate configuration.

Analysts should correlate cloud events instead of reading one entry in isolation. The practical workflow in log analysis basics for SOC analysts explains how to establish a timeline and validate related evidence.

What cloud security checklist should beginners use?

A beginner checklist should cover ownership, identity, data protection, network exposure, logging and recovery. It should be applied before deployment and reviewed whenever the architecture or business use changes.

  • Document customer and provider responsibilities for each service.
  • Require MFA for human administrative access.
  • Prefer federation and temporary credentials over long-lived keys.
  • Use roles or managed identities for applications.
  • Apply least privilege at the narrowest practical scope.
  • Remove inactive identities, keys and role assignments.
  • Classify data before choosing encryption and retention controls.
  • Enforce TLS and validate certificates.
  • Protect and monitor key-management permissions.
  • Restrict public storage and management interfaces.
  • Enable audit logs and protect them from alteration.
  • Test backup restoration, not only backup creation.
  • Create alerts for unusual sign-ins and sensitive configuration changes.
  • Review exceptions and temporary access regularly.

Summary

Cloud security starts with knowing where provider responsibility ends and customer responsibility begins. IAM limits who can perform actions, while encryption protects stored and transmitted data; neither control should be treated as a replacement for the other.

A secure implementation combines least-privilege identities, protected keys, TLS, private resource configuration, audit logging and tested recovery. Practising failure scenarios is important because many cloud incidents result from connected configuration errors rather than one missing feature.

To practise IAM reviews, encryption checks and cloud security troubleshooting in guided labs, enquire about upcoming batch details for the Cybersecurity & SOC course.

Reviewed by Network Rhinos cybersecurity trainers.

Related reading: CEH Course in Chennai: Fees, Syllabus and Careers 2026

Frequently asked questions

What are the three basic areas of cloud security?

Three essential areas are shared responsibility, identity and access management, and encryption. Together, they define who secures each layer, who can access resources and how data is protected.

Is the cloud provider responsible for all security?

No. The provider secures the underlying cloud infrastructure, but the customer remains responsible for areas such as identities, data, access policies and resource configuration. The exact boundary depends on whether the service is IaaS, PaaS or SaaS.

What does least privilege mean in cloud IAM?

Least privilege means granting an identity only the actions and resources required for its task. Permissions should use the narrowest practical scope and should be removed when they are no longer needed.

What is the difference between encryption at rest and in transit?

Encryption at rest protects data stored on disks, snapshots and backups. Encryption in transit protects data moving between endpoints, normally by using TLS and HTTPS.

Does encryption stop authorised users from downloading data?

Not by itself. Cloud services decrypt data for identities that have the required data and key permissions. IAM, resource policies and monitoring are still required to control and detect access.

Why can access fail when an IAM policy contains an allow?

The active identity may be different, the resource may not match, or another control may explicitly deny access. Encrypted data may also require separate key permission, and network or organisation-level restrictions can block the request.

Related articles

Train with Network Rhinos

Hands-on CCNA, CCNP, AWS, Azure, DevOps and cybersecurity training in Chennai & Bangalore, with placement support. Talk to our team or attend a free demo class.