Skip to content

feat(agent): deterministic finding fingerprint dedup - #589

Merged
BaaRai merged 1 commit into
mainfrom
fix/473-finding-fingerprint-dedup
Nov 27, 2026
Merged

BaaRai merged 1 commit into
mainfrom
fix/473-finding-fingerprint-dedup

Conversation

@BaaRai

@BaaRai BaaRai commented Nov 27, 2026

Copy link
Copy Markdown
Owner

Fixes #473.

Adds a deterministic pre-triage duplicate check: a finding needs all three axes to match an active finding (normalized vuln class, asset IDs or URL host, normalized endpoint path and query-parameter names). A match is suppressed with a pointer to the existing finding and to update_finding_report; force_register=true overrides it. Findings marked false_positive, ignored or duplicate never suppress a new report. No schema migration.

Tests: agent/finding_fingerprint_test.go covers determinism, distinct endpoint/parameter/class, missing axes, suppression without a triage client, triage fallback, force_register and dismissed findings. Reverting the report_finding hook makes the duplicate register again.

Limitation: case differences in paths are folded, so a case-sensitive route pair on the same asset and class can collide; the escape hatch is force_register.

@BaaRai
BaaRai merged commit 10fb8d3 into main Nov 27, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Duplicate findings across agent runs

1 participant