Kaspersky Research Sandbox provides an API to repeat Sandbox tasks.
If necessary, you can change task parameters. If no new parameter values are specified, the values from the previously created task will be used without changes.
Request
Request method: POST
Endpoint: https://<server name>/api/v1/sandbox/tasks/{task ID}
Parameters
Repeating task parameters
Parameter |
Data type |
Occurrence |
Description |
---|---|---|---|
|
string |
Required |
Task ID (GUID) that you want to repeat. |
|
string |
Optional |
Operating system that you want to use as an execution environment. You can specify a title of any installed execution environments, including successfully deployed custom execution environments. If an incorrect value is specified, titles of all available environments will be returned in the If this parameter is not specified for a file, Kaspersky Research Sandbox automatically determines the optimal operating system for the type of uploaded file (Auto option in web interface). |
|
integer |
Optional |
Object execution time in seconds. Available values: If this parameter is not specified for a file, Kaspersky Research Sandbox automatically determines the optimal execution time according to the type of uploaded file (Auto option in the web interface). For a web address browsing task, the |
|
string |
Optional For file execution only. |
Object name. If you specify a file name and extension, Kaspersky Research Sandbox does not detect the file type automatically. To automatically detect the file type during execution, specify only a file name. The value must not exceed 240 symbols. |
|
string |
Optional For web address browsing only. |
Web address to be browsed in the Sandbox. The value must not exceed 1000 symbols. |
|
string |
Optional Technical preview. For file execution only. Parameter cannot be used with Android execution environment. |
Directory where a sample file will be uploaded and executed. Default value: %USERPROFILE%\Downloads (if supported) or C:\downloads. If a directory is relative, it will be joined with the default directory. |
|
string |
Optional For file execution only. |
If you do not specify this parameter for a password-protected archive, Kaspersky Research Sandbox tries to unpack an archive using default passwords. |
|
string |
Optional For file execution only. |
Password for the protected documents. If this parameter is not specified, the |
|
boolean |
Optional |
Specifies whether HTTPS traffic generated by the executed object must be decrypted. If a custom execution environment based on Windows XP is specified, the Available values:
Default value: HTTPS traffic decryption may decrease the probability of malware detection. |
|
string |
Optional |
Name of the network channel to be used by the object to access the internet. For automatic channel selection, do not specify this parameter. Available values:
For automatic channel selection, do not specify this parameter. |
|
boolean |
Optional |
Specifies whether a debug report for the executed file must be generated. Available values:
Default value: Diagnostic information about application performance is obtained separately. |
|
boolean |
Optional For file execution only. |
Specifies whether Kaspersky Research Sandbox must browse the links in the documents that are opened in the Sandbox. Available values:
Default value: The If this parameter is not specified in the request, Kaspersky Research Sandbox browses the links in the opened documents. |
|
string |
Optional For file execution only. |
You can use Windows environment variables by placing the By default, the environment variables values are expanded on the user's host, before transferring and executing the object in the Sandbox. To transfer environment variables to the Sandbox as is, without expansion, use the The command line may contain a variable $sample that will be replaced in the Sandbox with the actual path to the object in the operating system (for example, The length of the command line must not exceed 1024 characters, otherwise Kaspersky Research Sandbox shortens it. Depending on the technical constraints of an operating system that is used as an execution environment in the Sandbox, the length of the command line may be further shortened. Command line usage examples are described in the Appendices. |
|
boolean |
Optional For file execution only. |
Specifies whether Kaspersky Research Sandbox performs full (both static and dynamic) object analysis, including execution in the Sandbox. Available values:
Default value: |
|
string (binary) |
Optional |
A text file (.txt or .rules) with Suricata rules. The recommended file size is 5 MB. If the Suricata rule file size exceeds 16 MB, we recommend that you split it into several files (up to 5 MB in size) and upload them to the task sequentially. |
|
integer |
Optional Technical preview. |
Timeout in seconds after which the application in which a Microsoft Office document was opened will be closed. Available values: Only relevant for Microsoft Office documents sent to Windows environments. |
|
boolean |
Optional |
Enables VNC access to a virtual machine during a sample detonation process. Available values:
Access to VNC session is only possible from web interface. If session duration is not specified, it will be set to 1800 seconds. |
|
boolean |
Optional |
Allows to start the sample execution in the virtual machine immediately, without additional user actions. Available values:
|
|
boolean |
Optional |
Disables the clicker for the task in Windows environments. Enabling this parameter is recommended when using the VNC mode. Available values:
The |
|
boolean |
Optional |
Rescans the sample and other objects with new YARA rules. Requires uploading a new rules file. |
|
boolean |
Optional |
Rescans the traffic received in the specified task with new Suricata rules. Requires uploading a new rules file. |
cURL command sample: $ curl --user <user name> --request POST 'https://<server name>/api/v1/sandbox/tasks/<task ID>' You will be asked to enter your password. The password is not displayed while you type it. |
Responses
Endpoint returns a JSON object that contains the ID (GUID) of the newly created execution task.
200 OK
Task execution repeated successfully.
200 OK response parameters
Parameter |
Data type |
Description |
---|---|---|
|
string |
ID (GUID) of the newly created execution task. |
200 OK response example: { "id": "5cf8cbb4-1d50-492c-986b-86d5c7596535" } |
400 Bad Request
Failed to repeat an execution task due to incorrect query.
400 Bad Request response parameters
Parameter |
Data type |
Description |
---|---|---|
|
string |
Error ID. |
|
string |
Error description. |
|
string |
Additional information, if available. |
Error examples: Incorrect {"code":6,"message":"task not found"} Empty file uploaded: {"code":12,"message":"empty file"} Incorrect {"code":22,"message":"wrong channel"} Incorrect {"code":29,"message":"bad task id"} Incorrect {"code":33,"message":"invalid exec_env, acceptable values listed in meta field","meta":"Win7_x64,Win10_x64,Android_arm,Android_x86,CentOS7_x64"} Required parameter (for example, file name) is not specified: {"code":34,"message":"no file name or url"} Incorrect {"code":42,"message":"invalid value","meta":"exec_time must be 30...500"} Incorrect {"code":42,"message":"invalid value","meta":"decrypt_https must be true or false"} Incorrect {"code":42,"message":"invalid value","meta":"debug_report"} |
401 Unauthorized
Failed to repeat an execution task due to incorrect user credentials.
500 Internal Server Error
Failed to repeat an execution task due to an internal server error.
Page top