Cloudflare's AI Security Blueprint

Cloudflare details its model-agnostic AI security harness architecture for scalable vulnerability discovery and validation.

Diagram illustrating Cloudflare's AI vulnerability discovery and validation system architecture.
An overview of Cloudflare's multi-stage AI vulnerability research workflow.· Cloudflare
Visual TL;DR
Standalone AI LimitsDriver
narrow defensive coverage, lack persistence and deduplication for enterprise security
Skill to PipelineContext
transitioning from individual AI capabilities to integrated security workflows
From the article 3 mentionsThe journey began with a ~450-line security-audit skill designed for single-repository analysis.
Model-Agnostic HarnessCore
orchestrates multiple interchangeable AI models for security analysis
From the article 5 mentionsThis model-agnostic layer is crucial for adapting to the rapid shifts in the AI ecosystem, preventing disruptions when specific models become unavailable or are superseded.
Persistent PipelineContext
fleet-wide scanning instead of isolated agent sessions for continuous analysis
From the articleThe core idea is to create a persistent, fleet-wide scanning pipeline rather than isolated agent sessions.
Adaptable EcosystemEffect
prevents disruption from model changes or unavailability in AI landscape
From the articleThis model-agnostic layer is crucial for adapting to the rapid shifts in the AI ecosystem, preventing disruptions when specific models become unavailable or are superseded.
Key StagesContext
structured approach to building and deploying the AI security harness
From the article 4 mentionsPersistence is managed by writing each stage's output to a SQLite database, allowing any stage to resume without redoing work.
Scalable DiscoveryEffect
enables efficient and broad vulnerability identification across systems
From the articleThe workflow is divided into two stages: the Vulnerability Discovery Harness (VDH) for initial scanning and the Vulnerability Validation System (VVS) for rigorous checking.
Enterprise SecurityOutcome
robust and reliable AI security system for large organizations
From the article 3 mentionsCloudflare is detailing its approach to building a robust AI security system, emphasizing an architecture where models are treated as interchangeable components.
Contents(4)

Cloudflare is detailing its approach to building a robust AI security system, emphasizing an architecture where models are treated as interchangeable components. This strategy, outlined in their latest blog post, moves beyond relying on single, frontier AI models.

The core idea is to create a persistent, fleet-wide scanning pipeline rather than isolated agent sessions. This model-agnostic layer is crucial for adapting to the rapid shifts in the AI ecosystem, preventing disruptions when specific models become unavailable or are superseded.

Beyond Standalone Models

The limitations of single-model approaches are clear: they offer narrow defensive coverage and struggle with the persistence and cross-referencing needed for enterprise-scale security analysis. Subagents, while useful, lack the necessary persistence, deduplication, and resumability for this task.

Cloudflare's solution centers on a 'harness' that orchestrates multiple models. This harness, not the individual model, is the lasting component. By frequently interchanging and cross-testing models, the system ensures vulnerabilities are validated by distinct logical sets.

From Skill to Pipeline

The journey began with a ~450-line security-audit skill designed for single-repository analysis. This initial skill mapped out a 7-phase audit, including reconnaissance, attack simulation, adversarial validation, and independent re-verification.

However, single runs only captured about half the potential bugs, often the simpler ones. Several walls quickly emerged: context exhaustion, where models forget previous findings; lack of persistence, leading to lost work on crashes; and an inability to reason across repositories.

Building the Enterprise Harness

To address these limitations, Cloudflare developed a unified harness capable of covering a large fleet of repositories with cross-repo tracing. This system handles a diverse mix of languages without per-language tuning, focusing on higher-level security orchestration.

The workflow is divided into two stages: the Vulnerability Discovery Harness (VDH) for initial scanning and the Vulnerability Validation System (VVS) for rigorous checking. Crucially, different models are used for VDH and VVS, creating an adversarial validation loop.

Key Stages and Mechanisms

The VDH includes stages like Recon (mapping threat vectors), Hunt (simulating attacks), Validate (mechanical checks and disproving findings), Gapfill (generating new tasks), Dedup (consolidating findings), Trace (walking dependency graphs), and Feedback (optimizing future runs).

Persistence is managed by writing each stage's output to a SQLite database, allowing any stage to resume without redoing work. This prevents losing hours of progress due to transient errors.

The Recon stage dynamically generates threat models tailored to specific codebases. Hunter agents go beyond code reading to active execution, compiling and attacking code fragments in sandboxed environments.

Specialized mechanisms like Sibling Forking (allowing agents to explore interesting code paths outside their current scope) and a Wishlist (for requesting external tools or resources) grant agents significant autonomy.

This robust architecture ensures that even transient API errors are classified correctly, preventing empty runs from being logged as successes.

This entire process forms the basis of Cloudflare's Flue Framework: Cloudflare's Agent Push.

© 2026 StartupHub.ai. All rights reserved. You may not republish this article in full without a license. Search engines and AI research tools may crawl and summarize for reference. Bulk reproduction or model training requires a license. See our terms.
Daniel Singer

Written by

Daniel Singer

Editor, StartupHub.ai

Daniel Singer is the editor of StartupHub.ai, a technology expert and thought leader on AI and its applications across sectors, from fintech and healthcare to developer tooling and consumer software. He writes and tests the tools covered here thoroughly and regularly, and built StartupHub.ai to give founders, operators and buyers a clearer read on what they are actually being sold.