Skip to content

fix(review): cora-ignore naming a scanner rule can hide an unrelated LLM finding on the same line #609

Closed

Description

@ajianaz

Found in the post-0.16.1 code review of #597.

merge_rule_findings attaches the merged-away scanner finding's id and title (also_matches) to the first LLM issue on that line, whatever that issue is about. A marker naming the scanner rule then suppresses it.

Example: q = "SELECT ... '" + password + "'"; // cora-ignore: sec-hardcoded-secret — the scanner's secret finding is deduped into the LLM's SQL-injection issue; the marker also drops the SQL-injection finding, contradicting the documented guarantee that a marker cannot hide more than it names.

Direction: only alias when the LLM issue is plausibly the same finding (same issue_type/category, or title overlap), or keep the scanner finding separate and apply suppression before dedup.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions