Skip to content

Commit

Permalink
Add cvss_v4_vector to vulnerability entry
Browse files Browse the repository at this point in the history
  • Loading branch information
benyissa committed Aug 15, 2024
1 parent fb66adb commit fd014b4
Show file tree
Hide file tree
Showing 4 changed files with 603 additions and 24 deletions.
2 changes: 2 additions & 0 deletions src/ostorlab/agent/kb/kb.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ class Entry:
targeted_by_ransomware: bool = False
targeted_by_nation_state: bool = False
cvss_v3_vector: str = ""
cvss_v4_vector: str = ""
category_groups: Optional[list[dict[str, Union[str, list[str]]]]] = None


Expand Down Expand Up @@ -68,6 +69,7 @@ def __getattr__(cls, item: str) -> Entry:
targeted_by_ransomware=meta.get("targeted_by_ransomware", False),
targeted_by_nation_state=meta.get("targeted_by_nation_state", False),
cvss_v3_vector=meta.get("cvss_v3_vector", ""),
cvss_v4_vector=meta.get("cvss_v4_vector", ""),
category_groups=category_groups,
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,4 +77,5 @@ message Message{
optional string cvss_v3_vector = 15;
optional VulnerabilityLocation vulnerability_location = 16;
repeated CategoryGroup category_groups = 17;
optional string cvss_v4_vector = 18;
}
Loading

0 comments on commit fd014b4

Please sign in to comment.