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:
| File | For |
|---|---|
report.html | Reading, printing or attaching to a review. One self-contained page that opens in any browser and prints cleanly. |
report.json | Other 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
| Section | Contents |
|---|---|
| Summary | Raw 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. |
| Scanners | Each scanner's status (ran, failed or skipped), its raw alert count and any error, and the scan's time and duration. |
| Findings by priority | Every 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 explanations | Per 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 decisions | The full audit trail, oldest first, including decisions later changed. |
| Scanner failures and incomplete analyses | Failed 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. |
| Team | The project's members and roles on the team server, and who made the decisions in this report. |
| Limitations | What 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:
scan,triageanddecisions: summaries;findings: one entry per finding, in rank order;audit_trail;incomplete;team;limitations.
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.