---
title: cf.llm.prompt.injection_score · Cloudflare Ruleset Engine docs
description: A score from 1–99 that represents the likelihood that the LLM
  prompt in the request is trying to perform a prompt injection attack.
chatbotDeprioritize: false
source_url:
  html: https://developers.cloudflare.com/ruleset-engine/rules-language/fields/reference/cf.llm.prompt.injection_score/
  md: https://developers.cloudflare.com/ruleset-engine/rules-language/fields/reference/cf.llm.prompt.injection_score/index.md
---

# cf.llm.prompt.injection\_score

`cf.llm.prompt.injection_score` Number

A score from 1–99 that represents the likelihood that the LLM prompt in the request is trying to perform a prompt injection attack.

A low score (for example, below `20`) indicates that there is a high probability that the LLM prompt in the request is trying to perform a prompt injection attack.

The special score `100` indicates that Cloudflare did not score the request.

Requires a Cloudflare Enterprise plan. You must also enable [Firewall for AI](https://developers.cloudflare.com/waf/detections/firewall-for-ai/).

Categories:

* Request
