Content-based finding fingerprints (no line numbers) #491

Closed
opened 2026-10-06 10:13:15 +00:00 by sharang · 0 comments
Owner

Fingerprints of semgrep, mobsfscan, cppcheck, gitleaks, patterns and PLC findings hash repo/rule/file/line. Since auto-close (#443) and issue sync (#451), every line shift closes and reopens the finding and its Gitea issue and drops triage.

Tasks

  • New fingerprint: rule + path + normalised content of the flagged line(s) (whitespace/comment-insensitive) + occurrence index among identical lines in the file (CodeQL primaryLocationLineHash / CodeChecker context-free-v2 idea)
  • Per-tool field choice where a tool has a stable id (DefectDojo-style)
  • One-time alias: store the old hash as legacy_fingerprints; on the first scan after deploy, a new finding matching a stored old fingerprint takes over that row (status, triage, tracker issue) instead of inserting; migration idempotent
  • Grouped findings (#477) keep their line-free key
  • Tests: insert a blank line above a finding → same fingerprint, no close/reopen; duplicate identical lines → distinct; migration carries status and issue

Source: OSS research 2026-10-06 (~/workspace/00_breakpilot/research/2026-10-06_oss-security-tools-for-pruefwerk.md), short-term adoption list.

Fingerprints of semgrep, mobsfscan, cppcheck, gitleaks, patterns and PLC findings hash repo/rule/file/**line**. Since auto-close (#443) and issue sync (#451), every line shift closes and reopens the finding and its Gitea issue and drops triage. ## Tasks - New fingerprint: rule + path + normalised content of the flagged line(s) (whitespace/comment-insensitive) + occurrence index among identical lines in the file (CodeQL primaryLocationLineHash / CodeChecker context-free-v2 idea) - Per-tool field choice where a tool has a stable id (DefectDojo-style) - One-time alias: store the old hash as `legacy_fingerprints`; on the first scan after deploy, a new finding matching a stored old fingerprint takes over that row (status, triage, tracker issue) instead of inserting; migration idempotent - Grouped findings (#477) keep their line-free key - Tests: insert a blank line above a finding → same fingerprint, no close/reopen; duplicate identical lines → distinct; migration carries status and issue _Source: OSS research 2026-10-06 (~/workspace/00_breakpilot/research/2026-10-06_oss-security-tools-for-pruefwerk.md), short-term adoption list._
sharang added the highenhancement labels 2026-10-06 10:13:15 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: platform/pruefwerk#491