Skip to content

False positives by component: choice of components, one kind, whole project removed - #112

Merged
BoaThor merged 1 commit into
mainfrom
claude/sleepy-brahmagupta-bnpx14
Dec 3, 2026
Merged

BoaThor merged 1 commit into
mainfrom
claude/sleepy-brahmagupta-bnpx14

Conversation

@BoaThor

@BoaThor BoaThor commented Dec 3, 2026

Copy link
Copy Markdown
Owner

Changes

False positives: the component is the scope

Set as false positive (whole project) hid the CVE at every component, including components added later. That was too broad, so it is removed. Statements set that way before are still read and still apply.

  • One entry, several components: a dialog asks which component is meant, or all of them.
  • An entry counts for nothing only when every component it matches is covered. This also works when two statements together cover them. Otherwise the entry stays, because the uncovered component may be affected. Its reason then says "false positive set by hand for X only - still matched: Y".
  • Keyword hit without component: it can be set. The statement carries KeywordOnly and covers the entry only while the CVE matches no component.
  • metascraper.ps1 applies the same rule (build 2026-12-03b).
  • One kind of false positive: the Workbench VEX state false positive sets and lifts the same project false positive (project_vex.json).
  • Remove false positive also lifts a statement that covers only some of an entry's components.

VEX export

Keyword hits and Workbench entries without a component are left out, and the summary counts them. As a statement for the whole project, Dependency-Track would apply them to every component with that CVE, even as in triage.

Choice dialogs

Many or long buttons now wrap. Before, the nine VEX justifications of Not affected... ran past the dialog edge.

Docs

README (false positives, VEX export) and CHANGELOG are updated.

Tests

  • tests/false-positives.ps1: 12 checks, 3 of them new:
    • partial coverage;
    • full coverage through two statements;
    • a keyword hit.
  • Smoke falsepositives (21 checks), covering:
    • the component choice: cancel, one component, all of them;
    • a keyword hit and that it is not exported;
    • a whole-project statement of before;
    • removing a false positive;
    • a screenshot of the choice dialog.
  • Smoke vexexport (23 checks): the Workbench VEX state false positive sets and lifts the project false positive, and the justification dialog is screenshotted.
  • The full smoke run in a fresh output folder is green: 1592 checks.

Generated by Claude Code

…s, one kind

- Scope is the component (every version): "Set as false positive (whole
  project)" removed (too broad); statements set before are still read.
- An entry counts for nothing only when every component it matches is covered;
  otherwise it stays and its reason names the covered ones. A row with several
  components asks which one (or all). A keyword hit without component: a
  KeywordOnly statement, valid while the CVE matches no component.
- metascraper.ps1 applies the same rule (build 2026-12-03b).
- The Workbench VEX state false_positive sets and lifts the same project false
  positive.
- VEX export: keyword hits / entries without component are left out (they
  would apply to every component in Dependency-Track).
- Choice dialogs wrap many or long buttons (the nine VEX justifications).
- Tests: tests/false-positives.ps1 (12), smoke falsepositives (21) and
  vexexport (23) incl. screenshots of both dialogs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019kjGYYNvsfXvLhePqaNsL3
@BoaThor
BoaThor merged commit 85b29cd into main Dec 3, 2026
1 check 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.

2 participants