WAF AI Profiles — AI scoring profiles
WAF AI Profiles are the AI stage of the WAF: a set of AI/scoring rules that detect attacks missed by fixed signature rules. You group AI rules into a profile, then attach the profile to a domain (the AI profile field in the WAF tab). You can also override the behavior of a specific AI rule on each domain.
Use it to: tighten or relax specific AI rules for a single domain without touching the whole ruleset. Example: an AI rule keeps blocking your search page by mistake. Instead of turning off the WAF, create an override that sets that rule to monitor for this domain only.
AI Profiles run last, after managed rules, platform rules and Custom Rules. See the WAF page for the order of evaluation.
Before you start
- WAF is enabled for the organization (otherwise WAF actions return 403; see the WAF page).
- WAF is enabled for the domain and an AI profile is attached in the AI profile field.
How to configure
- Create or edit a profile in the WAF area (AI profile section): set a name (unique within the organization), choose the enabled rule IDs, and optionally turn on whitelist mode and set score overrides.
- Attach the profile to a domain: go to Domains → select a domain → waf tab and set AI profile to the profile you created.
- Per-domain override (optional): in the waf → Advanced Rules tab, for a specific AI rule, choose an action (dropdown: Enable =
block/ Monitor =monitor/ Disable =off) and/or a score override, and add a note if needed. - Click Save and wait a few seconds for the change to sync.
Configuration fields
Per-rule override (per domain):
| Field | Description | Values | Notes |
|---|---|---|---|
| Action | Overrides the AI rule's behavior | Console: Enable (block) / Monitor (monitor) / Disable (off); the API also accepts shadow | shadow behaves exactly like monitor, and the console shows it as Monitor (with a "shadow" label). Saving again from the console writes it as monitor. off = turn the rule off for the domain |
| Score override | Overrides the score the rule contributes | 0–255 | Higher = the rule weighs more in the total score |
| Note | Reason for the override | ≤1024 characters | Recommended, so you know later why it was added |
Override limit: at most 500 overrides per domain. Going over returns 403.
Profile (organization level):
| Field | Description | Values | Notes |
|---|---|---|---|
| Name | Profile name | Required, unique within the organization | Duplicate name → 409 |
| Whitelist mode | Run only the enabled rules | On/off | When on, it requires at least one enabled_rule_ids entry, and the list must include every AI rule marked critical. If any are missing → 400 with the list of dropped rules |
| Enabled rule IDs | List of enabled AI rules | ≤8192 entries | — |
| Score overrides | Per-rule score overrides | ≤8192 entries, each value 0–255 | — |
Built-in profiles are immutable and cannot be edited.
Configuration examples
Example 1 — Downgrade an AI rule that causes false positives to observe only.
- Override rule
AI-XXX: action Monitor (monitor), notefalse positive on /search. - Result: the rule no longer blocks legitimate visitors on this domain; it only logs so you can monitor it.
- How to verify: repeat a request that was previously blocked → no more 403; the Events tab shows the rule in observe mode.
Example 2 — Turn off an AI rule completely for an internal domain.
- Override rule
AI-YYY: actionoff. - Result: rule
AI-YYYdoes not apply to this domain (it still applies to other domains that use the same profile without an override). - How to verify: a request matching the
AI-YYYpattern is not handled by that rule.
Example 3 — A "strict" profile that runs only a few rules (whitelist mode).
- Create profile
strict-api: turn on whitelist mode and setenabled_rule_idsto the list of rules you trust for APIs. - Attach
strict-apito the API domain. - Result: only the rules in the list run (other rules are excluded), which reduces unwanted false positives.
- How to verify: Events shows only rules from the whitelist firing.
Order of evaluation
- AI Profile is the last WAF stage: it runs after managed rules, platform rules and Custom Rules.
- A per-domain override takes precedence over the profile configuration for that rule (on that domain).
- In terms of letting traffic through,
off>monitor/shadow>block:offturns the rule off completely,monitor/shadowonly observe, andblockblocks.
Troubleshooting
| Symptom | Cause | Fix |
|---|---|---|
| Creating a profile returns 409 | Duplicate name within the organization | Use a different name |
| Turning on whitelist mode returns an error | No enabled_rule_ids yet, or the list is missing critical AI rules ("would drop N critical AI rule(s)") | Add at least one rule, or add the critical rules listed in the error message, then save |
| Adding an override returns 403 | The limit of 500 overrides per domain has been reached | Remove some old overrides |
| A built-in profile cannot be edited | Built-in profiles are immutable | Create a new profile (copy the idea) instead of editing the built-in one |
FAQ
- Is
shadowdifferent frommonitor? No.shadow==monitor: both only observe and log, without blocking. The dropdown shows only Monitor;shadowcan only be sent through the API. - Does an override on one domain affect other domains? No. Overrides are per domain; only the profile is shared.
- Can I write my own AI rules? No. You can only enable, disable or override the existing AI rules.
- How do I make one AI rule count more or less? Use the per-rule score override.