Provision machines to Qualys vulnerability scans

Customer ServiceIT Service Management

What it does

When someone closes a provisioning ticket in ServiceNow, this automation checks the task type and hostname. It adds the machine to Qualys with the correct device type so future scans include it.

Who it's for

IT teams who need newly provisioned machines included in vulnerability scans without manual setup in Qualys.

Apps used

How teams use this

Scan new virtual machines automatically

When a VM provisioning ticket closes in ServiceNow, the hostname and IP are added to Qualys as a virtual machine. Future scans pick it up without manual entry.

Include physical machines in scans

Extend this automation to add physical computers to Qualys by checking the hostname prefix and setting the device type to PC instead of VM only.

Scan machines from other ticket types

Retarget this automation to include other provisioning task types beyond the current provision type so more machine categories are scanned automatically.

How it works

  1. Monitor closed provisioning tickets. When a record in the Task table is created or updated with status closed and task type provision, this automation starts and retrieves the hostname and IP address.
  2. Determine device type. Check whether the hostname starts with VM to identify if the provisioned machine is virtual or physical so the correct device type is sent to Qualys.
  3. Add machine to Qualys. Add the hostname and IP address to Qualys with the device type set to VM or PC based on the hostname check. The machine is now included in future vulnerability scans.