The new docs.trellix.com offers a modernized UI and AI-powered features like conversational searches. Content is currently available only in English. Other languages will be available in mid-October 2026. We hope you enjoy the new experience.

Using the Include and Exclude keywords

Prev Next

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

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

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.