Skip to content

DefectDojo reimport reopens closed findings #2424

Closed

Description

@KramNamez

Current Behavior

Because DependencyTrack's integration sets active: true and verified: true, when a finding is reimported, it is opened again in DefectDojo.

This adds a lot of work because we cannot remove false positives and they keep clogging up DD's UI.

Proposed Behavior

Adding the do_not_reactivate flag to Dependency-Track's upload would change this behavior so that findings that got closed on the DD side stay closed.

This way, I have both plenty of time to go through all the findings and remove noise from the findings before passing them to the devs, and findings that are not going to be fixed do not keep reappearing.

The core of the change is very simple, but it is a breaking change and one that likely should be configurable, so I figured I'd open this issue first, in order to discuss the best way of implementing this.

Checklist

Activity

  1. added
    enhancement
    on Jan 30, 2023
  2. nscuro commented on Jan 30, 2023

    @nscuro
    Member

    The core of the change is very simple, but it is a breaking change

    True, but I as I do not use DD myself, I'm wondering what a valid use case would be for reactivating. I'll share this issue in Slack, maybe some folks who use this integration can chime in.

    Edit: https://owasp.slack.com/archives/C6R3R32H4/p1675101495785349

  3. valentijnscholten commented on Jan 30, 2023

    @valentijnscholten
    Contributor

    DD normally always assumes that the imported report is the source of truth. The do_not_reactivate flag was added recently for cases like this I assume. There's possibly a potential for false negatives if a finding was closed at some point and then later reappeared because somebody downgraded a library or something like that. I haven't tested this scenario.
    To be honest I was expecting it to be a tag on a finding to avoid reactivating a finding, which might be a safer option.
    Either way I think it should be configurable and not set by default.

    It would be nice to have a 2-way integration with defect dojo so that audit decisions in DD are reflected in DT and vice versa.

  4. lme-nca commented on Feb 27, 2023

    @lme-nca
    Contributor

    I created a proposed solution for this problem. The pull request I propose is just a quick fix, I also think that in the long term a feature such as: #1926 or something similar (as @valentijnscholten mentioned a 2-way integration with Defectdojo) would be needed.

  5. added this to the 4.8 milestone on Mar 7, 2023
  6. added a commit that references this issue on Mar 8, 2023
    a117cab
  7. added a commit that references this issue on Mar 24, 2023
    b7d98df
  8. added a commit that references this issue on Apr 6, 2023
    c4e2474
  9. github-actions commented on Apr 7, 2023

    @github-actions
    Contributor

    This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

  10. locked as resolved and limited conversation to collaborators on Apr 7, 2023
  11. added a commit that references this issue on Apr 12, 2023
    1802a8c
  12. added
    integration/defectdojo
    on Jul 19, 2023
  13. added a commit that references this issue on Jun 17, 2026
    68898e3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementintegration/defectdojo

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions