In short: the public cloud (AWS, Microsoft Azure, Google Cloud) offers speed and scalability but changes how things are secured: there is no longer a single perimeter, infrastructure is created as code and changes every day, and the customer is responsible for configuration. Below we describe where to start, which safeguards are key and how to organise it so that the cloud is secure and compliant with regulations.
This article is mainly about infrastructure and platforms (IaaS, PaaS). We write about controlling SaaS applications and the data in them in the article Cloud security and CASB.
The shared responsibility model
The provider is responsible for the security of the cloud: buildings, hardware, the backbone network and the virtualisation layer. The customer is responsible for the security of what it runs in it: service configuration, identities and permissions, data, the virtual network, operating systems and applications. The closer to a managed service (PaaS, SaaS), the fewer layers on the customer’s side, but data, identities and configuration always remain.
Misunderstandings around this division are among the most common causes of incidents: the team assumes “the cloud is secure”, and the provider assumes the customer has taken care of its part.
The most common causes of incidents in the cloud
- Configuration errors: publicly accessible data stores, open administrative ports, overly broad security groups, disabled logging
- Overly broad permissions and weak identity management: administrator accounts without MFA, long-lived keys, excessive roles
- Exposed secrets: API keys and passwords in code repositories, container images and environment variables
- Unpatched vulnerabilities in virtual machines, containers and libraries
- Lack of visibility: resources created without the security team’s knowledge, many accounts and subscriptions without common oversight
- Supply chain: unverified images, modules and dependencies
- Compromised accounts and resource abuse (e.g. cryptocurrency mining at someone else’s expense)
The pillars of cloud security
| Area | Key safeguards |
|---|---|
| Identity and access (IAM) | least privilege, MFA for all privileged accounts, federation with the corporate identity directory (SSO), short-lived credentials instead of permanent keys, separation of roles, permission reviews |
| Network | segmentation of virtual networks, traffic rules following a “deny by default” principle, private endpoints to managed services, control of outbound traffic, WAF and DDoS protection for public services, secure connectivity with the on-premises network |
| Data | classification, encryption at rest and in transit, key management (KMS, HSM, customer-managed keys), control of public access to storage, backups and ransomware resilience |
| Configuration and compliance (CSPM) | continuous comparison of configuration with baselines (CIS Benchmarks, company policies), drift detection, prioritisation and automatic remediation |
| Workload protection (CWPP) | vulnerability scanning of machines and containers, image hardening, runtime protection, Kubernetes security |
| Code and deployment pipeline (DevSecOps) | scanning of infrastructure-as-code (IaC) templates, images and dependencies before deployment, secrets management, signing of artefacts |
| Detection and response | central logs (activity and access logs), SIEM integration, anomaly detection, incident handling procedures in the cloud |
| Governance | a landing zone, many accounts and subscriptions with central rules, policy as code, tagging, control of costs and resources |
CSPM, CWPP and CNAPP: abbreviations worth understanding
- CSPM (Cloud Security Posture Management) checks the configuration of cloud resources and points out deviations from good practice and compliance requirements.
- CWPP (Cloud Workload Protection Platform) protects workloads: virtual machines, containers and serverless functions.
- CIEM (Cloud Infrastructure Entitlement Management) analyses identity permissions and points out excessive ones.
- CNAPP (Cloud-Native Application Protection Platform) combines the above and adds code analysis, a common view of risk and correlation of threats from code to the runtime environment.
- CDR (Cloud Detection and Response) is detection of and response to threats in cloud environments.
The market is consolidating, and the boundaries between these categories are blurring. More important than the name is whether the tool covers your clouds (one or several), integrates with your processes and gives priorities, not just thousands of alerts.
The cloud in the wider security architecture
Cloud security does not end at the provider’s console. Users connect to applications from different places, so a consistent access policy is needed: Zero Trust for identities and devices, SWG and CASB for Internet traffic and SaaS applications, and SASE as a model that combines them with SD-WAN. Connectivity between the cloud, the on-premises network and branches requires design: tunnels, private links, segmentation and control of traffic between environments. See also IT security.
Regulatory requirements
- NIS2 and KSC: risk management, access control, supply chain security (the cloud provider is part of it), incident management and business continuity.
- DORA: for the financial sector, management of ICT risk and of ICT service providers, including cloud ones: a register, contractual requirements, exit strategies and resilience testing (Regulation 2022/2554).
- PCI DSS: when processing card data in the cloud, it must be clearly established which requirements the provider meets and which the customer does. See PCI DSS and infrastructure.
- GDPR: data location, data processing agreements, technical and organisational safeguards, including transfers outside the European Economic Area.
- ISO/IEC 27001 together with ISO/IEC 27017 and 27018: safeguards specific to cloud services and to the protection of personal data in the cloud.
For many organisations, data sovereignty and dependence on a single provider also matter, so it is worth planning from the start for the possibility of moving services.
How to organise cloud security step by step
- Inventory. Establish which accounts, subscriptions and resources exist, who owns them and what data goes there.
- Identity. Enable MFA for privileged accounts, limit permanent keys, introduce SSO and permission reviews.
- Logging. Enable and centralise activity logs, ensure retention and SIEM integration.
- Configuration baseline. Adopt a standard (e.g. CIS Benchmarks) and run CSPM. Start with the critical deviations: public data stores, open administrative ports, lack of encryption.
- Landing zone and policies. Build a multi-account structure with central rules and policies as code.
- Network and data. Segmentation, private endpoints, encryption with key control, ransomware-resistant backups.
- Security in the deployment pipeline. Scanning of IaC, images and dependencies and secrets management.
- Detection and response. Use cases in SIEM, procedures and exercises for incidents in the cloud.
- Continuous management. Metrics, reviews and automation of fixes. See network and process automation and operational resilience.
What to watch out for
- Too many alerts. Tools generate thousands of findings. Without risk-based priorities (Internet exposure, permissions, data sensitivity) the team drowns in noise.
- Manual changes in the console. They cause drift from the code. Changes should go through code and the deployment pipeline.
- Multiple clouds. Each provider has different names and permission models. Consistent standards and tools covering all environments are needed.
- Own keys and provider administrative access. Always check who has access to data and keys, and how to document it.
- Costs and orphaned resources. Forgotten resources are both a risk and an expense.
- No owners. Every resource and account should have a responsible person assigned.
- Compliance as a one-off project. The environment changes every day, so compliance must be measured continuously.
How NetContractor can help
Audit and assessment
- a review of the architecture, accounts and subscriptions in the public cloud,
- an analysis of identity, permissions, network, encryption and logging,
- an assessment of compliance with NIS2, KSC, DORA, PCI DSS and ISO 27001, and a gap analysis.
Recommendations
- design of a landing zone, segmentation and hybrid connectivity,
- selection of tools (CSPM, CNAPP, SIEM) independent of the cloud provider,
- an implementation plan with risk-based priorities and a cloud exit plan.
Implementation
- configuration of safeguards, policies as code and SIEM integration,
- automation of configuration checks and evidence for the auditor,
- documentation, team training and incident response procedures.
See also: Network audit, Governance and risk management.
Let’s talk
Book a free 30-minute consultation or write to nc@netcontractor.pl. We will establish what your cloud security looks like today and where to start.
This article is for information purposes and is not legal advice. The description is simplified, and the names and capabilities of services differ between cloud providers. Regulatory requirements should be verified in the current texts of the regulations.
