Secure by Default, Replace Not Repair: Building and Operating Cloud Infrastructure for CCSP

Chris Rees
25+ years in IT · Pluralsight author, 4.6/5 across 2,000+ ratings

A retailer's platform team was asked a deliberately narrow question: if we created a brand new cloud account today and nobody configured anything, what would be true of it? The honest answer was a list of defaults chosen by someone else: storage that could be made public with one setting, every region enabled, logging off, an administrator with a password and no second factor, and a network with a route to the internet. None of those was a decision the retailer had made, and all of them were decisions. CCSP objectives 5.1 and 5.2 are about taking those decisions back, first when the platform is built and then every day it runs.
Two objectives, one split
Domain 5 opens with a pair that divides cleanly by time. Objective 5.1 is building and implementing the physical and logical infrastructure: hardware roots of trust, management tooling, virtual hardware configuration and the guest toolsets. Objective 5.2 is operating and maintaining it: administrative access, network configuration and controls, hardening, patching, availability of clustered hosts and guests, monitoring, backup and restore, and the management plane in daily use.
The exam rarely asks you to recite either list. It describes a problem and offers mechanisms that all sound reasonable, and the question is which mechanism belongs to that problem. Most of this post is those pairings.
Roots of trust: TPM, HSM and enclave
The outline names hardware-specific security configuration, with the HSM and TPM as its examples. They are both tamper-resistant cryptographic hardware, and that is where the resemblance ends.
| Device | What it is | What it is for | Scope |
|---|---|---|---|
| TPM | a passive chip bound to one machine, holding non-exportable keys and registers that record boot measurements | measured boot, attestation of platform state, sealing disk keys to a known-good configuration | one host, low throughput |
| HSM | a dedicated tamper-resistant appliance that generates, stores and uses keys, validated to FIPS 140-2 or 140-3 at Levels 1 to 4 | high-volume cryptography for many clients, CA root keys, payment processing, customer-held keys | many clients, high throughput |
| Secure enclave / TEE | a hardware-isolated execution environment inside the CPU | protecting data and code in use from the host OS, the hypervisor and the operator | one workload |
The test is scope. A stem about proving that a particular host booted unmodified firmware is a TPM; one about protecting the root signing key of a certificate authority, or keys used by many applications, is an HSM. In public cloud you meet these as services: virtual TPMs on instances, shielded or confidential VM types, and managed HSM or key management services. The trusted computing post covers secure and measured boot in depth; here the point is where the root of trust lives and who can reach it.
Secure by default is a build-time property
A platform is secure by default when the unconfigured state is safe and weakening it requires a deliberate, logged, approved action. In practice that is a bundle: encryption on for storage and databases at creation; public access denied at the organization level, so a resource-level setting cannot re-enable it; deny-by-default networking with no default network and no automatic internet route; no default or shared credentials, with the root or global administrator secured by a hardware key and its use alarmed; logging on in every account and region, delivered to a separate account where workload administrators cannot delete it; unused regions and services disabled; and minimal images with no build tools or interactive access in production.
Delivered together as a pre-built, policy-enforced account structure, that bundle is a landing zone. Workloads are deployed into it and inherit its guardrails, which is why building it once is the highest-leverage activity in a cloud program.
The management tooling installed in 5.1 deserves the same care, because it is the management plane. Infrastructure-as-code state files record every resource and often sensitive values in plaintext, so they belong in an encrypted, access-restricted, versioned backend, never in an application repository. Pipelines apply changes with a scoped, short-lived identity rather than from an engineer's laptop. Console and CLI access is federated, with phishing-resistant MFA. And a posture tool with write access to everything is itself a management plane.
Virtual hardware and the guest toolset
The outline lists virtual hardware configuration across network, storage, memory, CPU and hypervisor type. Each has one or two settings that carry the security weight. On the network, virtual switches should refuse promiscuous mode and MAC address changes, so a guest cannot sniff or spoof its neighbors. In storage, virtual disks are encrypted and snapshot permissions are governed, because a snapshot is a full copy of the disk. For memory, overcommit and page sharing increase density, and deduplication across tenants has enabled cross-VM side channels, so sensitive workloads get reserved memory, page sharing disabled between tenants, or a dedicated host. For CPU, microcode stays current for speculative-execution mitigations. And every emulated device a guest does not need, such as serial ports, floppy and CD-ROM drives, is removed, because each one is hypervisor code reachable from inside the guest.
The hypervisor type question is short. Type 1 runs on bare metal with a smaller trusted computing base and is the answer for production multi-tenancy; type 2 runs on a host operating system and inherits its whole attack surface, which suits workstations and labs. The infrastructure risk post covers what happens when the hypervisor boundary fails.
Guest virtualization toolsets are the agent packages that give a guest paravirtualized drivers, time synchronization, graceful shutdown and host integration. Install them, because running without them costs performance and lets the clock drift, which ruins log correlation. Then treat them as privileged code with a channel to the host: patch them like an operating system, bake a known version into the golden image, and disable features nobody needs, above all shared folders, drag and drop and clipboard sharing, which are direct data paths across the isolation boundary.
Getting in: administrative access, ranked
Objective 5.2 opens with access controls for local and remote administration, naming RDP, SSH, console-based access, jump boxes and virtual clients. The exam treats them as a ladder.
A virtual client or managed virtual desktop solves a different problem: it keeps privileged sessions off the endpoint that also reads email and browses the web, which is usually where compromise starts. All of these sit behind federated single sign-on, so there is one credential lifecycle and step-up authentication for privileged elevation.
The network items follow the same logic: segment by sensitivity with management traffic on its own path, and use network security groups as the primary segmentation tool in public cloud. One cloud twist is worth remembering: a honeypot is often a decoy credential or storage bucket that nothing legitimate ever touches, so any use of it is a high-fidelity alert.
Replace, do not repair
OS hardening applies a baseline, such as a CIS Benchmark, to the golden image rather than to running instances, then evaluates running resources against it continuously. Patch management in cloud follows from that: rather than patching instances in place, rebuild the image with the patches applied, run it through the pipeline, and replace the running instances with a rolling or blue-green deployment. Replacement gives a known state, removes drift and any persistence an attacker left behind, and makes the deployed version verifiable. In-place patching is the right answer only for a workload that genuinely cannot be replaced, and then it needs drift detection as a compensating control.
The rest of the cycle is familiar: an API-derived inventory, prioritization by exploitability and exposure as the CySA+ prioritization post explains, rescanning to verify, and time-bounded exceptions.
Planned or unplanned: the availability mechanisms
The outline lists distributed resource scheduling, dynamic optimization, storage clusters, maintenance mode and high availability for clustered hosts, plus availability of the guest OS. The exam's favorite distinction is whether each mechanism interrupts service, and it reduces to one question: is the event planned or unplanned?
Distributed resource scheduling places and balances guests across a cluster by load, and dynamic optimization keeps rebalancing as load changes, typically using live migration; neither interrupts service. Live migration carries guest memory across the network, so the migration network must be isolated or encrypted. Storage clusters let a guest run on any host and survive device failure, with quorum design to prevent split-brain. Inside the guest, availability comes from clustered applications, health checks and autoscaling groups that replace unhealthy instances.
Monitoring closes the objective. Performance and capacity monitoring watches network, compute, storage and response time, and sudden change is a security signal: a compute spike can be cryptomining, an egress spike can be exfiltration. Hardware monitoring of disk health, CPU, fan speed and temperature predicts physical failure; in public cloud it is the provider's job, in private cloud it is yours. Backup and restore for hosts and guests is proved only by restoring, from a copy held outside the workload's trust boundary, encrypted with keys that will still exist when they are needed.
Four stems, decoded
- A payments company needs to protect the keys that sign millions of transactions a day for many applications. Which device? An HSM. It serves many clients at high volume and is FIPS 140 validated; a TPM is bound to one host and built for attestation, not throughput.
- A security review finds that new cloud accounts are created with logging off, and the team proposes a weekly script to turn it on. What is the stronger control? An organization-level guardrail in the landing zone that enables logging at creation and prevents it being disabled. Secure by default prevents the bad state; the script only shortens it.
- A team spends every month patching 300 instances by hand, and no two now have the same configuration. What should change? Patch by replacement: bake a patched golden image, deploy it through the pipeline, and retire the old instances. Drift disappears with the history.
- An architect says the cluster's HA feature means a host failure will cause no downtime for a trading application. Is that right? No. HA restarts guests on another host, which means minutes of downtime and lost in-flight state. Zero interruption on unplanned failure requires fault tolerance or an application-level active-active design.
Key takeaways
- TPM is one host's root of trust; HSM is a shared, high-volume, FIPS 140-validated key appliance. Scope decides the stem.
- Secure by default is a build-time property delivered by a landing zone. Prevention beats scan-and-fix, and infrastructure-as-code state is a secret.
- Harden the virtual hardware and the guest tools. No promiscuous mode, no needless emulated devices, no cross-tenant page sharing for sensitive guests, and no shared folders or clipboard between guest and host.
- Administrative access climbs from open RDP to bastion to just-in-time to a session manager with no inbound port. Console access is break-glass and alarmed.
- Replace, do not repair; then ask whether the event was planned. Live migration and maintenance mode avoid downtime for planned work; HA restart has downtime; fault tolerance does not, at double the cost.
Building and operating cloud infrastructure are objectives 5.1 and 5.2 of CCSP Domain 5, Cloud Security Operations, 17% of the exam, the foundation beneath the operational controls of 5.3 and the forensic duties of 5.4. Work all 42 Domain 5 topics with our CCSP Domain 5 study guide.
#CCSP #ISC2 #CloudSecurity #CloudOperations #HSM #TPM #PatchManagement #HighAvailability #InfoSec #CyberSecurity
Run it, and investigate it
Digital forensics and communication are two of six objectives in CCSP Domain 5, 17% of the exam. Work all 42 topics, from building and operating cloud infrastructure through operational controls, forensics, communication with relevant parties and managing security operations, with 60 practice questions.
- Find your gapsA free readiness quiz scores you domain by domain.
- Study what's on the testWork through every objective, with practice questions.
- Book it with confidenceSchedule the exam when you're scoring well in every domain.
Read a free excerpt from CCSP Domain 5: Cloud Security Operations
Keep reading
Appetite, Tolerance, Treatment, and the Clause You Forgot: Cloud Risk Management and Contract Design for CCSP
In the cloud, contract is what you have instead of control, and a term you did not negotiate is a control you do not have. CCSP objectives 6.4 and 6.5 from the enterprise risk seat: assessing a provider's own risk program, appetite versus tolerance versus threshold, owner and controller risk against custodian and processor risk, the four treatments as cloud reshapes them, ISO 31000, NIST SP 800-37 and ENISA, key risk indicators, and the contract clauses grouped by what each one protects.
Read CCSP deep divesIncident vs. Problem vs. Change: The Twelve ITIL Processes, ISO/IEC 20000-1, and How CCSP Tells Them Apart
CCSP objective 5.3 lists twelve service management processes that overlap completely in ordinary speech and not at all in definition, and the exam tests the overlap. Incident versus problem, change versus release versus deployment, configuration versus change, and availability versus continuity versus service level, each with the one-line test that decides a stem, plus the CMDB, ISO/IEC 20000-1 against ITIL, COBIT against COSO, and what every process turns into when the estate deploys two hundred times a day.
Read CCSP deep divesWAF, API Gateway, DAM, CASB: What Each Cloud Application Component Can See, and the IAM Stack CCSP Tests
CCSP Domain 4 placement questions all hide the same test: what can this component actually inspect, and what does this identity control actually prove? Objectives 4.6 and 4.7 as a request path and an identity stack: WAF, API gateway, XML firewall, load balancer and database activity monitoring by what they see; cryptography and sandboxing inside the application; federation versus SSO, phishing-resistant MFA, the three CASB deployment modes, and why the best secret is the one that does not exist.
ReadFollow Skillthropic
Keep learning between study sessions
The same exam-focused teaching, in smaller pieces, wherever you scroll.
Enjoyed this? Get the AI security news that matters.
Join The AI Security Brief for the top AI security news, plus what's important to the C-suite. Free, straight to your inbox.
No spam. Unsubscribe anytime.