Skip to content

Add CWE mappings for scanner-specific rules #17

@rdwj

Description

@rdwj

Some SAST scanners have rules that don't map cleanly to standard CWE IDs but are still relevant to AppDev STIG findings. Examples:

  • Semgrep has rules like python.django.security.audit.xss.template-variable-unescaped that may not carry a CWE tag but clearly map to CWE-79 / V-222609
  • CodeQL has quality rules (not just security rules) that touch STIG-relevant areas
  • Bandit has Python-specific checks (e.g., B608 for SQL injection via string formatting) with varying CWE coverage

This issue tracks adding scanner-specific rule ID → CWE mappings as a secondary resolution path in the SARIF ingestion layer, so that findings from popular scanners get mapped even when CWE metadata is absent.

Priority scanners to cover:

  1. Semgrep (most popular OSS SAST)
  2. Bandit (Python-specific, common in federal)
  3. CodeQL (GitHub default)
  4. SonarQube (enterprise, SARIF export via plugin)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions