Cloud, Serverless and Virtualized Systems
Cloud computing and virtualisation change who controls which layers and introduce shared infrastructure. This lesson covers cloud service models, serverless computing and virtualisation risks.
Learning outcomes
After completing this lesson, you will be able to:
- Describe cloud service models and their main risks.
- Explain serverless security responsibilities.
- Identify virtualisation risks such as VM escape and sprawl.
Cloud-based systems
NIST defines cloud computing by essential characteristics such as on-demand self-service, broad network access, resource pooling, rapid elasticity and measured service. In infrastructure as a service (IaaS), customers rent virtual machines, storage and networks and manage everything from the operating system up. In platform as a service (PaaS), the provider also manages the operating system and runtime, and customers deploy applications. In software as a service (SaaS), customers use complete applications and manage mainly data, users and configuration. Deployment models are public, private, community and hybrid.
Cloud risks include misconfiguration (the leading cause of cloud breaches), weak identity and access management, insecure APIs, multi-tenancy, data residency, limited visibility and dependence on the provider. Mitigations include strong IAM with MFA, cloud security posture management to detect misconfiguration, encryption with customer-managed keys where justified, comprehensive logging, contractual protections and reviewing provider attestations such as SOC 2 reports and ISO/IEC 27001 certificates.
Misconfiguration dominates cloud breaches because cloud resources are created and changed through self-service interfaces, often by developers rather than infrastructure specialists, and a single setting can expose data to the whole internet. In a traditional data centre, making a file server public would require changes to several network devices by different teams; in the cloud, it may require one selection on a storage bucket. Preventive guardrails, such as organisation-wide policies that forbid public storage or unencrypted databases, and infrastructure as code reviewed before deployment, reduce this risk far more effectively than detecting problems afterwards.
Identity is the new perimeter in the cloud. Every resource is managed through the provider's API, so anyone holding valid credentials with sufficient permissions can do from anywhere what an administrator could once do only from inside the data centre. Stolen access keys embedded in code, over-privileged roles and administrator accounts without multi-factor authentication are therefore as dangerous as an open firewall.
The following diagram shows who is responsible for misconfigured storage and how it is detected and prevented.

Cloud risk realities
Serverless
Serverless computing, such as function as a service, runs code in response to events without the customer managing servers. The provider patches the operating system and runtime; the customer secures function code, dependencies, permissions, secrets and data. Risks include over-privileged function roles, injection through event data from untrusted sources, vulnerable dependencies and limited monitoring. Each function should have its own least-privilege role, validate every event and log its activity.
Serverless changes where input arrives from. A traditional web application receives input mainly through HTTP requests, where a web application firewall can inspect it. A function may be triggered by a file uploaded to storage, a message on a queue or a change in a database, and the content of that file or message is untrusted input just like a web form. A function that processes uploaded images and passes the file name to a system command can be exploited by an attacker who uploads a file with a crafted name, even though no web request is involved. Functions are also short-lived, so traditional host-based monitoring has little to attach to; logging and the provider's audit trail become the main sources of evidence.
Event-driven risks
Virtualised systems
A hypervisor runs multiple virtual machines on one physical host. A type 1 (bare-metal) hypervisor runs directly on hardware and is used in data centres; a type 2 (hosted) hypervisor runs on a host operating system and is used on desktops. Risks include VM escape, where code in a guest breaks out to the hypervisor and can reach every other guest; compromise of the management console; VM sprawl, where unmanaged machines go unpatched; and snapshots and images that contain sensitive data, including memory contents.
Mitigations include patching and hardening the hypervisor first, restricting and monitoring management interfaces, separating workloads of very different sensitivity onto different hosts, managing the VM inventory and protecting images and snapshots.
The management console is often a greater risk than VM escape. VM escape requires a rare and valuable hypervisor vulnerability, but an attacker who obtains the credentials for the virtualisation management platform can switch off, copy or delete every virtual machine without exploiting anything. Ransomware groups specifically target these consoles because encrypting the hypervisor's storage takes down hundreds of servers at once. The management interface therefore belongs on a separate administrative network, with multi-factor authentication and accounts that are not part of the general user directory.
Virtualisation risks
A misconfigured bucket
A company stores customer documents in a SaaS file-sharing service and in cloud object storage behind its IaaS application. A security review finds that an object storage bucket is publicly readable. Who is responsible and what control would have prevented it?
Access configuration of the customer's own storage is the customer's responsibility in every cloud model. Cloud security posture management, or preventive guardrails that block public access at the account level, would have detected or prevented the misconfiguration. The provider's attestations cover the provider's controls, not how the customer configures its resources.
What is VM escape?
Show answer
Code in a guest virtual machine breaking out to the hypervisor, from where it can affect other guests.
Exam Tips
Remember for the exam
- Customers own data and access configuration in every cloud model.
- Misconfiguration causes most cloud breaches.
- Patch the hypervisor first: a compromise affects every guest.
- Give each serverless function its own least-privilege role.