OBLYTECH Logo
OBLYTECH Logo

Vulnerable Item Lifecycle in ServiceNow: States and Fields

A vulnerable item in ServiceNow Vulnerability Response changes state through a small set of controls: the key that defines it, the remediation task that holds it, deferral, rescans and manual edits. This page explains how each control behaves, which role it needs and which form fields show the result.

Set the vulnerable item key before importing data

The key decides how detections are split into records. By default, one item is one combination of a configuration item, a vulnerability and an integration instance. The key can add unique ports or, for Microsoft TVM data, unique recommendations. The vulnerable item explainer covers what the record is; this section covers the setting that changes how records are created.

Turning on Include port changes the next import, so a vulnerability found on ports 80 and 443 of one configuration item produces two records. The setting needs the admin role. Open All > Vulnerability Response > Administration > Configure Vulnerable Item Granularity, select Include Port and save. Existing data decides the procedure:

Situation What to do
New instance, an upgrade from before v10.0, or data already deleted Enable Include port. The next import builds port-level items.
Version 10.0 or later, with existing data to keep Enable Include port. Existing items are preserved and new detections create port-level items.
Version 10.0 or later, with existing data not wanted Delete all vulnerable item records and related data, then enable Include port.

Switching back needs Vulnerability Response data deleted first, and a port-level key can increase the item count on one configuration item. Check that count after the next import.

Create and manage vulnerable items by hand

Items usually come from a scanner integration that imports nightly. Manual records suit cases such as physical security vulnerabilities. Creating one needs the sn_vul.vulnerability_write role: go to All > Vulnerability Response > Vulnerable Items, select a category, choose New and save from the form header. Saving runs the remediation task rules and the enabled calculators. A target field can have one active calculator, so activating one switches off the others that share its field.

The header bar offers Update, Create Security Incident, Close, Request Exception, Resolve and Delete. An item cannot be linked as a parent task, and removing its configuration item from the CMDB removes the item.

Follow state changes through remediation tasks

State changes usually start at the remediation task explainer and pass down to the items it holds. When an item sits in more than one group, the state with the highest precedence applies, in this order:

  1. Closed
  2. Deferred
  3. Resolved
  4. In Review
  5. Awaiting Implementation
  6. Under Investigation
  7. Open

Items nobody has changed individually follow their task, so moving the task from Open to Awaiting Implementation moves its items too. An item closed or deferred on its own stops following the task and takes the highest-precedence state across its groups. Three edge cases catch people out:

  • Closing a task as Canceled or Fixed with Exception leaves its items alone. Each takes the state of another task holding it, or returns to Open.
  • When all items in a task reach Closed/Fixed, the task closes automatically as Closed/Fixed.
  • Moving items from Resolved back to Open moves the task to Under Investigation, unless both its Assigned to and Assignment group fields are empty. In that case it stays Resolved.

Defer a vulnerable item and set an expiry

Deferral is for an issue judged low risk that can be deferred without further analysis. It needs the sn_vul.vulnerability_admin role. Open the item, select Request Exception, and complete Until (the date the deferred state expires and the task reactivates), Reason and Additional information. The reason choices are Awaiting maintenance window, False positive, Fix unavailable, Risk accepted, Mitigating control in place and Other. Submitting moves the group to In Review and writes the reopen date and reason into work notes under State Change Approvals.

A daily job reopens deferred items on their expiry day. From v20.0 it first checks for an applicable exception rule and updates Reason and Until to match, so the state stays Deferred until the latest expiry date. Notifications go to the Vulnerability Response group as expiry nears and again when the item returns to Open.

From v18.0, a deferred item that a scanner closes and reopens inside its exception window goes back to Deferred when the system property sn_vul.auto_defer_vit_in_active_exception_window is set to true.

Refresh tasks and recover ungrouped items

The Update status link checks a task for further items that belong to it, which helps when a change cannot wait for the scheduled job. It works on tasks in the Open or Under Investigation state whose filter is a filter group or a condition. From v22.0, an Update Status button also appears in record view in the Vulnerability Manager Workspace and the IT Remediation Workspace.

An item lands in the ungrouped list when it was created without a vulnerability, or when no task rule assigns it to a group. Review it at All > Vulnerability Response > Vulnerable items > Ungrouped, then adjust the task rules, create a task by hand and add the items, or add them to an existing task in Open or Under Investigation. Hand-added items are not removed by rules or conditions later. Rule design is covered on the triage grouping rules page.

Read the detection data behind each record

A detection is one distinct occurrence of a vulnerability as a scanner reports it. Each import pairs detections with items and updates item state from them. Scanner data alone opens and closes detections, and an item’s state does not flow down to them.

The Detections tab lists current detections, the Initial Detections tab keeps the first occurrence fixed, and the Vulnerable Item Detection list shows each detection as its own record. For Qualys, the Qualys severity and Last updated by source fields are deprecated and no longer populated.

Reopening follows these rules:

Starting point Trigger Result
Closed, substate fixed or stale A new detection matches the vulnerability Reopened
Resolved, not moved to Closed/Fixed Detected again on a rescan Reopened
Resolved, Rapid7 The age option on the Rapid7 configuration page is reached Returns to Open
Resolved, Qualys Last found date is later than the Resolved date Returns to Open
Detections all closed by the scanner Nothing open remains on the item Closed, substate fixed

Item and detection counts for each run sit on the VINTRUN records, and the State field shows whether the run ran successfully. Starting integration runs and viewing detection data needs the sn_vuln.admin role.

Vulnerable item field reference

Viewing imported data needs the sn_vul.read_all role at a minimum. The fields sit on the Vulnerable Items table, sn_vul_vulnerable_item. If no configuration item is supplied, the DNS name, NetBIOS name or IP address is used to look for a matching one.

Field What it holds
State Defaults to Open. Can be set to Under Investigation when the item is ready for immediate remediation
Assignment group and Assigned to The group working the item, and the person in it
Last opened The creation date at first, then the reopen date and time after a close and reopen
Age Time active since last opened. Zero when closed
Until date for risk reduction Expiry of compensatory controls. Appears when an original risk score exists
Risk rating and Risk score Calculated for your environment, and separate from the values on a solution record
Severity Normalised, using severity maps for NVD and third-party integrations
Threat and Remediation notes Pulled from the vulnerable entry. Editing Threat changes that entry
Preferred solution Needs Vulnerability Solution Management. Manual edits survive imports but do not change the vulnerability record
Closed by, Closed, Close notes and Age closed Read-only once closed. Age closed resets to zero if the item reopens

Application vulnerable items

Application vulnerable items (AVITs) come from the same imports but describe application scan findings. Assignment group, Assigned to and Notes are the editable fields. Location holds a URL for a dynamic scan and a file path with a line number for a static scan. The remediation target is the fix date counted from first identification, and the remediation commitment date and Remediation Plan appear once an item is Under Investigation. For application scope rules, see the application remediation rules page.

Frequently asked questions

Should I enable Include port on an instance that already has data?

It depends on what you want to keep. On version 10.0 or later, enabling it preserves existing detections and items, and new detections are split by port from the next import. For a clean rebuild, delete the vulnerable item records first.

Why did a closed item reopen after a rescan?

Closed items with the fixed or stale substate reopen when a new detection matches their vulnerability. Resolved items that later runs did not move to Closed/Fixed also reopen when a rescan detects them again.

Will a deferred item reopen by itself?

Yes. A daily job reopens it on the day the deferral expires, after checking whether an exception rule should update the Until and Reason fields.

Where are the first and last found dates?

On the Detections tab of the vulnerable item and on each detection record. The Initial Detections tab keeps the first occurrence unchanged.

For a review of these settings against your own instance, start with the Vulnerability Response health check. The full set of guides is on the Vulnerability Response hub.