Back to Blog
Blog11 min read

Demystifying Cloud Security: Best Practices for Safeguarding Your Data in the Cloud

A

Alexander Sverdlov

Security Analyst

7/20/2026
Demystifying Cloud Security: Best Practices for Safeguarding Your Data in the Cloud

The cloud did not make security someone else's problem. It moved the line of responsibility, and most breaches I investigate in cloud environments happen on the customer's side of that line - not because AWS, Azure, or Google Cloud failed, but because someone left a storage bucket public, gave an application far more permissions than it needed, or never turned on multi-factor authentication for the account that controls everything. The platforms are, on the whole, extraordinarily secure. The configurations customers build on top of them frequently are not.

That gap is the entire subject of cloud security. Over more than 200 assessments I have watched the same handful of mistakes repeat across startups and large enterprises alike, and almost all of them come down to misunderstanding who is responsible for what, then getting the basics of identity and configuration wrong. This guide explains the shared responsibility model in plain terms, walks through where cloud data protection actually breaks, and lays out the practices that prevent it - in the order that gives you the most protection for the least effort.

The Shared Responsibility Model, Without the Jargon

Every major cloud provider draws the same basic line. They secure the cloud; you secure what you put in it. Getting this boundary right is the foundation of everything else, because the parts you own are precisely the parts attackers target.

What this guide covers: The Shared Responsibility Model, Without the Jargon, Where Cloud Data Protection Actually Breaks, Cloud Securi

What the provider handles: the physical data centers, the underlying hardware, the network backbone, the hypervisor, and the availability of the core services. You do not need to worry about someone walking into a data center or about the security of the virtualization layer. That is genuinely off your plate.

What you handle: your data, who can access it, how your accounts and identities are configured, your network and firewall rules, your application code, your operating systems and patching on any virtual machines, and your encryption keys. In practice, this is where breaches happen.

The critical nuance is that the balance shifts with the service model. With infrastructure as a service you manage the operating system and everything above it. With platform as a service the provider takes the OS and runtime, leaving you the application and data. With software as a service the provider runs almost everything, but you still own your data, your user accounts, and your access configuration - which is exactly why SaaS misconfigurations, like an over-shared file or a departed employee who still has access, remain a leading cause of data exposure. No cloud model ever takes responsibility for your data and your identities off your hands.

Where Cloud Data Protection Actually Breaks

Forget the exotic attacks for a moment. The incidents I see are mostly mundane, which is good news, because mundane problems have known fixes.

The Shared Responsibility Model, Without the Jargon - key points
  • Misconfigured storage. Public buckets and containers that were meant to be private are behind a large share of the biggest cloud data leaks on record. A single wrong setting exposes millions of records.
  • Weak identity and access management. No multi-factor authentication on privileged accounts, over-permissioned roles, long-lived access keys, and service accounts with far more power than they need. Identity is the new perimeter, and it is usually the weakest link.
  • Exposed secrets. API keys, database passwords, and access tokens hardcoded into source code, committed to repositories, or left in configuration files. Attackers scan public code constantly looking for exactly these.
  • No visibility. Teams cannot answer basic questions - what data do we hold, where, who can reach it, and what changed last night. You cannot protect what you cannot see, and cloud environments change by the hour.
  • Unpatched and internet-facing workloads. Virtual machines and containers exposed to the internet with known vulnerabilities, because in the cloud it is trivially easy to stand something up and forget it exists.

Cloud Security Best Practices That Actually Move the Needle

These are ordered by return on effort. If you do nothing else, do the first three.

1. Lock down identity first

Identity is where most cloud breaches begin and where most of them can be stopped. Enforce multi-factor authentication on every account, without exception, and especially on the root or global-admin account that can do anything. Apply least privilege rigorously: every user, role, and service account should have only the permissions it actually needs, and nothing more. Replace long-lived access keys with short-lived, automatically rotated credentials or role-based access. Remove access the moment someone leaves or changes roles. This one area, done well, prevents more incidents than any tool you can buy.

2. Fix your storage and data configuration

Default every storage container to private and block public access at the account level so an individual mistake cannot override it. Regularly audit what is actually exposed, because settings drift as teams move fast. Classify your data so you know where the sensitive material lives - you cannot apply stronger controls to your crown jewels if you do not know where they are. Turn on the provider's built-in tools that flag publicly accessible or unencrypted data; they are usually cheap or free and catch a surprising amount.

3. Encrypt everything, and control the keys

Encrypt data at rest and in transit. On modern cloud platforms this is largely a matter of turning it on, and there is rarely a good reason not to. Use TLS for everything in transit and platform encryption for data at rest. For sensitive workloads, manage your own encryption keys through the provider's key management service so you control access to the keys independently of the data, and rotate them on a schedule. Encryption will not save you from a misconfigured permission, but it is a genuine backstop when other controls fail.

4. Get visibility and turn on logging

You cannot defend what you cannot see. Enable the provider's audit logging - CloudTrail, Azure Activity Log, Google Cloud Audit Logs - across all accounts and regions, and make sure the logs go somewhere they cannot be quietly deleted by an attacker. Use cloud security posture management tooling, native or third-party, to continuously scan for misconfigurations, public exposure, and drift from your intended baseline. The goal is to find the open bucket before an attacker does.

5. Manage secrets properly

Never put credentials in source code. Use a dedicated secrets manager for API keys, database passwords, and tokens, and pull them at runtime. Scan your code repositories for accidentally committed secrets, and rotate anything that has ever been exposed. This is a small amount of engineering discipline that closes one of the most reliably exploited holes.

6. Patch, segment, and harden workloads

For any virtual machines or containers you run, patch them on a schedule and do not expose management interfaces to the internet. Segment your cloud network so a compromise in one area cannot freely reach others, and apply the principle of least privilege to network flows just as you do to identities. Treat internet-facing workloads as the highest priority for patching and hardening.

7. Back up, and test recovery

The cloud is resilient, but it will not protect you from ransomware that encrypts your data, an accidental deletion, or a malicious insider. Maintain backups that are isolated from your primary environment - ideally immutable and in a separate account - and actually test that you can restore from them. An untested backup is a hope, not a plan.

Responsibility by Cloud Service Model

Layer IaaS PaaS SaaS
Data and accessYouYouYou
Identity configurationYouYouYou
ApplicationYouYouProvider
Operating systemYouProviderProvider
Network and hardwareProviderProviderProvider
Physical data centerProviderProviderProvider

The pattern is consistent across every model: your data and your identities are always yours to protect. That is where your attention belongs.

Where Cloud Data Protection Actually Breaks - key points

Compliance in the Cloud

If you handle regulated data, the cloud does not exempt you from your obligations - it just changes how you meet them. The major providers offer services that can be configured to support GDPR, HIPAA, PCI DSS, and similar requirements, but the responsibility for configuring them correctly and proving it remains yours. Data residency matters: know which regions your data lives in and whether that satisfies your regulatory and contractual commitments. If you are pursuing SOC 2 or working toward ISO 27001, your cloud configuration will be a central part of the audit, and getting the identity and logging foundations right early makes that process dramatically smoother. For payment data, our PCI compliance work almost always starts with the cloud environment.

Cloud Security Best Practices That Actually Move the Needle - key points

Validate, Do Not Assume

The most dangerous phrase in cloud security is "it should be configured correctly." Assumptions about permissions, exposure, and encryption are wrong often enough that they need to be tested rather than trusted. A focused cloud security review maps your actual configuration against your intentions and surfaces the public buckets, over-permissioned roles, and exposed workloads before someone else finds them. A penetration test then shows whether an attacker who gets an initial foothold can actually reach your sensitive data. Together they replace hope with evidence.

Where to Start This Week

If your cloud environment has grown faster than your security around it - which is the normal case - start with identity. Turn on MFA everywhere, audit your privileged accounts, and remove permissions nobody needs. Then check that no storage is public and that audit logging is on. Those steps alone close the majority of the exposure I find in real cloud environments, and none of them require buying anything.

Responsibility by Cloud Service Model - key points

If you want a clear, prioritized picture of where your cloud data is actually exposed and what to fix first, that is exactly what a cloud security assessment delivers. Get in touch and we can walk through your environment together.

Frequently Asked Questions

Is the cloud more secure than on-premises infrastructure?

The cloud providers' underlying infrastructure is generally more secure than what most organizations can build and maintain themselves, with better physical security, redundancy, and baseline protections. But security in the cloud depends almost entirely on how you configure it. A poorly configured cloud environment is less secure than a well-run on-premises one. The platform gives you strong tools; whether you are secure depends on whether you use them correctly.

Compliance in the Cloud - key points

Who is responsible if my data is breached in the cloud?

Under the shared responsibility model, you are responsible for your data, your access configuration, and your identities in every service model. If a breach results from a misconfiguration, an over-permissioned account, or missing multi-factor authentication - which is the case in the large majority of cloud breaches - that is on the customer side of the line, not the provider's. The provider secures the infrastructure; you secure what you put on it.

What is the single most important cloud security control?

Identity and access management, without close competition. Enforcing multi-factor authentication and least privilege across all accounts prevents more real-world breaches than any other single measure, because most cloud attacks begin with a compromised or over-permissioned identity. If you do only one thing, secure your identities first.

Do I still need backups if my data is in the cloud?

Yes. The cloud protects against hardware failure and data-center outages, but not against ransomware, accidental deletion, malicious insiders, or a compromised account deleting your data. Keep backups isolated from your primary environment, ideally immutable and in a separate account, and test that you can actually restore from them. Cloud durability is not the same as a backup.

How do we handle compliance like HIPAA or GDPR in the cloud?

The major providers offer services and contractual terms that support these regulations, but configuring them correctly and demonstrating compliance is your responsibility. Pay particular attention to data residency, encryption, access controls, and audit logging, and get the identity and logging foundations right early. If you are pursuing a formal certification like SOC 2 or ISO 27001, your cloud configuration will be central to the audit.

Alexander Sverdlov

Alexander Sverdlov

Founder of Atlant Security. Author of 2 information security books, cybersecurity speaker at the largest cybersecurity conferences in Asia and a United Nations conference panelist. Former Microsoft security consulting team member, external cybersecurity consultant at the Emirates Nuclear Energy Corporation.

Cloud Data Protection: A Practical Guide