Benchmarks (OWASP ASVS) (Pro)

Benchmarks track an Asset against the OWASP Application Security Verification Standard (ASVS). Each ASVS requirement becomes a row on the Asset’s checklist, and the checklist shows how far the Asset is toward the ASVS level it aims for.

Turning Benchmarks on

Benchmarks are off until an administrator turns on Enable Benchmarks in Settings > System Settings. While it is off, the Benchmarks entry does not show and the checklist cannot be opened.

Opening an Asset’s checklist

On the Asset page, open the gear menu and choose Benchmarks. The entry shows for users who hold the Benchmark Edit permission on the Asset (Writer, Maintainer and Owner by default).

The first time an Asset’s checklist opens, DefectDojo adds every enabled ASVS requirement to the Asset as a pending row. Requirements added to the benchmark later are added the next time the checklist opens. When more than one benchmark type is enabled, a picker at the top of the page switches between them.

A link to the old checklist page (/benchmark/<asset id>/type/<type id>, including its per-category and Delete Benchmarks pages) opens this page.

The checklist summary

  • Desired Level is the ASVS level the Asset aims for: Level 1 (the default), Level 2 or Level 3. The progress counts only the requirements at that level.
  • Checklist Progress shows the share of those requirements that have been reviewed, and how many are passed, failed and still pending.
  • Publish shows this checklist on the Asset page, in the Benchmark Progress card (see below).

Reviewing requirements

Each row is one requirement, with its ASVS number, its chapter, the levels it belongs to and its status:

  • Passed: Pass is ticked.
  • Failed: Pass is not ticked and the requirement has at least one note. Add a note that says why the requirement is not met.
  • Pending: not passed, with no note yet.
  • Not Applicable: Applicable is turned off. The requirement leaves the progress, and Pass is locked until it applies again.

Select the note count on a row to read its notes, add one, or delete one. Deleting a note needs the Benchmark Delete permission (Maintainer and Owner by default).

Filter the rows by ASVS chapter or by status, for example to see everything still pending.

Saving a row or the summary needs the Benchmark Edit permission on the Asset, the same bar as opening the checklist.

Deleting a checklist

To start an Asset’s checklist over, open the gear menu on the Benchmarks page and choose Delete Checklist. This removes every requirement row for that benchmark, with its Pass and Applicable state and its notes, and the Asset’s summary. Opening Benchmarks again adds the requirements back as pending. It needs the Benchmark Delete permission (Maintainer and Owner by default), and it cannot be undone.

Benchmark Progress on the Asset page

The Asset page shows a Benchmark Progress card for every checklist with Publish ticked: the benchmark, the level the Asset aims for, how much of it has been reviewed, and a bar split into passed, failed and pending. Anyone who can view the Asset sees the card; users who can edit the checklist can select a benchmark to open it. The card hides itself while Benchmarks are off or nothing is published. It is part of the default Asset page layout, and can be added to a customized layout from Add Widget.

Automating Benchmarks

The checklist rows and summaries are available through the API at /api/v2/benchmark_products/ and /api/v2/benchmark_product_summaries/ (editing them there needs the Edit Asset permission), and the catalog at /api/v2/benchmark_types/, /api/v2/benchmark_categories/ and /api/v2/benchmark_requirements/. The API reads and edits rows that already exist: open the Asset’s checklist once in the UI to add its rows.

Walkthrough

The lightbulb on the Benchmarks page offers a short tour: where the checklist opens from, the summary, the filters and the requirement rows.