Kaspersky Research Sandbox provides an API to create object execution and web address browsing tasks.
Request
Request method: POST
Endpoint: https://<server name>/api/v1/sandbox/tasks?<parameters>
Parameters
Task creation parameters
Parameter |
Data type |
Occurrence |
Description |
---|---|---|---|
|
string |
Optional |
Operating system to be used as execution environment. You can specify 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 according to 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 web interface). For a web address browsing task, the |
|
string |
Required 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 |
Required 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. |
Password for unpacking the archive. Kaspersky Research Sandbox tries to unpack an archive using default passwords. |
|
string |
Optional For file execution only. |
Password that can be used to open password protected Microsoft Office or PDF documents. This parameter is only work used in Windows execution environments. |
|
boolean |
Optional |
Specifies whether HTTPS traffic generated by the executed object must be decrypted. Available values:
Default value: If a custom environment based on Windows XP is specified, the The 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. Available values:
For automatic channel selection, do not specify this parameter. If a channel is specified for an image, then an attempt to change it in the task parameters will result in an error. You can change the channel in the image parameters. |
|
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 |
cURL command sample for file execution: $ curl --http1.1 --user <user name> --request POST --header "Content-Type:application/octet-stream" --data-binary @'<path and file name>' 'https://<server name>/api/v1/sandbox/tasks?file_name=<file name>' You will be asked to enter your password. The password is not displayed while you type it. cURL command sample for web address analysis: $ curl -v --http1.1 --user <user name> --request POST --header "Content-Type:application/octet-stream" "https://<server name>/api/v1/sandbox/tasks?url=<web address>" 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 an ID (GUID) of the created execution task.
200 OK
Execution task is created successfully.
200 OK response parameters
Parameter |
Data type |
Description |
---|---|---|
|
string |
ID (GUID) of the created execution task. |
200 OK response example: { "ID": "5cf8cbb4-1d50-492c-986b-86d5c7596535" } |
400 Bad Request
Failed to create 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: Empty file uploaded: {"code":12,"message":"empty file"} Incorrect {"code":22,"message":"wrong channel"} 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 create an execution task due to incorrect user credentials.
413 Request Entity Too Large
Failed to create an execution task because the uploaded object exceeds size limit (1024 MB).
500 Internal Server Error
Failed to create an execution task due to an internal server error.
Page top