Within DefectDojo’s system settings, you have the opportunity to enable a grading system for your products. For that you have to enable (“Enable Product Grading”). Then, the products are graded with the following possible grades:
The best grade is A going down to the worst grade F. By default the grades stick to the achieved percentage mentioned in grade converation here.
The code that performs the grade calculations can be found here.
The highest health score is 100 and it decreases based on the number of findings for each severity (critical, high, medium, low) within the product. In the following code snippet you can see the rules. Note that the following abbreviations were used:
health=100
if crit > 0:
health = 40
health = health - ((crit - 1) * 5)
if high > 0:
if health == 100:
health = 60
health = health - ((high - 1) * 3)
if med > 0:
if health == 100:
health = 80
health = health - ((med - 1) * 2)
if low > 0:
if health == 100:
health = 95
health = health - low
if health < 5:
health = 5
return health