About this lab
Cloud Workload Security
Cloud Workload Security applies policy controls to cloud API requests before they reach the cloud provider. A proxy runs in the customer's environment - beside a CI runner, on an application host, or shared - and loads its configuration from Cloudflare: a deployment, the policy sets attached to it, and the policies in them. Each policy is a filter that selects requests and a Rego check that decides whether they are valid.
It came to Cloudflare with Kivera, acquired in October 2024, and is in Beta in Cloudflare One. The Zero Trust Free plan is enough to use it. See the documentation.
The exfiltration test
Kivera's demo site, demo.kivera.io, asked visitors "Are you at risk of data exfiltration in the cloud?" and pushed a sample record from their browser to S3, SQS, SNS, Kinesis and DynamoDB in an account Kivera controlled. The version here keeps its five checks, its wording and its pass-means-blocked scoring, and adds what a lab needs: a choice of route, the attacker's view of what arrived, and the Cloudflare API.
The AWS Emulator
AWS published the AWS Emulator in November 2026: a local emulator of the AWS APIs, generated from the same service models as the SDKs, with published fidelity scores against real AWS. It means every lab gets its own AWS without an AWS account. The lab describes how it answers for the real AWS hostnames, which is what lets the CWS proxy see genuine AWS traffic.
Real: the CWS proxy, its policies and its decisions; this lab's Cloudflare account and every Cloudflare API call; the git server (GitLab or Gitea) and its runner; the AWS CLI and SDK requests.
Emulated: AWS's responses. CWS decides before a request reaches the emulator, so emulation cannot change what CWS does - only what happens to the requests it allows.
Fictional: Acme Corp, the attacker and their data.
Building it
The lab's Terraform, the VM bundle and this guide live together in the ctd-configs repository, under
cloud-workload-security/. The guide follows the ai-horizon lab's demo guide: Markdown chapters with a
Do/Say table, rendered to static pages.