T
traeai
Sign in
返回首页
The Cloudflare Blog

Turning Cloudflare’s threat indicators into real-time WAF rules

8.5Score
Turning Cloudflare’s threat indicators into real-time WAF rules

TL;DR · AI Summary

Cloudflare 将威胁情报实时集成到 WAF 规则中,实现自动化防护,提升安全响应效率。

Key Takeaways

  • Cloudflare 新增功能可将威胁情报实时转换为 WAF 规则,实现自动化防护。
  • 该功能支持基于威胁行为人名称、行业或国家过滤、攻击类型等条件进行实时检测。
  • 该功能基于始终开启的检测框架,消除传统日志与阻断之间的权衡。

Outline

Jump quickly between sections.

  1. Cloudflare 的威胁情报平台提供了实时的全球威胁洞察,但过去需要手动配置规则进行防护。

  2. Cloudflare 推出新功能,将威胁情报直接集成到 WAF 规则中,实现自动化防护。

  3. 通过填充请求早期的专用字段,WAF 可基于威胁行为人、攻击类型等条件进行筛选。

  4. 该功能基于始终开启的检测框架,消除传统日志与阻断之间的权衡。

  5. 该功能执行延迟极低,未来将扩展到 JA3 指纹和基于域名的匹配。

Mindmap

See how the topics connect at a glance.

查看大纲文本(无障碍 / 无 JS 友好)
  • Cloudflare 实时威胁情报集成
    • 新功能
      • 自动化防护
      • 实时检测机制
      • 基于威胁行为人、攻击类型等条件
    • 始终开启的检测框架
      • 消除日志与阻断的权衡
      • 高性能低延迟
    • 未来扩展
      • JA3 指纹匹配
      • 基于域名的匹配

Highlights

Key sentences worth saving and sharing.

  • Cloudflare 推出新功能,将威胁情报直接集成到 WAF 规则中,实现自动化防护。

    第 2 段

    ⬇︎ 下载 PNG𝕏 分享到 X
  • 该功能支持基于威胁行为人名称、行业或国家过滤、攻击类型等条件进行实时检测。

    第 3 段

    ⬇︎ 下载 PNG𝕏 分享到 X
  • 该功能基于始终开启的检测框架,消除传统日志与阻断之间的权衡。

    第 4 段

    ⬇︎ 下载 PNG𝕏 分享到 X
#Cloudflare#WAF#威胁情报#网络安全
Open original article

Turning Cloudflare’s threat indicators into real-time WAF rules

2026-06-08

  • Alexandra Moraru
  • Harsh Saxena
  • Georgie Yoxall
  • Brian Seel

5 min read

Cloudflare’s Threat Events provides security analysts with a window into the global threat landscape. The platform offers a peek into the immense traffic that Cloudflare processes every day, so you can see in real time which IPs are attacking specific industries or which threat actors are trending globally. However, translating that visibility into active mitigation has often been a manual, reactive process.

Security teams have faced a recurring frustration: knowing that certain IP addresses were associated with specific threat actors (like Tycoon 2FA or RaccoonO365 ) or had been seen targeting their specific industry in other regions, but they couldn't easily automate the blocking of these high-risk IPs within their own WAF unless they manually configured the rules.Â

We are excited to announce a new integration that brings Cloudflare’s vast threat intelligence directly into your WAF engine: you can now write proactive rules using live intelligence data . This means you can add more intelligence context to protect your application against known bad actors — before they even attempt to touch your infrastructure.

By populating specialized fields during the early stages of a request, the WAF can now screen traffic based on:

  • Who is attacking by matching specific threat actor names
  • Who they are targeting via the industry or country filters to see who the IP has targeted in the past
  • What type of attack using enriched threat context, filtering by attack type (DDoS, WAF, cybercrime, etc.) and the timeframe it was last seen

Always-on detection

This new capability is built on the same always-on detection framework we recently introduced for Attack Signature Detection, a system that identifies common attack patterns in real time without requiring pre-configured rules. By separating detection from mitigation, we ensure that threat intelligence is constantly running in the background, enriching your HTTP request analytics with insightful threat metadata before you even decide to take an action.

The primary advantage of an "always-on" model is the elimination of the traditional "log vs. block" trade-off: visibility in log mode, or protection in block mode. That’s because when a rule blocks a request, you lose visibility into how other signatures would have assessed it — insight that could have helped you strengthen your defenses.

If you have a Cloudforce One subscription , these insights appear in your analytics automatically. You can see which threat actors are hitting your site and which industries those IPs usually target, allowing you to verify traffic patterns before "flipping the switch" to block.

These detections execute with negligible latency, ensuring your performance remains lightning-fast while providing the high-confidence data needed to build robust security policies. While this initial release focuses on IP-based matching, we are already looking toward extending these capabilities to JA3 fingerprints and domain-based matching. This will allow you to block malicious traffic even when attackers rotate IPs, by identifying the unique software signatures or malicious destination links they use in their payloads.

New WAF fields

To make this possible, we've exposed the following specific signals directly to the WAF engine:

Field

Description

cf.intel.ip.attacker_names

Names of known threat groups (e.g., CRAVENFLEA ).

cf.intel.ip.target_industries

Industries targeted by this IP (e.g., Cryptocurrency , Automotive ).

cf.intel.ip.attacker_countries

The source country of the threat event.

cf.intel.ip.target_countries

The countries targeted by the threat event.

cf.intel.ip.datasets

The source feed providing the data (e.g., ddos , waf ).

Example rule expressions

Because a single IP address could be associated with multiple threat actors or targeted industries simultaneously, these fields are represented as arrays. We use the any() function and [*] wildcard to check whether any value within that threat profile matches your criteria:

  • Block known DDoS participants targeting your region: any(cf.intel.ip.target_countries[*] == "FR") and any(cf.intel.ip.datasets[*] == "ddos")
  • Protect against specific threat actors targeting the Finance sector: any(cf.intel.ip.target_industries[*] == "Banking & Financial Services") and any(cf.intel.ip.attacker_names[*] == "BLACKBASTA")
  • Broad protection against specific high-risk origin countries: any(cf.intel.ip.attacker_countries[*] == "IR")

How to use Threat Events data in your workflows

Whether you prefer a UI-driven approach or Infrastructure as Code , these fields are integrated into your existing workflows.

The WAF rule builder (API & Terraform)

For teams that prefer Infrastructure as Code, the new cf.intel fields are fully integrated into the WAF rule builder for WAF custom rules and rate limiting . You can write complex expressions using the same syntax you use today. Because these are standard WAF fields, they are fully supported via the Cloudflare API and Terraform, allowing you to automate threat blocking across your selected domains or even on your whole account.

New fields added to the WAF rule builder to allow users to choose the relevant configuration based on the Threat Events indicators.Â

Visibility in Security Analytics

Deployment is only half the battle. All matches triggered by these threat intelligence fields are logged in Security Analytics . You can drill down into your traffic to see exactly which rule was triggered and which specific indicator matched. These enriched logs allow for faster auditing and postmortem analysis when a rule triggers.

Threat event matches surface in Security Analytics, with full context and a one-click option to create a custom security rule.

One-click rule from the Threat Events dashboard

If you are already using the Threat Intelligence Dashboard to investigate trends, you don't have to copy and paste IP lists. You can create Saved Views based on your specific filters, such as "IPs seen attacking the Financial sector in the last seven days." With a single click, you can export these filters directly into a WAF rule.

Saved Views now allow users to easily create WAF rules to match the saved view configuration.Â

Global intelligence across our network

Visibility and ease of use are only possible if the underlying engine is fast. How do we handle millions of threat indicators without slowing down your traffic?

These threat intelligence datasets are compressed into a high-performance format and distributed to every single Cloudflare data center globally. When a request hits our network, the Cloudflare WAF performs an O(1) constant-time lookup against these local datasets. This ensures that whether we are checking against ten indicators or ten million, the latency overhead remains effectively zero (measured in microseconds).

Because an IP can be associated with multiple threat vectors, our engine doesn't stop at the first match. It evaluates the set of all signals associated with that IP simultaneously. This ensures that a rule looking for "Attacker = RU" AND "Target Industry = Banking" will trigger correctly by evaluating the intersection of these attributes in a single pass, providing maximum coverage against multi-vector actors without increasing computational complexity.

Ready to get started?

This feature is available today for customers with any active Cloudforce One subscription :

  • Cloudforce One Essentials allows customers to access the default datasets in Threat Events, search for indicators, and conduct threat-hunting investigations
  • Cloudforce One Advantage allows customers to access our Threat Intelligence Analyst custom insights via requests for information
  • Cloudforce One Elite — our most complete package — includes brand protection, a high number of requests for information, and access to all Threat Events datasets

Ready to turn global insights into local defense? Head over to Threat Events or the WAF section of your Cloudflare Dashboard to start building your first Threat Intel rule, or contact your account team to learn more about subscribing to Cloudforce One.

[if astro]>server-island-start<![endif]

Security

WAF

Threat Intelligence

Cloudforce One

Product News

AI may generate inaccurate information. Please verify important content.