最新资讯
dev.to 部署 Underdog Bark 3.0 Pro:逐字转写、自定义后端与分块设置 dev.to 为艰难对话构建 AI:五个 Agent、一条安全正则与一位盲评监督者 techcrunch.com Palo Alto Networks 洽谈以 5 亿美元收购 AI Agent 安全初创公司 Clutch theinformation.com 黄仁勋被要求就涉华间谍指控向国会作简报 www.infoq.com Edera 推出 Object Capability Bounded Authority,试图将凭证与 AI Agent 工作负载隔离 wechat 这波杀疯了!旗舰级模型不限量、1个月视频额度免费领 bloomberg.com AI 抛售蔓延至信用市场,软银领跌亚洲美元债 dev.to 如何在专用 GPU 服务器上用 OpenAI 兼容 API 部署 LLM dev.to 审计 153 份 Claude Code 与 Codex 会话记录:User-Agent 与 URL 中的邮箱泄露 dev.to 你的 Agent Harness 应具备的 17 项能力 dev.to 离线 AI 记忆中 0.8 余弦阈值为何失效 dev.to Kimi K3.1 Pro 开放权重:自托管 2.8T 模型前的开发者清单
多元动态
登录 注册
行业动态 developers.cloudflare.com · @Cloudflare Developers

Cloudflare WAF:Rules 中新增 failed detections 字段

原文 我的收藏

Cloudflare 在 Rules 中新增 cf.appsec.request.failed_detections 字段,用于在安全检测报告失败时控制规则对请求的处理方式。该字段为检测 ID 数组,涵盖内容扫描、WAF 攻击评分、攻击特征检测、泄露凭据检测,以及针对 PII、提示注入、自定义主题和不安全主题的 AI prompt 检测。字段不改变检测本身行为,无失败时返回空数组,可用于区域与账户级自定义规则、速率限制规则及区域级请求头转换规则,所有套餐可用但需包含相应检测与规则功能。

AI推荐理由 Cloudflare 官方开发者文档更新,给出具体字段 cf.appsec.request.failed_detections 的语义、覆盖的检测类型(含 AI prompt 检测的 PII、提示注入、自定义与不安全主题)以及可用的规则类型和示例表达式,信息密度高、可验证,对使用 Cloudflare WAF 处理 AI 相关安全检测的开发者有直接落地价值;但属于增量功能说明,影响范围限于该平台用户。

62

正文

You can now use `cf.appsec.request.failed_detections` to control how your rules handle requests when a security detection reports a failure. The field is an `Array` of detection IDs that reports failures from content scanning, WAF attack score, attack signature detection, leaked credentials detection, and AI prompt detections for personally identifiable information (PII), prompt injection, custom topics, and unsafe topics. The field does not alter the existing behavior of detections. Use it in rules to choose how to handle requests with reported failures. When no failures are reported, the field returns `[]`. You can use it on all plans, but your plan must still include the detections and rule features you want to use. Supported rules: * Custom rules at the zone and account levels * Rate limiting rules at the zone and account levels * Request Header Transform Rules at the zone level Match any reported failure: ``` len(cf.appsec.request.failed_detections) gt 0 ``` Match a reported leaked credentials detection failure: ``` any(cf.appsec.request.failed_detections[*] eq "waf_credential_check") ``` For more information, refer to the [Failed detections field reference](https://developers.cloudflare.com/ruleset-engine/rules-language/fields/reference/cf.appsec.request.failed_detections/).

来源报道 · 1 篇 · 以下链接均前往原始媒体

Cloudflare Developers Cloudflare WAF:Rules 中新增 failed detections 字段 10-09 · 原文发布
← 返回精选动态 原文

更多内容