Kaspersky Research Sandbox provides an API to obtain a list of file execution and web address browsing tasks and their parameters.
Request
Request method: GET
Endpoint: https://<server name>/api/v1/sandbox/tasks/
Parameters
Obtaining sandbox tasks list parameters
Parameter |
Data type |
Occurrence |
Description |
---|---|---|---|
|
integer |
Optional |
Specifies the number of entries to skip in the returned task list. Default value: |
|
integer |
Optional |
Maximum number of entries to return. Available values: Default value: |
|
string |
Optional |
Filters entries by task state. Available values:
|
|
string |
Optional |
Filters entries by used execution environment. |
|
string |
Optional |
Sorts entries by the following parameters. Available values:
|
|
boolean |
Optional |
Sorts entries in descending or ascending order:
|
|
string |
Optional |
Filters entries by the sample zone. Available values:
|
|
boolean |
Optional |
Filters entries by the presence of uploaded YARA file. Available values:
|
|
boolean |
Optional |
Filters entries by the presence of uploaded Suricata file. Available values:
|
|
boolean |
Optional |
Filters entries by VNC mode usage. Available values:
|
|
string |
Optional |
Filters entries by the sample extension (exact match). Parameter length must be 1-100 characters. |
|
integer |
Optional |
Filters entries by minimum sample size (in bytes). |
|
integer |
Optional |
Filters entries by maximum sample size (in bytes). |
|
integer |
Optional |
Filters entries by minimum task creation date. Date must be specified in the UNIX time stamp system. |
|
integer |
Optional |
Filters entries by maximum task creation date. Date must be specified in the UNIX time stamp system. |
|
string |
Optional |
Searches for a certain string in the sample (file_name, url, md5, sha1, sha256). |
cURL command sample: $ curl --user <user name> --request GET 'https://<server name>/api/v1/sandbox/tasks?from=<from tasks>&count=<count tasks>' 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 task parameters.
200 OK
Sandbox task list is obtained successfully.
200 OK response parameters
Parameter |
Data type |
Description |
|
---|---|---|---|
|
integer |
Total number of tasks. |
|
|
array of objects |
File execution or web address browsing task details. |
|
|
string <date-time> |
Date and time when the task was created, specified in the ISO 8601:2004 format (YYYY-MM-DDThh:mm:ssZ). |
|
|
string <date-time> |
Date and time when analysis of results was completed, specified in the ISO 8601:2004 format (YYYY-MM-DDThh:mm:ssZ). |
|
|
string |
Status of the executed file or web address. Available values:
For tasks with status other than |
|
|
string |
Color of the file or web address zone ( |
|
|
string <date-time> |
Date and time when anti-virus bases were last updated, specified in the ISO 8601:2004 format (YYYY-MM-DDThh:mm:ssZ). |
|
|
string |
Task ID (GUID). |
|
|
string |
Result ID. |
|
|
string |
File execution or web address browsing task state. Available values:
|
|
|
string |
Error code. Available values:
|
|
|
string |
Error message. |
|
|
string |
Original name of the uploaded file. |
|
|
string |
Name of the uploaded file. |
|
|
string |
Web address browsed in Sandbox. |
|
|
string |
Name of the uploaded archive. |
|
|
string |
Extension of the executed file (for example, |
|
|
string |
Automatically detected type of executed file. |
|
|
string |
MD5 hash of the executed file. |
|
|
string |
SHA1 hash of the executed file. |
|
|
string |
SHA256 hash of the executed file. |
|
|
string |
SSDeep hash of the executed object. |
|
|
string |
Operating system that was used as an execution environment. |
|
|
string |
Password for the archive. |
|
|
integer |
Size of the executed file in bytes. |
|
|
integer |
File execution or web address browsing time in seconds. |
|
|
array |
List of detected objects:
|
|
|
array |
List of created screenshots. |
|
|
boolean |
Indicates whether HTTPS traffic generated by the executed file or web address was decrypted. Available values:
|
|
|
boolean |
Indicates whether full (both static and dynamic) object analysis (including execution in the Sandbox) was performed. Available values:
|
|
|
boolean |
State of the static analysis stage:
|
|
|
string |
Name of the network channel used by the object to access the internet. Available values:
|
|
|
string |
Name of the network channel that the object actually used to access the internet (for example, US). |
|
|
boolean |
Indicates whether if there is report data for the task. |
|
|
boolean |
Indicates whether a debug report was generated. Available values:
|
|
|
string |
Command line parameters used to execute the object in the Sandbox. |
|
|
boolean |
Indicates whether Kaspersky Research Sandbox browsed the links in the opened documents. Available values:
This parameter is available only if a Microsoft Windows based execution environment is selected. If you specified an execution environment based on Android (including custom environments), then the value of this parameter is ignored during file execution. However, the task results contain the |
|
|
string |
Password for the protected document. If the password is not specified, the value of this parameter is |
|
|
string |
Type of a sample. |
|
|
array of objects |
Automatically calculated execution parameters:
|
|
|
integer |
Threat score of objects, which is based on metrics and data obtained during task execution. |
|
|
integer |
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. |
|
|
array of objects |
The status of the YARA and Suricata scan task of the object and its extracted files:
Possible
|
|
|
boolean |
Indicates whether the VNC access was used for the task. Available values:
|
|
|
boolean |
Indicates whether automatic sample start was enabled in the VNC mode. Available values:
|
|
|
string |
Date and time when VNC was started for the task. |
|
|
string |
Time till the VNC access will be disabled, in seconds. |
|
|
boolean |
Indicates if VNC is currently active for the task. Available values:
|
|
|
boolean |
Indicates whether clicker was disabled in the VNC mode. Available values:
|
|
200 OK response example: { "Created": "2024-11-07T12:07:01.782394Z", "Processed": null, "Status": "Unknown", "Zone": "Grey", "AvBasesVersion": "2024-11-06T10:41:00Z", "TaskId": "f84e985f-...-94d83721a465", "ResultID": "", "TaskState": "Processing", "ErrorCode": "", "ErrorMessage": "", "OriginalFileName": "original-file.rar", "FileName": "original-file.exe", "ArchiveSampleName": "original-file", "FileExtension": "exe", "FileType": "exe x32", "Md5": "86f...a2df", "Sha1": "252...530a7", "Sha256": "a6e226fa06...fd0b988", "SSDeep": "3072:yM...pcs...GQkxVj:yHv...Vj", "VirtualMachineId": "Win10_x64", "UnpackPassword": "", "FileSize": 135705, "EmulationTimeSeconds": 1800, "Detects": [], "Screenshots": null, "DecryptHttps": true, "PreScan": false, "PreScanState": { "CalcParam": true, "AvsScan": true, "StatPars": true }, "Channel": "", "UsedChannel": { "ID": 0, "Name": "", "Available": false, "Description": "" }, "IsDataAvailable": true, "DebugReport": false, "Url": "", "CmdLineParams": "", "ClickLinks": false, "DocsPassword": "", "SampleType": "single_file_arch", "CalculatedParams": { "ExecEnv": "Win10_x64", "ExecTime": 1800 }, "ThreatScore": 0, "AppsCloseTimeout": 0, "Userscan": { "Yara": { "Status": "not scanned", "Filename": "", "ScanningTime": null }, "Suricata": { "Status": "not scanned", "Filename": "", "ScanningTime": null } }, "VncAccess": true, "VncSampleAutostart": false, "VncStarted": null, "VncTimeLeft": 0, "VncStatus": 0, "DisableClicker": true } |
400 Bad Request
Failed to obtain sandbox tasks list 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":42,"message":"invalid value","meta":"count"} Incorrect {"code":42,"message":"invalid value","meta":"from"} |
401 Unauthorized
Failed to obtain sandbox tasks list due to incorrect user credentials.
500 Internal Server Error
Failed to obtain sandbox tasks list due to an internal server error.
Page top