Skip to main content

PAN-OS - Job - Remove Malicious Domains From Sinkhole

This Playbook is part of the PAN-OS by Palo Alto Networks Pack.#

Supported versions

Supported Cortex XSOAR versions: 6.9.0 and later.

This playbook should be run as a job. It is used to periodically remove the specified tag from domain indicators. It should be used in conjunction with the "PAN-OS - Job - Add Malicious Domains To Sinkhole" playbook, to stop domains from being sinkholed after a certain amount of time. The idea is that traffic to malicious domains will not be redirected to a sinkhole address forever, as malicious domains tend to lose their malicious properties (become inactive, get taken down, or the malware using them is no longer used or maintained).


This playbook uses the following sub-playbooks, integrations, and scripts.


This playbook does not use any sub-playbooks.


This playbook does not use any integrations.


  • GetTime
  • Set


  • findIndicators
  • removeIndicatorField

Playbook Inputs#

NameDescriptionDefault ValueRequired
SinkholeTagThe tag that will be removed from the tagged domain indicators.
This should be the tag that was used to export the domains to the EDL using the Generic Export Indicators Service integration, which is used by the firewall's sinkhole configuration.
DaysTaggedBeforeRemovalThe "decay period" - how many days should pass since the domains were tagged, before removing the sinkhole tag from those domains.
The value should be a number of days. For example: 14.

Technical details: When specifying the decay period, the playbook will take into account multiple tagging/untagging activities in the domain indicator in Cortex XSOAR. This means that if you specified a value of "14" and a domain was tagged 15 days ago, but also untagged and then tagged again 10 days ago - it will not be untagged by the playbook, as tagging activity happened 10 days ago. It will, however, be untagged when the playbook runs 5 days afterwards, since at that time the domain will have reached the decay period again.

Playbook Outputs#

There are no outputs for this playbook.

Playbook Image#

PAN-OS - Job - Remove Malicious Domains From Sinkhole