--- title: Configuring lookup rules description: By configuring lookup rules, you can map security exposure data to the correct configuration items \(CIs\) in the CMDB. This mapping is a critical function because associating exposure findings with the right assets is essential for proper risk assessment, assignment, and remediation workflows.Create lookup rules to automatically and accurately associate incoming exposure findings data with the correct configuration items \(CIs\) in the Configuration Management Database \(CMDB\) This is essential for enabling the rest of the vulnerability management process to function correctly.To ignore some configuration item \(CI\) classes, for example Load Balancer \[cmdb\_ci\_lb\], when running lookup rules, set the ignoreCIClass \[sn\_sec\_cmn.ignoreCIClass\] system property.Reapply lookup rules to ensure updated or existing rules are applied to relevant items. This helps maintain accurate data mapping and consistency after rule changes or additions.Reapply the lookup rules on selected discovered items from the discovered item list view select actions. If the configuration item \(CI\) changes after you reapply the rules, the discovered items are updated with the new CI and impacted detections. Vulnerable items are also updated. locale: en-US canonical_url: https://www.servicenow.com/docs/r/australia/security-management/sem-configure-lookup-rules.html release: australia topic_type: concept last_updated: "2026-03-12" reading_time_minutes: 8 breadcrumb: [Configure rules to manage findings, Implement, Unified Security Exposure Management, Security Operations] --- # Configuring lookup rules By configuring lookup rules, you can map security exposure data to the correct configuration items \(CIs\) in the CMDB. This mapping is a critical function because associating exposure findings with the right assets is essential for proper risk assessment, assignment, and remediation workflows. **Parent Topic:**[Configure rules to manage findings](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/security-management/sem-configure-rules-manage-findings.md) **Related topics** [Associating finding with a configuration item using lookup rules](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/security-management/sem-associate-finding-configuration-item-using-lookup-rules.md) ## Create lookup rule Create lookup rules to automatically and accurately associate incoming exposure findings data with the correct configuration items \(CIs\) in the Configuration Management Database \(CMDB\) This is essential for enabling the rest of the vulnerability management process to function correctly. ### Before you begin Role required: sn\_vul.vulnerability\_admin ### About this task Creating lookup rules requires advanced ServiceNow and Unified Security Exposure Management \(USEM\) 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 **Workspaces** > **Security Exposure Management Workspace**. 2. Select **Administration** \[gear icon\] in the navigation pane. 3. Select **Review** on the **Look-up rules** tile. 4. On the Rules page, select **Look-up** in the navigation pane. 5. Select **New**. 6. On the form, fill in the fields.
| Field | Description |
|---|---|
| Details | |
| Name | Name of the rule. |
| Lookup method | Method 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. |
| Type | Type used with the Script **Lookup method**. |
| Order | Order of precedence for the rule. Rules with the lowest order are evaluated first. |
| Active | Check box for whether the rule is active or disabled. |
| Source | Source used as input to this rule. |
| Source field | Source field used as input to this rule. Select any field, but it is treated as a string value. |
| Description | Description of the new look-up rule. |
| Lookup target | Lookup approach you want to follow. Select from: - Configuration item - Product model |
| 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. |
| If condition is met | |
| Condition | Condition based on which the 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. |
| Then set this value | |
| Lookup method | Method 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. |
| Search on CI table | Table to search within the CMDB. Used with field matching **Lookup Method**. |
| Search on product table | If you choose the Product model Lookup target, the default value is Application Model. |
| Search on CI field | Field 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. |
| Search on product model field | If you choose the Product model Lookup target, the default value is Name. |
| Type | Type used with the Script Lookup method. |
| 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** |