Security reports

After every scan, SecureSense writes a security report in two formats: JSON for tools, HTML for people.

Where it is

Both files are in your project's .securesense/ folder:

FileFor
report.htmlReading, printing or attaching to a review. One self-contained page that opens in any browser and prints cleanly.
report.jsonOther tools, scripts and archives. Validated against its schema before it's written.

The report is written automatically when a scan and its AI triage finish. Decisions you make afterwards are added the next time it's written: click Export report in the dashboard (or run SecureSense: Export Security Report), then choose Open report, Open JSON or Show in folder.

From the command line, securesense scan writes it too, and securesense report rewrites it from the saved results:

securesense report path/to/project

What's in it

SectionContents
SummaryRaw scanner alerts, findings after de-duplication, root causes, the count for each verdict, how many findings both scanners reported, analyst decisions and AI–analyst agreement.
ScannersEach scanner's status (ran, failed or skipped), its raw alert count and any error, and the scan's time and duration.
Findings by priorityEvery finding ranked like the dashboard: verdict, Priority Score, CWE and OWASP Top 10:2025 category, severity, location, which scanners reported it, and the analyst's decision.
Evidence and explanationsPer finding: the rationale; whether it was fact-checked; the data-flow path from the user input to the dangerous call; the five evidence checks; every original scanner alert with its rule id, severity and message, unchanged; and the analyst's decision with who made it and when.
Analyst decisionsThe full audit trail, oldest first, including decisions later changed.
Scanner failures and incomplete analysesFailed scanners, findings that weren't triaged, checks that failed, files that couldn't be parsed, verdicts where the AI was unavailable, and explanations rejected by the fact-check.
TeamThe project's members and roles on the team server, and who made the decisions in this report.
LimitationsWhat a static triage can and can't establish.

It matches what you saw

The report is built only from the saved results: the scan (findings.json), the AI verdicts (verdicts.json), your decisions (decisions.json) and the cached team (team.json). Writing it never runs a scanner or a language model, so its verdicts and explanations are exactly the ones in the dashboard.

Scanner results, the agent's assessment and the analyst's decision are stored separately, and none overwrites another. That's why the report can show all three side by side, and why the agreement figure compares the agent with the analyst.

The JSON format

report.json follows a fixed schema (report_version 1.0.0). Print it with:

python -m securesense_agent.report --schema path/to/project

Top-level fields:

Every text field is escaped in the HTML version, so code or scanner messages containing markup can't run in the browser.

Something unclear or wrong? Edit these docs on GitHub.