Threat and solution summary from an associated vulnerability

You can combine the threat and solution information from the referenced vulnerability into a summary field on the vulnerable item.

Before you begin

Role required: admin

Procedure

  1. Navigate to Vulnerability > Vulnerable Items.
  2. Select a vulnerable item.
  3. Right click in the header and select Configure > Dictionary.
  4. Click New.
  5. Fill in the fields on the form, as appropriate. See Dictionary entry form Data dictionary form
  6. Navigate to System Import Sets > Administration > Transform Maps.
  7. Search for Qualys Detection List Transform.
  8. Click on the Field Maps tab.
  9. Add new field mapping. See Create a field mapCreate a field map.
    1. Check the Use Source Script box.
    2. Set the target field to Vulnerability Summary.
    3. Enter the Source Script:
      answer = (function transformEntry(source) {
      var gr = new GlideRecord('sn_vul_third_party_entry');
      gr.get('id','QID-'+source.u_qid);
      if ((gr.threat) && (gr.threat != 'undefined')) {
      return '<h1>Threat:</h1><br>' +gr.threat+'<br><br><h1>Solution:</h1><br>'+gr.solution;
      } else
      return;
      })(source);
  10. Click Submit.