Skip to main content

quarantine-file

This Script is part of the Aggregated Scripts Pack.#

Supported versions

Supported Cortex XSOAR versions: 6.10.0 and later.

This script executes the 'quarantine-file' command on a specified file via the appropriate agent. This script is used to isolate files identified as suspicious.

Script Data#


NameDescription
Script Typepython3
Cortex XSOAR Version6.10.0

Inputs#


Argument NameDescription
endpoint_idList of endpoint IDs.
file_hashThe hash of the file to quarantine. Supported types are: SHA256.
file_pathThe path of the file to quarantine.
timeoutThe polling timeout in seconds for the quarantine commands. The default is 300.
brandsBrands for which to execute the 'quarantine-file' command. If not specified, all available instances will run.
verboseWhether to retrieve a human-readable entry for every command. When set to false, human-readable will only summarize the final result.

Outputs#


PathDescriptionType
QuarantineFile.FilePathThe path of the quarantined file.String
QuarantineFile.FileHashThe hash of the quarantined file.String
QuarantineFile.StatusWhether the command execution was successful or not.String
QuarantineFile.MessageA success message if the command runs successfully, otherwise a message that contains the error.String
QuarantineFile.BrandThe integration that executed the command.String
QuarantineFile.EndpointIDThe endpoint_id which the command was executed on.String