Contents
Response rules
You can configure automatic execution of Kaspersky Security Center tasks, Kaspersky Endpoint Detection and Response actions, and startup of a custom script when receiving events for which there are configured response rules.
Automatic execution of Kaspersky Security Center tasks, Kaspersky Endpoint Detection and Response tasks, and KICS for Networks tasks according to response rules is available when integrated with the listed applications.
Response rules for Kaspersky Security Center
You can configure response rules to automatically start tasks of anti-virus scan and updates on Kaspersky Security Center assets.
When creating and editing response rules for Kaspersky Security Center, you need to define values for the following settings:
- Name (required)—unique name of the resource. Must contain from 1 to 128 Unicode characters.
- Tenant (required)—name of the tenant that owns the resource.
- Type (required)—ksctasks.
This is available if KUMA is integrated with Kaspersky Security Center.
- Kaspersky Security Center task (required)—name of the Kaspersky Security Center task that you need to start. Tasks must be created beforehand, and their names must begin with "
KUMA
". For example,KUMA antivirus check
(not case-sensitive and without quotation marks). - Event field (required)—defines the event field of the asset for which the Kaspersky Security Center task should be started. Possible values:
- SourceAssetID
- DestinationAssetID
- DeviceAssetID
- Workers—the number of processes that the service can run simultaneously.
By default, the number of workers is the same as the number of virtual processors on the server where the service is installed.
- Description—you can add up to 4000 Unicode characters describing the resource.
- Filter—used to define the conditions for the events to be processed by the response rule resource. You can select an existing filter resource from the drop-down list or create a new filter.
To send requests to Kaspersky Security Center, you must ensure that Kaspersky Security Center is available over the UDP protocol.
If a response rule resource is owned by the shared tenant, the displayed Kaspersky Security Center tasks that are available for selection are from the Kaspersky Security Center server that the main tenant is connected to.
If a response rule resource has a selected task that is absent from the Kaspersky Security Center server that the tenant is connected to, the task will not be performed for assets of this tenant. This situation could arise when two tenants are using a common correlator, for example.
Page topResponse rules for a custom script
You can create a script containing commands to be executed on the KUMA server when selected events are detected and configure response rules to automatically run this script. In this case, the program will run the script when it receives events that match the response rules.
The script file is stored on the server where the correlator service using the response resource is installed: /opt/kaspersky/kuma/correlator/<Correlator ID>/scripts. The kuma
user of this server requires the permissions to run the script.
When creating and editing response rules for a custom script, you need to define values for the following parameters:
- Name (required)—unique name of the resource. Must contain from 1 to 128 Unicode characters.
- Tenant (required)—name of the tenant that owns the resource.
- Type (required)—script.
- Timeout—the number of seconds allotted for the script to finish. If this amount of time is exceeded, the script is terminated.
- Script name (required)—the name of the script file.
If the response resource is attached to the correlator service but there is no script file in the /opt/kaspersky/kuma/correlator/<Correlator ID>/scripts folder, the correlator will not work.
- Script arguments—parameters or event field values that must be passed to the script.
If the script includes actions taken on files, you should specify the absolute path to these files.
Parameters can be written with quotation marks (").
Event field names are passed in the
{{.EventField}}
format, whereEventField
is the name of the event field which value must be passed to the script.Example:
-n "\"usr\": {{.SourceUserName}}"
- Workers—the number of processes that the service can run simultaneously.
By default, the number of workers is the same as the number of virtual processors on the server where the service is installed.
- Description—you can add up to 4000 Unicode characters describing the resource.
- Filter—used to define the conditions for the events to be processed by the response rule resource. You can select an existing filter resource from the drop-down list or create a new filter.
Response rules for KICS for Networks
You can configure response rules to automatically trigger response actions on KICS for Networks assets. For example, you can change the asset status in KICS for Networks.
When creating and editing response rules for KICS for Networks, you need to define values for the following settings:
- Name (required)—unique name of the resource. Must contain from 1 to 128 Unicode characters.
- Tenant (required)—name of the tenant that owns the resource.
- Type (required)—kics.
- Event field (required)—event field containing the asset for which the response actions are needed. Possible values:
- SourceAssetID
- DestinationAssetID
- DeviceAssetID
- KICS for Networks task—response action to be performed when data matching the filter is received. The following types of response actions are available:
- Change asset status to Authorized.
- Change asset status to Unauthorized.
When a response rule is triggered, KUMA will send KICS for Networks an API request to change the status of the specified device to Authorized or Unauthorized.
- Workers—the number of processes that the service can run simultaneously.
By default, the number of workers is the same as the number of virtual processors on the server where the service is installed.
- Description—you can add up to 4000 Unicode characters describing the resource.
- Filter—used to define the conditions for the events to be processed by the response rule resource. You can select an existing filter resource from the drop-down list or create a new filter.
Response rules for Kaspersky Endpoint Detection and Response
You can configure response rules to automatically trigger response actions on Kaspersky Endpoint Detection and Response assets. For example, you can configure automatic asset network isolation.
When creating and editing response rules for Kaspersky Endpoint Detection and Response, you need to define values for the following settings:
- Event field (required)—event field containing the asset for which the response actions are needed. Possible values:
- SourceAssetID
- DestinationAssetID
- DeviceAssetID
- Task type—response action to be performed when data matching the filter is received. The following types of response actions are available:
- Enable network isolation.
When selecting this type of response, you need to define values for the following settings:
- Isolation timeout—the number of hours during which the network isolation of an asset will be active. You can indicate from 1 to 9999 hours.
If necessary, you can add an exclusion for network isolation.
When adding exclusions to a network isolation rule, Kaspersky Endpoint Detection and Response may incorrectly display the port values in the rule details. This does not affect application performance. For more details on viewing a network isolation rule, please refer to the Kaspersky Anti Targeted Attack Platform Help Guide.
- Isolation timeout—the number of hours during which the network isolation of an asset will be active. You can indicate from 1 to 9999 hours.
- Disable network isolation.
- Add prevention rule.
When selecting this type of response, you need to define values for the following settings:
- Event fields to extract hash from—event fields from which KUMA extracts SHA256 or MD5 hashes of the files that must be prevented from starting.
The selected event fields and the values selected in the Event field must be added to the inherited fields of the correlation rule.
- File hash #1—SHA256 or MD5 hash of the file to be blocked.
At least one of the above fields must be completed.
- Event fields to extract hash from—event fields from which KUMA extracts SHA256 or MD5 hashes of the files that must be prevented from starting.
- Delete prevention rule.
- Run program.
When selecting this type of response, you need to define values for the following settings:
- File path—path to the file of the process that you want to start.
- Command line parameters—parameters with which you want to start the file.
- Working directory—directory in which the file is located at the time of startup.
When a response rule is triggered for users with the General Administrator role, the Run program task will be displayed in the Task manager section of the program web interface. Scheduled task is displayed for this task in the Created column of the task table. You can view task completion results.
All of the listed operations can be performed on assets that have Kaspersky Endpoint Agent for Windows. On assets that have Kaspersky Endpoint Agent for Linux, the program can only be started.
At the software level, the capability to create prevention rules and network isolation rules for assets with Kaspersky Endpoint Agent for Linux is unlimited. KUMA and Kaspersky Endpoint Detection and Response do not provide any notifications about unsuccessful application of these rules.
- Enable network isolation.
- Workers—the number of processes that the service can run simultaneously.
By default, the number of workers is the same as the number of virtual processors on the server where the service is installed.
- Description—you can add up to 4000 Unicode characters describing the resource.
- Filter—used to define the conditions for the events to be processed by the response rule resource. You can select an existing filter resource from the drop-down list or create a new filter.