System Guardrails
The three built-in protection policies, explained
Every new project gets three system policies. They are active (source SYSTEM, scope "All") and protect from the first request.
The Three System Policies
1. "PII Detection"
Detects: personal data in the prompt (email, phone number, credit card number, social security number, IBAN). Action: Anonymize (ANONYMIZE), severity HIGH. Rule-based (regex), no LLM.
2. Prompt Injection Guard
Detects: attempts to override the system instruction, inject a new persona, or bypass safety guardrails. Action: Block (BLOCK), severity CRITICAL. The decision is made by the gateway's specialist Prompt-Guard floor; action and severity are fixed in the UI.
3. Secret Leak Prevention
Detects: credentials in the prompt: API keys, bearer and basic tokens, private keys, AWS access keys, database connection strings, and values labeled as a password. Action: Anonymize (ANONYMIZE), severity CRITICAL. Rule-based (regex).
A toxicity policy is no longer shipped; its model is turned off.
Customizing System Policies
- Navigate to Guardrails. The system policies appear among the project's policies.
- Open a system policy.
- You can adjust its description and scope, and deactivate the policy. The Neural Instruction is not an input field and cannot be edited.
- If a system policy is missing, it is restored automatically.