Threat category of significant should be treated as considerable per latest NWSI

This commit is contained in:
Dan Paulat 2024-08-30 23:04:16 -05:00
parent f8e0ab5b56
commit 0481281680

View file

@ -390,9 +390,21 @@ void ParseCodedInformation(std::shared_ptr<Segment> segment,
it->substr(threatTagIt->length());
ThreatCategory threatCategory = GetThreatCategory(threatCategoryName);
if (threatCategory == ThreatCategory::Unknown)
switch (threatCategory)
{
case ThreatCategory::Significant:
// "Significant" is no longer an official tag, and has largely been
// replaced with "Considerable".
threatCategory = ThreatCategory::Considerable;
break;
case ThreatCategory::Unknown:
threatCategory = ThreatCategory::Base;
break;
default:
break;
}
segment->threatCategory_ = threatCategory;