Skip to content
Release: Australia · Updated: 2026-06-05 · Official documentation · View source

Create a Vulnerability Response CI lookup rule

The CI Lookup Rules module contains rules that are used to find the matching record for host information received during third-party vulnerability integration imports. The host information is matched with the discovered items, unmatched configuration item classes, and the Configuration Management Database (CMDB).

Before you begin

Persona and granular roles are available to help you manage what users and groups can see and do in the Vulnerability Response application. For an initial assignment of the persona roles in Setup Assistant, see Assign the Vulnerability Response persona roles using Setup Assistant. For more information about managing granular roles, see Manage persona and granular roles for Vulnerability Response.

Role required: sn_vul.vulnerability_admin

About this task

Creating CI lookup rules requires advanced ServiceNow and Vulnerability Response expertise. Rather than modifying one of the existing lookup rules, consider copying it and modifying the copy. When you are satisfied that the new rule does what you want, deactivate the original.

Note: Rules, once removed, cannot be recovered. Rather than removing existing rules, deactivate them when creating new ones.

Procedure

  1. Navigate to All > Security Operations > CMDB > CI Lookup Rules.

  2. Click New.

  3. On the form, fill in the fields.

FieldDescription
NameName of the rule.
Lookup methodMethod used for matching. Choices are:- Script: Pre-built (IP address, DNS name, and so on) or custom script. - Field matching: Search on table or field in the CMDB.
TypeType used with the Script Lookup method.
OrderOrder of precedence for the rule. Rules with the lowest order are evaluated first.
ActiveCheck box for whether the rule is active or disabled.
SourceSource used as input to this rule.
Source fieldSource field used as input to this rule. Select any field, but it is treated as a string value.
ConditionCondition based on which the CI lookup rule is applied. This condition depends on the attribute from the third-party scanner.Note: The asset attribute is a part of the payload. It is received from the third-party scanner. See the Discovered Items table for payload examples.
Script

Editable sample script, based on the Type, is shown. Implement the custom script following the comments included in the template of the default function.Note:

The process function has three parameters: rule, sourceValue, and sourcePayload

Search on tableTable to search within the CMDB. Used with field matching Lookup Method.
Search on fieldField that contains information that can be used to locate a CI. Used with the field matching Lookup method. This field may be on the CI record, or on a related record, such as a network adapter.
Applies to

This field has no value by default.

For third-party and ServiceNow® integrations that support both Application Vulnerability Response (AVR) and Vulnerability Response (VR) like the Vulnerability Response Integration with Wiz, for example, select one as it applies to each rule:

  • Discovered Item - for Vulnerability Response lookup rules.
  • Discovered Application - for Application Vulnerability Response lookup rules. Note: If you leave this field empty for lookup rules that support both VR and AVR integrations, background jobs for both applications apply changes on the same set of lookup rules. This state might cause a conflict and set the reapply flag incorrectly.

With this distinction set, after the respective background jobs for AVR and VR are completed, the system resets the flag only for the lookup rules for the background job that was run.

  1. Click Submit.

    For more information implementation information for CI Lookup Rules see, Steps to help prevent duplicate or orphaned records after running Vulnerability Response CI lookup rules.

Image omitted: CI-LookupRules-v12.png
CI lookup rule using a condition builder for version 12.0.
Image omitted: CI-LookupRules.png
CI lookup rule using a script
  • Ignore CI classes
    To ignore some configuration item (CI) classes, for example Load Balancer [cmdb_ci_lb], when running CI Lookup Rules, set the ignoreCIClass [sn_sec_cmn.ignoreCIClass] system property.
  • Filter decommissioned CIs
    Filter decommissioned configuration items (CIs) while running the CI lookup rules. To filter decommissioned CIs when running the Security Operations CMDB CI lookup rules, set the filterOutDecommissionedCI [**sn\_sec\_cmn.filterOutDecommissionedCI**] system property to true.
  • Auto-promote CIs
    Edit the JSON string in the autoPromoteFields [**sn\_sec\_cmn.autoPromoteFields**] system property so your configuration item (CI) lookup rules auto-promote all the Security Operations CMDB CIs to matching entries in the [cmdb_ci] table.

Parent Topic:Advanced Vulnerability Response configuration tasks

Related topics

Vulnerability Response vulnerable item form fields