Firewall docsPolicy & detection

Detection rules

Where policies decide who may reach what, rules inspect the content of a request and response. They catch the things a grant cannot express: a secret pasted into a prompt, a Social Security number in a reply, a prompt-injection payload buried in a web page.

The Rules screen listing managed and custom detection rules.
Rules. Managed detection packs plus any custom rules you author, each with an effective action and recent match count.

Managed and custom

  • Managed rules ship as versioned packs — API keys and secrets, PII (SSNs, credit cards), prompt injection, and more. They update as detections improve; you choose which are active and whether each blocks or only monitors.
  • Custom rules express business-specific conditions scoped by application, role, built-in data type, and keyword lists. Arbitrary custom regular expressions are not supported.

Monitor vs. block, and how conflicts resolve

Every rule has an action. monitor records a match and lets the request through; block stops it. When more than one rule matches, lower numeric priority takes precedence. At equal priority, block wins over monitor; if priority and action also tie, lexical rule ID order makes the result deterministic.

New rules can be drafted from a natural-language instruction, but — as with policies — an AI-proposed rule is a draft until a human reviews and activates it.

Type to search the documentation.