// AI Platform Drift

Cloudflare AI Security prompt logging now uses WAF custom rules

Cloudflare developer changelog · published 2026-11-24 22:31 UTC
ACTION NEEDED Migrate SecurityAPI
WHAT CHANGEDCloudflare replaced the AI Security Log Mode Ruleset with a new workflow: configure payload logging and create a WAF custom rule referencing a field with the cf.llm.prompt prefix. When the rule matches, payload logging stores the extracted prompt; if no prompt is extracted, it stores the full request body.
WHY IT MATTERSExisting prompt logging configurations using the AI Security Log Mode Ruleset will stop working. Teams relying on prompt logs for security analysis, compliance, or debugging will lose visibility unless they migrate to the new WAF custom rule workflow.
WHAT TO DOAudit current AI Security Log Mode Ruleset configurations. Replace them with WAF custom rules that reference cf.llm.prompt fields and enable payload logging. Test that prompt extraction and fallback to full request body logging work as expected.
Model-reported confidence 85% (not measured accuracy) Primary source ↗ Summary drafted by an AI model and checked by RADAR's rules
Show the reasoning — raw diff, triage verdict, confidence
RAW DIFF
+## WAF - Updated prompt logging for AI Security for Apps
+https://developers.cloudflare.com/changelog/post/2026-11-24-ai-security-prompt-logging/
+Tue, 24 Nov 2026 00:00:00 GMT
+
+To log prompt content for AI Security for Apps, configure payload logging and use a WAF custom rule that references a field with the cf.llm.prompt prefix.
+When a custom rule matches, payload logging stores the extracted prompt. If no prompt is extracted and analysis falls back to the full request body, payload logging stores the full request body.
+This workflow replaces the previous AI Security Log Mode Ruleset procedure. For more information, refer to Log prompts for matching rules.
HOW IT WAS JUDGED
Triage signals below are model-reported assertions, preserved verbatim; they are not independent arithmetic verification.
triage verdictMaterial (MATERIAL) at 0.85, needed 0.5
triage reasoningBreaking change to how teams configure prompt logging for AI Security; prior workflow is deprecated.
signalsworkflow change: new procedure replaces previous procedure · security/logging feature: prompt logging configuration method updated · integration change: WAF custom rule + payload logging replaces prior AI Security Log Mode Ruleset · future date: 2026-11-24
suppression—
triage modelanthropic/claude-haiku-4.5 ($0.00000)
writer modelanthropic/claude-sonnet-4.5 ($0.00000)