--- title: "Custom policies" slug: "custom-policies" updated: 2026-09-03T13:24:27Z published: 2026-09-08T19:11:50Z canonical: "docs.trellix.com/custom-policies" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.trellix.com/llms.txt > Use this file to discover all available pages before exploring further. # Custom policies Custom policies define specific xAgent configuration settings that you want to apply to one or more host sets in your environment. You can create and manage custom policies using the Web UI or the API. When creating a custom policy, you can select one or more policy categories. Each policy category allows you to manage and control a specific set of xAgent behaviors. For example, you can create a custom policy to manage Malware Protection for one group of host sets and you can create another custom policy, with different Malware Protection settings, to manage another group of hosts sets. Custom policies have a higher priority than the xAgent default policy. Therefore, the settings in a custom policy override the default settings for a specific policy category. For example, the Malware Protections settings in your custom policy override the Malware Protection default settings for the assigned host sets. Use the **Policies** page in the Web UI to create a new custom policy. See [Creating a Custom Policy](/docs/creating-a-custom-policy) for more information. You can also manually create custom policies using an API custom configuration channel. These custom policies override all other xAgent policies for the assigned host sets. See [Using API Custom Configuration Channels](/docs/using-api-custom-configuration-channels) for more information. ### Important Trellix recommends using the Web UI to create custom policies because you cannot change the priority level or host set assignment for a custom policy created using an API custom configuration channel. :