ptsandbox.models
ptsandbox.models
DebugOptions
Bases: TypedDict
Description of all available debugging options for very detailed scan configuration
keep_sandbox
instance-attribute
Don't destroy the sandbox after scanning
skip_work
instance-attribute
Perform a scan, skipping the data collection stage for analysis
extract_crashdumps
instance-attribute
Extract crashdumps from the sandbox
save_debug_files
instance-attribute
Save files necessary for debugging (error logs, tcpdump logs, etc)
rules_url
instance-attribute
Use the specified normalization and correlation rules The rules are specified as a link to the archive containing the compiled rules
sleep_work
instance-attribute
Perform a scan, replacing the data collection stage for analysis with an equivalent waiting time
disable_syscall_hooks
instance-attribute
Disable syscall hooks functionality
Read more about these hooks in documentation
disable_dll_hooks
instance-attribute
Disable dll hooks functionality
Read more about these hooks in documentation
disable_correlation
instance-attribute
Disable the functionality of normalization and correlation of events.
It is useful if the correlation results are not needed anyway.
In this case, all collected artifacts (drops, memdumps, procdumps) will be included in the response, without filtering at the level of correlation rules
custom_syscall_hooks
instance-attribute
Use the specified list of system calls to intercept
The list is transmitted as an http link to a file with the names of system calls
Read more about this file in documentation
custom_dll_hooks
instance-attribute
Use the specified list of system calls to intercept
The list is transmitted as an http link to a file with the names of dll hooks for apimon plugin
Read more about this file in documentation
disable_retries
instance-attribute
Disable task re-execution in case of a scan error
enable_sanitizers
instance-attribute
Enable the debugging mechanisms of the sanitizers group
allowed_outbound_connections
instance-attribute
Whitelist of IP addresses to which connections from a VM are allowed (backconnect)
payload_completion_event
instance-attribute
A regular expression for the raw DRAKVUF event, signaling the end of the useful work of the sample.
If this option is specified, sandbox-worker will calculate and log the PAYLOAD_SCAN_TIME metric.
disable_procdump_on_finish
instance-attribute
Disable the functionality of removing the memory dump from the sample at the end of the observation
skip_update_time
instance-attribute
Do not synchronize the time in the VM with the host
disable_manual_scan_events
instance-attribute
Do not send lifecycle notifications for manual behavioral analysis (console is ready, console is closed, etc.)
bootkitmon_boot_timeout
instance-attribute
The maximum waiting time for VM loading in seconds (90 seconds by default)
custom_procdump_exclude
instance-attribute
A file with a list of processes for which memory dumps should not be removed.
Each line in the file is a regular expression of the path to the process file on disk.
Read more about this file in documentation
custom_fileextractor_exclude
instance-attribute
A file with a list of files that should not be extracted
Each line in the file is a regular expression of the path to the file on disk.
Read more about this file in documentation
validate_plugins
instance-attribute
Check plugins for at least one event during the entire behavioral analysis
extra_vm_init_url
instance-attribute
Run this script in the VM immediately before launching the behavioral analysis.
It is useful, for example, to check the network during analysis.
procdump_lightweight_mode
instance-attribute
Use "light" memory dumps or not
custom_unimon_hooks
instance-attribute
Use a special format for hooks (not stable, will changed in the future)
SandboxAdvancedScanTaskRequest
Bases: SandboxBaseScanTaskRequest
Parameters of an API request to start analyzing a file previously uploaded to the product.
<URL>/analysis/createBAScanTask
SandboxBaseOptions
Bases: BaseRequest
Common parameters of behavioral analysis shared by SandboxOptions and SandboxOptionsAdvanced.
image_id
class-attribute
instance-attribute
ID of the VM image.
You can view it in the sandbox interface.
custom_command
class-attribute
instance-attribute
The command to run the file.
The {file} marker in the string is replaced with the path to the file.
For example: rundll32.exe {file},#1
procdump_new_processes_on_finish
class-attribute
instance-attribute
Take dumps for all spawned and non-dead processes
analysis_duration
class-attribute
instance-attribute
The duration of analysis the file in seconds. minimum: 10
analysis_duration_bootkitmon
class-attribute
instance-attribute
The duration of analysis at the bootkitmon stage in seconds. minimum: 10
save_video
class-attribute
instance-attribute
Save video capture of the screen
mitm_enabled
class-attribute
instance-attribute
Enable certificates injection with PT Sandbox certificates when decrypting and analyzing secure traffic
SandboxBaseScanTaskRequest
Bases: BaseRequest
Base class for all scan requests
file_name
class-attribute
instance-attribute
The name of the file to be checked, which will be displayed in the sandbox web interface.
If not specified, the hash value of the file is calculated using the SHA—256 algorithm.
short_result
class-attribute
instance-attribute
Return only the overall result of the check.
The parameter value is ignored (true is used) if the value of the async_result parameter is also true.
async_result
class-attribute
instance-attribute
Return only the scan_id.
Enabling this option may be usefull to send async requests for file checking.
You can receive full report in a separate request.
priority
class-attribute
instance-attribute
The priority of the task. The higher it is, the faster it will get to work
Options
Bases: BaseModel
analysis_depth
class-attribute
instance-attribute
The depth of the check.
The maximum level of decomposition of objects with a hierarchical structure (archives, emails, links, etc.) or the decompression level of compressed files.
If the value is 0, the check is performed without decomposition and decompression.
The higher the number, the longer the check can take.
scan_timeout
class-attribute
instance-attribute
Maximum response time
max_execution_time
class-attribute
instance-attribute
Maximum waiting time for analysis
passwords_for_unpack
class-attribute
instance-attribute
List of passwords for unpacking encrypted archives
cache_enabled
class-attribute
instance-attribute
If the file has already been analyzed before, it will be taken from the cache, and not analyzed again.
url_extract_enabled
class-attribute
instance-attribute
Extract links from objects
enable_experimental_yara_rules
class-attribute
instance-attribute
Enable object analysis using yara test rules
mark_suspicious_files_options
class-attribute
instance-attribute
Settings for marking files as suspicious. By default, we do not send, but take the settings from the sandbox.
You can configure it by passing an object with the necessary options.
mark_dangerous_files_options
class-attribute
instance-attribute
Settings for marking files as dangerous. By default, we send this information because this labels are important.
You can configure it by passing an object with the necessary options or pass None to disable it
sandbox
class-attribute
instance-attribute
Behavioral Analysis Parameters
SuspiciousFilesOptions
Bases: BaseModel
Settings for marking files as suspicious
encrypted_not_unpacked
class-attribute
instance-attribute
Encrypted and not unpacked file
max_depth_exceeded
class-attribute
instance-attribute
Unpacking depth exceeded
office_encrypted
class-attribute
instance-attribute
Encrypted office file
office_has_macros
class-attribute
instance-attribute
Office file with macros
office_has_embedded
class-attribute
instance-attribute
Office file with embedded objects
office_has_active_x
class-attribute
instance-attribute
Office file with ActiveX controls
office_has_dde
class-attribute
instance-attribute
Office file with dynamic data exchange
office_has_remote_data
class-attribute
instance-attribute
Office file with remote data
office_has_remote_template
class-attribute
instance-attribute
Office file with remote templates
office_has_action
class-attribute
instance-attribute
Office file with Action
pdf_has_embedded
class-attribute
instance-attribute
PDF file with embedded objects
pdf_has_open_action
class-attribute
instance-attribute
PDF file with Open Action
pdf_has_javascript
class-attribute
instance-attribute
PDF file with Javascript
SandboxBaseTaskResponse
Bases: BaseResponse
Base class for all scan responses
data
class-attribute
instance-attribute
Only the ShortReport is returned if async_result = True
LongReport
Bases: ShortReport
result
instance-attribute
The overall result of the check.
Missing from search responses
createScanTaskwith theasync_resultparameter enabled;checkTask, if the file analysis has not been completed yet
SandboxCheckTaskRequest
Bases: BaseRequest
Parameters of the API request for receiving file analysis results.
The request can be used to get the results of the file analysis,
which was started by an asynchronous request (createScanTask with the async_result parameter enabled).
<URL>/analysis/checkTask
SandboxCheckTaskResponse
Bases: BaseResponse
Data
Bases: BaseModel
result
class-attribute
instance-attribute
The overall result of the check.
Missing from search responses
createScanTaskwith theasync_resultparameter enabled;checkTask, if the file analysis has not been completed yet
SandboxOptions
Bases: SandboxBaseOptions
Parameters of behavioral analysis.
In the absence, the source parameters are used for analysis, which are set in the system by default.
file_types
class-attribute
instance-attribute
A list of the final file types or groups of files that will be sent for behavioral analysis
For example: ["adobe-acrobat/", "databases/", "executable-files/", "presentations/", "spreadsheets/", "word-processor/"]
SandboxOptionsAdvanced
Bases: SandboxBaseOptions
Run an advanced analysis of the uploaded file in the VM without unpacking.
Provides an opportunity to fine-tuning.
The options are in beta, so they may change in the future.
disable_clicker
class-attribute
instance-attribute
Disable auto-clicker startup
Useful when enabling manual analysis.
skip_sample_run
class-attribute
instance-attribute
Disable sample launch
extra_files
class-attribute
instance-attribute
A list of additional files that are placed in the VM
SandboxRescanTaskRequest
Bases: SandboxBaseScanTaskRequest
API request parameters for launching retro analysis.
Allows scanning with the new drakvuf-trace.log.zst and tcpdump.pcap rules
<URL>/analysis/createRetroTask
raw_events_uri
class-attribute
instance-attribute
Temporary URI of the raw trace file
raw_network_uri
class-attribute
instance-attribute
Temporary URI of the network file
SandboxScanTaskRequest
Bases: SandboxBaseScanTaskRequest
Parameters of an API request to start analyzing a file previously uploaded to the product.
<URL>/analysis/createScanTask
SandboxScanURLTaskRequest
Bases: SandboxBaseScanTaskRequest
Parameters of the API request to start URL analysis.
<URL>/analysis/createScanURLTask
SandboxTasksResponse
Bases: BaseModel
next_cursor
class-attribute
instance-attribute
The cursor is for pagination, if the line is empty, then there is no more data. Indicates the data after the last record
Task
Bases: BaseModel
Brief information on the scan
duration
class-attribute
instance-attribute
Duration of the check: total or for each antivirus and component.
duration_full
class-attribute
instance-attribute
The duration of the check, taking into account the record in the database or the time of the request.
SandboxKey
Bases: BaseModel
Abstraction over the key that is used to send to the sandbox
host
instance-attribute
Hostname of the sandbox instance
For example: 1.1.1.1 or sandbox.example.com without https etc
description
class-attribute
instance-attribute
A description of the key for easy representation somewhere in the interface
max_workers
class-attribute
instance-attribute
The maximum number of simultaneously running behavioral nodes
The quantity can be found in the interface
ui
class-attribute
instance-attribute
If necessary, you can also access the sandbox via the UI API
SandboxGetHealthStatusResponse
Bases: BaseResponse
Healthcheck results
SandboxGetVersionResponse
Bases: BaseResponse
Get information about product
SandboxGetImagesResponse
Bases: BaseResponse
Your application can get a list of virtual machine images installed in the PT Sandbox.
<URL>/engines/sandbox/getImages
SandboxScanWithSource
SandboxScanWithSourceFileRequest
SandboxScanWithSourceURLRequest
SandboxUploadScanFileResponse
Bases: BaseResponse
Before running the file analysis using the API, your application must upload this file to the sandbox.
<URL>/storage/uploadScanFile
Data
Bases: BaseModel
BaseRequest
Bases: BaseModel
The base class for all Request models related to the sandbox.
Alias conventions
- Public API requests (api/): fields use snake_case names that match the API directly — no aliases needed.
- UI API requests (ui/): fields use snake_case Python names with
serialization_alias="camelCase"so thatdict()/json()produce the camelCase keys the UI API expects.
dict() and json() always exclude None fields and use aliases,
because the API rejects requests containing null values.
BaseResponse
Bases: BaseModel
The base class for all Response models related to the sandbox.
Alias conventions
- All response models use
alias="camelCase"for validation, since both Public and UI APIs return camelCase JSON keys. by_alias=Trueis not needed for responses (they are only parsed, not serialized back to the API), butdict()/json()on responses will use aliases by default viamodel_config.
Artifact
Bases: BaseModel
A file, email, or other object
file_info
class-attribute
instance-attribute
Information about the scanned file
engine_results
class-attribute
instance-attribute
The results of checking the file with specific antiviruses or other components
artifacts
class-attribute
instance-attribute
Files that are archived.
If the file sent for analysis is not an archive or the allowed decompression depth is exceeded, the artifacts array is empty.
network_objects
instance-attribute
Network objects (url, ip, domain)
FileInfo
Bases: BaseModel
Information about the scanned file
Filled in for binary objects
file_path
instance-attribute
The path to the file (excluding the root file of the structure), including its title.
For example, for the file readme.txt at the root of the archive
archive.zip will be specified as the value of this field.
readme.txt, is an empty value for the archive itself.
mime_type
instance-attribute
The MIME type of the artifact is determined during the verification process.
FileInfoDetails
Bases: BaseModel
The type of the nested object depends on the type value.
ProcessDump
Bases: BaseModel
It is filled in for process memory dumps.
Type is equal to PROCESS_DUMP
EngineResult
Bases: BaseModel
engine_version
class-attribute
instance-attribute
Antivirus or component version
database_version
class-attribute
instance-attribute
Version of the antivirus database or knowledge base
database_time
class-attribute
instance-attribute
Time to update the antivirus database or knowledge base
detections
class-attribute
instance-attribute
An array with a description of the detected malware
Details
Bases: BaseModel
sandbox
class-attribute
instance-attribute
Detailed information about behavioral analysis (if enabled)
Sandbox
Bases: BaseModel
Detailed information about behavioral analysis (if enabled)
instance-attribute
A copy of network traffic, video recording, event logs, graph, debug files, mail headers.
class-attribute
instance-attribute
Virtual machine artifacts are files created during behavioral analysis.
class-attribute
instance-attribute
The stages of bootkit analysis.
class-attribute
instance-attribute
The actual duration of the behavioral analysis in seconds
class-attribute
instance-attribute
Was the bootkitmon analysis performed during BA
class-attribute
instance-attribute
Network objects (url, ip, domain)
class-attribute
instance-attribute
suspicious_behaviors: list[SuspiciousBehaviors] = Field(
default_factory=list[SuspiciousBehaviors]
)
List of triggered correlation rules
Bases: BaseModel
The result of a single scan stage with bootkitmon
class-attribute
instance-attribute
A list of BA detections at this stage
class-attribute
instance-attribute
A copy of network traffic, video recording, event logs, graph, debug files, mail headers
class-attribute
instance-attribute
Virtual machine artifacts are files created during behavioral analysis.
class-attribute
instance-attribute
The actual duration of the behavioral analysis in seconds
find_sandbox_result
Find and return the first result with behavioral logs Remained for backward compatibility
Detection
FilterProperties
Bases: BaseModel
Filtering a group of files by properties to send to the sandbox for analysis
Log
NetworkObject
SandboxImageInfo
Bases: BaseModel
Information about the VM image
image_id
class-attribute
instance-attribute
image_id: str | None = Field(
default=None,
validation_alias=AliasChoices("image_id", "name", "id"),
)
ID of the VM image
The new UI began to return the name of the image. However, in the form of a name.
os
class-attribute
instance-attribute
Information about the operating system of the virtual machine image
OS
Bases: BaseModel
Information about the operating system of the virtual machine
SandboxResult
Bases: BaseModel
File analysis result
duration
instance-attribute
The duration of the analsysis in seconds.
It is recorded only in the general results (in the JSON object data → result).
duration_full
instance-attribute
The duration of the check, taking into account the record in the database or the time of the request.
SuspiciousBehaviors
Bases: BaseModel
The correlation rule
mitre_threat_id
class-attribute
instance-attribute
The MITRE Threat ID
ArtifactType
Bases: SoftEnum
The type of the analyzed object
EngineSubsystem
Bases: SoftEnum
The analysis method
LogType
Bases: SoftEnum
NETWORK
class-attribute
instance-attribute
A copy of the network traffic in PCAP format
SCREENSHOT
class-attribute
instance-attribute
Snapshot or video recording from the virtual machine screen
EVENT_CORRELATED
class-attribute
instance-attribute
Correlated events
EVENT_NORMALIZED
class-attribute
instance-attribute
Normalized events
ScanState
Bases: SoftEnum
Status of completed analysis
Verdict
Bases: SoftEnum
VNCMode
SandboxArtifactsFilterValuesResponse
Bases: FilterValues
Possible values for filters based on sources and validation results
<URL>/api/ui/v2/tasks/filter-values
SandboxAVDistributionPacksResponse
Bases: BaseResponse
Response from /av-distribution-packs — list of AV distributions available for installation.
Data
Bases: BaseModel
License
Requirements
Installer
DistributionPack
Bases: BaseModel
engine_code_name
class-attribute
instance-attribute
AV engine code name
maintenance_status
class-attribute
instance-attribute
Maintenance status
SandboxAVEngineSettingsResponse
Bases: BaseResponse
Response from /av-engines/{item_id} — settings of a specific AV engine.
Data
Bases: BaseModel
licenses
class-attribute
instance-attribute
List of licenses
SandboxAVEnginesResponse
Bases: BaseResponse
Data
Bases: BaseModel
engines_info
class-attribute
instance-attribute
Mapping of engine code name to engine info.
Known keys: kaspersky, bitdefender, symantec, eset, drweb, clamav, avast, avira. New engines may appear in future API versions without library updates.
Engine
Bases: BaseModel
distribution_type
class-attribute
instance-attribute
Distribution type
engine_update_time
class-attribute
instance-attribute
The time of the last update of the antivirus engine
distribution_version
class-attribute
instance-attribute
Distribution version
is_installed
class-attribute
instance-attribute
Antivirus is installed
engine_version
class-attribute
instance-attribute
Engine version
errors
class-attribute
instance-attribute
Antivirus errors
is_initializing
class-attribute
instance-attribute
Antivirus initialization status
is_ready
class-attribute
instance-attribute
The antivirus is ready to work
database_time
class-attribute
instance-attribute
The time of the last database update
SandboxBaqueueTasksResponse
Bases: BaseModel
Listing of issues in the BA queue
Task
Bases: BaseModel
result_task_id
class-attribute
instance-attribute
ID of the task from which the result was taken
order_number
class-attribute
instance-attribute
Sequence number in the queue (for unfinished tasks)
priority_name
class-attribute
instance-attribute
String representation of task priority
entry_point_id
class-attribute
instance-attribute
Source ID
entry_point_type
class-attribute
instance-attribute
Source Type
object_mime_type
class-attribute
instance-attribute
The object's mime type
task_object_name
class-attribute
instance-attribute
Task Name
task_object_type
class-attribute
instance-attribute
The type of the task object (FILE, EMAIL, ...)
object_properties
class-attribute
instance-attribute
List of file labels
image_id
class-attribute
instance-attribute
ID of the BA image
planned_duration
class-attribute
instance-attribute
Planned analysis time (seconds)
bootkitmon_enable
class-attribute
instance-attribute
Is bootkitmon enabled or not
planned_bootkitmon_duration
class-attribute
instance-attribute
Planned time of the second stage analysis (seconds)
planned_total_duration
class-attribute
instance-attribute
Scheduled total time (main + bootkit + costs) - seconds
real_duration
class-attribute
instance-attribute
Actual duration (seconds)
object_name
class-attribute
instance-attribute
File Name
object_sha256
class-attribute
instance-attribute
sha256 file
object_sandbox_type
class-attribute
instance-attribute
Sandbox file type
save_video
class-attribute
instance-attribute
Is video saving enabled or not
convert_video
class-attribute
instance-attribute
Is video conversion enabled or not
procdump_enable
class-attribute
instance-attribute
Is procdump enabled or not
custom_command
class-attribute
instance-attribute
A custom command to run
ts_created
class-attribute
instance-attribute
Task creation timestamp
ts_starting
class-attribute
instance-attribute
Timestamp recruitment attempts
ts_started
class-attribute
instance-attribute
Timestamp of the start of work
ts_ready
class-attribute
instance-attribute
Readiness timestamp
ts_finished
class-attribute
instance-attribute
Completion timestamp
estimated_ts_finished
class-attribute
instance-attribute
Predicted completion time
SandboxClusterStatusResponse
Bases: BaseModel
Cluster information
high_availability
class-attribute
instance-attribute
High availability mode
sb_nodes_available
class-attribute
instance-attribute
Number of available BA nodes
vms_count_available
class-attribute
instance-attribute
Number of available VMs
nodes
class-attribute
instance-attribute
List of nodes
Node
Bases: BaseModel
vm_capacity
class-attribute
instance-attribute
The number of traps per node. Total capacity.
vm_allocatable
class-attribute
instance-attribute
The number of traps per node. Currently in use.
conditions
instance-attribute
Problematic conditions on the node Problematic conditions on the node will be shown here.
Examples of conditions:
[
{ "message": "Calico is not running on this node", "type": "NetworkUnavailable" },
{ "message": "kubelet has unsufficient memory available", "type": "MemoryPressure" },
{ "message": "kubelet has disk pressure", "type": "DiskPressure" },
{ "message": "Kubelet stopped posting node status.", "type": "Ready" }
]
total_pods
class-attribute
instance-attribute
The total number of pods per node
running_pods
class-attribute
instance-attribute
The number of working pods on the node
Info
Bases: BaseModel
System Information: Component versions
container_runtime
class-attribute
instance-attribute
Containerd version
vm_cpu
class-attribute
instance-attribute
The number of cores allocated for the BA
CorrelationInfo
Bases: BaseModel
Information about correlation
threat_classification
class-attribute
instance-attribute
Object classification (VIRUS, SPAM, WORM, etc.)
threat_level
class-attribute
instance-attribute
Threat level
threat_platform
class-attribute
instance-attribute
Artifact Platform
EntryPoint
Bases: BaseModel
Where did the task come from
client_ip
class-attribute
instance-attribute
The client's IP address
check_me
class-attribute
instance-attribute
Information about the sender and recipients
Quarantine
Bases: BaseModel
events
class-attribute
instance-attribute
List of quarantine events. Filled in only in API /summary, there is no such field in the listing.
QuarantineEvent
Bases: BaseModel
user_id
class-attribute
instance-attribute
User ID (for SEND only)
smtp_host
class-attribute
instance-attribute
SMTP Host (for SEND only)
smtp_port
class-attribute
instance-attribute
SMTP Port (for SEND only)
CheckMe
Bases: BaseModel
ICAP
Bases: BaseModel
client_ip
class-attribute
instance-attribute
ICAP header value: 'X-Client-IP'
DPI
Bases: BaseModel
src_ip
class-attribute
instance-attribute
The IP address where the object was sent from
src_port
class-attribute
instance-attribute
PORT where the object was sent from
dst_ip
class-attribute
instance-attribute
The IP address where the object was sent to
dst_port
class-attribute
instance-attribute
PORT where the object was sent to
proto
instance-attribute
Protocol. For HTTP or SMTP values, the corresponding keys are added.
MailAgent
Bases: BaseModel
from_address
class-attribute
instance-attribute
The sender received from the SMTP session (the 'MAIL FROM' command)
recipients
instance-attribute
The list of recipients received from the SMTP session (the 'RCPT TO' command)
MailBcc
Bases: BaseModel
FileInbox
FileMonitor
MailGateway
Bases: BaseModel
from_address
class-attribute
instance-attribute
The sender received from the SMTP session (the 'MAIL FROM' command)
recipients
instance-attribute
The list of recipients received from the SMTP session (the 'RCPT TO' command)
PTNAD
Bases: BaseModel
src_ip
class-attribute
instance-attribute
The IP address where the object was sent from
src_port
class-attribute
instance-attribute
PORT where the object was sent from
dst_ip
class-attribute
instance-attribute
The IP address where the object was sent to
dst_port
class-attribute
instance-attribute
PORT where the object was sent to
ClientWebInfo
Bases: BaseModel
user_agent
class-attribute
instance-attribute
The value of the HTTP header 'User-Agent'
x_forwarded_for
class-attribute
instance-attribute
The value of the HTTP header 'X-Forwarded-For' is used to determine the IP of the HTTP client
EntryPointToken
Error
ErrorWithLimit
Bases: Error
FilterValues
Bases: BaseModel
entry_points
class-attribute
instance-attribute
Possible values for filters by source
threat_classifications
class-attribute
instance-attribute
Possible values for filters based on the analysis result
HTTPDescription
Bases: BaseModel
referer
instance-attribute
The value of the HTTP 'Referer' header, from which page the request was sent
user_agent
class-attribute
instance-attribute
The value of the HTTP header 'User-Agent'
SMTPDefaultRecord
Token
Bases: BaseModel
name
instance-attribute
Name of the PublicAPI token.
Pattern: ^[a-zA-Z][a-zA-Z0-9-]{3,28}[a-zA-Z]$
creator_login
class-attribute
instance-attribute
Login of the user who created the token
modified
class-attribute
instance-attribute
UNIX time the time when the token comment was changed
deleted
class-attribute
instance-attribute
UNIX time the time of token deletion
SandboxComponentsResponse
Bases: BaseModel
Information about system components
Component
Bases: BaseModel
total_pods
class-attribute
instance-attribute
How many pods are there in total
ready_pods
class-attribute
instance-attribute
How many are running
pods
class-attribute
instance-attribute
List of pods
Pod
Bases: BaseModel
component_name
class-attribute
instance-attribute
Which component does it belong to
error_reason
class-attribute
instance-attribute
The type of error, if any
error_message
class-attribute
instance-attribute
Error message, if any
containers_running
class-attribute
instance-attribute
The number of working containers for a given hearth
EntryPointRules
Bases: BaseModel
base_url
class-attribute
instance-attribute
Web interface address
notify_destination
class-attribute
instance-attribute
Where to send notifications: to the sender or recipient
scan_timeout
class-attribute
instance-attribute
Timeout
max_execution_time
class-attribute
instance-attribute
Maximum scan execution time
exclude_blocks
class-attribute
instance-attribute
Exclude mail addresses from blocking
max_unpack_level
class-attribute
instance-attribute
Archive unpacking depth
notify_domains
class-attribute
instance-attribute
Email domains for notifications
notify_sender_message
class-attribute
instance-attribute
Message to sender
notify_recipient_message
class-attribute
instance-attribute
Message to the recipient
send_notify
class-attribute
instance-attribute
Sending notifications
background_dynamic_analysis
class-attribute
instance-attribute
Dynamic scanning in the background
sandbox_enabled
class-attribute
instance-attribute
Sandbox scanning
save_clean_files
class-attribute
instance-attribute
Save non-dangerous files to the incubator
url_extract_enabled
class-attribute
instance-attribute
Link Extraction
url_content_analysis_enabled
class-attribute
instance-attribute
url_content_analysis_enabled: bool | None = Field(
default=None, alias="urlContentAnalysisEnabled"
)
Scanning content by links
url_heuristic_prefilter_enabled
class-attribute
instance-attribute
url_heuristic_prefilter_enabled: bool | None = Field(
default=None, alias="urlHeuristicPrefilterEnabled"
)
Using heuristic analysis to scan links
url_patterns_included
class-attribute
instance-attribute
List of domains for link scanning (wildcards are allowed)
url_patterns_excluded
class-attribute
instance-attribute
List of domain exclusions for link scanning (wildcards are allowed)
url_limit_scanning_per_email
class-attribute
instance-attribute
Limit the number of scanned links per email
exclude_categories
class-attribute
instance-attribute
A list of lists of url categories excluded from scanning
without_behavior_analysis_if_has_dangerous
class-attribute
instance-attribute
without_behavior_analysis_if_has_dangerous: bool | None = (
Field(
default=None,
alias="withoutBehaviorAnalysisIfHasDangerous",
)
)
Don't run behavioral analysis if a dangerous file is found in the task
without_behavior_analysis_if_has_suspicious
class-attribute
instance-attribute
without_behavior_analysis_if_has_suspicious: bool | None = (
Field(
default=None,
alias="withoutBehaviorAnalysisIfHasSuspicious",
)
)
Don't run behavioral analysis if a suspicious file is found in the task
auto_select_sandbox_enabled
class-attribute
instance-attribute
Sandbox scanning with auto-image selection
disarming_enabled
class-attribute
instance-attribute
Enable email neutralization
disarming_by_conditions
class-attribute
instance-attribute
Neutralize emails according to the conditions
disarming_from_senders
class-attribute
instance-attribute
The list of senders whose emails need to be neutralized
disarming_to_recipients
class-attribute
instance-attribute
The list of recipients whose emails need to be neutralized
disarming_blocked_emails
class-attribute
instance-attribute
Neutralize blocked emails
rules_scan_config
class-attribute
instance-attribute
Custom rules for detection
enable_experimental_yara_rules
class-attribute
instance-attribute
enable_experimental_yara_rules: bool | None = Field(
default=None, alias="enableExperimentalYaraRules"
)
Enable object verification using yara test rules
Sandbox
SandboxMultiple
ScanConfig
Bases: BaseModel
rules
class-attribute
instance-attribute
rules: list[FileRule | FileInverseRule | URLRule] = Field(
default_factory=list[
FileRule | FileInverseRule | URLRule
]
)
List of custom detection rules
FileRule
Bases: _BaseRule
A custom rule for detecting files
File
Bases: BaseModel
class-attribute
instance-attribute
List of file name patterns for detection
class-attribute
instance-attribute
List of mime type patterns for detection
FileInverseRule
Bases: _BaseRule
Inverse user rule for file detection
FileInverse
Bases: BaseModel
class-attribute
instance-attribute
List of file name patterns for detection
EntryPointSettings
Bases: BaseModel
balancer_host
class-attribute
instance-attribute
Balancer Host
balancer_port
class-attribute
instance-attribute
Balancer port
destination_login
class-attribute
instance-attribute
Login of the destination file resource
destination_options
class-attribute
instance-attribute
Connection settings for the destination file resource
destination_password
class-attribute
instance-attribute
Password of the destination file resource
destination_port
class-attribute
instance-attribute
The port of the destination file resource
destination_server
class-attribute
instance-attribute
Destination file resource address
destination_share_path
class-attribute
instance-attribute
The path to the destination file resource
destination_type
class-attribute
instance-attribute
The type of the destination file resource
destination_version
class-attribute
instance-attribute
Version of the destination file resource
destination_auth_type
class-attribute
instance-attribute
destination_auth_type: (
Literal["NTLM", "KERBEROS"] | None
) = Field(default=None, alias="destinationAuthType")
The type of authentication when connecting to an SMB-share
destination_dc_ip
class-attribute
instance-attribute
Address of the domain controller
destination_use_ssl
class-attribute
instance-attribute
Use SSL when connecting to S3 file source
destination_ssl_check
class-attribute
instance-attribute
Verifying the authenticity of an SSL certificate when connecting to an S3 file source
destination_s3_region
class-attribute
instance-attribute
S3 Region
email
class-attribute
instance-attribute
Mailing address
grpc_service_port
class-attribute
instance-attribute
The port of the Mail Agent MTA management server
imap_auth_type
class-attribute
instance-attribute
The type of IMAP authentication
imap_host
class-attribute
instance-attribute
IMAP server address
imap_port
class-attribute
instance-attribute
IMAP server port
imap_use_ssl
class-attribute
instance-attribute
Use ssl
smtp_is_enabled
class-attribute
instance-attribute
Send the result in a reply email
smtp_tls_method
class-attribute
instance-attribute
smtp_tls_method: (
Literal["NO_TLS", "SMTP_TLS", "SOCKET_TLS"] | None
) = Field(default=None, alias="smtpTlsMethod")
TLS encryption method
login
class-attribute
instance-attribute
Login
password
class-attribute
instance-attribute
Password
quarantine_login
class-attribute
instance-attribute
Login for quarantine
quarantine_options
class-attribute
instance-attribute
Quarantine parameters
quarantine_password
class-attribute
instance-attribute
Quarantine password
quarantine_port
class-attribute
instance-attribute
Quarantine port
quarantine_server
class-attribute
instance-attribute
Quarantine server
quarantine_share_path
class-attribute
instance-attribute
Quarantine path to the directory
quarantine_type
class-attribute
instance-attribute
Type of quarantine
quarantine_version
class-attribute
instance-attribute
Quarantine version
quarantine_auth_type
class-attribute
instance-attribute
quarantine_auth_type: Literal["NTLM", "KERBEROS"] | None = (
Field(default=None, alias="quarantineAuthType")
)
The type of authentication when connecting to an SMB-share
quarantine_dc_ip
class-attribute
instance-attribute
Address of the domain controller
quarantine_use_ssl
class-attribute
instance-attribute
Use SSL when connecting to S3 file source
quarantine_ssl_check
class-attribute
instance-attribute
Verifying the authenticity of an SSL certificate when connecting to an S3 file source
quarantine_s3_region
class-attribute
instance-attribute
S3 Region
scan_max_file_size
class-attribute
instance-attribute
Maximum size of the scanned file
source_login
class-attribute
instance-attribute
Login of the source file resource
source_options
class-attribute
instance-attribute
Source file resource settings
source_password
class-attribute
instance-attribute
The password of the source file resource
source_port
class-attribute
instance-attribute
The port of the source file resource
source_server
class-attribute
instance-attribute
The server address of the source file resource
source_share_path
class-attribute
instance-attribute
List of paths to the source file resource
source_type
class-attribute
instance-attribute
The type of the source file resource
source_version
class-attribute
instance-attribute
Version of the source file resource
source_use_ssl
class-attribute
instance-attribute
Use SSL when connecting to S3 file source
source_ssl_check
class-attribute
instance-attribute
Verifying the authenticity of an SSL certificate when connecting to an S3 file source
source_s3_region
class-attribute
instance-attribute
S3 Region
source_auth_type
class-attribute
instance-attribute
source_auth_type: Literal["NTLM", "KERBEROS"] | None = (
Field(default=None, alias="sourceAuthType")
)
The type of authentication when connecting to an SMB-share
source_dc_ip
class-attribute
instance-attribute
Address of the domain controller
use_tls
class-attribute
instance-attribute
Use TLS
incoming_hosts
class-attribute
instance-attribute
List of additional source IP addresses
whitelist_ips
class-attribute
instance-attribute
The list of allowed IP addresses for connecting to the source.
Format: ip/cidr, if set without /cidr, we assume that this is a specific ip address.
Cidr can be set from 1 to 32.
use_whitelist_ips
class-attribute
instance-attribute
Use the list of allowed IP addresses to connect to the source
processing_mode
class-attribute
instance-attribute
SMTP response mode to the client
process_x_original_to
class-attribute
instance-attribute
Process the recipient's address from the X-Original-To header
SMTPSettings
Bases: BaseModel
Route
SandboxCreateEntryPointRequest
Bases: BaseRequest
SandboxEntryPointResponse
Bases: BaseResponse
EntryPoint
Bases: BaseModel
Information about the verification source
blocking_enabled
class-attribute
instance-attribute
Blocking mode
allow_blocking
class-attribute
instance-attribute
Allow email blocking notifications
SandboxEntryPointsResponse
Bases: BaseResponse
EntryPoint
Bases: BaseModel
Information about the verification source
blocking_enabled
class-attribute
instance-attribute
Blocking mode
allow_blocking
class-attribute
instance-attribute
Allow email blocking notifications
sandbox_enabled
class-attribute
instance-attribute
Checking in the sandbox
SandboxEntryPointsTypesResponse
Bases: BaseResponse
List of possible sources to check
EntryPoint
Bases: BaseModel
allow_blocking
class-attribute
instance-attribute
Blocking mode
entrypoint_id
class-attribute
instance-attribute
The unique name of the source
SandboxLicenseResponse
Bases: BaseResponse
License status and details
Data
Bases: BaseModel
serial_number
class-attribute
instance-attribute
Serial number of the current license
UpdateStatus
Bases: BaseModel
Information about the last attempt to update the license
license_update_time
class-attribute
instance-attribute
When the license itself was updated, not when it was checked
License
Bases: BaseModel
entry_points
class-attribute
instance-attribute
Allowed entrypoints
expiration_time
class-attribute
instance-attribute
License expiration date
external_av_engines
class-attribute
instance-attribute
Allowed external engines
files_per_hour
class-attribute
instance-attribute
Throughput capacity
grace_period
class-attribute
instance-attribute
The number of grace period days in seconds
internal_av_engines
class-attribute
instance-attribute
Allowed internal engines
is_entry_points_blocking_mode
class-attribute
instance-attribute
Is blocking mode allowed?
license_version
class-attribute
instance-attribute
License version
nodes_limit
class-attribute
instance-attribute
Maximum number of nodes by type
performance
class-attribute
instance-attribute
Bandwidth by traffic type
Performance
Bases: BaseModel
Bandwidth by traffic type
Sandbox
SandboxLicenseUpdateResponse
SandboxScansResponse
Bases: BaseModel
Scan results
StorageItem
Bases: TypedDict
A small abstraction that allows you to better type an object
SandboxSystemSettingsResponse
Bases: BaseResponse
System Settings
Data
Bases: BaseModel
SIEMNotifier
Bases: BaseModel
transport_protocol
class-attribute
instance-attribute
Transmission protocol
CybsiNotifier
Bases: BaseModel
api_key
class-attribute
instance-attribute
Key for the Cybsi API
share_level
class-attribute
instance-attribute
The access level applied to all artifacts
EmailNotifier
Bases: BaseModel
notify_unwanted
class-attribute
instance-attribute
Notification of unwanted objects
sender_address
class-attribute
instance-attribute
Sender's address
Authentication
Unpacker
EventCombiner
Storage
Bases: BaseModel
Settings
Components
Bases: BaseModel
Bases: BaseModel
Bases: BaseModel
Quarantine
Bases: BaseModel
retention_period
class-attribute
instance-attribute
Storage period in quarantine
use_smtp
class-attribute
instance-attribute
Use a backup mail server to forward emails
SandboxSystemStatusResponse
Bases: BaseModel
System events are returned here with information about the current state of the system, i.e. a slice of the current state.
The event may relate to a specific object, in this case the ObjectId field is filled in. Basically, the event codes indicate a specific problem.
Some events may contain additional parameters. For example AV_ENGINE_IN_NOT_GENERAL_AVAILABILITY
Description of current errors:
-
AV_ENGINE_IN_NOT_GENERAL_AVAILABILITY- the engine is approaching or becoming unavailable. The ObjectId specifies the name of the engine. Example of parameters -
STORAGE_CAPACITY_EXCEEDED_COMPONENTS_MAX_SIZE_BYTES- Exceeding limits for a specific component -
STORAGE_CAPACITY_EXCEEDED_MINIMUM- Exceeding the total minimum required free space -
COMPONENT_CAPACITY_EXCEEDED_THRESHOLD- Exceeding the threshold for free space for a specific component (ObjectId) -
COMPONENT_CAPACITY_EXCEEDED_MAX_SIZE- Exceeding the limit for a specific component (ObjectId) A list of possible components, similar to the Settings API:['incubator', 'quarantine', 'system', 'sandbox_images'] -
SANDBOX_RECONFIGURING- The configuration is being performed. -
NODE_IS_NOT_READY- The node is unavailable (with the not ready status). The ObjectId contains the node name. The parameters indicate the time from which the status changed. -
COMPONENT_ERROR- An error in specific components of the group. The ObjectId specifies a group of components. Example:This error should be interpreted roughly as: An error of the "SANDBOX" subsystem. Affected components:{ "code": "COMPONENT_ERROR", "group": "SANDBOX", "level": "ERROR", "objectId": "SANDBOX", "params": { "sb-worker-1": { "error_codes": [ "OFFLINE" ] }, "traps-resource-plugin": { "error_codes": [ "OFFLINE" ] } } ... }"sb-worker-1", "traps-resource-plugin" -
COMPONENT_PARTIALLY_AVAILABLE- Similar to COMPONENT_ERROR, only it's about the unavailability of a part of the pod, or a decrease in performance -
NEW_VERSION_AVAILABLE- A new version is available. The ObjectId specifies the version -
NEW_VERSION_INSTALLATION_SCHEDULED- A new version is available and it is scheduled for installation. The ObjectId specifies the version. In the settings, the scheduled installation time is -
END_OF_SUPPORT_SOON- Support for theEND_OF_SUPPORTversion will end soon - Support for the version has been discontinued in params -
IMAGE_INSTALL_ERROR- Error when installing the image, the name of the image is entered in the ObjectId. -
NODE_HAVE_ERROR- There are errors on the node. The ObjectId contains the node name. The error types are specified in the parameters.
Event
Bases: BaseModel
object_id
class-attribute
instance-attribute
The object's ID. It can be an empty string for general events.
created_ts
class-attribute
instance-attribute
Time when the event was created
updated_ts
class-attribute
instance-attribute
Event update Time
SandboxUpdateSystemSettingsRequest
Bases: BaseRequest
SIEMNotifier
CybsiNotifier
Bases: BaseModel
enabled
class-attribute
instance-attribute
Enabling/disabling sending reports to Cybsi
api_url
class-attribute
instance-attribute
Cybsi URL API
api_key
class-attribute
instance-attribute
Key for the Cybsi API
EmailNotifier
Bases: BaseModel
notify_unwanted
class-attribute
instance-attribute
Notification of unwanted objects
sender_address
class-attribute
instance-attribute
Sender's address
Authentication
Unpacker
EventCombiner
Storage
Quarantine
Bases: BaseModel
retention_period
class-attribute
instance-attribute
Storage period in quarantine
use_smtp
class-attribute
instance-attribute
Use a backup mail server to forward emails
SandboxTasksFilterValuesResponse
Bases: FilterValues
Possible values for filters based on sources and validation results
<URL>/api/ui/v2/tasks/filter-values
SandboxTasksSummaryResponse
Bases: BaseModel
Information about a specific task
<URL>/api/ui/v2/tasks/{scanId}/summary
SandboxUITasksResponse
Bases: BaseModel
Tasks listing
<URL>/api/ui/v2/tasks
current_cursor
class-attribute
instance-attribute
The cursor for pagination, points to the data after the first record (if any)
Task
Bases: BaseModel
object_type
class-attribute
instance-attribute
Object type
correlation
class-attribute
instance-attribute
The overall verdict of the product on the file. It's based on the sandbox, so it is on antiviruses and the result of static analysis.
sandbox_correlation
class-attribute
instance-attribute
The verdict is exclusively sandbox
entry_point
class-attribute
instance-attribute
Where did the task come from
start_time
class-attribute
instance-attribute
Task creation time (float UNIX timestamp)
processed_time
class-attribute
instance-attribute
Task execution time (float UNIX timestamp)
SandboxCreateTokenResponse
Bases: Token
SandboxTokensResponse
SandboxInfo
Bases: BaseModel
analysis_duration
class-attribute
instance-attribute
Duration of behavioral analysis
analysis_planned_duration
class-attribute
instance-attribute
Planned duration of the analysis
dpi_rules_version
class-attribute
instance-attribute
PT DPI rules version
correlation_rules_version
class-attribute
instance-attribute
Version of the correlation rules
file_type
class-attribute
instance-attribute
What type of file was launched with
File type (apparently, how the sandbox decided)
image_info
class-attribute
instance-attribute
Image Information
auto_select
class-attribute
instance-attribute
Was the image selected automatically
suspicious_behaviors
class-attribute
instance-attribute
List of suspicious rules
bootkitmon_stage
class-attribute
instance-attribute
Type of bootkitmon analysis stage
stage_index
class-attribute
instance-attribute
The number of the bootkitmon analysis stage
SandboxTreeResponse
TreeNode
Bases: BaseModel
node_id
class-attribute
instance-attribute
The node ID. It starts from 1
parent_ids
class-attribute
instance-attribute
A list of parent node IDs. It starts from the root
The chain! parents. 0 -> 1 -> 2 -> 3 <=> nodeId=3, parentIds=[0,1,2]
node_type
class-attribute
instance-attribute
Node Type
correlation
class-attribute
instance-attribute
Correlation results
archive_info
class-attribute
instance-attribute
If the node is an archive, and the sandbox has managed to find a password, it will be in this field.
sandbox_info
class-attribute
instance-attribute
Sandbox-specific scan results
sandbox_correlated_info
class-attribute
instance-attribute
sandbox_correlated_info: SandboxCorrelatedInfo | None = (
Field(default=None, alias="sandboxCorrelatedInfo")
)
Correlated sandbox result (filled in if sandbox_correlated_state != UNKNOWN)
scan_artifacts
class-attribute
instance-attribute
Sandbox artifacts: trails, events, graph, videos...
first_child_count
class-attribute
instance-attribute
Number of children of the first level
is_match
class-attribute
instance-attribute
Used for the filtering API.
Does the node match the search conditions, if false, then it's just the parent element?
matched_fields
class-attribute
instance-attribute
Used for the filtering API. The list of fields that fall under the text query
The path to the field, for example ['info', 'name']
SandboxDropInfo
Bases: BaseModel
bootkitmon_stage
class-attribute
instance-attribute
ID of the bootkitmon analysis stage
stage_index
class-attribute
instance-attribute
The number of the bootkitmon analysis stage
HTTPInfo
Bases: BaseModel
Request
Bases: BaseModel
user_agent
class-attribute
instance-attribute
The value of the HTTP header 'User-Agent'
x_forwarded_for
class-attribute
instance-attribute
The value of the HTTP header 'X-Forwarded-For' is used to determine the IP of the HTTP client
DownloadUrlInfo
Bases: BaseModel
status_code
class-attribute
instance-attribute
Status code from the HTTP Status Line
BwListsInfo
Bases: BaseModel
hashes
instance-attribute
The type of hash for which a match was found in the WB lists
CategorizerInfo
Bases: BaseModel
Result
Bases: BaseModel
categories
class-attribute
instance-attribute
PTCategorizer Categories
CacheInfo
Bases: BaseModel
source_scan_id
class-attribute
instance-attribute
The original task ID
source_node_id
class-attribute
instance-attribute
The source node ID