--- title: "Using the Include and Exclude keywords" slug: "using-the-include-and-exclude-keywords" tags: ["Product Usage", "ENS 10.7.x", "Endpoint Security"] updated: 2026-09-14T20:39:03Z published: 2026-09-14T20:39:03Z canonical: "docs.trellix.com/using-the-include-and-exclude-keywords" 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. # Using the Include and Exclude keywords When you select a section value as `Include`, the section works on the value indicated. When you select a section value as `Exclude`, the section works on all values except the one indicated. > [!NOTE] > Note > > Exploit Prevention is not supported in the ARM architecture. The keywords `Include` and `Exclude` are supported for all sections except `directives` and `attributes`. Enclose the `Include` and `Exclude` keywords in brackets { ... }. > [!NOTE] > Note > > For a standard subrule, use a single backslash in file paths. The standard subrule translates the single slashes to required double slashes. For a subrule in an Expert Rule, use double backslashes in file paths. The expert subrule performs no translation. For example, to monitor all text files in C:\test\: ``` files { Include C:\\test\\*.txt } ``` To monitor all files except the text files in C:\test\: ``` files { Exclude C:\\test\\*.txt } ``` Combine keywords to exclude values from a set of included values. For example, to monitor all text files in folder C:\test\ except file abc.txt: ``` files { Include C:\\test\\*.txt } files { Exclude C:\\test\\abc.txt } ``` Each time you add the same section with the same keyword, you add an operation. For example, to monitor any text file in folder C:\test\ whose name starts with the string “abc”: ``` files { Include C:\\test\\*.txt } files { Include C:\\test\\abc* } ``` `Exclude` takes precedence over `Include`. For example: - If a single subrule includes a particular user marketing\jjohns and excludes the same user marketing\jjohns, the signature doesn't trigger even when the user marketing\jjohns performs an action that triggers the signature. - If a subrule includes all users but excludes the particular user marketing\jjohns, the signature triggers if the user isn't marketing\jjohns. - If a subrule includes user marketing\* but excludes marketing\jjohns, the signature triggers only when the user is marketing\anyone, unless the user is marketing\jjohns, in which case it doesn't trigger.