Generate Report on VITs part of multiple Remediation Tasks VULs

navyanowdev
Tera Contributor

I am trying to Use background script, which is timing out after a while.

The  script I am using identifies Vulnerable Items (VITs) that are linked to more than one Vulnerability record through the sn_vul_m2m_vul_group_item table and prints the results.

What the script does

  1. Queries the sn_vul_m2m_vul_group_item M2M table.
  2. Builds a map where:
    • Key = Vulnerable Item Sys ID
    • Value = Array of related Vulnerability Sys IDs
  3. Removes duplicate vulnerability references for each VIT.
  4. Finds VITs associated with multiple vulnerabilities.
  5. Retrieves the VIT number and all related vulnerability numbers.
  6. Prints output like:
VIT0001234 --> VULN0001001, VULN0001002, VULN0001003

Script:
navyanowdev_0-1786643462741.png


And also I tried generating a report, but can't add related list conditions.

navyanowdev_1-1786643655450.png

 




0 REPLIES 0