The confidence score in the Hardware Vulnerability Assessment (HVA) menu is a value from 0 to 1 that shows how accurately a CVE matches an OT device’s normalized firmware data. A fully matched assessment scores 1. Partial matches score lower, and the score is displayed on partially matched assessments, vulnerable items and ignored assessments.
What the confidence score measures and how it is built
HVA compares CVE data from the National Vulnerability Database with the CPE-mapped normalized content for each OT device. The matching algorithm produces a score for each comparison, and the confidence score is the aggregated result of those scores. The value runs from 0 to 1. A value near 1 means the CVE data lines up closely with the device data, and a lower value means the fit is looser.
The calculation looks at three fields taken from the CPE information: publisher, model and version. The reference values give each field a partial match score and an extra amount for a full match. A base score of 25 is added for all matched discovery models, so each match starts with 25 points before the three fields are counted.
Points available for each field
The reference values work out like this:
- Publisher: 20 points for a partial match, with 5 more for a full match, so 25 at most.
- Model: 20 points for a partial match, with 5 more for a full match, so 25 at most.
- Version: 0 points for a partial match, with 25 for a full match, so 25 at most.
- Base score: 25 points, given to all matched discovery models.
The three fields add up to 75 points at most, and the base score brings the ceiling to 100. The confidence score is the total divided by 100. Because a version that does not match earns 0 points, a version mismatch costs the full 25 points that a version match would have added.
Working through a sample score
Take a device whose publisher matches fully, whose model matches only partially and whose version does not match. The publisher contributes 25 points, the model contributes 20 and the version contributes 0. With the base score of 25, the total is 70. Dividing by 100 gives a confidence score of 0.70. Run the same arithmetic on your own records before you decide whether a score is strong enough to act on.
Where the score appears in the HVA menu
Open the menu from Workspaces > Industrial Workspace > Hardware Vulnerability Assessment.
The confidence score is displayed on three tabs: Partially matched assessments, Vulnerable Items and Ignored assessments. Fully matched assessments show a score of 1 by definition, because all the parameters in the CVE information match the device discovery model values.
Partially matched assessments include two kinds of record. The first is a CVE that matches the device on some but not all of its CPE parameters. The second is a normalized discovery model that has no firmware version. For that second kind, HVA takes version information from the normalized content of OT devices with the same publisher and model, and builds the assessment from it.
Setting the threshold that controls which matches become assessments
The property hva_confidence_score_threshold sets the minimum score a match needs before HVA creates a vulnerability assessment. Only matches with a score equal to or above the threshold generate assessments. The value is a decimal between 0.0 and 1.0, and the default is 0.75. Check the current value on your instance before you compare results across environments.
A higher threshold produces fewer assessments and keeps weaker matches out of the review queue. A lower threshold lets more partial matches through, which means more records to review.
To change the threshold, follow these steps:
- Navigate to All > Industrial Workspace Admin > Guided Setup > Operational Technology Vulnerability Response > Hardware Vulnerability Assessment > Configure Vulnerability Assessment Properties > Configure > Vulnerability Assessment.
- Edit the value of hva_confidence_score_threshold.
- Select Save.
The same property is also available from All > Vulnerability Response > Administration > Properties > Vulnerability Assessment. For help planning this work, see ServiceNow implementation.
Roles and properties that shape the scored results
Each action in this area needs a specific role, so assign roles by task rather than by area.
- Configuring the assessment properties, including hva_confidence_score_threshold: sn_vul.manage_exposure_assessment and admin.
- Running the NVD integrations: sn_otvr.vul_event_manager and admin.
- Using the HVA menu to view assessment records and act on them: sn_otvr.vul_event_manager.
Two more properties change what gets scored. sn_vul_analyst.assess_unmapped_disc_models defaults to No. Set it to Yes to include discovery models of OT devices that are not CPE-mapped. The matching algorithm compares CPE values with the firmware discovery values for those devices, and the results can be less exact. Treat scores for unmapped devices as a starting point for review until CPE-mapped normalized content exists.
sn_vul_analyst.auto_create_vits defaults to Yes and creates vulnerable items automatically for fully matched assessments. Deselect it if you want to create VITs manually.
Prerequisites before scores appear on your records
Scores only appear after the data that feeds them is in place. For the end-to-end setup, start with the OT firmware hardware vulnerability assessment page. The three prerequisites are:
- Install and run the NIST National Vulnerability Database Integration-API (CVE only), NIST National Vulnerability Database Integration-API (CPE only) and NIST National Vulnerability Database Integration-API (Unmapped CPE) integrations. Use the role listed above for this step.
- Run the Hardware Vulnerability Assessment – Full job once with Execute Now, then activate the Hardware Vulnerability Assessment – Delta job and choose how often it runs. Also activate the Hardware Vulnerability Assessment – Mark Expired Assessments job, because a firmware update makes earlier assessments for that device expire.
- Enable the Firmware Discovery Model Opt-in feature in Enterprise Asset Management so that OT device data is available for normalization.
If HVA is already in use on your instance, rerun the NVD integrations so HVA can use the range information that NVD provides. Range information fills a gap when a CPE has no version. The range for the device’s publisher and model is then used to assess the vulnerability, and version comparisons check whether the input version falls within that range. Confirm this on your instance and release.
Reviewing partial matches, vulnerable items and ignored records
Partially matched assessments are the records that score below 1, so read the score next to the device’s discovery data before you act. Compare the publisher, model and version values on the device with what the CVE data describes, and note which field caused the lower total. A partial model match with a full publisher match calls for a different response than a version mismatch.
Use these actions on the tabs:
- Create Vulnerable Items: on Partially matched assessments or Ignored assessments, select one or more records, then select this button to create VITs manually from them.
- Ignore: select one or more assessment records to move them to the Ignored assessments tab.
- Revert: on the Ignored assessments tab, select this to perform assessments again on OT devices you ignored earlier.
Vulnerable items are created from records on the Fully matched assessments, Partially matched assessments and Ignored assessments tabs, and they appear on the Vulnerable Items tab. HVA is built on the vulnerability assessment feature in Vulnerability Response. For the wider assessment work that follows, the vulnerability assessment workspace is the next place to go.
Troubleshooting empty tabs and unexpected scores
An empty Fully matched assessments tab is expected when automatic VIT creation is on. Fully matched records become vulnerable items automatically, so look for them on the Vulnerable Items tab. If you want to create those VITs manually from the Fully matched tab, deselect sn_vul_analyst.auto_create_vits.
If a device you expect is missing, check the Awaiting Normalization tab. It holds OT device data that does not have normalized data and has not been used for assessment yet. Its normalization status is shown as New, Match not found or Publisher normalized. Devices on that tab have not been used for assessment, so they stay out of the results until their data is normalized.
If a device has no CPE mapping and you expected it in the results, confirm that sn_vul_analyst.assess_unmapped_disc_models is set to Yes. Then compare the device’s expected score with the threshold. A match below the threshold does not create an assessment, so a missing record can reflect the threshold rather than the device.
When scores look wrong across several devices, check that the three NVD integrations have run and that both scheduled jobs are active. For a broader check on the quality of configuration item records in general, see the CMDB health dashboard.
Questions about reading and changing confidence scores
Does a low confidence score mean a device is not affected?
No. The score measures how closely the CVE data matches the device’s CPE-mapped data, so it describes the match rather than the device’s condition. A low score means the match is weak, which is a reason to review the record, not a reason to clear the device.
Why do two devices of the same model show different scores?
The score is built from the publisher, model and version fields for each match. Two devices can share a model and still differ on version. A version match is worth 25 points and a version mismatch is worth 0, so that difference alone can move the total by a quarter of the scale.
What does a threshold of 0 do?
You can set hva_confidence_score_threshold to 0, but an assessment is not created when the confidence score is 0. Setting the value to 0 therefore does not surface zero-score matches. Choose a value that reflects the matches you want to review, and leave the default in place if you have no reason to change it.
Does rerunning the NVD integrations change scores on existing records?
The rerun lets HVA use NVD range information, which affects how versions are assessed when a CPE has no version. Compare one known device’s record before and after the rerun, because the effect on existing records depends on your data.