--- title: "Sample Expert Rule to protect Services" slug: "sample-expert-rule-to-protect-services-1" tags: ["Product Usage", "ENS 26.x", "Endpoint Security"] updated: 2026-09-22T08:00:34Z published: 2026-09-22T08:00:34Z canonical: "docs.trellix.com/sample-expert-rule-to-protect-services-1" stale: true --- > ## 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. # Sample Expert Rule to protect Services To write an expert rule to protect Windows Services ( Windows versions 8.0 and earlier only), you need to ensure that it follows the correct syntax. This rule type syntaxes are built based on the legacy Trellix Host IPS. > [!NOTE] > Note > > Exploit Prevention is not supported in the ARM architecture. Here is a sample Expert rule for services rule type that prevents deactivation of **Alerter** service: > [!WARNING] > Caution > > Expert Rule commands are case-sensitive. ```plaintext Rule { services { Include "Alerter" } application { Include "*"} user_name { Include "*" } directives services:stop } ``` To add more commands in Expert rules, see [Learn Expert Rules commands for Buffer overflow, Illegal API use and Services](/v1/docs/legacy-mcafee-host-ips-rule-structure-1). ### Sections of Expert Rule in detail The above Expert rule is described here: | ```plaintext Rule ``` | Formulates the execution of the defined commands. | | --- | --- | | ```plaintext services { Include "Alerter" } ``` | Indicates that the rule applies to the service with name **Alerter**. If the rule applies to multiple services, add them in this section in different lines. | | ```plaintext application {Include "*"} ``` | Indicates that this rule is valid for all processes. To limit the rule to specific processes, list the pathname to each process. | | ```plaintext user_name {Include "*"} ``` | Indicates that this rule is valid for all users (or more precisely, the security context in which a process runs). To limit the rule to specific user contexts, list them using the form Local/user or Domain/user. | | ```plaintext directives services:stop ``` | Indicates that this rule applies to deactivation of a service. |