cvss_rescore package¶
Submodules¶
cvss_rescore.cvsslib module¶
- class cvss_rescore.cvsslib.CvssLib(rules_file_path: str)[source]¶
Bases:
object
- classmethod get_modified_cvss(record: dict, original_vector_string: str) tuple [source]¶
- Parameters:
record – dict - This is a single vulnerability record from your json output file
original_vector_string – str
- Returns:
- Return type:
tuple - modified_vector_string, modified_environmental_score, modified_severity, rules_applied
- Exception:
SymbolResolutionError will log to error if the path in your custom rule cannot be found in the source json file
- Exception:
RuleSyntaxError will log to error if the rule you have defined cannot be parsed.
- Exception:
ManualVettingException will be thrown if no rules were matched. This can be caught in your parent script
- logger = <RootLogger root (WARNING)>¶
- rules_actions = None¶