Introducing automatic remediation policies with Cloudflare CASB¶
Summary¶
Cloudflare adds automatic remediation policies to its CASB (Cloud Access Security Broker / SSPM) product, turning what was a passive posture-alarm system into an event-driven closed-loop remediation engine. Security teams define response logic once — when finding type X is detected on integration Y, revoke the risky file share and/or dispatch a webhook — and the engine fires the moment a finding is detected, with no human confirmation per instance. The stated goal is detection-to-completed-remediation ≤ 5 minutes, versus the hours-to-days manual window that lets a sensitive file be downloaded, forwarded, or indexed. The backend is built entirely on Cloudflare's own developer platform: findings enqueue an orchestration message to a Queue, a consumer Worker matches it against policy config, and matched jobs run on Workflows for durable, fault-tolerant, auto-retrying execution.
Key takeaways¶
- Shift from passive SSPM to active remediation. Traditional SaaS Security Posture Management tools "tell you what's wrong but do not help you fix the issue," generating "thousands of findings in seconds" from a single misconfigured file-sharing policy and leaving administrators a growing to-do list. The window between detection and manual remediation is "measured in hours or days." (Source: sources/2026-09-11-cloudflare-introducing-automatic-remediation-policies-with-casb)
- Three maturity stages, made explicit. (1) passive alarm → (2) manual remediation actions (fix from the Cloudflare dashboard, earlier in 2026, but still one human confirmation per finding) → (3) automatic remediation policies (this post: fire on detection, no human in the loop). This is the patterns/closed-loop-remediation progression.
- Policy = trigger + action(s). A policy selects a vendor + integration (or all integrations for a vendor) + a finding type, then binds one or both actions: Run remediations (first-party actions Cloudflare performs directly against the SaaS integration API — currently Microsoft 365 and Google Workspace file/folder finding types, requiring read/write permission upgrades) and Send webhooks (POST finding details to Slack, Microsoft Teams, Jira, ServiceNow, Tines, or any custom HTTP endpoint — the SOAR/SOC hand-off).
- Backend is event-driven on the dogfooded developer platform. Findings engine detects → enqueues an orchestration message to a Cloudflare Queue → a consumer Worker checks whether any policy config matches the finding → on match, it creates a job and hands it to the remediations pipeline running on Cloudflare Workflows. (concepts/event-driven-architecture)
- Durable execution is the load-bearing choice. Workflows gives durable, fault-tolerant execution: "jobs survive process restarts and retries are handled automatically." (concepts/durable-execution)
- Third-party rate limits handled as backoff, not job loss. "If a vendor returns a rate limit error, the Workflow pauses for the appropriate backoff window and retries without dropping the job." (concepts/exponential-backoff-jitter)
- The exception-carve-out is the motivating scenario. Org policy: no public file shares — except the marketing group who collaborate externally. Legacy SSPM dumps every permitted-but-flagged share into a queue of "hundreds of possible violations." CASB policies auto-revoke the genuinely-violating public shares "within minutes, keeping the backlog of findings clean and clear" — a direct concepts/alert-fatigue countermeasure.
- Two audit-log classes as proof-of-fix. Admin Activity logs
capture policy-definition changes (who created/edited/disabled it,
when) — the audit trail if a risk slipped through because a policy was
off. Cloud & SaaS Security policies logs (new) capture the runtime
outcome of each invocation: which finding triggered it, which file was
acted on, success/failure, and the specific error (e.g.
401 Unauthorized, or a vendor API rate-limit response). For compliance, "the execution log is the proof of fix" — it ties a specific finding to a specific automated action and timestamp. - Webhook payload is a typed event envelope. Event type
casb.finding_instance.policy_dispatchwithmetadata(actor, time_sent, destination, version), afindingblock (id, severity, dashboard_url, type_name like "File publicly accessible with view access"), anassetblock (file name, vendor, type, vendor_url), and DLP + filemetadata(access level, download counts, full path, owner). (concepts/event-driven-architecture)
Operational numbers¶
- Target detection → completed remediation: ≤ 5 minutes.
- Legacy manual window: hours to days.
- A single misconfigured file-sharing policy can generate thousands of findings in seconds.
- Remediation actions currently cover Microsoft 365 and Google Workspace file/folder finding types.
- Webhook event schema
version: 1.
Systems / concepts / patterns extracted¶
- Systems: Cloudflare CASB (the product + its policy/remediation engine), Cloudflare One (the Zero Trust platform CASB policies live in), Cloudflare Queues (orchestration-message transport), Workers (policy-match consumer), Cloudflare Workflows (durable remediation pipeline).
- Concepts: concepts/event-driven-architecture (detect → enqueue → match → act), concepts/durable-execution (survive restarts, auto-retry), concepts/exponential-backoff-jitter (vendor rate-limit backoff), concepts/alert-fatigue (auto-clearing the findings backlog).
- Patterns: patterns/closed-loop-remediation (detection → automated policy-driven action, with webhook hand-off to SOAR).
Caveats¶
- Product-launch post; architecture content (the "How we built it" section) is genuine but compact — the queue → worker-match → workflow pipeline is described at a block level, not with per-component internals or throughput numbers.
- The ≤ 5-minute target is a stated goal, not a measured SLO with percentiles.
- First-party remediation is limited to Microsoft 365 / Google Workspace file findings at launch; broader vendor + Custom Findings support is promised "in the coming weeks."
- SSPM/CASB is a security product category, recorded here as prose and as the systems/cloudflare-casb page — not minted as a standalone concept page (single source, product-category term).
Source¶
- Original: https://blog.cloudflare.com/casb-policies/
- Raw markdown:
raw/cloudflare/2026-09-11-introducing-automatic-remediation-policies-with-cloudflare-c-2250069f.md
Related¶
- systems/cloudflare-casb
- systems/cloudflare-one
- systems/cloudflare-queues
- systems/cloudflare-workers
- systems/cloudflare-workflows
- concepts/event-driven-architecture
- concepts/durable-execution
- concepts/exponential-backoff-jitter
- concepts/alert-fatigue
- patterns/closed-loop-remediation
- companies/cloudflare