Skip to content

docs: AI assistant prompt recipes - #17004

Open
paulOsinski wants to merge 10 commits into
DefectDojo:devfrom
paulOsinski:docs/llm-prompts
Open

paulOsinski wants to merge 10 commits into
DefectDojo:devfrom
paulOsinski:docs/llm-prompts

Conversation

@paulOsinski

@paulOsinski paulOsinski commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

Description

Prompt recipes for AI assistants: prompts that give an assistant the DefectDojo details it usually gets wrong, so the pipeline, converter or script it writes works the first time.

  • Each prompt lives in its own file under docs/content/prompts/, is shown on its task's page with {{< prompt "<name>" >}}, and is listed automatically on a new Prompt Recipes page (Automation > Prompt Recipes), which has an "On this page" entry for each.
  • Two Open Source recipes:
    • Reimport scans from a CI/CD pipeline (Reimport page)
    • Convert an unsupported tool to Generic Findings Import (Generic Findings Import page)
  • The build fails if a page names a prompt that does not exist, or if a prompt's page points nowhere. Nothing under content/prompts/ is published as a page of its own, or appears in search or the sitemap.
  • docs/README.md explains where prompts live and how to add one.

The API facts in each prompt were checked against the code: the import and reimport serializers and the Generic Findings JSON parser.

What moved to the Pro documentation repository

Since the docs cutover (#17048), the docs site itself lives in the Pro documentation repository. This PR first also carried site changes and two Pro pages; those go there instead:

  • The two Pro pages (Building Rules, Building Reports with an LLM) are in the Pro documentation repository, as its pull request 52.
  • Their prompts (simple report, Triage Engine rule), the prompt shortcodes for the live site, the Markdown copy of every page, the Copy/View as Markdown buttons, the llms.txt links and their translated labels go there too.

Test results

  • The production docs build (hugo --config config/production/hugo.toml) passes after merging dev.
  • The CI "Refuse DefectDojo Pro pages" and title checks pass.
  • The offline link check (lychee, after scripts/docs_live_link_stubs.py) reports 0 errors.
  • Both prompts render on their pages, and the Prompt Recipes page lists both with working "On this page" anchors and "From" links.

🤖 Generated with Claude Code

paulOsinski and others added 7 commits November 18, 2026 16:19
Every docs page now has a Markdown copy at <page>/index.md, built from its
source with the highlight, tabs and quiz shortcodes turned into plain
Markdown and its links made absolute. The theme advertises it with a
rel="alternate" type="text/markdown" link, and llms.txt now links each page's
Markdown copy, as llmstxt.org recommends.

Under each page title, "Copy page as Markdown" puts that copy on the
clipboard and "View as Markdown" opens it. Labels are translated in all
eight docs languages.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@paulOsinski paulOsinski added this to the 3.5.300 milestone Nov 18, 2026
@github-actions github-actions Bot added the docs label Nov 18, 2026
hugo.Sites does not exist in Hugo 0.153.5, the version the docs CI pins,
so the build failed on the first translated page (and hung on the runner).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@blakeaowens

blakeaowens commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

Pro documentation moved out of this repository today, and the docs CI here refuses a Pro page since the cutover PR landed.

The Pro pages in this PR have been carried over to the Pro documentation repository as its pull request 52, for you, with this PR's description, so nothing needs re-doing; please drop these files from this PR before it merges, and the rest of it carries on here as usual:

  • docs/content/automation/triage_engine/building_rules.md
  • docs/content/metrics_reports/reports/PRO__report_builder_llm.md

@github-actions

Copy link
Copy Markdown
Contributor

This pull request has conflicts, please resolve those before we can evaluate the pull request.

1 similar comment
@github-actions

Copy link
Copy Markdown
Contributor

This pull request has conflicts, please resolve those before we can evaluate the pull request.

paulOsinski and others added 2 commits November 23, 2026 13:34
…jo-pro-docs

The docs cutover (DefectDojo#17048) moved the Pro pages and the docs site itself
(layouts, i18n, llms.txt, theme config) to dojo-pro-docs. This PR keeps
only the Open Source content: the ci-reimport and generic-findings-converter
prompts, the pages that show them, the Prompt Recipes page and the two
prompt shortcodes the preview build needs.

Dropped here, per review: the two Pro pages (building_rules.md,
PRO__report_builder_llm.md, already in dojo-pro-docs#52) and the two
prompts they embed (simple-report, triage-engine-rule). The Markdown copy
of every page, the page actions, the llms.txt links and their translated
labels go to dojo-pro-docs with them.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown
Contributor

Conflicts have been resolved. A maintainer will review the pull request shortly.

@paulOsinski paulOsinski changed the title docs: AI assistant prompt recipes and a Markdown copy of every page docs: AI assistant prompt recipes Nov 23, 2026
@dryrunsecurity

Copy link
Copy Markdown

DryRun Security

This pull request contains multiple critical findings where the user 'paulOsinski' modified sensitive codepaths, including database migrations and core models, without being on the allowed authors list. These unauthorized changes to restricted files pose a significant security risk and require immediate review.

🔴 Configured Sensitive Codepath Modified by Non-Allowed Author in dojo/db_migrations/0283_unique_finding_vulnerability_id.py (drs_0f78fb9a)
Vulnerability Configured Sensitive Codepath Modified by Non-Allowed Author
Description File 'dojo/db_migrations/0283_unique_finding_vulnerability_id.py' matches configured sensitive codepath pattern 'dojo/db_migrations/*.py' and was modified by 'paulOsinski' (commit ba3f016) who is not in the allowed authors list.
🔴 Configured Sensitive Codepath Modified by Non-Allowed Author in dojo/models.py (drs_1e432d26)
Vulnerability Configured Sensitive Codepath Modified by Non-Allowed Author
Description File 'dojo/models.py' matches configured sensitive codepath pattern 'dojo/models.py' and was modified by 'paulOsinski' (commit ba3f016) who is not in the allowed authors list.
🔴 Configured Sensitive Codepath Modified by Non-Allowed Author in dojo/notes/signals.py (drs_2bcd900f)
Vulnerability Configured Sensitive Codepath Modified by Non-Allowed Author
Description File 'dojo/notes/signals.py' matches configured sensitive codepath pattern 'dojo/notes/*.py' and was modified by 'paulOsinski' (commit ba3f016) who is not in the allowed authors list.
🔴 Configured Sensitive Codepath Modified by Non-Allowed Author in dojo/db_migrations/0281_vulnerability_id_type.py (drs_2e628f75)
Vulnerability Configured Sensitive Codepath Modified by Non-Allowed Author
Description File 'dojo/db_migrations/0281_vulnerability_id_type.py' matches configured sensitive codepath pattern 'dojo/db_migrations/*.py' and was modified by 'paulOsinski' (commit ba3f016) who is not in the allowed authors list.
🔴 Configured Sensitive Codepath Modified by Non-Allowed Author in dojo/utils.py (drs_3ddfe784)
Vulnerability Configured Sensitive Codepath Modified by Non-Allowed Author
Description File 'dojo/utils.py' matches configured sensitive codepath pattern 'dojo/utils.py' and was modified by 'paulOsinski' (commit ba3f016) who is not in the allowed authors list.
🔴 Configured Sensitive Codepath Modified by Non-Allowed Author in dojo/db_migrations/0300_finding_upper_title_index.py (drs_43809281)
Vulnerability Configured Sensitive Codepath Modified by Non-Allowed Author
Description File 'dojo/db_migrations/0300_finding_upper_title_index.py' matches configured sensitive codepath pattern 'dojo/db_migrations/*.py' and was modified by 'paulOsinski' (commit ba3f016) who is not in the allowed authors list.
🔴 Configured Sensitive Codepath Modified by Non-Allowed Author in dojo/risk_acceptance/helper.py (drs_56bba585)
Vulnerability Configured Sensitive Codepath Modified by Non-Allowed Author
Description File 'dojo/risk_acceptance/helper.py' matches configured sensitive codepath pattern 'dojo/risk_acceptance/*.py' and was modified by 'paulOsinski' (commit ba3f016) who is not in the allowed authors list.
🔴 Configured Sensitive Codepath Modified by Non-Allowed Author in dojo/db_migrations/0280_vulnerability_id_upper_index.py (drs_5b5e6eb5)
Vulnerability Configured Sensitive Codepath Modified by Non-Allowed Author
Description File 'dojo/db_migrations/0280_vulnerability_id_upper_index.py' matches configured sensitive codepath pattern 'dojo/db_migrations/*.py' and was modified by 'paulOsinski' (commit ba3f016) who is not in the allowed authors list.
🔴 Configured Sensitive Codepath Modified by Non-Allowed Author in dojo/db_migrations/0271_finding_perf_indexes.py (drs_6ce2905e)
Vulnerability Configured Sensitive Codepath Modified by Non-Allowed Author
Description File 'dojo/db_migrations/0271_finding_perf_indexes.py' matches configured sensitive codepath pattern 'dojo/db_migrations/*.py' and was modified by 'paulOsinski' (commit ba3f016) who is not in the allowed authors list.
🔴 Configured Sensitive Codepath Modified by Non-Allowed Author in dojo/notes/helper.py (drs_6fac26a1)
Vulnerability Configured Sensitive Codepath Modified by Non-Allowed Author
Description File 'dojo/notes/helper.py' matches configured sensitive codepath pattern 'dojo/notes/*.py' and was modified by 'paulOsinski' (commit ba3f016) who is not in the allowed authors list.
🔴 Configured Sensitive Codepath Modified by Non-Allowed Author in dojo/db_migrations/0314_sla_configuration_day_bounds.py (drs_73e41cde)
Vulnerability Configured Sensitive Codepath Modified by Non-Allowed Author
Description File 'dojo/db_migrations/0314_sla_configuration_day_bounds.py' matches configured sensitive codepath pattern 'dojo/db_migrations/*.py' and was modified by 'paulOsinski' (commit ba3f016) who is not in the allowed authors list.
🔴 Configured Sensitive Codepath Modified by Non-Allowed Author in dojo/importers/base_importer.py (drs_7600c199)
Vulnerability Configured Sensitive Codepath Modified by Non-Allowed Author
Description File 'dojo/importers/base_importer.py' matches configured sensitive codepath pattern 'dojo/importers/*.py' and was modified by 'paulOsinski' (commit ba3f016) who is not in the allowed authors list.
🔴 Configured Sensitive Codepath Modified by Non-Allowed Author in dojo/db_migrations/0244_pghistory_indices.py (drs_864f2366)
Vulnerability Configured Sensitive Codepath Modified by Non-Allowed Author
Description File 'dojo/db_migrations/0244_pghistory_indices.py' matches configured sensitive codepath pattern 'dojo/db_migrations/*.py' and was modified by 'paulOsinski' (commit ba3f016) who is not in the allowed authors list.
🔴 Configured Sensitive Codepath Modified by Non-Allowed Author in dojo/finding/services.py (drs_8d0902e9)
Vulnerability Configured Sensitive Codepath Modified by Non-Allowed Author
Description File 'dojo/finding/services.py' matches configured sensitive codepath pattern 'dojo/finding/*.py' and was modified by 'paulOsinski' (commit ba3f016) who is not in the allowed authors list.
🔴 Configured Sensitive Codepath Modified by Non-Allowed Author in dojo/importers/default_reimporter.py (drs_93ae4870)
Vulnerability Configured Sensitive Codepath Modified by Non-Allowed Author
Description File 'dojo/importers/default_reimporter.py' matches configured sensitive codepath pattern 'dojo/importers/*.py' and was modified by 'paulOsinski' (commit ba3f016) who is not in the allowed authors list.
🔴 Configured Sensitive Codepath Modified by Non-Allowed Author in dojo/db_migrations/0313_repair_invalid_concurrent_indexes.py (drs_9754ea16)
Vulnerability Configured Sensitive Codepath Modified by Non-Allowed Author
Description File 'dojo/db_migrations/0313_repair_invalid_concurrent_indexes.py' matches configured sensitive codepath pattern 'dojo/db_migrations/*.py' and was modified by 'paulOsinski' (commit ba3f016) who is not in the allowed authors list.
🔴 Configured Sensitive Codepath Modified by Non-Allowed Author in dojo/db_migrations/0273_product_upper_name_index.py (drs_9d900549)
Vulnerability Configured Sensitive Codepath Modified by Non-Allowed Author
Description File 'dojo/db_migrations/0273_product_upper_name_index.py' matches configured sensitive codepath pattern 'dojo/db_migrations/*.py' and was modified by 'paulOsinski' (commit ba3f016) who is not in the allowed authors list.
🔴 Configured Sensitive Codepath Modified by Non-Allowed Author in dojo/db_migrations/0270_finding_visibility_perf_indexes.py (drs_aeedf84a)
Vulnerability Configured Sensitive Codepath Modified by Non-Allowed Author
Description File 'dojo/db_migrations/0270_finding_visibility_perf_indexes.py' matches configured sensitive codepath pattern 'dojo/db_migrations/*.py' and was modified by 'paulOsinski' (commit ba3f016) who is not in the allowed authors list.
🔴 Configured Sensitive Codepath Modified by Non-Allowed Author in dojo/finding/helper.py (drs_b5cc9b7f)
Vulnerability Configured Sensitive Codepath Modified by Non-Allowed Author
Description File 'dojo/finding/helper.py' matches configured sensitive codepath pattern 'dojo/finding/*.py' and was modified by 'paulOsinski' (commit ba3f016) who is not in the allowed authors list.
🔴 Configured Sensitive Codepath Modified by Non-Allowed Author in dojo/db_migrations/0299_finding_test_numsev_index.py (drs_bb182821)
Vulnerability Configured Sensitive Codepath Modified by Non-Allowed Author
Description File 'dojo/db_migrations/0299_finding_test_numsev_index.py' matches configured sensitive codepath pattern 'dojo/db_migrations/*.py' and was modified by 'paulOsinski' (commit ba3f016) who is not in the allowed authors list.
🔴 Configured Sensitive Codepath Modified by Non-Allowed Author in dojo/db_migrations/0278_global_search_fts_trigram_indexes.py (drs_dde12327)
Vulnerability Configured Sensitive Codepath Modified by Non-Allowed Author
Description File 'dojo/db_migrations/0278_global_search_fts_trigram_indexes.py' matches configured sensitive codepath pattern 'dojo/db_migrations/*.py' and was modified by 'paulOsinski' (commit ba3f016) who is not in the allowed authors list.
🔴 Configured Sensitive Codepath Modified by Non-Allowed Author in dojo/db_migrations/0274_finding_sla_expiration_index.py (drs_f3762db0)
Vulnerability Configured Sensitive Codepath Modified by Non-Allowed Author
Description File 'dojo/db_migrations/0274_finding_sla_expiration_index.py' matches configured sensitive codepath pattern 'dojo/db_migrations/*.py' and was modified by 'paulOsinski' (commit ba3f016) who is not in the allowed authors list.

We've notified @mtesauro.


Comment to provide feedback on these findings.

Report false positive: @dryrunsecurity fp [FINDING ID] [FEEDBACK]
Report low-impact: @dryrunsecurity nit [FINDING ID] [FEEDBACK]

Example: @dryrunsecurity fp drs_90eda195 This code is not user-facing

All finding details can be found in the DryRun Security Dashboard.

@defectdojo-release-tracker defectdojo-release-tracker Bot modified the milestones: 3.5.300, 3.5.400 Nov 24, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants