iot-security-check-servicenow

Close the XSOAR incident if the IoT ServiceNow ticket was closed. This command should be run in a Job.

python · IoT by Palo Alto Networks

Details

IDiot-security-check-servicenow
Languagepython
From Version5.0.0
Docker Imagedemisto/python3:3.12.13.10116658
Tagsiot

README

Close the XSOAR incident if the IoT ServiceNow ticket was closed. This command should be run in a Job.

Script Data


Name Description
Script Type python3
Tags iot
Cortex XSOAR Version 5.5.0

This script is run by a playbook ‘iot-check-service-playbook’, that is run by a recurring XSOAR job.

First of all, we are looping all the open XSOAR incidents based on two incident types:
“IoT Alert” and “IoT Vulnerability”

Then we are only interested of the ones with a customized instance field: ServiceNow table name, that tells us a
corresponding ServiceNow ticket was created. Looping each one of this incident, and query ServiceNow for the ticket
status. If the status is “Closed”, we are closing the XSOAR incident.

Used In


This script is used in the following playbooks and scripts.

  • PANW IoT ServiceNow Tickets Check

Inputs


There are no inputs for this script.

Outputs


There are no outputs for this script.

## iot-security-check-servicenow Script

This script is run by 'iot-check-service-playbook', which is triggered by a recurring XSOAR job.

It goes through all the open XSOAR incidents based on two incident types:
"IoT Alert" and "IoT Vulnerability". It searches for the ones with a customized instance field: ServiceNow table name, which tells us if a
corresponding ServiceNow ticket was created. 

It then loops through each one of these incidents, and queries ServiceNow for the ticket
status. If the status is "Closed" in ServiceNow, the script closes the XSOAR incident.