跳转到内容
搜索文档

防火墙事件

最后更新 查看 MarkdownAgent 设置

以下描述详细介绍了 firewall_events 的可用字段。

AISecurityInjectionScore

Type: int

由 AI Security 确定的请求中发生提示注入(prompt injection)攻击的可能性的分数。

AISecurityPIICategories

Type: array[string]

由 AI Security 在请求中检测到的 PII 类别列表。

AISecurityTokenCount

Type: int

由 AI Security 统计的请求中的标记(token)数。

AISecurityUnsafeTopicCategories

Type: array[string]

由 AI Security 在请求中检测到的不安全主题类别列表。

Action

Type: string

Cloudflare 防火墙对该请求采取的第一类操作的代码。
可能的操作有 unknown | allow | block | challenge | jschallenge | log | connectionclose | challengesolved | challengebypassed | jschallengesolved | jschallengebypassed | bypass | managedchallenge | managedchallengenoninteractivesolved | managedchallengeinteractivesolved | managedchallengebypassed | precursorinterstitialpageissued | precursorinterstitialpagebypassed | precursorinterstitialpagesolved

ClientASN

Type: int

访问者的 ASN。

ClientASNDescription

Type: string

作为字符串的访问者 ASN。

ClientCountry

Type: string

请求来源国家/地区。

ClientIP

Type: string

访问者的 IP 地址(IPv4 或 IPv6)。

ClientIPClass

Type: string

访问者 IP 地址的分类,可能的值有:unknown | badHost | searchEngine | allowlist | monitoringService | noRecord | scan | tor

ClientRefererHost

Type: string

Referer 主机。

ClientRefererPath

Type: string

访问者请求的 Referer 路径。

ClientRefererQuery

Type: string

访问者请求的 Referer 查询字符串。

ClientRefererScheme

Type: string

访问者请求的 Referer URL 方案。

ClientRequestHost

Type: string

访问者请求的 HTTP 主机名。

ClientRequestMethod

Type: string

访问者使用的 HTTP 方法。

ClientRequestPath

Type: string

访问者请求的路径。

ClientRequestProtocol

Type: string

访问者请求的 HTTP 协议版本。

ClientRequestQuery

Type: string

访问者请求的查询字符串。

ClientRequestScheme

Type: string

访问者请求的 URL 方案。

ClientRequestUserAgent

Type: string

访问者的 User-Agent 字符串。

ContentScanObjResults

Type: array[string]

内容扫描结果列表。

ContentScanObjSizes

Type: array[int]

内容对象大小列表。

ContentScanObjTypes

Type: array[string]

内容类型列表。

Datetime

Type: int or string

事件在边缘发生时的日期和时间。要指定时间戳格式,请参阅 Output types

Description

Type: string

此请求触发的规则的描述。

EdgeColoCode

Type: string

服务此请求的 Cloudflare 数据中心的机场代码。

EdgeResponseStatus

Type: int

返回给浏览器的 HTTP 响应状态代码。

FirewallForAIInjectionScore (deprecated)

Type: int

由 Firewall for AI 确定的请求中发生提示注入(prompt injection)攻击的可能性的分数。已弃用:请改用 AISecurityInjectionScore。

FirewallForAIPIICategories (deprecated)

Type: array[string]

由 Firewall for AI 在请求中检测到的 PII 类别列表。已弃用:请改用 AISecurityPIICategories。

FirewallForAITokenCount (deprecated)

Type: int

由 Firewall for AI 统计的请求中的标记(token)数。已弃用:请改用 AISecurityTokenCount。

FirewallForAIUnsafeTopicCategories (deprecated)

Type: array[string]

由 Firewall for AI 在请求中检测到的不安全主题类别列表。已弃用:请改用 AISecurityUnsafeTopicCategories。

FraudUserID

Type: string

欺诈检测(Fraud Detection)系统为每个用户生成的唯一标识符,在由欺诈事件类型决定的任何操作期间生成。

Kind

Type: string

事件种类,目前唯一可能的值为:firewall

LeakedCredentialCheckResult

Type: string

凭据泄露的检查结果。
可能的结果有:password_leaked | username_and_password_leaked | username_password_similar | username_leaked | clean

MatchIndex

Type: int

链中的规则匹配索引。最后一个匹配的规则匹配索引为 0。如果在最后一个规则之前有另一个规则匹配,其匹配索引将为 1。任何其他匹配规则也是如此,其 MatchIndex 值将分别为 23 等。

Metadata

Type: object

其他特定于产品的信息。Metadata 以键:值(key:value)对形式组织。键和值格式可能因 Cloudflare 安全产品而异,并且可能会随着时间的推移而改变。

OriginResponseStatus

Type: int

返回给浏览器的 HTTP 源站响应状态代码。

OriginatorRayID

Type: string

发布 challenge/jschallenge 的请求的 RayID。

RayID

Type: string

请求的 RayID。

Ref

Type: string

用户为该请求触发的规则自定义的标识符。使用 ref 可以为您的规则单独贴上标签,与 Cloudflare 提供的 RuleID 并列。您可以通过 Rulesets API 为某些安全产品设置 ref。

RuleID

Type: string

此请求触发的特定于 Cloudflare 安全产品的 RuleID。

Source

Type: string

此请求触发的 Cloudflare 安全产品。
可能的来源有 unknown | asn | country | ip | iprange | securitylevel | zonelockdown | waf | firewallrules | uablock | ratelimit | bic | hot | l7ddos | validation | botfight | apishield | botmanagement | dlp | firewallmanaged | firewallcustom | apishieldschemavalidation | apishieldtokenvalidation | apishieldsequencemitigation

ZoneName

Type: string

区域的易读名称(例如 'cloudflare.com')。

这篇文档对您有帮助吗?