Internet and Network Security

Chapter 14
Cloud, Virtualized and Digital Enterprise Security

Diploma in Cyber security
Internet and Network Security   •   Diploma

Cloud, Virtualized and Digital Enterprise Security

Introduction

Cloud computing, virtualization, containers, application programming interfaces (APIs), software-defined networking and digital platforms have changed how organisations design and protect information systems. Instead of owning a fixed set of servers inside a single perimeter, an enterprise may use several cloud providers, private data centres, remote users, edge devices, SaaS applications, APIs and continuously changing workloads.

This environment improves scalability and agility, but it also changes the security problem. Security controls must protect identities, workloads, data, software pipelines and interfaces rather than relying mainly on a network boundary. A virtual machine may be created in minutes, a container may exist for only a few seconds, and an API may expose valuable business functions to partners and mobile applications. Consequently, security must be automated, measurable and integrated with system design.

This chapter examines the shared-responsibility model; security for cloud networks, virtual machines and containers; API protection; hybrid and multi-cloud environments; cloud-native controls; SASE; SD-WAN; DevSecOps; and the security implications of digital transformation.

Learning objectives

By the end of this chapter, a learner should be able to:

  1. Explain the shared-responsibility model and identify customer and provider responsibilities.
  2. Distinguish virtual machines, containers and serverless workloads from a security perspective.
  3. Design basic controls for cloud networks, identities, APIs, data and workloads.
  4. Explain the roles of SASE, SD-WAN and zero-trust principles in distributed enterprises.
  5. Integrate security into development and operations through DevSecOps.
  6. Analyse risks in hybrid, multi-cloud and digitally transformed environments.
  7. Apply governance, monitoring, resilience and incident-response practices to cloud systems.

1. Cloud security and the shared-responsibility model

Cloud service models are commonly classified as infrastructure as a service (IaaS), platform as a service (PaaS) and software as a service (SaaS). In IaaS, the customer generally controls guest operating systems, applications, identities and much of the virtual network configuration. In PaaS, the provider manages more of the operating system and runtime, while the customer remains responsible for applications, data, identities and configuration. In SaaS, the provider operates the application platform, but the customer still controls users, access permissions, data use, endpoint security and many configuration settings.

The provider normally secures the physical facilities, hardware, core cloud infrastructure and the services it operates. The customer remains responsible for secure use of those services. Responsibility is therefore divided, not transferred completely.

AreaTypical provider responsibilityTypical customer responsibility
Facilities and hardwareBuildings, power, physical access, serversUsually none, except contractual assurance
Hypervisor and core platformHypervisor, host infrastructure and managed service operationCorrect selection and configuration of services
Guest operating systemUsually customer-managed in IaaSPatching, hardening and endpoint protection
ApplicationsProvider maintains SaaS application platformSecure coding, application settings and access
DataAvailability mechanisms and service operationClassification, lawful use, encryption choices and retention
IdentityIdentity features and authentication servicesAccounts, roles, privileges, federation and lifecycle

The precise boundary varies by provider and service. A cloud security architecture must therefore begin with service-specific documentation, contracts, audit reports and a responsibility matrix. Assuming that “the cloud provider handles security” is a serious governance error.

Security objectives in cloud environments

Confidentiality requires preventing unauthorised disclosure. Integrity requires preventing unauthorised or undetected alteration. Availability requires ensuring that authorised users and services can operate when needed. Cloud systems add concerns such as tenant isolation, geographic location of data, elastic scaling, provider dependency, API availability and portability.

A useful risk model considers:

  • Asset: data, identity, workload, API, device or service that has value.
  • Threat: a possible cause of harm, such as credential theft or ransomware.
  • Vulnerability: a weakness that can be exploited.
  • Control: a preventive, detective, corrective or compensating safeguard.
  • Impact: operational, financial, legal, safety or reputational consequence.

Risk is not calculated by a universal equation in all organisations. A practical qualitative method ranks likelihood and impact using documented criteria. Quantitative models can be used when reliable data exists, but false precision should be avoided.

2. Cloud architecture and network protection

Cloud networks are logical rather than purely physical. They may contain virtual networks, subnets, route tables, security groups, network access control lists, load balancers, private endpoints, gateways and cloud firewalls. A secure design separates workloads according to trust, function and sensitivity.

Segmentation and least privilege

A common pattern places public-facing load balancers in an internet-facing segment, application services in private segments and databases in a restricted data segment. Direct internet access to databases should normally be prohibited. Administrative access should use a controlled management path, privileged identity management and strong authentication.

Security groups are often stateful controls associated with virtual interfaces or workloads. Network access control lists may be stateless controls applied at subnet boundaries. The exact behaviour differs among providers, so designers must verify rule evaluation, default actions and logging.

Segmentation is not a substitute for identity security. An attacker who compromises a permitted workload may still move laterally. Effective defence combines network policy with workload identity, service-to-service authentication, host controls and application authorisation.

Encryption and key management

Data should be protected in transit using appropriately configured cryptographic protocols, usually TLS, and at rest using provider or customer-controlled encryption keys. Key management requires secure generation, storage, rotation, access control, separation of duties, backup and documented recovery procedures. Encryption does not solve every problem: an authorised compromised application can often read decrypted data, and poorly protected keys can defeat encryption.

Logging and detection

Important cloud events include authentication, privilege changes, configuration changes, network flows, object access, key use, workload creation and administrative actions. Logs should be time-synchronised, protected against alteration, retained according to policy and sent to a separate security monitoring system. Monitoring should detect unusual access, impossible travel, mass data downloads, public exposure, unexpected regions and anomalous administrative activity.

3. Virtual machines and containers

A virtual machine (VM) emulates or presents virtual hardware on a physical host. A hypervisor isolates guest operating systems, allowing several VMs to share hardware. A container packages an application and its dependencies while sharing the host operating-system kernel. Containers are generally lighter and faster to start, but their shared-kernel model creates different risks.

Virtual-machine security

VM security includes:

  • hardened host and hypervisor configuration;
  • timely patching of guest operating systems and virtual appliances;
  • removal of unused images, accounts and services;
  • secure image repositories and image integrity verification;
  • restricted management interfaces;
  • protection of snapshots, templates and virtual disks;
  • monitoring for unusual console, network and storage activity; and
  • controls against insecure migration or exposed metadata services.

A VM image is a software supply-chain artefact. It should have a known owner, version, purpose, patch status and integrity record. Old images and snapshots may contain credentials or regulated data and must be governed as carefully as production systems.

Container security

Container security begins before deployment. Developers should use trusted minimal base images, scan dependencies and images, remove secrets from images, run processes as non-root users where feasible, apply resource limits and use read-only filesystems when practical. At runtime, orchestrators such as Kubernetes require secure control-plane access, role-based access control, network policies, admission controls, secrets management and audit logging.

Container risks include vulnerable libraries, malicious images, excessive privileges, exposed dashboards, insecure container registries, escape vulnerabilities, compromised orchestration credentials and uncontrolled east-west traffic. Image scanning is valuable but incomplete: a clean image can still be misconfigured or exploited through business logic.

Comparing VMs and containers

CharacteristicVirtual machineContainer
Isolation boundaryVirtual hardware and guest OSProcess and namespace boundary sharing a kernel
StartupUsually slowerUsually faster
Main security concernHypervisor, guest OS and image securityImage, runtime, orchestration and shared kernel
Patch responsibilityGuest OS and applicationsBase image, dependencies, host and orchestration platform
Typical useStronger workload separation and legacy systemsMicroservices and rapidly changing applications

Neither technology is automatically secure. The appropriate control depends on workload sensitivity, threat model, operational maturity and provider architecture.

4. APIs and application-layer security

An API is a defined interface through which software requests data or actions. APIs are central to cloud services, mobile applications, microservices and partner integration. They create an explicit attack surface that must be inventoried and governed.

API security should address:

  1. Identification and authentication: determine which user, service or device is making a request.
  2. Authorisation: verify that the requester may perform the particular operation on the particular object.
  3. Input validation: reject malformed, unexpected or dangerous input.
  4. Rate and resource control: prevent abuse, denial of service and excessive consumption.
  5. Transport protection: use secure communication and certificate management.
  6. Schema and version governance: document valid methods, fields, responses and deprecation rules.
  7. Logging: record relevant security events without unnecessarily exposing secrets or personal data.
  8. Error handling: return useful but non-sensitive errors.
  9. Third-party governance: assess partner applications, tokens, scopes and contractual duties.

A frequent weakness is broken object-level authorisation. For example, an API may verify that a user is logged in but fail to verify whether that user owns the requested account record. Authentication answers “Who are you?” Authorisation answers “What may you do here?” These are separate controls.

API gateways can enforce authentication, routing, quotas, threat filtering and observability. They cannot replace authorisation inside the application, secure coding, data validation or business-process controls.

5. Identity, zero trust and cloud-native security

Identity is the primary control plane for many cloud environments. A mature identity architecture applies least privilege, strong authentication, federation, role-based or attribute-based access, separation of duties and rapid removal of obsolete access.

Important practices include:

  • multi-factor authentication for administrators and high-risk actions;
  • short-lived tokens instead of long-lived credentials;
  • managed identities for workloads;
  • privileged access management and approval workflows;
  • periodic access reviews;
  • conditional access based on device, location, risk and resource;
  • centralised identity and access logs; and
  • emergency accounts protected by strict procedures and monitoring.

Zero trust is a security approach in which access is not granted solely because a user or workload is inside a network. A request is evaluated using identity, device posture, resource sensitivity, context and policy, and access is continuously monitored. Zero trust is not a single product and does not mean eliminating all network segmentation.

Cloud-native security extends these principles to infrastructure as code, immutable deployment, service identities, policy as code, automated detection and continuous validation. Controls should be expressed in repeatable configurations rather than manual actions wherever possible.

6. SASE and SD-WAN

Software-defined wide area networking (SD-WAN) uses central policy and software control to route traffic across links such as broadband, leased circuits and mobile networks. It can improve resilience, application performance and operational visibility. However, SD-WAN is not automatically secure. Management-plane protection, device authentication, configuration integrity, segmentation and logging remain essential.

Secure Access Service Edge (SASE) combines software-defined connectivity with cloud-delivered security functions. Depending on the implementation, these may include secure web gateways, cloud access security brokers, zero-trust network access, firewall capabilities and data-loss prevention. SASE is particularly relevant when users, applications and devices are distributed across many locations.

A sound SASE or SD-WAN design should:

  • authenticate users, devices and network elements;
  • protect the management plane with strong access controls;
  • apply policy close to the user or workload where appropriate;
  • inspect encrypted traffic lawfully and with privacy safeguards;
  • maintain provider redundancy and defined exit arrangements;
  • monitor policy changes and routing anomalies; and
  • integrate events with enterprise detection and response.

Centralisation may simplify policy but can create provider concentration risk and a high-value management target. Organisations should assess service availability, data processing locations, support access, logging detail and portability.

7. DevSecOps and infrastructure as code

DevSecOps integrates security with development and operations rather than treating security as a final approval gate. It combines collaboration, automation, measurable controls and shared responsibility.

A secure delivery lifecycle may include:

  1. Planning: classify data, identify abuse cases and define security requirements.
  2. Coding: use secure standards, peer review and secret-management tools.
  3. Build: scan dependencies, source code, containers and infrastructure definitions.
  4. Testing: perform unit, integration, dynamic, API and security tests.
  5. Release: apply approvals, provenance records, signing and deployment policies.
  6. Operate: monitor behaviour, patch vulnerabilities and manage incidents.
  7. Learn: feed incidents and findings back into design and training.

Infrastructure as code (IaC) describes networks, identities, storage and compute through version-controlled files. IaC supports repeatability, review and rapid recovery, but a flawed template can reproduce insecure settings at scale. Controls should therefore include code review, automated policy checks, secret detection, state-file protection, drift detection and separation of development, testing and production accounts.

Security automation should prioritise meaningful findings. Excessive false positives lead to alert fatigue, while ignoring exploitable vulnerabilities creates risk. Risk-based triage considers exploitability, exposure, asset importance, compensating controls and remediation time.

8. Hybrid, multi-cloud and digital enterprise risks

A hybrid environment combines private infrastructure with one or more cloud environments. A multi-cloud environment uses services from multiple cloud providers. These models may support resilience, regulatory requirements, acquisition integration or avoidance of supplier dependence, but they increase complexity.

Key risks include inconsistent identity models, different logging formats, excessive network trust, insecure interconnections, duplicated data, unclear responsibility, incompatible security tools and difficult incident investigation. Data replication may also create unexpected legal or retention obligations.

Governance should establish:

  • an enterprise cloud policy and approved service catalogue;
  • data classification and location rules;
  • standard landing zones with secure baseline configurations;
  • account and subscription ownership;
  • central identity and logging requirements;
  • asset inventory and configuration management;
  • supplier assessment and contract controls;
  • backup, restoration and exit testing; and
  • documented incident responsibilities.

Digital transformation also changes business processes. Internet-connected operational technology, customer portals, robotic process automation, artificial intelligence services and mobile workforces expand the attack surface. Security architecture must include suppliers, endpoints, data flows, APIs and human processes—not merely servers.

9. Resilience, incident response and recovery

Cloud availability is not the same as organisational resilience. A provider may be available while a customer suffers from a bad deployment, deleted data, exhausted quota, compromised credentials or a failed dependency.

Resilience planning should identify critical services, dependencies, recovery priorities and acceptable data loss. Two common measures are:

  • Recovery time objective (RTO): maximum acceptable time to restore a service.
  • Recovery point objective (RPO): maximum acceptable amount of data loss measured in time.

For example, an RPO of 15 minutes means that, under the recovery design, the organisation aims not to lose more than approximately 15 minutes of transaction data. It does not guarantee that every incident will meet the objective.

Backups must be logically separated, access-controlled, encrypted, monitored and tested. Snapshots alone may not protect against ransomware if an attacker can delete or encrypt them. Recovery exercises should include identity failure, provider outage, compromised administrator accounts and corrupted deployment templates.

Incident response requires cloud-specific preparation: preserve provider logs, identify relevant accounts and regions, understand provider notification procedures, revoke tokens, isolate workloads, capture volatile evidence where feasible and coordinate legal, privacy and communications teams.

10. Governance, ethics and regulation

Cloud security involves ethical and legal responsibilities. Organisations must protect personal and sensitive data, limit collection and use, respect data-subject rights where applicable, and maintain evidence of appropriate safeguards. Cross-border processing may create jurisdictional and transfer obligations.

Governance questions include:

  • Who may access customer data, including provider support staff?
  • What is the lawful basis for processing?
  • How long should logs and backups be retained?
  • Can the organisation investigate without violating privacy?
  • Are automated decisions explainable and contestable?
  • Does an AI service send confidential data to a third party?
  • Can the enterprise recover if a provider changes terms or fails?

Security controls should be proportionate to risk. Excessive monitoring can undermine privacy and employee trust, while weak monitoring may fail to detect abuse. Policies should be transparent, access should be limited, and audit activities should be governed.

11. Illustrative case: securing a hybrid digital retailer

Background

A fictional retailer, Northstar Retail, operates an online store, warehouse systems and physical shops. Its customer application runs in a public cloud, while inventory systems remain in a private data centre. Suppliers use APIs to submit shipment data, and employees connect from home and stores.

Problem

An assessment finds shared administrator accounts, unrestricted cloud storage, a flat connection between the cloud and warehouse network, long-lived API keys, inconsistent logging and manually configured infrastructure. A compromised supplier credential could potentially reach inventory services.

Analysis

The principal risks are excessive privilege, weak third-party isolation, data exposure, poor attribution and configuration drift. The hybrid connection creates a path for lateral movement. The absence of central logs would delay detection and complicate evidence collection.

Approach

Northstar implements the following programme:

  1. Federated identity, multi-factor authentication and separate administrator accounts.
  2. Privileged access management with short-lived elevation and approval.
  3. Segmented cloud networks and a narrowly defined private connection to inventory services.
  4. API gateway controls, scoped tokens, schema validation, quotas and object-level authorisation.
  5. Encryption and managed key controls for customer and payment-related data.
  6. Secure IaC templates with peer review, automated policy checks and drift detection.
  7. Container image signing, vulnerability scanning and restricted orchestration privileges.
  8. Centralised, tamper-resistant logging and alerts for unusual access and configuration changes.
  9. SASE capabilities for remote users and SD-WAN for stores, with protected management planes.
  10. Tested backups and exercises involving supplier compromise and cloud-region disruption.

Outcome

The retailer gains clearer accountability, improved detection and reduced lateral movement. It does not eliminate risk: supplier dependence, application flaws and provider outages remain possible. Management therefore reviews residual risk, recovery results and control effectiveness quarterly.

Learning points

The case demonstrates that cloud security is an operating model rather than a firewall purchase. Identity, segmentation, API governance, secure automation, monitoring and recovery must work together. Hybrid architecture also requires explicit trust boundaries and tested failure procedures.

12. Challenges and limitations

Cloud-native security can be difficult because services change rapidly, documentation may be complex and teams may lack specialised skills. Automation can spread an error quickly. Centralised platforms can create concentration risk. Encryption may complicate inspection and lawful investigation. Multi-cloud strategies can increase cost and complexity rather than automatically improving resilience.

Security tools also have limits. Vulnerability scanners miss logic errors; identity controls cannot correct insecure application authorisation; network segmentation cannot prevent an authorised insider from misusing data; and compliance certification does not prove that an organisation is securely configured today. Effective security therefore requires defence in depth, testing, informed human judgement and continuous improvement.

Best-practice checklist

  • Define the shared-responsibility boundary for every service.
  • Use strong, federated identity and least privilege.
  • Separate production, development and administrative environments.
  • Segment networks and authenticate service-to-service communication.
  • Protect APIs through authentication, authorisation, validation and rate control.
  • Harden images, hosts, containers and orchestration platforms.
  • Manage secrets and keys centrally; do not embed them in code or images.
  • Use secure IaC, policy as code and controlled change management.
  • Centralise logs and monitor identity, data and configuration events.
  • Test backups, recovery, provider failure and incident procedures.
  • Govern suppliers, data location, privacy, retention and exit arrangements.
  • Review security architecture as digital services and business processes change.

Chapter Summary

Cloud and digital enterprise security require protection of identities, data, workloads, APIs, networks, development pipelines and business processes. The shared-responsibility model divides duties between provider and customer, but customers remain accountable for secure configuration and use. Virtual machines require hypervisor, guest operating-system and image controls; containers require secure images, runtimes, orchestration and shared-kernel protection. API security depends on authentication, object-level authorisation, validation, quotas and governance.

Zero trust evaluates access using identity and context rather than network location. SASE and SD-WAN support distributed users and sites but require protected management planes and provider governance. DevSecOps embeds security throughout the delivery lifecycle, while infrastructure as code improves consistency only when templates are reviewed and tested. Hybrid and multi-cloud systems need explicit trust boundaries, central logging, resilient identity, tested recovery and clear accountability. Finally, privacy, regulation, ethics, supplier risk and digital transformation must be incorporated into security decisions.

Key Terms

Shared responsibility model: A division of security duties between a cloud provider and its customer.

Infrastructure as a service: Cloud provision of virtualised computing, storage and networking resources.

Platform as a service: A managed application platform on which customers deploy software.

Software as a service: A provider-operated application delivered to customers over a network.

Virtual machine: A software-defined computer running through a hypervisor.

Hypervisor: Software or firmware that creates and manages virtual machines.

Container: An isolated application process package that generally shares the host kernel.

Orchestrator: A platform that schedules, networks and manages containers.

API: A defined software interface for requesting data or operations.

Object-level authorisation: Verification that a requester may access a particular resource.

Least privilege: Giving an identity only the access required for its authorised task.

Zero trust: An approach that continuously evaluates access rather than trusting network location.

SASE: A cloud-delivered architecture combining secure connectivity and security services.

SD-WAN: Software-controlled wide area networking using central policy and multiple links.

DevSecOps: Integration of security into development, deployment and operations.

Infrastructure as code: Machine-readable, version-controlled definition of infrastructure.

Recovery time objective: The target maximum time for restoring a service.

Recovery point objective: The target maximum period of data loss measured in time.

Configuration drift: Unplanned divergence between an approved configuration and the deployed state.

Review Questions

Short Answer Questions

  1. What does the shared-responsibility model mean in cloud security?
  2. State two important differences between virtual machines and containers.
  3. Why are authentication and authorisation separate API controls?
  4. What is the purpose of a recovery point objective?
  5. Give two security benefits of infrastructure as code.

Long Answer Questions

  1. Explain how a secure three-tier cloud network can reduce attack paths.
  2. Discuss the main security controls required for a containerised application platform.
  3. Explain how zero trust principles apply to remote users and cloud workloads.
  4. Compare the security opportunities and risks of SASE and SD-WAN.
  5. Describe how DevSecOps changes security responsibility across the software lifecycle.

Analytical / Application Questions

  1. An organisation has a public API, a private database and a hybrid connection to its data centre. Propose identity, segmentation, API, monitoring and recovery controls, and justify the trust boundaries.
  2. A cloud administrator accidentally makes a storage repository public. Analyse the likely causes, immediate response actions and long-term preventive controls.
  3. A company adopts two cloud providers to improve resilience but uses separate identities and logging systems. Evaluate the new risks and design a governance improvement plan.

Multiple Choice Questions with Answers

Question 1

Under the shared-responsibility model, which duty normally remains with the customer in an IaaS deployment?

A. Maintaining the provider’s physical data-centre power systems

B. Patching and hardening the guest operating system

C. Replacing failed provider storage hardware

D. Operating the provider’s hypervisor fleet

Correct Answer: B. Patching and hardening the guest operating system

Question 2

Which statement best distinguishes a container from a virtual machine?

A. A container normally shares the host kernel, while a VM includes a guest operating system

B. A container always provides stronger isolation than a VM

C. A VM cannot run applications, whereas a container can

D. A VM never requires patching

Correct Answer: A. A container normally shares the host kernel, while a VM includes a guest operating system

Question 3

An API verifies that a user is logged in but allows the user to retrieve another customer’s record by changing an identifier. What control is missing?

A. Transport encryption

B. Object-level authorisation

C. DNS resolution

D. Data compression

Correct Answer: B. Object-level authorisation

Question 4

Which practice is most consistent with zero trust?

A. Trusting every device connected to the corporate network

B. Granting permanent administrator access to employees

C. Evaluating identity, device context and resource sensitivity for each access request

D. Removing all network segmentation

Correct Answer: C. Evaluating identity, device context and resource sensitivity for each access request

Question 5

What is a principal security benefit of infrastructure as code?

A. It makes insecure configurations impossible

B. It supports repeatable, reviewable and version-controlled infrastructure changes

C. It removes the need for access control

D. It guarantees that cloud providers cannot fail

Correct Answer: B. It supports repeatable, reviewable and version-controlled infrastructure changes

Question 6

What does an RPO of 15 minutes represent?

A. The maximum target time to restore service

B. The maximum target amount of compute capacity

C. The target maximum period of data that may be lost

D. The time required to rotate an encryption key

Correct Answer: C. The target maximum period of data that may be lost

Question 7

Which control is most directly designed to limit excessive API consumption and abuse?

A. Rate limiting

B. Image signing

C. Hypervisor patching

D. Disk defragmentation

Correct Answer: A. Rate limiting

Question 8

Which statement about SD-WAN is correct?

A. SD-WAN automatically eliminates the need for security controls

B. SD-WAN uses software and policy to manage traffic across wide-area links

C. SD-WAN is identical to endpoint antivirus

D. SD-WAN can operate only over leased lines

Correct Answer: B. SD-WAN uses software and policy to manage traffic across wide-area links

Question 9

Why can a cloud snapshot fail as the sole ransomware recovery mechanism?

A. Snapshots cannot contain data

B. An attacker with sufficient permissions may delete or encrypt accessible snapshots

C. Snapshots are always stored in plain text

D. Snapshots cannot be restored to virtual machines

Correct Answer: B. An attacker with sufficient permissions may delete or encrypt accessible snapshots

Question 10

Which activity best represents DevSecOps?

A. Performing one security review only after production release

B. Excluding developers from security decisions

C. Embedding security testing and policy checks throughout development and deployment

D. Replacing all testing with an annual compliance audit

Correct Answer: C. Embedding security testing and policy checks throughout development and deployment

Internet and Network Security
Chapter 14 of 15