Configuring Behavior Detection in the command line
You can manage application Behavior Detection in the operating system via the command line by using the Behavior_Detection predefined task.
The Behavior Detection task runs by default. You can start and stop the task manually.
You can configure Behavior Detection by editing the settings of the Behavior Detection predefined task.
Behavior Detection task setting
Setting
Description
Values
TaskMode
Action performed by the application when malicious activity is detected in the operating system.
Block (default value) – terminate the process of the application performing malicious activity.
Notify – do not terminate the process performing malicious activity; only log detection of malicious activity in the event log.
UseTrustedPrograms
Excluding processes from scans.
Yes – do not scan the activity of the indicated processes.
No (default value) – scan all processes.
The [TrustedPrograms.item_#] section contains processes that are excluded from scans. Kaspersky Endpoint Security does not monitor the activity of the specified processes.
ProgramPath
Path to excluded process.
<full path to process> – Do not scan the process in the indicated local directory. You can use masks to specify the path.
You can use the * (asterisk) character to create a file or directory name mask.
You can indicate a single * character to represent any set of characters (including an empty set) preceding the / character in the file or directory name. For example, /dir/*/file or /dir/*/*/file.
You can indicate two consecutive * characters to represent any set of characters (including an empty set and the / character) in the file or directory name. For example, /dir/**/file*/ or /dir/file**/.
The ** mask can be used only once in a directory name. For example, /dir/**/**/file is an incorrect mask.
You can use a single ? character to represent any one character in the file or directory name.
ApplyToDescendants
Exclude child processes of the excluded process specified by the ProgramPath setting from scans.
Yes – exclude the specified process and all its child processes from scans.
No (default value) – exclude only the specified process from scans, do not exclude its child processes from scans.
ProgramDesc
Description of the excluded process.
UseTrustedProgram
Enables the exclusion of the specified process from scanning.
Yes (default value) - enable exclusion of the specified process from scanning.
No - do not exclude the specified process from scanning.