Cloudflare Intel
Synopsis
Enriches events by retrieving intelligence information from Cloudflare's API for domains, IP addresses, WHOIS records, and Autonomous System Numbers.
Schema
cloudflare:
- field: <ident>
- api_token: <string>
- account_id: <string>
- query_type: <enum>
- target_field: <ident>
- description: <text>
- if: <script>
- ignore_failure: <boolean>
- ignore_missing: <boolean>
- on_failure: <processor[]>
- on_success: <processor[]>
- tag: <string>
Configuration
Field | Required | Default | Description |
---|---|---|---|
field | N | "domain" | Field containing query value |
api_token | Y | - | Cloudflare API token |
account_id | Y | - | Cloudflare Account ID |
query_type | N | "whois" | Intelligence query type. Options: whois , ip , asn , domain |
target_field | N | field | Field to store API response |
description | N | - | Explanatory note |
if | N | - | Condition to run |
ignore_failure | N | false | Continue if API call fails |
ignore_missing | N | false | Continue if source field doesn't exist |
on_failure | N | - | See Handling Failures |
on_success | N | - | See Handling Success |
tag | N | - | Identifier |
Details
The processor is useful for threat intelligence, network analysis, and contextual enrichment. It uses Cloudflare's Intelligence API to retrieve detailed information about domains, IP addresses, WHOIS records, and Autonomous System Numbers (ASNs) to provide detailed network information.
Be aware of Cloudflare API rate limits.
Bear in mind, however, that private or local IP addresses may have limited intelligence, and ASN lookup accuracy depends on Cloudflare's database.
API calls may add latency to event processing, so Cloudflare API keys are cached for performance.
Available query types:
asn | Retrieve Autonomous System Number details |
domain | Retrieve domain-related intelligence |
ip | Get intelligence information for IPv4 and IPv6 addresses |
whois | Retrieve domain registration details |
Support for error handling, environment variables, and conditionals are also available.
API tokens must be managed securely. Also, ensure proper account access and permissions.
Examples
Basic
Retrieving WHOIS information... |
|
adds detailed domain registration details: |
|
IPs
Retrieving intelligence for an IP address... |
|
provides detailed IP intelligence: |
|
ASNs
Retrieving Autonomous System Number details... |
|
provides network-related information: |
|
Conditionals
Performing lookup only for high-threat domains... |
|
retrieves only the relevant information: |
|
Error Handling
Anticipating lookup failures... |
|
deals with errors gracefully: |
|