Skip to content

Classifiers

Detect sensitive content with built-in classifiers, custom rules, and decision models.

Classifiers detect matching content using built-in detectors or custom rules. In enforce mode, supported prompt checks block matches before dispatch.

Built-in and custom classifiers

Open Security > Control > Classifiers to search built-in detectors by category, enable or disable them for the organization, and test representative input. Custom classifiers can use RE2 patterns, whole-word keywords, or a selected model provider with a classification guideline. Reference them as custom.<name> in supported tool-argument and MCP argument rules.

The Classifiers page with four custom regex classifiers above the built-in classifier table, which has category, detection, prompt mode and status columns
Security > Control > Classifiers. Custom classifiers are listed first; one here records prompt matches in Monitor. Built-in detectors follow, filterable by category.
The New classifier dialog with a name, the Regex and keywords kind, a description, prompt checking set to Monitor, an RE2 pattern and keywords
New classifier. Choose the kind, set prompt checking, then add RE2 patterns (one per line) and comma-separated keywords.

Detector catalog and policy markers

The built-in catalog contains 185 detector classes covering credentials, payment and banking details, health and travel documents, contact and network information, and national identifiers across roughly forty countries. Checksum-backed classes validate the check digit before detecting or redacting a value.

MarkerSelects
secretCredential and key material
pii.highHigh-sensitivity personal information
national_id, health, financial, networkA detector group
pii.eu, pii.apac, pii.latam, pii.us, pii.ukRegional detectors
gdpr, hipaa, pci, ccpaCatalog groups associated with a compliance regime

The gateway's pii filter omits broad, shape-only detectors, such as phone, address, and IP patterns. pii-strict includes them; explicitly selecting one in a policy also enables it. The secrets filter targets credentials. prompt-injection, jailbreak, and exfiltration provide separate heuristic filters. These labels select checks; they do not establish regulatory compliance or guarantee that all sensitive content is detected.

In a policy's Model I/O editor, search for a marker or alias and select it from the catalog. Open its details to inspect the pattern, checksum validation, and group expansion. Unknown markers remain visible as ignored. Reference these markers in gateway input and output rules or supported tool-argument rules.

Decision models

Use a model classifier when the decision depends on meaning or intent. The model checks text against your guideline and returns a match or no match; the policy or prompt mode determines what happens next.

  1. Select New classifier > Kind > Model.
  2. Choose a Model provider and a model, or use the provider default.
  3. Write a Classification guideline describing what should and should not match. Save and test it with representative input.
The New classifier dialog with Kind set to Model, provider and model fields, a classification guideline, and the fail-closed option.
Configure a model to evaluate requests against your classification guideline.

Evaluation text is sent to the selected provider. Fail closed treats a provider error as a match, so Enforce blocks the prompt if the check fails.

Prompt modes and coverage

  • Off: keeps the classifier available for policies and tests without checking prompts.
  • Monitor: allows the prompt and records matches.
  • Enforce: rejects matching prompts before dispatch with 403 prompt_blocked.

Existing classifiers default to Off; disabled classifiers never check prompts. Checks cover platform chat sends, edits, regeneration, text attachments and invoked skills, caller-supplied agent run payloads, and supported local or managed HAL sends.

Raw terminal input, direct provider or gateway requests, autonomous scheduled runs, and binary or image attachment content are outside this prompt check. Custom classifiers are also unavailable to external gateway detectors and local offline policy evaluators. Failures to establish applicable rules return 503 prompt_classification_unavailable.

Classifiers check prompts. To give agents standing instructions that guide the model instead, use guardrails.

Access and decisions

PermissionWhat it lets a user do
policies:readRead and test classifiers
policies:writeCreate and edit classifiers
policies:deleteDelete classifiers

Catalog tests do not emit policy events. Recorded prompt decisions include classifier, mode, outcome, and target without prompt text or excerpts.