This section provides information about Kaspersky Endpoint Agent for Windows. This information may be partially or wholly inapplicable to Kaspersky Endpoint Agent for Linux. For complete information about Kaspersky Endpoint Agent for Linux, see the online help of the solution in which you are using the program: Kaspersky Anti Targeted Attack Platform or Kaspersky Managed Detection and Response.
YARA scanning constitutes processes that you can manually create and configure using the command line interface. The scan is started using YARA files.
In the YARA scan task, you can only specify a file with YARA rules. Files containing rules of other types are not supported by YARA scan tasks.
To run a YARA scan using the command line interface:
For example, you can enter the command: cd "C:\Program Files (x86)\Kaspersky Lab\Endpoint Agent
\" and press Enter.
agent.exe --scan-yara [<
path to the yara file>] [--path=<
path to the file with yara rules
>] [--fast-scan] [--tag-hint=<rule tag
>] [--id-hint=<
rule id>] [--max-rules=<
maximum number of scanning rules
>] [--timeout=<stop the scan after this time in seconds
>] [--recursive] [--scan_folders [<
list of folders to scan>] [--scan-memory] [--scan-process <
process name
>][--max-size=<file size in bytes
>] [--excludes <
lost of objects to scan>] [--includes <
list of objects to scan
>]
If the --scan-yara
command has only required options, Kaspersky Endpoint Agent performs the scan with default settings.
Scan parameters are described in the following table.
Command parameters for starting and configuring a YARA scan
Settings |
Description |
|
Required parameter. Runs the YARA on the device. The scan is performed using rules from YARA files with the "yara" or "yar" extension. |
|
Path to a folder containing YARA files that must be used by the scan. |
|
Optional parameter. |
|
Optional parameter. |
|
Optional parameter. |
|
Optional parameter. |
|
Optional parameter. |
|
Optional parameter. |
Optional parameter. |
|
|
Optional parameter. |
|
Optional parameter. |
|
Optional parameter. |
Optional parameter.
|
|
Optional parameter.
|
Return codes of the --scan-yara
command:
-1
means the command is not supported by the version of Kaspersky Endpoint Agent that is installed on the device.0
means the command was executed successfully.1
means a required argument was not passed to the command.2
stands for general error.4
stands for syntax error.5
means one or more files with YARA rules among files specified in the parameter value were not found. If the command is executed successfully (code 0
) and indicators of compromise are detected as a result, Kaspersky Endpoint Agent outputs scan results on the command line. Scan results are described in the following table.
Information that the program outputs on the command line when YARA signatures are detected.
|
Offset in the object scanned by Kaspersky Endpoint Agent. |
|
Signatures that Kaspersky Endpoint Agent looks for when scanning. |
|
Name of the scanned object. |
|
Name of the rule used for scanning. |