Cloudflare AI runtime security
Cloudflare enforces at the edge, in front of the application. AI Security for Apps scores each prompt for injection so customers can block it with WAF rules, AI Gateway Guardrails can flag or block prompts before the model, and AI Gateway DLP discards the provider response and returns a status 400 error on a block. Pricing terms are public: core AI Gateway features and DLP are free, and guardrails are billed as Workers AI tokens. Gaps from 16 Nov 2026: blocking of shell, file, package or credential actions on endpoints, inline latency and fail-open or fail-closed behavior are none found, and the detection fields are an unpriced Enterprise add-on.
Facts read on .
Strength and weakness for AI Runtime Security Tools
Strength: Prompt injection scoring with block rules at the edge plus Guardrails and DLP that can block prompts and responses across model providers (cloudflare-01, cloudflare-05, cloudflare-08).
Weakness: None found on 2026-11-16 for endpoint actions, inline latency or fail-open/closed behavior, and detection fields are an Enterprise paid add-on with no public price (cloudflare-11, cloudflare-12, cloudflare-15, cloudflare-24).
Scores and evidence
Cloudflare is 13th in the overall ranking at 46.0 of 100. Each score below lists the fact ids behind it; the facts follow further down with their sources and read dates.
| Criterion | Score | Weight | Why | Facts |
|---|---|---|---|---|
| Action types stopped before they complete | 5 of 10 | 30 | Prompt injection blocking by WAF rule, hazardous output blocking and DLP blocking of prompts, responses and tool call text are documented. On-machine action blocking: none found. | cloudflare-02, cloudflare-05, cloudflare-06, cloudflare-08, cloudflare-09, cloudflare-17, cloudflare-24 |
| Layers covered | 5 of 10 | 20 | The application and model layers are covered by an edge WAF and a proxy, with partial agent coverage through MCP portals. Endpoint: none found. | cloudflare-03, cloudflare-07, cloudflare-17, cloudflare-18 |
| Latency and failure mode | 0 of 10 | 15 | Only buffering behavior for streamed responses is documented. A latency figure and fail-open or fail-closed behavior: none found. | cloudflare-11, cloudflare-12, cloudflare-10 |
| Deployment | 6 of 10 | 15 | Deployment needs the WAF on the zone and labeled endpoints, or a proxy with one line of code. A time to deploy in minutes or days: none found. | cloudflare-03, cloudflare-07, cloudflare-13, cloudflare-15 |
| Detection and response | 6 of 10 | 5 | Guardrail logs, Logpush export and MCP portal request logs are documented. Production mode logs only metadata. | cloudflare-06, cloudflare-16, cloudflare-18, cloudflare-04 |
| Transparency | 6 of 10 | 10 | Docs are cited openly and pricing terms are published (free core, token-billed guardrails), but the enterprise add-on is unpriced. Published research: none found. | cloudflare-13, cloudflare-14, cloudflare-15, cloudflare-03 |
| Proof | 6 of 10 | 5 | A public company with third-party financial coverage and an observed open-source repo. Named customers or analyst coverage for these AI products: none found. | cloudflare-19, cloudflare-21, cloudflare-26, cloudflare-22, cloudflare-23 |
Where it ranks
Product, deployment, price and owner
- Product assessed: AI Security for Apps (formerly Firewall for AI), AI Gateway Guardrails and DLP, and Cloudflare One MCP server portals
- Deployment: Edge WAF in front of the application (AI Security for Apps) and API proxy (AI Gateway); no endpoint agent for these products found
- Time to deploy: AI Gateway needs one line of code per Cloudflare docs; otherwise none found on 2026-11-16
- Price: AI Gateway core features free, DLP free, Guardrails billed as Workers AI tokens; AI Security for Apps detections are a paid Enterprise add-on with no public price found on 2026-11-16
- Owner: Cloudflare, Inc. (publicly traded, NYSE: NET)
- Website: cloudflare.com
Facts and sources
cloudflare-01 (vendor): Cloudflare says AI Security for Apps (formerly Firewall for AI) detects prompt injection, scoring each prompt so customers can block it with WAF rules.
Quote: "prompts intentionally designed to subvert the intended behavior of your LLM as specified by the developer"
Source: developers.cloudflare.com, read .
cloudflare-02 (vendor): Cloudflare documents prompt injection scores from 1 to 99 (lower is riskier) and lets customers pick a threshold with a Block action, for example blocking below 20.
Quote: "Prompt injection detection uses a score-based system rather than a binary detected/not-detected result."
Source: developers.cloudflare.com, read .
cloudflare-03 (vendor): Cloudflare says AI Security for Apps scans requests to endpoints labeled cf-llm, handles only JSON request bodies, and needs the WAF enabled on the zone.
Quote: "Currently, the detection only handles requests with a JSON content type"
Source: developers.cloudflare.com, read .
cloudflare-04 (vendor): Cloudflare says production mode logs only request metadata and offers no response logging, while log mode logs full request bodies using three fixed rules.
The exact quote is on the source page.
Source: developers.cloudflare.com, read .
cloudflare-05 (vendor): Cloudflare says AI Gateway Guardrails evaluate user prompts and can flag or block them before they reach the model.
Quote: "Based on your settings, prompts can be flagged or blocked before reaching the model."
Source: developers.cloudflare.com, read .
cloudflare-06 (vendor): Cloudflare says Guardrails also inspect model responses, flag or block hazardous content, and keep logs of prompts, responses and enforced guardrails.
Quote: "If hazardous content is detected, it can be flagged or blocked before being delivered to the user."
Source: developers.cloudflare.com, read .
cloudflare-07 (vendor): Cloudflare says AI Gateway Guardrails work as a proxy between the application and model providers such as OpenAI and Anthropic.
Quote: "Acting as a proxy between your application and"
Source: developers.cloudflare.com, read .
cloudflare-08 (vendor): Cloudflare says AI Gateway DLP scans prompts and responses and, on a Block outcome, discards the provider response and returns a status 400 DLP error.
Quote: "The provider response is discarded and replaced with a DLP error response (status 400 )."
Source: developers.cloudflare.com, read .
cloudflare-09 (vendor): Cloudflare says AI Gateway DLP scans the text of tool call arguments and results when they appear in the JSON payload, but does not decode base64 content.
Quote: "which includes tool call arguments and results if they appear in the JSON request or response payload"
Source: developers.cloudflare.com, read .
cloudflare-10 (vendor): Cloudflare says that with DLP response scanning, streamed responses are fully buffered first, so time-to-first-token grows with full response generation time.
Quote: "Time-to-first-token latency increases proportionally to the full response generation time."
Source: developers.cloudflare.com, read .
cloudflare-11 (none-found): None found on 2026-11-16: published millisecond latency for an inline AI Security for Apps, Guardrails or DLP decision, looked for on the AI Security for Apps overview page.
Source: developers.cloudflare.com, read .
cloudflare-12 (none-found): None found on 2026-11-16: published fail-open or fail-closed behavior and timeouts when the AI Security for Apps or Guardrails check fails, looked for on the Guardrails overview page.
Source: developers.cloudflare.com, read .
cloudflare-13 (vendor): Cloudflare says AI Gateway is available on all plans and core features are free, needing a Cloudflare account and one line of code.
Quote: "AI Gateway is available to use on all plans."
Source: developers.cloudflare.com, read .
cloudflare-14 (vendor): Cloudflare says DLP scanning in AI Gateway is free on all plans, and Guardrails are billed as Workers AI token-based inference.
Quote: "DLP scanning in AI Gateway is free on all plans."
Source: developers.cloudflare.com, read .
cloudflare-15 (vendor): Cloudflare lists AI Security for Apps by plan: endpoint discovery on all plans, but detection fields and the log-mode ruleset only as a paid Enterprise add-on with no public price.
Quote: "PII detection, prompt injection scoring, unsafe topic detection, custom topics"
Source: developers.cloudflare.com, read .
cloudflare-16 (vendor): Cloudflare says AI Gateway Logpush is available to all AI Gateway customers, billed by Logpush pricing on exported log volume.
Quote: "is available to all AI Gateway customers"
Source: developers.cloudflare.com, read .
cloudflare-17 (vendor): Cloudflare says MCP server portals let admins curate which tools and prompt templates users reach through one Access-protected endpoint.
Quote: "Admins can tailor an MCP portal to a particular use case by choosing the specific tools and prompt templates"
Source: developers.cloudflare.com, read .
cloudflare-18 (vendor): Cloudflare says Access logs individual tool requests through an MCP portal and portal traffic can optionally route through Cloudflare Gateway for HTTP logging and DLP scanning (page last updated Nov 5, 2026).
Quote: "Cloudflare Access logs the individual requests made using the tools in the portal."
Source: developers.cloudflare.com, read .
cloudflare-19 (vendor): Cloudflare is a publicly traded company that debuted on the New York Stock Exchange (NYSE: NET) on 13 September 2019.
Quote: "Cloudflare made its debut on the public market as it rang the bell at the New York Stock Exchange"
Source: cloudflare.com, read .
cloudflare-20 (vendor): On 2026-11-05, Cloudflare announced its third quarter 2026 financial results on its press page.
Quote: "Cloudflare Announces Third Quarter 2026 Financial Results"
Source: cloudflare.com, read .
cloudflare-21 (third-party): On the 2026 Q3 earnings day, SiliconANGLE reported Cloudflare shares surged as revenue growth accelerated to 39%.
Quote: "Cloudflare shares surge as revenue growth accelerates to 39% and outlook rises"
Source: siliconangle.com, read .
cloudflare-22 (observed): The Cloudflare MCP servers repository on GitHub is Apache-2.0 licensed with about 4.5k stars, last pushed 2026-10-22.
Quote: "Apache-2.0 license"
Source: github.com, read .
cloudflare-23 (none-found): None found on 2026-11-16: named customers or analyst coverage specific to AI Security for Apps, AI Gateway Guardrails or MCP portals, looked for on the press page.
Source: cloudflare.com, read .
cloudflare-24 (none-found): None found on 2026-11-16: documented blocking of shell commands, file reads or writes, package installs or credential access on endpoints by these AI products, looked for on the AI Security for Apps and AI Gateway docs.
Source: developers.cloudflare.com, read .
cloudflare-25 (vendor): Cloudflare says it serves about 102 million HTTP requests per second and runs sixty-plus services across SASE, application security and full-stack development.
Quote: "We serve an average of 102 million HTTP requests per second"
Source: cloudflare.com, read .
cloudflare-26 (third-party): Wikipedia says Cloudflare is headquartered in San Francisco and was founded on July 26, 2009 by Matthew Prince, Lee Holloway and Michelle Zatlyn.
Quote: "founded on July 26, 2009, by Matthew Prince"
Source: en.wikipedia.org, read .