PassiveScanSeverity
Constants
SEVERITY_LEVELS = {"critical" => 4, "high" => 3, "medium" => 2, "low" => 1}
Severity levels with their numeric values for comparison Higher numbers indicate more severe issues
Class methods
Get the numeric level for a severity string @param severity [String] The severity level @return [Int32] The numeric level, or 0 if unknown
Check if a given severity meets the minimum threshold @param actual_severity [String] The actual severity of the finding @param min_severity [String] The minimum severity threshold @return [Bool] True if the actual severity meets or exceeds the threshold
Check if a severity string is valid @param severity [String] The severity level to validate @return [Bool] True if the severity is valid
valid_levels
Get all valid severity levels @return [Array(String)] Array of valid severity level strings