Security Notes
Cloud

Cloud Operations, Legal, Risk & Contracts (Vendor-Neutral)

Running cloud infrastructure securely day to day, supporting forensic investigations when you don't own the hardware, and handling the legal, privacy, audit and contractual side of putting data in someone else's data centre. This is CCSP domains 5 and 6.

16 min read 9 sections 6 model answers verified 2026-10

Building and Operating Cloud Infrastructure

What is this?

The operational practices that keep cloud hosts, guests, networks and management tools secure and available, whether you run a private cloud or manage IaaS workloads.

Why it matters

Most cloud incidents come from operations: an unhardened image, a management port left open, a patch never applied, a backup never tested.

How it works

Hardware security

HSMs for key storage, TPMs (trusted platform modules) for measured and secure boot of hosts.

Virtualisation management

hypervisor management tools are as sensitive as domain controllers: separate network, MFA, minimal admins.

Hardened baselines

guest OS images built from benchmarks (CIS), with unnecessary services removed, rebuilt regularly. See Linux hardening.

Secure administrative access

no direct internet-exposed RDP or SSH; use a bastion (jump) host, a session manager, or a VDI (virtual desktop infrastructure) for admins, with MFA and session recording.

Patch management

for hosts and guests, using maintenance mode and live migration to avoid downtime.

Infrastructure as code

consistent builds and reviewed changes.

Availability of clustered hosts

distributed resource scheduling moves workloads to balance load; maintenance mode evacuates a host for patching; high-availability clusters restart VMs elsewhere when a host fails.

Monitoring

performance, capacity and hardware health, plus backup and restore of host and guest configuration.

Network security controls

firewalls, network security groups, IDS/IPS, honeypots, vulnerability scanning, and segmentation of the management network.

Operational processes (ITIL and ISO/IEC 20000-1)

CCSP expects you to recognise the service-management processes and how security plugs into each: change management, configuration management, release and deployment management, incident management (restore service fast), problem management (find and fix the root cause of repeated incidents), service level management, availability and capacity management, continuity management, information security management, and continual service improvement.

Security operations

A SOC (security operations centre) monitors security controls, collects and correlates logs in a SIEM, handles incidents and runs vulnerability management. In the cloud, add cloud-native detections (control-plane API logs, posture findings) to the usual endpoint and network sources. See detection engineering and incident response.

In practice"No internet-exposed admin ports" looks like this in an SSH config — admins hop through one hardened, logged bastion instead of reaching servers directly:

# ~/.ssh/config
Host bastion
    HostName bastion.ops.example.com
    User alice
    IdentityFile ~/.ssh/id_ed25519_sk        ← hardware-backed key (FIDO2)

Host 10.20.*
    ProxyJump bastion                         ← every admin session passes the bastion

In a cloud, the stronger version removes SSH entirely: aws ssm start-session --target i-0abc123 opens a shell through the provider's agent, with no inbound port and every keystroke logged.

📰

Real incident — Code Spaces (2014). An attacker got into the code-hosting company's AWS console, demanded a ransom, and when staff tried to regain control, deleted machines, storage and the backups, which lived in the same account. The company shut down within days. Lesson: management-plane access is everything, and backups that the same credentials can delete are not backups.

🎯

On the job. In an operations review, ask: who can reach the management plane and from where, is MFA enforced on it, are admin sessions recorded, and could one compromised admin account delete both production and its backups?

Security angle

Incident management restores service; problem management prevents recurrence. Security teams that only do the first keep fighting the same fire.


Digital Forensics in the Cloud

What is this?

Collecting and analysing evidence when the systems are virtual, shared and owned by someone else.

Why it matters

You can't seize a provider's servers, data may span countries, and volatile evidence disappears when an instance is terminated or auto-scaled away.

How it works

  • What you can collect depends on the service model: IaaS gives you disk snapshots, memory captures and network logs; PaaS and SaaS give you mostly logs and whatever the provider exposes through APIs.
  • Collection methodology — capture memory before isolation, snapshot disks, copy logs to a forensics account, hash everything, document chain of custody. See digital forensics and AWS IR.
  • Provider cooperation — the contract should cover what the provider will supply in an investigation and how fast.
  • Standards
    ISO/IEC 27037

    identifying, collecting, acquiring and preserving digital evidence.

    ISO/IEC 27041

    assuring investigative methods are fit for purpose.

    ISO/IEC 27042

    analysing and interpreting digital evidence.

    ISO/IEC 27043

    incident investigation principles and processes.

    ISO/IEC 27050

    electronic discovery (eDiscovery).

  • eDiscovery — finding and producing electronically stored information for legal proceedings; cloud tools and legal holds help, but multi-tenant storage and jurisdiction complicate it.

In practiceCloud evidence collection is API calls, run from a separate forensics account, tagged and hashed:

console
$ aws ec2 create-snapshot --volume-id vol-0a1b2c3d \
    --description "IR-2026-031 web01 root volume" \
    --tag-specifications 'ResourceType=snapshot,Tags=[{Key=case,Value=IR-2026-031}]'
$ aws ec2 modify-snapshot-attribute --snapshot-id snap-0f9e8d \
    --attribute createVolumePermission --operation-type add --user-ids 222233334444   ← share to forensics account
$ sha256sum web01-memory.lime > web01-memory.lime.sha256                            ← hash before anyone analyses it
📰

Real incident — Capital One (2019). An attacker abused a misconfigured web application firewall to make the server fetch its own instance-metadata credentials (SSRF), then used that role to copy over 100 million customer records from S3. The investigation rebuilt the timeline almost entirely from CloudTrail API logs and S3 access logs: in the cloud, logs are the crime scene.

🎯

On the job. Pre-build the forensics account, the IAM roles that can snapshot and share volumes, and the memory-capture tooling before you need them. During the incident, capture memory before isolating or terminating, and record every API call you make, because your own actions appear in the same CloudTrail as the attacker's.

Security angle

Prepare in advance: forensic roles and accounts, automated evidence capture, and contractual rights. During an incident is too late to negotiate access.


Communication With Relevant Parties

What is this?

Who must be told what, and when, during normal operations and incidents: vendors, customers, partners, regulators and internal stakeholders.

Why it matters

Regulations set hard deadlines for breach notification, and contracts set them for customers. Poor communication turns a security incident into a trust and legal incident.

How it works

Vendors and providers

status, support escalation, incident cooperation.

Customers

contractual notification windows, status pages, honest scope.

Partners

shared-responsibility hand-offs and joint incident handling.

Regulators

e.g. GDPR: notify the supervisory authority within 72 hours of becoming aware of a personal-data breach; NIS2: early warning within 24 hours (see NIS2).

Internal

executives, legal, communications and HR.

See writing reports and postmortems for per-audience writing.

In practiceA first external notification is short, factual and avoids speculation:

Subject: Security incident notification — [Company] — [date]

On [date/time UTC] we detected unauthorised access to [system]. We contained it at [time].
What we know: [scope confirmed so far]. What we don't know yet: [open questions].
What you should do: [specific actions, e.g. rotate API keys issued before X].
Next update: [time]. Contact: [named person, channel].
🎯

On the job. Keep pre-approved templates and a contact matrix (regulator, customers, cloud provider support, cyber insurer, law enforcement) in the incident plan. The cyber insurer often must be told before you hire responders, or the cost isn't covered.


Last verified2026-10 — international data-transfer rules are actively litigated; check current status before relying on a mechanism.

What is this?

The laws that apply to cloud data, which depend on where data is stored, where the provider is headquartered, and where the people in the data live, and which can conflict with each other.

Why it matters

Cloud makes it easy to store data in many countries without noticing. Each location brings its own laws, including government access rights.

How it works

Conflicting international law

a provider may be required by its home country to hand over data that another country's law forbids it to disclose.

US CLOUD Act (2018)

US law enforcement can compel US-based providers to produce data they control, even when stored abroad. A key concern for EU customers of US providers.

EU–US data transfers

the Court of Justice of the EU invalidated the Privacy Shield in Schrems II (C-311/18, 2020); transfers now rely on the EU–US Data Privacy Framework (adequacy decision, 2023) for certified companies, or standard contractual clauses with a transfer impact assessment.

Data sovereignty and residency

choosing regions, sovereign-cloud offerings and customer-held keys to keep data and control within a jurisdiction.

Legal frameworks

privacy laws (GDPR, CCPA, HIPAA), sector rules (PCI DSS, NERC CIP for the electricity grid, SOX for financial reporting), and cybersecurity laws (NIS2).

📰

Real incident — the Microsoft Ireland case (2013–2018). US prosecutors demanded emails a US customer had stored in Microsoft's Dublin data centre. Microsoft refused, arguing a US warrant couldn't reach data abroad, and won on appeal. While the case sat at the Supreme Court, Congress passed the CLOUD Act (2018), which explicitly gives US authorities that reach, and the case was dropped. That one dispute is why "which region?" no longer fully answers "whose law?"

📰

Real incident — Meta's €1.2 billion fine (2023). Ireland's data protection authority fined Meta for transferring EU users' personal data to the US under standard contractual clauses that didn't, after Schrems II, adequately protect it from US surveillance. It remains the largest GDPR fine and the clearest signal that transfer mechanisms are enforced.

🎯

On the job. For any new cloud service handling personal data, record: where data is stored and processed (including support access and sub-processors), which transfer mechanism applies, and whether keys are held outside the provider's control.

Security angle

Encryption with keys held outside the provider's jurisdiction (HYOK) is the strongest technical answer to foreign government access, at the cost of availability and complexity.


Privacy

What is this?

Protecting personal data and the rights of the people it describes, as distinct from protecting company secrets.

Why it matters

Privacy law carries the largest fines (GDPR up to 4% of global annual turnover) and applies regardless of where the cloud provider is.

How it works

Contractual versus regulated private data

some data is private because a contract says so (customer confidentiality clauses); some because law says so (PII, health data).

Roles

the data controller decides why and how data is processed and stays accountable; the data processor (often the cloud provider) processes on the controller's instructions; sub-processors must be disclosed and bound by the same terms.

Principles

lawfulness, purpose limitation, data minimisation, accuracy, storage limitation, integrity and confidentiality, accountability. See GDPR.

Standards

ISO/IEC 27018 (PII protection in public clouds), ISO/IEC 27701 (privacy information management extension to 27001), and the Generally Accepted Privacy Principles (GAPP).

Privacy impact assessment (PIA)

called a DPIA (data protection impact assessment) under GDPR: required before high-risk processing; identifies risks to individuals and the controls to reduce them.

In practiceA DPIA (data protection impact assessment) boils down to a table like this per processing activity:

ProcessingDataRisk to individualsLikelihood / impactControlResidual
Support chat transcripts sent to an AI summariserNames, account issues, sometimes health detailsSensitive data reused for model training; disclosureMedium / HighVendor no-training clause, PII redaction before sending, 30-day retentionLow
🎯

On the job. Security engineers are usually asked to fill in the "controls" column. Bring specifics — redaction, encryption, retention periods, access logging — not "industry-standard security."

Security angle

Security incidents involving personal data are also privacy incidents with their own notification clock. Bring legal and the privacy office in early.


Audit in the Cloud

What is this?

How organisations get assurance about cloud environments they don't fully control, and what changes compared with auditing an on-prem data centre.

Why it matters

You can't walk into a hyperscaler's data centre with a checklist. Assurance comes from reports, contracts and your own monitoring.

How it works

  • Audit reports
    • SOC 1 — controls relevant to financial reporting (for auditors of the customer's financial statements).
    • SOC 2 — security, availability, processing integrity, confidentiality and privacy; restricted distribution, under NDA. Type I = design at a point in time; Type II = operating effectiveness over a period (usually 6–12 months).
    • SOC 3 — a public summary of SOC 2, without details.
    • These follow SSAE 18 (US) and ISAE 3402 (international) attestation standards.
  • Scope statements — check what is excluded: services, regions, sub-processors, time period. A report on one service says nothing about another.
  • Assurance challenges — virtualisation and multi-tenancy mean auditors can't isolate "your" hardware; continuous change means point-in-time evidence goes stale fast.
  • Gap analysis — compare current controls against a framework or regulation and list the gaps; usually the first step before an audit.
  • Audit planning — define objectives, scope, criteria, evidence sources and stakeholders.
  • Internal ISMS (information security management system) and internal control system — the organisation's own policies and controls, audited by internal audit.
  • Highly regulated industries — healthcare (HIPAA, HITECH), payments (PCI DSS), electricity (NERC CIP), and essential and important entities under NIS2 add specific requirements.
  • Distributed IT — data across many locations and jurisdictions complicates evidence collection and legal requirements.

In practiceThe parts of a SOC 2 Type II report that actually matter, which most readers skip:

Section 4 — Testing of controls
  CC6.1  Logical access is restricted ...
         Test: inspected 25 of 340 terminations     Result: 2 accounts not removed within 24 h   ← EXCEPTION
Complementary User Entity Controls (CUECs)
  • Customers are responsible for enabling MFA for their users                                  ← YOUR job, not theirs
Subservice organisations: Amazon Web Services (carved out)                                      ← AWS controls NOT tested here
Period: 1 Jan 2026 – 30 Jun 2026                                                                ← ask for a bridge letter after this
🎯

On the job. When reviewing a vendor's SOC 2, read the exceptions, the complementary user entity controls (your obligations) and the carved-out sub-service organisations first. A clean opinion with three exceptions in access control tells you where to push in the security questionnaire.

Security angle

Collect evidence continuously from your cloud environment (configuration snapshots, access reviews, logs) so audits are a report run, not a project.


Enterprise Risk Management for Cloud

What is this?

Fitting cloud risk into the organisation's overall risk management: assessing providers' risk programmes, choosing treatments and tracking metrics.

Why it matters

Moving to the cloud transfers some risks to the provider, adds new ones (concentration, lock-in, jurisdiction) and changes others. The board still owns all of it.

How it works

Assess the provider's risk management

their controls, methodologies, policies, risk profile and risk appetite (from reports and questionnaires).

Owner versus custodian

the customer is the data owner and controller; the provider is the custodian and processor. Accountability stays with the owner.

Regulatory transparency

breach notification duties, SOX controls over financial systems, GDPR accountability.

Risk treatment

mitigate, transfer (contract terms, cyber insurance), avoid (keep some workloads out of the cloud), accept. See risk management.

Frameworks

ISO 31000, NIST risk management framework, ENISA cloud risk assessments.

Metrics

availability against SLAs, incident counts and response times, compliance scores, unresolved high-risk findings.

Assess the whole environment

service, vendor, infrastructure and business risk, including concentration risk (many critical services on one provider).

📰

Real incident — CrowdStrike content update (July 2024). A faulty configuration update to CrowdStrike's Falcon sensor crashed about 8.5 million Windows machines worldwide, grounding flights and disrupting hospitals and banks. Nothing was hacked; one trusted vendor's change propagated everywhere at once. It made concentration risk — many critical systems depending on one provider — a board-level topic.

🎯

On the job. In a cloud risk register, include availability and concentration risks next to breach risks: single region, single identity provider, single security agent with kernel access. For each, record the dependency, the blast radius and the fallback.


Outsourcing and Cloud Contract Design

What is this?

The contracts and vendor management that turn security requirements into enforceable obligations on the provider.

Why it matters

Once signed, the contract is the only lever you have. If it doesn't grant audit rights, log access or an exit path, you don't have them.

How it works

  • Agreements
    MSA (master service agreement)

    the overall legal terms.

    SOW (statement of work)

    the specific services and deliverables.

    SLA (service level agreement)

    measurable commitments (availability, response times, support) and the credits or penalties if missed.

  • Key contract clauses — right to audit (or accepted third-party reports instead), security and compliance obligations, breach notification time, data location, sub-processor approval, access to logs and forensic support, data return and deletion at exit (reversibility), termination rights, liability and indemnity, litigation and jurisdiction, definitions, metrics, and cyber insurance.
  • Vendor management — due diligence before signing, ongoing assessments, lock-in risk (proprietary services and data formats), vendor viability (could they go out of business?), and escrow (source code or data held by a third party, released if the vendor fails).
  • Supply-chain management — ISO/IEC 27036 covers information security in supplier relationships, including the provider's own suppliers.
📰

Real incident — Snowflake customer breaches (2024). Attackers used passwords stolen by infostealer malware to log into around 165 Snowflake customer accounts that didn't enforce MFA, stealing data from companies including AT&T, Ticketmaster and Santander. Snowflake's platform wasn't breached; the gap was on the customer side of shared responsibility. Snowflake later made MFA the default.

🎯

On the job. Turn the contract into checks: can we export our logs, is MFA enforceable for all our users, how fast must they notify us, can we get our data out in a usable format, and what happens to it after termination. Then verify the technical ones in the product, not just on paper.

Security angle

Plan the exit on day one: how you would get every byte of data back, in a usable format, within what time, and how deletion would be proven.


Interview Questions

Q
What's the difference between a SOC 1, SOC 2 and SOC 3 report?
Model answer

SOC 1 covers controls relevant to the customer's financial reporting, for financial auditors. SOC 2 covers security, availability, processing integrity, confidentiality and privacy, comes with detailed test results and is shared under NDA; Type II proves controls operated over a period rather than just being designed. SOC 3 is a short public summary of SOC 2 without the detail, good for marketing and useless for a real vendor review.

Q
Why is the US CLOUD Act a concern for European companies using US cloud providers?
Model answer

Because it lets US authorities compel a US-based provider to hand over data it controls even when that data sits in an EU region, which can conflict with GDPR's restrictions on transfers. Region choice alone doesn't solve it, since the provider still has control. The strongest technical answer is encryption with keys the provider can't access, combined with contractual commitments to challenge requests.

Q
What clauses would you insist on in a cloud contract?
Model answer

Breach notification within a defined window, the right to audit or to receive current SOC 2 and ISO reports, data location and approval of sub-processors, access to logs and cooperation in investigations, and a clear exit clause covering data return in a usable format and proven deletion. Then SLAs with real penalties, liability terms that match the data's sensitivity, and defined termination rights. If it isn't in the contract, you don't have it.

Q
How is forensics different in the cloud?
Model answer

You can't seize the hardware, evidence is volatile because instances auto-scale away, data may sit in several jurisdictions, and in PaaS and SaaS you only get what the provider exposes through logs and APIs. So you prepare in advance: automated memory and snapshot capture into a forensics account, log retention you control, and contractual rights to provider cooperation. ISO 27037 still applies for collection and preservation, just through APIs rather than write-blockers.

Q
What's the difference between incident management and problem management?
Model answer

Incident management restores normal service as quickly as possible, accepting a workaround. Problem management finds and removes the root cause so the incident doesn't recur. Security teams that only do the first keep resetting the same compromised credential every month without ever fixing why it keeps leaking.

Q
Who is accountable when data leaks from a cloud provider's platform?
Model answer

The customer, as data owner and controller, remains accountable to regulators and data subjects, even if the provider as processor caused the leak. The provider may be liable to the customer under the contract, which is why breach notification, liability and audit clauses matter. Responsibility can be outsourced; accountability can't.