Next, we will create an Xray security policy that sets the types of security violations to alert on.
Click on Create a Policy.
Give the policy a name like default-security and a description.
Click on New Rule at the right.
Give the rule a name like high-security-rule.
For Minimal Severity, specify High.
Click Save for the new rule.
Click Create to create the new policy.
Policies define security and license compliance behavior specifications. Policies enable you to create a set of rules, in which each rule defines a license/security criteria, with a corresponding set of automatic actions according to your needs. Policies are enforced when applying them to Watches. A policy is contextless, which means that it only defines what to enforce and not what to enforce it on.