OBLYTECH Logo
OBLYTECH Logo

Automatically close vulnerable items for retired configuration items

When the CMDB changes a configuration item’s life cycle stage status to Retired, Vulnerability Response can close the vulnerable items (VIs) and detections linked to that CI. The behavior is controlled by the Auto-close VIs linked to retired CIs option. This page covers where to set it, which role changes it, and how it affects existing and new records.

What a retired CI does to its discovered items and VIs

The retirement status reaches two record types, and they do not move together. Each discovered item (DI) for the CI changes to the state CI decommissioned whenever the CI’s life cycle state is updated. A VI changes to Closed only when the auto-close option is enabled. The VI state is the one that shows whether the open finding has left your queue.

If the option stays off, you can see a decommissioned DI beside an open VI for the same asset. Check both records before you decide a retired asset is clean. For how VI states move from open to closed, see vulnerable item lifecycle in Vulnerability Response.

Planning the change before you enable it

Settle ownership before anyone edits a property. Enabling auto-close requires the sn_vul.admin role. The decommissioned CI filter is a separate setting that requires the admin role. The two settings name different roles, so confirm that the person making each change holds the role that setting asks for.

Next, record a baseline. Count the open VIs attached to CIs already in the Retired life cycle stage, and note how many DIs show the CI decommissioned state. Closure happens as scanner data arrives, so the baseline gives you something to compare after the next integration run.

For reporting after the change, filter VIs by state Closed and substate CI Decommissioned to see what the option has closed. Compare that count with the DI count from your baseline. A gap between the two is a reason to check the Asset ID matching described below before you assume the setting is working.

Turning on the auto-close option

The setting takes a different form depending on the release. Before v22.0, it is a check box on a configuration screen. From v22.0, it is a system property named sn_vul_cmn.auto_close_vis_linked_retired_cis. Changing either one requires the sn_vul.admin role.

On versions before v22.0, follow these steps:

  1. Go to All > Vulnerability Response > Auto-Close Configuration > Configuration Item Lifecycle.
  2. Select the Auto-close VIs linked to retired CIs check box.
  3. Select Update.

On v22.0 and later, set the value of the sn_vul_cmn.auto_close_vis_linked_retired_cis property to 1 to enable the option, or to 0 to disable it. If the option was selected in v21.0 before an upgrade, the property keeps the value 1 after the upgrade. Starting with v22.0, you can also configure additional search options through auto-close rules, which are a separate configuration from the switch.

When the option is enabled, new or existing VIs and detections reported for the same CI are created or updated with a status of Closed. The match uses the Asset ID in the scanner payload and the status of the Discovered Items entry. If the Asset ID in your scanner data does not line up with the retired CI record, the VI may stay open even though the CI is retired.

Handling CIs that were retired before the option was on

If a CI was retired before the option was enabled, VIs are created only from new detections reported by scanners. Those VIs arrive with a status of Closed and a substate of CI Decommissioned.

That substate has two consequences. You cannot reopen a VI whose state is CI Decommissioned with the Reopen or Bulk Edit options. A closed VI with a substate of fixed or stale does reopen when a new detection is created and matches the vulnerability. A retired asset can therefore return to your queue if a scanner reports a matching finding again.

Filtering decommissioned CIs during CI lookup

A separate system property, sn_sec_cmn.filterOutDecommissionedCI, controls whether decommissioned CIs are filtered out while the Security Operations CMDB CI lookup rules run. It applies to CI lookup rules in Vulnerability Response and does not change IRE lookup logic. It is a different switch from auto-close, and turning one on does not turn the other on.

The default value is true. The role required for this property is admin. To review it, open the system properties list, search for sn_sec_cmn.filterOutDecommissionedCI, enter true or false in the Value text box, and select Update. The lookup rules read this value during the next import, so a change takes effect at that import rather than immediately.

When the value is true, the lookup filters out CIs that have install status 7 or a life cycle stage status of Retired. Keep the property at true unless you have a specific reason to match those CIs again during lookup, and test any change on a non-production instance first.

Testing a retired CI on a non-production instance

Test the behavior before you rely on it in production. Choose a CI that already has at least one VI from a recent scan, so you can see the result change. Note the time of the change so you can match the scanner run to it when you read the logs. Work through these steps in order.

  1. Confirm that the auto-close option is enabled, either through the check box or through the property value of 1.
  2. Note the open VIs and DIs attached to the test CI.
  3. Change the CI’s life cycle stage status to Retired.
  4. Run the scanner integration, or wait for its next scheduled run, so it reports detections for the same Asset ID.
  5. Check that the DI shows the state CI decommissioned and that the VI shows Closed.

Verify the detection data after each run before you judge the result. The steps are covered in verifying vulnerable item detection data after an integration run. If the test CI has no fresh detections, rescanning is one way to produce them. For Tenable-sourced items, see rescanning Tenable vulnerable items from the workspace.

For help planning this work, see ServiceNow implementation.

Troubleshooting a VI that stays open after retirement

Work from the CMDB side first, since the life cycle status change is what starts the process. When a VI does not close after you retire its CI, check these items in order.

  • Confirm the option is on, either as a selected check box under Configuration Item Lifecycle or as a property value of 1.
  • Confirm the CI’s life cycle stage status is Retired in the CMDB, not another stage.
  • Compare the Asset ID in the scanner payload with the Asset ID on the CI record it should match.
  • Check the status of the Discovered Items entry, because the closure depends on it as well as on the Asset ID.
  • Look for a second VI on the same CI and vulnerability. Duplicate records make it unclear which VI you are reviewing, and the steps for finding them are in identifying duplicate vulnerable items.

Questions about auto-closing VIs for retired CIs

Can I use auto-close rules instead of the single switch on v22.0 and later?

Auto-close rules add search options beyond the single switch. Use the property when you want the same on-off behavior for all retired CIs. Use the rules when you need the additional search options. Confirm which setup your instance uses before you describe it to stakeholders.

Who should review a VI that closed because its CI was retired?

Start with the CMDB record. Confirm that the retirement was intended and that the asset has left service, because closure follows the life cycle status change. Then ask the scanner team whether the asset is still reporting on the network. An asset that still responds to scans may point to a CMDB error rather than a successful retirement.

What is the risk of leaving the decommissioned CI filter at its default?

Leaving the filter on keeps retired assets from attaching to new lookup results. Setting it to false lets lookups match those assets again, which can bring retired hardware back into vulnerability reporting.

Does the auto-close option affect VIs tied to other CIs?

The option works from the retired CI and its Asset ID, so it applies to VIs associated with retired CIs. VIs tied to active CIs follow their own life cycle and are not closed because a different CI was retired. Check the CI association on a sample VI when you test, so you know which record the closure came from.