Prerequisites
The following are required to use a Policy.- Runtime Security deployed in Hybrid mode. See Deploy AI Runtime Security using Helm.
- API key and secret. For the API key, the Policy permission must be set to Read. See API Permission Related to Products.
Create a Policy
- In the Console, go to Runtime Security > Policy.
- Click + Add Policy. This is in the upper-right, next to the search field.
- Add a policy name and an optional description, then click Next.
- Enable or disable the detection categories for the policy.
-
Most enabled detection categories allow you to select an action.
- Allow - Allows the input or output and sends an alert on the detection to the Console.
- Block - Blocks the input or output and sends an alert on the detection to the Console.
- Redact - Redacts the input or output and sends an alert on the detection to the Console. This replaces the redacted text with [REDACTED] or the information type (example: [PHONE NUMBER]).
- Click Publish.
Edit a Policy
- In the Console, go to Runtime Security > Policy.
- Select the policy you want to edit from the list on the right-hand side.
- Click Edit, then select Edit.
- Make any changes to the policy.
- Click Save.
Delete a Policy
- In the Console, go to Runtime Security > Policy.
- Select the policy you want to edit from the list on the right-hand side.
- Click Edit, then select Delete. A message displays, asking you to confirm deleting the policy.
- Click Delete.
Detection Category Descriptions
Prompt Injection - Detects an attempt to manipulate an LLM into executing instructions against its intended purpose.-
Input
- Allow - Allows the input and sends an alert to the Console.
- Block - Blocks the input and sends an alert to the Console.
-
Detect by Performing
- Quick Scan - Scans the full input. Doesn’t do a second scan with non-alphanumeric characters stripped.
- Full Scan - Scans the full input and performs a second scan with non-alphanumeric characters stripped.
-
Overrides (click Show Overrides to expand the section)
- Trusted Strings - Strings that will be allowed even if they match injection signatures. All entries are case-insensitive and will be ignored by the Prompt Injection detector.
- Forbidden Strings - Strings that should always be blocked, even if not detected by the scanner. All entries are case-insensitive.
-
Input
- Allow - Allows the input and sends an alert to the Console.
- Block - Blocks the input and sends an alert to the Console.
-
Set Threshold
- DoS Threshold - Determines the number of tokens a requestor may pass before they are considered adversarial. The default is 4096 tokens.
-
Input
- Allow - Allows the input and sends an alert to the Console.
- Block - Blocks the input and sends an alert to the Console.
-
Redact - Redacts the input and sends an alert to the Console.
-
Replace redacted text with - Determines if redacted text is replaced with the term [REDACTED] or a label of the information type.
- Example [INFO TYPE] - Call me [PHONE NUMBER]
- Example [REDACTED] - Call me [REDACTED]
-
Replace redacted text with - Determines if redacted text is replaced with the term [REDACTED] or a label of the information type.
-
Output
- Allow - Allows the output and sends an alert to the Console.
-
Block - Blocks the output and sends an alert to the Console.
-Redact - Redacts the output and sends an alert to the Console.
-
Replace redacted text with - Determines if redacted text is replaced with the term [REDACTED] or a label of the information type.
- Example [INFO TYPE] - Call me [PHONE NUMBER]
- Example [REDACTED] - Call me [REDACTED]
-
Replace redacted text with - Determines if redacted text is replaced with the term [REDACTED] or a label of the information type.
-
Overrides (click Show Overrides to expand the section)
- Entity Types to Detect - Select which built-in PII entity types to detect. A green checkbox means the type is selected and will be detected. An empty checkbox means the type is unselected and will be ignored.
- Trusted Strings - Define specific values that should bypass detection, even if they match a selected entity type (above).
- Custom Entity Types - Define new entity types using regular expressions (regex).
-
Input
- Allow - Allows the input and sends an alert to the Console.
- Block - Blocks the input and sends an alert to the Console.
-
Output
- Allow - Allows the output and sends an alert to the Console.
- Block - Blocks the output and sends an alert to the Console.
-
Output
- Allow - Allows the output and sends an alert to the Console.
- Block - Blocks the output and sends an alert to the Console.

