report

package
v1.5.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 17, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package report renders scanner findings as a human-readable Markdown report, ready to paste into a pentest writeup. It is a pure transform over stored issues — no I/O — so it is equally callable from the control API and the AI.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Findings

func Findings(issues []store.Issue) string

Findings renders issues as Markdown, grouped by severity (High→Info) with a summary line. Output is deterministic for a given set of issues.

func Project

func Project(findings []store.Finding, issues []store.Issue) string

Project renders a full engagement report: an executive summary table, then the curated Findings (each with its status and attached PoC request/response flows) grouped by severity Critical→Info, then an "Excluded — False Positives" section for findings marked false_positive, and finally an appendix of the auto-generated passive-scan Issues. Findings marked false_positive are kept out of the main body. Deterministic for a given input. This is the human-and-AI-shared writeup the operator exports.

func ProjectGroupedByTag added in v1.5.4

func ProjectGroupedByTag(findings []store.Finding, issues []store.Issue, tagOrder, omitTags []string) string

ProjectGroupedByTag is like Project but sections active findings under ## Tag: <name> headings. tagOrder prefers section order (e.g. cms, website, app, api); remaining tags follow alphabetically; untagged findings go last under ## Untagged. omitTags drops those tags from sections and excludes findings that only carry omitted tags (typical for out-of-scope).

func ProjectHTML

func ProjectHTML(findings []store.Finding, issues []store.Issue) string

ProjectHTML renders the same engagement report as Project, as a self-contained HTML document suitable for download or print-to-PDF.

func ProjectHTMLGroupedByTag added in v1.5.4

func ProjectHTMLGroupedByTag(findings []store.Finding, issues []store.Issue, tagOrder, omitTags []string) string

ProjectHTMLGroupedByTag is the HTML counterpart of ProjectGroupedByTag.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL