Cloud Application Security · Topic 5 of 6
Cloud Application Architecture
CCSP cloud app architecture: WAF, DAM, XML firewalls, API gateways and load balancers, cryptography, sandboxing, microservices, containers and Kubernetes.
- 5 min
- WAF filters layer 7 web traffic; XML firewalls filter XML; API gateways centralize API control.
- DAM monitors database activity independently of administrators.
- Sandboxing contains untrusted code with restricted resources.
What it is
Cloud applications are protected by more than their own code. Supplemental security components sit in front of or beside them, cryptography protects their data and traffic, sandboxing contains untrusted code, and virtualization and orchestration platforms such as containers and Kubernetes decide how they run.
The CCSP expects you to know what each component does and when to use it.
How it works
Supplemental security components
| Component | What it does | Best for |
|---|---|---|
| Web application firewall (WAF) | Inspects HTTP traffic at layer 7 and blocks attacks such as injection and cross-site scripting, using rules and signatures | Web apps and public APIs; virtual patching until code is fixed |
| Database activity monitoring (DAM) | Monitors queries to databases, alerts on or blocks suspicious activity, independent of database admins | Detecting misuse by privileged users, SQL injection reaching the database |
| XML firewall | Validates and filters XML messages, enforces schemas, protects against XML specific attacks | SOAP services and XML integrations |
| API gateway | Single entry point for APIs: authentication, authorization, rate limiting, routing, logging | Microservice and partner APIs |
| Load balancer | Distributes traffic across instances, often terminates TLS and checks health | Availability and scale; can absorb some DDoS |
DAM is valuable because it records activity separately from the database, so a privileged insider cannot quietly change the record. It can be agent based on the database host or network based.
Cryptography in cloud applications
- In transit: TLS between users and the application and between internal services; mutual TLS between microservices.
- At rest: storage and database encryption with keys from a KMS; field level encryption for the most sensitive values.
- Keys and secrets: fetched at run time from a secrets manager or KMS, never embedded in code or images.
- Where TLS terminates: if a load balancer decrypts traffic for inspection, traffic onward to the application should be re-encrypted.
Sandboxing
A sandbox runs code in a restricted environment where it cannot harm the host or other workloads. Uses include:
- Running untrusted or customer supplied code, as serverless platforms and browsers do.
- Detonating suspicious files to observe behaviour.
- Testing new versions safely before release.
Sandboxes limit file system, network and system call access. Their strength depends on the isolation technology, from language level sandboxes up to dedicated lightweight virtual machines.
Application virtualization and orchestration
| Concept | What it is | Security focus |
|---|---|---|
| Microservices | Application split into small services communicating over APIs | Many more network paths: service authentication, mutual TLS, per service least privilege |
| Containers | Packaged application with its dependencies, sharing the host kernel | Image scanning, minimal base images, no root, read only file systems |
| Docker | Common container format and runtime tooling | Protect the daemon, which is highly privileged; sign and verify images |
| Kubernetes | Orchestrator that schedules and manages containers in clusters | API server access, RBAC, network policies, secrets, admission control |
Key Kubernetes concepts:
- Pods are the smallest deployable unit, holding one or more containers.
- Namespaces separate workloads logically; they are not a strong security boundary by themselves.
- RBAC controls who can do what through the Kubernetes API.
- Network policies restrict which pods can talk to each other; by default pods can usually reach each other.
- Secrets hold sensitive values; they are only base64 encoded by default, so enable encryption at rest and restrict access.
Container hardening example:
securityContext:
runAsNonRoot: true
readOnlyRootFilesystem: true
allowPrivilegeEscalation: false
Application virtualization
Application virtualization runs an application in an isolated layer separated from the underlying OS, so it can be delivered without installation and kept from changing the host. It helps with legacy applications and with contained testing.
A worked example
A retailer moves its monolithic shop to microservices on Kubernetes. A penetration test shows that a compromised product image service can reach the payment service directly and that container images run as root.
The architect adds network policies so only the checkout service can reach payment, requires mutual TLS between services, rebuilds images from minimal bases running as non-root, and puts an API gateway and WAF in front of public endpoints. DAM is deployed on the order database to watch for unusual bulk reads.
How the exam asks about this
- "Which component BEST detects a database administrator copying large volumes of customer records?" Database activity monitoring.
- "A known vulnerability cannot be patched in code for two weeks. What provides interim protection?" A WAF rule acting as a virtual patch.
- "By default, what protection do Kubernetes secrets have?" Only base64 encoding, so encryption at rest must be enabled.
What to remember for the exam
- WAF filters layer 7 web traffic; XML firewalls filter XML; API gateways centralize API control.
- DAM monitors database activity independently of administrators.
- Sandboxing contains untrusted code with restricted resources.
- Containers share a kernel: scan images, run non-root, minimize the base image.
- Kubernetes needs RBAC, network policies, encrypted secrets and a protected API server.
Namespaces in Kubernetes organize workloads but do not isolate them on their own. Without network policies and RBAC, a compromised pod can often reach other namespaces.
Common mistakes
Treating a WAF as the fix. A WAF reduces exposure while the code is corrected; it does not replace secure coding.
Terminating TLS at the edge and sending plaintext inside. Internal traffic in shared environments should be encrypted too.
Trusting base64 as encryption. Base64 is an encoding that anyone can reverse.
Check yourself
What does an API gateway provide?
A single entry point for APIs that handles authentication, authorization, rate limiting, routing and logging.
Why is DAM useful against insider threats?
It records and analyses database activity separately from the database, so privileged users cannot hide or alter their actions in the record.
What do Kubernetes network policies do?
They restrict which pods and services can communicate with each other, limiting lateral movement.
Topic 5 of 6 in Cloud Application Security
Test yourself on Cloud Application Security
The full ISC2 CCSP question bank has 900 questions, with timed practice exams and an explanation for every answer.
This study guide is independent and is not affiliated with, endorsed by, or sponsored by ISC2. Vendor names, certification names and exam codes are trademarks of their respective owners and are used for identification only.