Advanced scan
Info
For this option, you need to specify at least one sandbox in the config.
Quick start
[INFO] Using key: name=escdev max_workers=8
[DONE] [win10-22H2-x64] • malware • https://sandbox.example.com/tasks/eafc5f87-ffac-11ef-96ad-72ab1bd29c47
Note
At startup, a progress bar will be launched with waiting, but this is not shown here.
Options
Download options
The options allow you to additionally configure which files will be downloaded from the task.
| Option | Description | Default |
|---|---|---|
--all / -a |
Enables all of the following options. | False |
--debug / -d |
All debug files will be downloaded. | False |
--artifacts / -A |
All created artifacts (files and process dumps) will be downloaded. Combines -f and -p. |
False |
--files / -f |
All files extracted during the analysis will be downloaded. | False |
--crashdumps / -c |
A special file that is created during the BSOD. By default, this file is not generated by the sandbox. |
False |
--procdumps / -p |
All process dumps during the analysis will be downloaded. | False |
--amsi / -am |
AMSI dumps will be downloaded. | False |
--dex / -dx |
DEX dumps will be downloaded. | False |
Parameters
| Option | Description | Default |
|---|---|---|
--rules / -r |
The path to the folder with the rules or the default rules from the sandbox or platform alias (windows, linux). |
None |
--out / -o |
The path where the analysis results will be saved. | ./sandbox |
--local / -l |
Compile rules locally using Docker (unix only). | False |
--upload-timeout / -T |
This option allows you to increase the file upload timeout. For example, if you are uploading a large file with a slow internet. |
300 in seconds |
--wait-timeout / -W |
Task waiting time in seconds (useful for heavy samples). | None |
--unpack / -U |
The downloaded logs will be automatically converted. Learn more in Analyzing logs. |
False |
--decompress / -D |
Since process dumps are downloaded in a compressed format, this option allows them to be decompressed automatically. | False |
--open-browser / -ob |
Open the analysis link in the default browser. | False |
--preserve-filename / -pf |
Do not change filename for analysis. By default the path is flattened to sandbox/guest/os/filename. |
False |
Sandbox Options
| Option | Description | Default |
|---|---|---|
--image / -i |
The image on which the behavioral analysis will be performed. | None |
--key / -k |
The name of the key for accessing a specific sandbox. | None |
--name / -n |
The name of the file that will be in the sandbox. | {filename} |
--timeout / -t |
Analysis duration. | 300 in seconds |
--syscall-hooks / -s |
Read more about it in py-ptsandbox. | None |
--dll-hooks-dir / -dll |
Read more about it in py-ptsandbox. | None |
--unimon-hooks / -u |
Path to file with unimon hooks. | None |
--fileextractor-excludes / -fe |
Path to file with fileextractor excludes. | None |
--cmd |
Read more about it in py-ptsandbox. | None |
--priority / -pr |
Read more about it in py-ptsandbox. | 3 |
--no-procdumps-on-finish / -P |
Disable dumps for all created and not finished processes. | False |
--disable-lightweight-dumps / -dl |
Disable lightweight memory dumps (mostly for testing purposes). | False |
--bootkitmon / -b |
Read more about it in py-ptsandbox. | False |
--bootkitmon-duration / -bd |
Read more about it in py-ptsandbox. | 60 |
--mitm-disabled / -M |
Read more about it in py-ptsandbox. | False |
--disable-clicker / -dc |
Read more about it in py-ptsandbox. | False |
--skip-sample-run / -S |
Read more about it in py-ptsandbox. | False |
--vnc-mode / -V |
Read more about it in py-ptsandbox. | disabled |
--extra-files / -e |
Read more about it in py-ptsandbox. | None |
--outbound-connections / -oc |
Whitelist of IP addresses to which connections from a VM are allowed (backconnect). | None |
--file-type-as-ext / -fte |
Use a file type as an extension for a file. | None |
Tip
You can specify several images, for example:
Tip
You can specify several extra files, for example:
Cookbook
Starting a manual analysis
Scan the sample on all available windows images
For example, there are only three Windows images available on the stand, and analysis will be launched on all of them.
[INFO] Using key: name=test-1 max_workers=8
[INFO] Scanning on: win10-22H2-x64, win10-1803-x64, win11-23H2-x64
...
Tip
Change -i windows to -i linux if you need to scan on all available linux images.
Scanning a large amount of samples at a time
Help
Usage: sandbox-cli scanner scan-new [OPTIONS] FILES
Send files to scan with the sandbox (advanced scan).
╭─ Arguments ──────────────────────────────────────────────────────────────────╮
│ * FILES Path to the files or folders to scan [required] │
╰──────────────────────────────────────────────────────────────────────────────╯
╭─ Parameters ─────────────────────────────────────────────────────────────────╮
│ --rules -r The path to the folder with the rules or the │
│ default rules from the sandbox or platform alias │
│ (windows, linux) │
│ --out -o The path where to save the results [default: │
│ sandbox] │
│ --local -l The rules will be compiled locally using Docker │
│ (unix only) [default: False] │
│ --upload-timeout -T Upload timeout in seconds (increase if upload big │
│ files) [default: 300] │
│ --wait-timeout -W Task waiting time in seconds (useful for heavy │
│ samples) │
│ --unpack -U Unpack downloaded files [default: False] │
│ --decompress -D Decompress downloaded files [default: False] │
│ --open-browser -ob Open analysis link in the default browser [default: │
│ False] │
│ --preserve-filename -pf Do not change filename for analysis. │
│ When set to false (default behaviour): │
│ local/path/to/malware.exe[_~] -> │
│ sandbox/guest/os/malware.exe │
│ When set to true name will remain unchanged. │
│ [default: False] │
╰──────────────────────────────────────────────────────────────────────────────╯
╭─ Download options ───────────────────────────────────────────────────────────╮
│ --all -a Download all artifacts [default: False] │
│ --debug -d Download debug artifacts [default: False] │
│ --artifacts -A Download artifacts [default: False] │
│ --files -f Download files [default: False] │
│ --crashdumps -c Download crashdumps (may be more than 1GB) [default: False] │
│ --procdumps -p Download procdumps [default: False] │
│ --amsi -am Download amsi-dumps [default: False] │
│ --dex -dx Download dex-dumps [default: False] │
╰──────────────────────────────────────────────────────────────────────────────╯
╭─ Sandbox Options ────────────────────────────────────────────────────────────╮
│ --image -i The name of the image to scan (don't mix │
│ different platforms) Available images: │
│ altworkstation-10-x64, │
│ astralinux-smolensk-x64, redos-8-x64, │
│ redos-murom-x64, ubuntu-jammy-x64, │
│ win10-1803-x64, win10-22H2-x64, │
│ win11-23H2-x64, win7-sp1-x64, │
│ win7-sp1-x64-ics, win8.1-update1-x64, │
│ winserv2016-1198-x64, winserv2019-1879-x64 │
│ --key -k The key to access the sandbox │
│ test-1,test-2,test-3 [default: test-1] │
│ --name -n Fake name for the sandbox (if specified more │
│ than one file will be applied to all files) │
│ --timeout -t Analysis duration in seconds [default: 300] │
│ --syscall-hooks -s Path to file with syscall hooks (file with │
│ syscall names split by newline) │
│ --dll-hooks-dir -dll Path to directory with dll hooks │
│ --unimon-hooks -u Path to file with unimon hooks │
│ --fileextractor-excludes -fe Path to file with fileextractor excludes │
│ --cmd Command line for file execution rundll32.exe │
│ {file},#1 │
│ --priority -pr Priority of the scan (1-4) [default: 3] │
│ --no-procdumps-on-finish -P Disable dumps for all created and not finished │
│ processes [default: False] │
│ --disable-lightweight-dumps Disable lightweight memory dumps (mostly for │
│ -dl testing purposes) [default: False] │
│ --bootkitmon -b Enable bootkitmon [default: False] │
│ --bootkitmon-duration -bd Bootkitmon duration in seconds [default: 60] │
│ --mitm-disabled -M Disable MITM [default: False] │
│ --disable-clicker -dc Disable clicker [default: False] │
│ --skip-sample-run -S Skip sample run [default: False] │
│ --vnc-mode -V VNC mode [choices: disabled, full, read-only] │
│ [default: disabled] │
│ --extra-files -e Extra files to upload │
│ --outbound-connections -oc Whitelist of IP addresses to which connections │
│ from a VM are allowed (backconnect) │
│ --file-type-as-ext -fte Use a file type as an extension for a file │
╰──────────────────────────────────────────────────────────────────────────────╯
Info
The utility has a fairly extensive list of images, but this doesn't mean that they are all available or will be available.
But in general, if you are interested in some of the images, then I think you can find out more information from the manager.