Prerequisites
- The Policy permission set to Read to view rules. To create, edit, duplicate, or delete rules, you need the Policy permission set to Write. See Permissions for Products and Features.
Rule types
View rules
- In the Console, go to Runtime Security > Policy.
- Select the Rules tab.
- Policy Packs using this rule: links to each Policy Pack that includes the rule, with the action that pack takes when the rule matches.
- Expression: the CEL expression the rule evaluates.
- Who created and last modified the rule, and when.
Search and filter rules
- Use Search Rules to find a rule by name.
- Filter by rule author: All, HiddenLayer, or Custom.
- Use the filter menu to narrow the list by:
- Created: a creation date range.
- Creator: only rules Created by me.
- Use the Rule Packs list to show only the rules in a rule pack. Rule packs are curated groups of HiddenLayer rules that you can add to a Policy Pack in one step, organized By category or By framework.
- Use the sort menu to sort rules by name.
Rule packs contain only HiddenLayer rules, and only custom rules have a creator. Because of this, some filters clear each other. For example, selecting a rule pack clears the Custom and Created by me filters.
Create a rule
- In the Console, go to Runtime Security > Policy, then select the Rules tab.
- Click Add Rule.
- Enter the rule details.
- Name: Required. Up to 64 characters. Rule names must be unique.
- Description: Optional. Describe what the rule detects, up to 500 characters.
- Threat Level: Critical, High, Medium, or Low. The default is Medium.
- Expression (CEL): Required. The CEL expression the rule evaluates. The expression is validated as you type, and you can’t create the rule while it has errors.
- Optionally, click Import from Saved Query to use the expression from a saved Investigate query. Editing the imported expression doesn’t change the original saved query.
- Click Create.
Manage rules
Open the actions menu on a rule card to manage the rule.Edit a rule
You can only edit custom rules.- Open the actions menu on the rule card and select Edit Rule.
- Make your changes.
- Click Save.
Duplicate a rule
You can duplicate both HiddenLayer and custom rules. The copy is a custom rule that you can edit.- Open the actions menu on the rule card and select Duplicate Rule.
- The new rule is named Copy of followed by the original name. Change the name and other details as needed.
- Click Create.
Search by rule
Open the actions menu on the rule card and select Search by Rule. Runtime Security Investigate opens and shows the interactions where the rule was detected.Delete a rule
You can only delete custom rules.- Open the actions menu on the rule card and select Delete Rule.
- Confirm the deletion.

