Filtering Logic
Severity comparison must be case-sensitive
- Match exactly:
"HIGH"or"CRITICAL" - Do NOT match:
"high","High","critical", etc.
- Match exactly:
Implementation
Include vulnerability if: severity == "HIGH" OR severity == "CRITICAL"Verify before filtering
- Extract actual severity values from JSON
- Check for uppercase/lowercase inconsistency in source data
- Convert to uppercase if needed:
severity.upper() == "HIGH"
Validation
- Count filtered records
- Confirm no excluded HIGH/CRITICAL records
- Confirm no included lower-severity records