Cloud & app security

Cloud Security Best Practices: 25 Controls That Actually Work

Cloud breaches are usually identity and configuration failures, not broken encryption. Here are 25 practices, in priority order, that stop the attacks that actually happen.

Cysoro Security TeamPublished · 6 min read
MFA • Least privilegeTemporary credentials onlyEncrypted at rest and in transit CLOUD & APP SECURITY Cloud security Secure identity. Encrypt data. Log everything.
Quick answer

Cloud security best practices start with identity: enforce phishing-resistant MFA, use federation and temporary credentials, and apply least privilege. Then protect data with encryption and immutable backups, baseline configurations to CIS Benchmarks, segment networks, and log and monitor everything. Map every service to the shared responsibility model, because the provider secures the infrastructure while you secure your data, identities and configurations.

Key takeaways

  • Most cloud breaches come from stolen credentials and misconfiguration, not from breaking encryption.
  • Phishing-resistant MFA, temporary credentials and least privilege are the highest-value cloud controls.
  • Immutable, tested backups are the last line when prevention fails — test the restore, not just the backup.

Cloud breaches rarely start with a broken firewall. They start with a stolen token, a key left in code, or a storage bucket set to public — and then the attacker walks through the front door.

What is cloud security?

Cloud security is the set of controls that protect data, identities and workloads in cloud services, from the configuration of each service to the credentials that access it.

It covers three layers: the provider's infrastructure, the services you configure, and the data and identities you put in them. You cannot outsource the second and third layers by moving to the cloud.

The stakes are high. IBM found the global average cost of a data breach was $4.44 million in 2025, and $10.22 million in the US. Many of those breaches involved cloud data that was misconfigured or accessed with stolen credentials.

Who owns what in the cloud?

Under the shared responsibility model, the provider secures the infrastructure and the cloud service, while you secure your data, identities, configurations and workloads. The exact split depends on the service.

LayerInfrastructure as a servicePlatform as a serviceSoftware as a service
Physical and hostProviderProviderProvider
Network and storageMostly providerProviderProvider
Operating systemYouProviderProvider
Application and dataYouYouYou, for your data
Identities and accessYouYouYou
ConfigurationYouYouYou

Map shared responsibility for every service you use, in writing. If no one owns a layer, no one secures it. That map is the first item in the checklist below, and the one most teams skip.

Shared responsibility, in one pictureProvider securesPhysical data centersHost and network hardwareCloud service softwareYou secureYour data and identitiesYour configurationYour workloads and codeThe line moves by service — map it for every service you use.
Shared responsibility: the provider secures the infrastructure, you secure what you put in it. Illustration by Cysoro.

How do you secure cloud identity?

Secure identity first, because it is the attacker's favorite target. Enforce phishing-resistant MFA, use federation and temporary credentials, and apply least privilege with regular reviews.

Phishing-resistant MFA means passkeys or FIDO2 security keys, not one-time codes that can be phished in real time. CISA and NIST issued IR 8587 in 2026 to help agencies and cloud providers protect identity tokens from forgery, theft and misuse, after nearly 250 public comments on the draft.

Use federation and short-lived credentials instead of long-lived API keys. Rotate keys, store secrets in a vault, never commit them to code, and give each service and each AI agent its own scoped identity.

Apply least privilege: start with no access, add only what the job needs, and review it quarterly. Separate duties so no one person can both create a user and approve a payment, or both deploy code and approve it.

How do you protect cloud data?

Classify data, encrypt it at rest and in transit, limit who can read it, and keep an immutable, tested backup that ransomware cannot encrypt or delete.

Classification tells you what matters: public, internal, confidential and regulated data need different controls. Encrypt sensitive data with keys you control, and use TLS for data in transit.

Keep backups immutable and separate from production, test restores quarterly, and check that a compromised admin account cannot delete the backup. A backup that has never been restored is a hope, not a control.

For the privacy side of data handling, see our data privacy compliance guide, which covers GDPR, CCPA and state laws.

How do you stop misconfiguration?

Baseline configurations to CIS Benchmarks, enforce them as code, and scan continuously for drift. Most cloud breaches are configuration errors that a scan would have caught.

CIS publishes more than 100 benchmark guides across vendor products, with Foundations Benchmarks for AWS, Azure and Google Cloud. Enforce Level 1 as code, and block public storage, open databases and overly broad security groups by default.

Keep a live asset inventory, including shadow cloud accounts and forgotten test projects. You cannot secure an asset you do not know exists. Our guide to anti-ransomware software covers the endpoint and backup layers that pair with cloud controls.

How do you secure cloud networks?

Segment networks, default to deny, and expose as little as possible to the internet. Use private endpoints for databases and internal services, and a web application firewall for public apps.

Put workloads in separate network segments by sensitivity, so a breach in a test environment cannot reach production data. Require a VPN or zero-trust access for admin interfaces, and never expose a management console to the whole internet.

Why does logging matter in the cloud?

Logging matters because cloud attacks are fast and quiet. If you do not log identity, API and data-access events, you will not know what the attacker took, or whether they are still there.

Log every agent tool call and every API call that changes data, keep logs immutable and separate from the account they describe, and alert on the events that matter: new admin users, public sharing, failed MFA, and data exports at unusual scale.

Set a retention period that covers investigation, not just compliance. A 30-day log is useless for an attack you discover in month three.

What are the 25 cloud security best practices?

These 25 practices cover governance, identity, data, network and operations. Start with the critical ones, then work down the list in priority order.

  1. Map shared responsibility for every service.
  2. Keep a live asset inventory, including shadow accounts.
  3. Baseline to CIS Benchmarks and enforce as code.
  4. Enforce phishing-resistant MFA for all users, especially admins.
  5. Use federation and temporary credentials, not long-lived keys.
  6. Apply and review least privilege quarterly.
  7. Separate duties for sensitive actions.
  8. Protect tokens following NIST IR 8587: short lifetimes, strict verification, key rotation.
  9. Classify data by sensitivity.
  10. Encrypt at rest and in transit, with keys you control for sensitive data.
  11. Limit data access to the people and services that need it.
  12. Keep immutable, tested backups and test restores quarterly.
  13. Segment networks, default deny, and use private endpoints.
  14. Use a web application firewall for public apps.
  15. Patch and update workloads, images and dependencies.
  16. Scan for vulnerabilities and misconfiguration continuously.
  17. Log identity, API and data events, and keep logs immutable.
  18. Alert on high-risk events and test the response.
  19. Have an incident response plan for cloud, and rehearse it.
  20. Govern with a framework such as NIST CSF 2.0 or CSA CCM v4.1, which has 197 control objectives in 17 domains.
  21. Give each AI agent a scoped identity and limit its tools.
  22. Log every agent tool call and review the logs.
  23. Vet third-party integrations and limit their permissions.
  24. Train staff on phishing, secrets and cloud console safety.
  25. Review and retire unused accounts, keys and services regularly.
Start at the top: identity first1. Identity: MFA, least privilege2. Data: encryption, immutable backup3. Configuration: CIS baselines, scanning4. Network and logging: segment, monitor, alertNIST CSF 2.0 has six functions, with Govern added as the sixth.
Priority order: identity first, then data, configuration, network and logging. Illustration by Cysoro.

What mistakes cause most cloud breaches?

The most common mistakes are public storage, over-privileged keys, no MFA on admin accounts, and logs that no one watches. Each is a configuration choice, not a product failure.

Other frequent errors include keys committed to code, test accounts left active, and AI agents given broad access with no logging. Review each of these quarterly, and automate the checks where you can.

How do you secure AI workloads in the cloud?

Give each AI agent a scoped identity, limit its tools to the minimum it needs, and log every tool call. Treat an agent like a new employee with a very broad job description: limit it, watch it, and review it.

The CSA AI Controls Matrix adds 243 control objectives across 18 domains for AI workloads. Use it alongside the main Cloud Controls Matrix if you run agents or language models in the cloud.

The bottom line

Cloud security is mostly identity and configuration, done consistently. MFA, least privilege, encryption, immutable backups and logging cover most of the risk.

Start with the shared responsibility map and the identity controls, then work through the 25 practices in order. You can check your public-facing site while you are at it with the free SSL checker.

Frequently asked questions

What are cloud security best practices?

Cloud security best practices are the controls that stop the most common cloud attacks: phishing-resistant MFA, least privilege, temporary credentials, encryption, immutable backups, configuration baselines, network segmentation, and logging and monitoring. They are organized in frameworks such as NIST CSF 2.0 and the Cloud Security Alliance Cloud Controls Matrix.

What is the shared responsibility model?

The shared responsibility model divides cloud security between the provider and the customer. The provider secures the physical infrastructure and the cloud service itself, while you secure what you put in it: your data, identities, configurations and workloads. The exact split depends on the service model.

Is the cloud more secure than on-premises?

It can be, if you configure it well. Cloud providers offer strong encryption, logging and patching, but a single misconfigured storage bucket or an over-privileged key can expose data to the internet. Security in the cloud is mostly a configuration and identity problem.

What is the biggest cloud security risk?

Stolen credentials and misconfiguration are the biggest risks. Attackers target identity tokens, API keys and overly broad permissions, then move laterally to sensitive data. That is why CISA and NIST issued IR 8587 in 2026 on protecting identity tokens from forgery, theft and misuse.

How often should you test cloud backups?

Test restores at least quarterly, and after any major change. A backup that has never been restored is a hope, not a control. Test that you can restore to a clean environment, and that the backup itself cannot be encrypted or deleted by an attacker.

Do I need a cloud security framework?

A framework helps you avoid gaps. NIST CSF 2.0 has six functions, including Govern, and the CSA Cloud Controls Matrix v4.1 has 197 control objectives in 17 domains. Use one as your master map, then prioritize by risk rather than trying to do everything at once.

Sources

  1. CISA — CISA and NIST Release Guidelines to Protect Federal Cloud Identity Systems
  2. NIST — NIST Finalizes Guidelines on Protecting Online Identity and Access Tokens
  3. NeuralTrust — Cloud Security Best Practices: 25 Tips
  4. IBM — Cost of a Data Breach Report 2025
  5. NIST IR 8587 guide — CTC Institute
Written & fact-checked byCysoro Security Team

The engineers and analysts who build Cysoro's domain scanner, email-authentication checks and free security tools. We test what we write about every day — SPF, DKIM, DMARC, certificates, look-alike domains and phishing — and check each guide against the relevant standards, government guidance and vendor documentation.

  • Email authentication
  • Phishing & BEC
  • Domain & DNS security
  • Small-business security

Checked against CISA and NIST IR 8587 on protecting identity tokens, NIST CSF 2.0, and the CSA Cloud Controls Matrix as summarized in the sources.

How we write and fact-check →

Free tools for this topic

No account needed.

See where your domain stands

Free for up to 3 domains. No card, no installs.

Start free