cf.waf.content_scan.obj_results
cf.waf.content_scan.obj_resultsArray<String>扫描结果的数组,按请求中检测到内容对象的顺序排列。
可能的值为:clean、suspicious、infected 和 not scanned。
需要启用了恶意上传检测的 Cloudflare Enterprise 计划。
用法示例:
# Check if requests to a specific endpoint contain any suspicious or infected content objects
any(cf.waf.content_scan.obj_results[*] in {"suspicious" "infected"}) and http.request.uri.path eq "/upload"类别:
- Request