Skip to content

Rust: Make rust/summary/query-sinks less noisy #20042

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 16, 2025
Merged

Conversation

geoffw0
Copy link
Contributor

@geoffw0 geoffw0 commented Jul 14, 2025

Make rust/summary/query-sinks less noisy. This is the one used in the DCA meta queries output, and occasionally used ad-hoc to get a feel for a database - but it is not used in metrics (the counts produced by rust/summary/query-sink-counts and rust/summary/summary-statistics are not affected by this change). Currently for both uses results for this query are typically clogged with dereference and logging sinks, which obscures and in the case of the DCA meta queries output can completely hide other more interesting results.

…This is the one in the DCA meta queries output, not the grand total used in metrics.
@Copilot Copilot AI review requested due to automatic review settings July 14, 2025 16:34
@geoffw0 geoffw0 requested a review from a team as a code owner July 14, 2025 16:34
@geoffw0 geoffw0 added no-change-note-required This PR does not need a change note Rust Pull requests that update Rust code labels Jul 14, 2025
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR reduces noise in the rust/summary/query-sinks query by filtering out ubiquitous sink types that typically clutter the results. The query is used in DCA meta queries output and for ad-hoc database analysis, where dereference and logging sinks often obscure more interesting security-relevant findings.

  • Filters out AccessInvalidPointer::Sink and CleartextLogging::Sink from query results
  • Updates documentation to reflect the filtering of ubiquitous sink types
  • Adds necessary imports for the filtered sink types

Copy link
Contributor

@paldepind paldepind left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me.

@geoffw0 geoffw0 merged commit d264fb5 into github:main Jul 16, 2025
22 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
no-change-note-required This PR does not need a change note Rust Pull requests that update Rust code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants