Skip to content

Commit

Permalink
Change: Update the severity ratings to match CVSS 3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
a-h-abdelsalam committed Jan 6, 2025
1 parent cbd4b3e commit 8cba83e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion pheme/templatetags/charts/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
from django import template

_severity_class_colors = {
"High": "#d4003e",
"Critical": "#bf0000",
"High": "#f51414",
"Medium": "#fcb900",
"Low": "#7db4d0",
}
Expand Down
2 changes: 1 addition & 1 deletion pheme/transformation/scanreport/gvmd.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@

logger = logging.getLogger(__name__)

__threats = ["High", "Medium", "Low"]
__threats = ["Critical", "High", "Medium", "Low"]
__threat_index_lookup = {v: i for i, v in enumerate(__threats)}


Expand Down
1 change: 1 addition & 0 deletions pheme/transformation/scanreport/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ def describe():
host="str; ip address of host",
hostname="str; main hostname of the host",
threats={
"critical": "int; amount of critical nvts in host",
"high": "int; amount of high nvts in host",
"medium": "int; amount of medium nvts in host",
"low": "int; amount of low nvts in host",
Expand Down

0 comments on commit 8cba83e

Please sign in to comment.