Skip to main content

block-domain

This Script is part of the Aggregated Scripts Pack.#

Supported versions

Available on Cortex XSOAR (versions 6.10.0 and later) and Cortex XSIAM.

The script blocks a list of domain FQDNs in supported integrations. Currently only supports Palo Alto Networks Panorama.

Script Data#


NameDescription
Script Typepython3
Cortex XSOAR Version6.10.0

Inputs#


Argument NameDescription
domain_listA comma-separated list of domain FQDNs to block. Wildcard entries (e.g. *.evil.com) are not supported and are skipped.
rule_nameThe name of the rule which will be created in the relevant products. Default: Cortex - Block Domain.
log_forwarding_nameThe Panorama log forwarding object name that specifies the Log Forwarding setting to apply to the PAN-OS custom rules.
address_groupThe name of the PAN-OS Panorama or Firewall address group used to hold the blocked domain FQDN objects. Default: Blocked Domains - Cortex.
auto_commitWhether to commit the new rule and push to the device group at the end of the run. Default: true.
tagThe designated tag name for the domain FQDN object. Applied to every object the script creates. Default: cortex-blocked-domains.
brandsA comma-separated list of integration brands to run the command for. If not provided, the command runs for all available integrations.
verboseWhether to retrieve a human-readable entry for every command or only the final result. True retrieves a human-readable entry for every command. False retrieves a human-readable entry only for the final result. Default: false.

Outputs#


PathDescriptionType
BlockDomain.DomainThe domain FQDN that was processed.String
BlockDomain.BrandThe brand (integration) used to block the domain.String
BlockDomain.StatusThe lifecycle status of the action. One of Done, Pending, Skipped, Failed.String
BlockDomain.ResultThe result of the action. Success or Failed.String
BlockDomain.RuleNameThe name of the rule used for this integration. Empty if no rule was used.String
BlockDomain.MessageA message concerning the result of the action.String