Skip to content

Include analysis.detail from Dependency Track FPF in finding description#14931

Open
webdevred wants to merge 3 commits into
DefectDojo:masterfrom
webdevred:forward-analysis-detail-from-dependency-track
Open

Include analysis.detail from Dependency Track FPF in finding description#14931
webdevred wants to merge 3 commits into
DefectDojo:masterfrom
webdevred:forward-analysis-detail-from-dependency-track

Conversation

@webdevred
Copy link
Copy Markdown

@webdevred webdevred commented May 28, 2026

Show Dependency Track audit detail in finding description

When Dependency Track pushes findings via the Finding Packaging Format, analysts can attach free-text notes to each finding through the analysis.detail field. This field was already parsed and available in the FPF document but was silently ignored, so auditors working in DefectDojo had no way to see those notes without going back to Dependency Track.

This appends the audit detail to the finding description under an "Audit Detail:" label when present. Findings without audit detail are unaffected. The change requires Dependency Track 4.14.0 or later, which is when analysis.detail was added to the FPF output (see companion PR in the Dependency Track repo).

Related to DependencyTrack/dependency-track#6181

is_false_positive = bool(analysis is not None and analysis.get("state") == "FALSE_POSITIVE")

if analysis is not None and analysis.get("detail"):
vulnerability_description = f"Audit Detail: {analysis['detail']}\n\n{vulnerability_description}"
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Wouldn't it make more sense to put the audit detail after the description? Or maybe even in the impact field?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Good point, happy to discuss. My reasoning for putting it first: the audit detail is analyst-added context specific to this finding in your environment, whereas the vulnerability description is generic upstream text. When triaging, the analyst note is usually the more immediately relevant piece. Open to changing it if you feel strongly though.

On the impact field: that field has a specific semantic meaning (consequence of exploitation), so putting analyst workflow notes there felt wrong.

Also, I'll rebase against bugfix as requested.

@valentijnscholten valentijnscholten added this to the 2.59.1 milestone May 31, 2026
Copy link
Copy Markdown
Member

@valentijnscholten valentijnscholten left a comment

Choose a reason for hiding this comment

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

Can you rebase against the bugfix branch?

webdevred added 2 commits May 31, 2026 21:19
When Dependency Track sends findings via the Finding Packaging Format, the
analysis.detail field is now forwarded alongside analysis.state. This appends
the audit detail text to the finding description under an "Audit Detail:" label,
making analyst notes visible without switching back to Dependency Track.
@webdevred webdevred force-pushed the forward-analysis-detail-from-dependency-track branch from 06fbd18 to c3494e1 Compare May 31, 2026 19:20
@github-actions github-actions Bot added helm and removed helm labels May 31, 2026
@webdevred webdevred force-pushed the forward-analysis-detail-from-dependency-track branch from ff3a351 to c3494e1 Compare June 1, 2026 17:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants