Skip to content

fix: map KICS critical severity#15357

Open
kocaemre wants to merge 1 commit into
DefectDojo:devfrom
kocaemre:fix/kics-critical-severity
Open

fix: map KICS critical severity#15357
kocaemre wants to merge 1 commit into
DefectDojo:devfrom
kocaemre:fix/kics-critical-severity

Conversation

@kocaemre

Copy link
Copy Markdown

Summary

  • Preserve KICS CRITICAL findings as DefectDojo Critical instead of falling through to the Medium default.
  • Add a focused parser regression test for KICS critical severity mapping.

Why

The KICS parser severity map did not include CRITICAL, so KICS reports with "severity": "CRITICAL" were imported as Medium findings. This can understate IaC risk in dashboards, filters, reports, and SLA workflows.

Fixes #15345.

Test plan

  • python3 -m py_compile dojo/tools/kics/parser.py unittests/tools/test_kics_parser.py
  • Lightweight parser harness with stubbed Finding/settings confirmed CRITICAL maps to Critical
  • git diff --check

I did not run the full Docker-backed unit test suite in this local environment.

@mtesauro

Copy link
Copy Markdown
Contributor

@kocaemre See #15350 which also addresses this and is merged already

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants