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 dataThe exact boundary changes according to the service model.
| Security area | IaaS virtual machine | Managed database | SaaS application |
|---|---|---|---|
| Physical facility | Provider | Provider | Provider |
| Hardware and hypervisor | Provider | Provider | Provider |
| Guest operating system | Customer | Provider | Provider |
| Database engine patching | Customer | Usually provider | Provider |
| User accounts and access | Customer | Customer | Customer |
| Data classification | Customer | Customer | Customer |
| Application configuration | Customer | Shared | Customer configuration |
| Physical disk disposal | Provider | Provider | Provider |
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 element | AWS example | Azure example |
|---|---|---|
| Human identity system | IAM Identity Center or federated IAM identity | Microsoft Entra ID |
| Workload identity | IAM role | Managed identity or service principal |
| Permission definition | IAM policy | Azure role definition |
| Permission attachment | User, group, role or resource policy | Role assignment at a scope |
| Temporary credentials | AWS STS | Microsoft 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-identityTypical 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.csvThis 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/nrsecurestoreConfirm 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 tableAvoid 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 state | Protects | Common implementation | Does not automatically prevent |
|---|---|---|---|
| At rest | Data on disks, snapshots and backups | AES-based service encryption with managed keys | An authorised identity downloading data |
| In transit | Data moving across networks | TLS and HTTPS | Misuse after the endpoint decrypts data |
| In use | Data being processed | Specialised confidential-computing controls | Every 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-dataConfigure 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 tableAzure 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/nullLook 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.comDo 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 TLSIf 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
- Confirm the active principal with
aws sts get-caller-identityoraz account show. - Check whether the action and resource match exactly.
- Look for explicit denies, permissions boundaries or organisation-level policies.
- Verify whether the request needs a second permission, such as
kms:Decrypt. - Check whether a resource policy, storage firewall or private endpoint limits access.
- 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.comUse 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
