Deduplication Tuning (Pro) | DefectDojo Documentation

Deduplication Tuning (Pro)

Deduplication Tuning is a DefectDojo Pro feature that gives you fine-grained control over how findings are deduplicated, allowing you to optimize duplicate detection for your specific security testing workflow.

Deduplication Settings

In DefectDojo Pro, you can access Deduplication Tuning through: Settings > Pro Settings > Deduplication Settings

The Deduplication Settings page offers three key configuration areas:

Same Tool Deduplication

Same Tool Deduplication is enabled by default for all security tool parsers. This ensures findings from consecutive scans using the same tool are properly deduplicated.

To adjust Same Tool Deduplication:

  1. Select a specific Security Tool from the dropdown
  2. Choose a Deduplication Algorithm from the available options

Available Deduplication Algorithms

DefectDojo Pro offers the following deduplication methods for same-tool deduplication:

Hash Code

Uses a combination of selected fields to generate a unique hash. When selected, a third dropdown will appear showing the fields being used to calculate the hash.

Unique ID From Tool

Leverages the security tool’s own internal identifier for findings, ensuring perfect deduplication when the scanner provides reliable unique IDs.

This algorithm can be useful when working with SAST scanners, or situations where a Finding can “move around” in source code as development progresses.

Unique ID From Tool or Hash Code

Attempts to use the tool’s unique ID first, then falls back to the hash code if no unique ID is available. This provides the most flexible deduplication option.

Global Component

Matches findings by component name and version across all Products in the instance, rather than within a single Product or Engagement. Intended for SCA tools where the same vulnerable dependency appears in many Products. This algorithm is off by default and must be enabled by DefectDojo Support. See Global Component Deduplication for details.

Cross Tool Deduplication

Cross Tool Deduplication is disabled by default, as deduplication between different security tools requires careful configuration due to variations in how tools report the same vulnerabilities.

To enable Cross Tool Deduplication:

  1. Select a Security Tool from the dropdown
  2. Change the Deduplication Algorithm from “Disabled” to “Hash Code”
  3. Select which fields should be used for generating the hash in the Hash Code Fields dropdown

Cross Tool Deduplication supports the Hash Code algorithm, which is suitable for most workflows, as different tools rarely share compatible unique identifiers. For SCA tools reporting the same dependencies, Global Component Deduplication is also available as a cross-tool option (off by default).

Note that Cross Tool Deduplication is also scoped to individual Assets only.

Reimport Deduplication

⚠️ Reimport processes can completely discard Findings before they are recorded. This can lead to data loss if set incorrectly, so Reimport Deduplication settings should be adjusted with caution.

Reimport Deduplication Settings can be used to set an algorithm for Universal Parsers, or for a Generic Findings Import Parser.

Reimport Deduplication cannot be adjusted for other tools by default. Users who want to adjust the Reimport Deduplication algorithm for other tools in their instance should reach out to DefectDojo Support for assistance.

When configuring Reimport Deduplication:

  1. Select the Security Tool (Universal or Generic Parser)
  2. Choose the appropriate Deduplication Algorithm

The following algorithm options are available for Reimport Deduplication:

Reimport can completely discard Findings before they are recorded, so Reimport Deduplication settings should be adjusted with caution.

Running Deduplication Retroactively on Existing Data

A common situation when first turning on Deduplication Tuning is having a large backlog of Findings that were imported before the dedup configuration changed. In DefectDojo Pro, you do not need to run a separate command to dedupe this historical data — changing the Deduplication Settings for a tool automatically triggers a background re-hash of all existing Findings associated with that test type.

What this means in practice:

If you make several configuration changes in quick succession, each one queues its own re-hash job. Allow the previous job to finish before evaluating results, especially when comparing Findings counts before and after the change.

Note for self-hosted Pro: The background job runs in the Celery worker pool. If you have starved or backlogged workers, the re-hash can take longer than expected — check worker health if results don’t appear within the timeframe you would expect for your instance size.

Deduplication Best Practices

For optimal results with Deduplication Tuning:

By tuning deduplication settings to your specific tools, you can significantly reduce duplicate noise.

Locked Findings

Whenever Deduplication Settings are changed for a given tool, Deduplication hashes are re-calculated for that tool across the entire DefectDojo instance.