Image Analysis History
The Image Analysis History page displays every completed analysis-tool execution for one firmware image. It can be opened with View analyses in the Images overview.
Overview
Each row represents one tool execution, not an entire multi-tool task. This includes tools that were started automatically as dependencies. A row remains visible even when the tool produced no textual output or no findings.
The overview displays:
- tool name;
- completion status;
- finding count, when the tool reports one;
- source job and execution number;
- completion time; and
- whether textual tool output is available.
A successful execution with a reported finding count of zero is labelled
Finished without findings. This is how, for example, a successful
cve-bin-tool run with no detected CVEs is represented.
Selecting View details loads the complete textual output for only that tool. The result panel opens directly below the selected row. Selecting the same row or button again, or choosing Close, collapses it. If the tool completed without text output, the detail panel says so explicitly instead of hiding the analysis.
Analysis Results and Results Dashboard
Open Analysis Results from the navigation to compare completed tool runs across images. The dashboard uses the same analysis history as this page. All supported tool tabs remain available, including tools without recorded runs.
CVE Scanner under Analysis Results focuses on individual scanner
executions: completion status, failures, findings, and detailed output or logs.
Open Results Dashboard in the navigation for the former CVE findings
view, with CVE counts, severity charts, affected images, and finding filters.
The two views are available at /analysis-results and /results-dashboard;
the existing /cve-analysis URL still redirects to /analysis-results.
Both views default to the latest five job runs. One job run is the pair of job ID and execution number; it includes every image and tool in that run. Repeated scheduled executions count separately. History settings opens an overlay to choose 1–100 job runs, and Load 5 older job runs explicitly expands the window. The chosen limit is remembered in this browser.
The database selects this window before the API reads any result summaries. Older result files are neither read nor included in the dashboard calculations. Full entries and logs are loaded only when an execution is expanded. The Results Dashboard also loads CVE findings lazily and uses the selected execution snapshots, not the cumulative CVE table. Historical runs without structured reports are labelled unavailable rather than being counted as clean scans.
- Overview provides cross-tool KPIs and a summary card for each tool.
- A tool tab filters the table and KPIs to that tool without hiding its output.
- Search, image and execution-status filters can be combined in every tool tab.
Use All results in the execution table or View analyses in the Images overview to open the complete, image-specific history across all tools.
Frontend structure
The two pages have separate components and templates:
pages/analysis-results/containsAnalysisResultsComponent, which loads tool executions, manages tool tabs and filters, and opens results and logs.pages/cve-analysis/containsCveAnalysisComponent, used only by Results Dashboard for CVE statistics, charts, and finding filters.components/tool-dashboard/contains the reusable tool-specific result display. It receives data through inputs and is also used by Image Analysis History.components/analysis-history/contains the shared history selection and settings dialog.AnalysisHistoryServiceremembers the job-run limit, while each page loads and manages its own data.
Execution APIs and models live in AnalysisService; CVE finding requests live
in CveService. Shared page styles are defined in styles/_analysis-page.scss,
with page-specific styles alongside each component.
Backend API
The pages use the following read-only endpoints:
| Endpoint | Description |
|---|---|
GET /api/analyses?job_limit=5 | Latest job runs across images; optional image_id, tool_name, and legacy per-row limit filters |
GET /get_cve_results?job_limit=5 | CVE snapshots from the same job window, fetched only when Results Dashboard opens |
GET /api/images/{image_id}/analyses | Image metadata and all completed tool executions, newest first |
GET /api/images/{image_id}/analyses/{analysis_id} | Metadata and complete text output for one tool execution |
The image-specific endpoints return 404 if the requested image or analysis
does not exist.
See Analysis Results API and Files for query parameters, response fields, error handling and the output filenames for each tool. The execution table is described in the Database Schema.
Historical data
Migration 6f8f1f2a4c91 backfills existing task history from the old combined
task records. The old schema did not store per-tool finding counts or exact
per-tool failure states, so those fields cannot be reconstructed for historical
runs. Their detail view points to the former combined output.txt. All runs
completed after the migration have exact per-tool status, finding count (when
reported by the tool), and output paths.
Tool dashboards and explorers
Firmwalker and TruffleHog have review dashboards with outcome donuts and category bars. Firmwalker matches are review candidates, not automatically confirmed vulnerabilities. Secrets are displayed in full with their location and verification status. The boot dashboard displays only detected init-system, script and target information; missing properties are labelled Not detected.
Binwalk/Extractor and SBOM use inventory views. The extractor has an expandable filesystem tree and file sizes; SBOM entries include version, source, license and package identifiers. Search, category filters and pagination are available in each execution detail. Overview inventories use the latest recorded execution per image within the current selection; the execution table retains the selected job history.
The CVE scanner's detail table uses the same severity colors as the original dashboard (critical red, high orange, medium yellow, low green) and includes a CVSS score column. A score of zero is shown as zero; missing scores are unknown.
How result data is produced
The executor splits a submitted job into tasks for individual firmware images.
Redis dispatches each requested tool after its dependencies have completed.
The extractor uses the shared FACT/unblob/vendor-specific pipeline and inventories
the resulting files. Its existing extractor-output.json supplies the selected
root filesystem to CVE, SBOM and boot analysis. Firmwalker searches all extracted
partitions for review candidates,
TruffleHog detects secrets, the CVE scanner checks software/version matches
against its local CVE database, SBOM generation inventories components, and boot
analysis detects init-system configuration.
Each runner captures its process output and normalizes the findings through the shared tool-output helpers. The task directory is:
/tasks/job_<id>/execution_<number>/image_<id>/
<tool>-output.txt
<tool>-output.txt.result.json
<tool>-output.txt.summary.json
The extractor uses extractor-output.txt and SBOM uses sbom-output.txt.
Older <tool>_output.txt files and their structured reports remain readable;
there is no need to copy or rename existing history.
The full JSON contains entries; the summary contains counts, categories and metrics without entries. The executor stores status, count, job, image and output path in the analysis_executions database table. The API joins these records with tool/job/image metadata and reads only the files needed for the requested view. Opening a dashboard does not run the scanners again.
The dashboard does not add a second set of finding tables. Binwalk signatures, CVE findings, secrets, boot configuration and SBOM components reuse the existing tables. Identical repeated findings are not inserted again; distinct findings remain separate. Execution metadata and report files preserve the individual run history.
The cumulative CVE table remains available to existing consumers of the bare get_cve_results endpoint. The dashboard supplies job_limit to request scoped snapshots and avoid mixing findings from older executions of the same image.
Each new execution writes its own text log, structured result and lightweight summary next to the tool's output file. The API returns result_summary in lists and result (including entries) in the detail response. Missing historical reports remain explicitly unavailable rather than being interpreted as zero findings.
Successful empty results, failures, timeouts and dependency skips are separate states. Failed and timed-out executions open their diagnostic log automatically. Logs and structured results can be downloaded from each execution detail. Rebuild the API, executor and analysis-tool images and rerun analyses to populate structured reports for existing firmware; old runs retain their text output.
Verification
Runner regression tests require only Python's standard library:
python3 -m unittest discover -s tests/unit -p test_analysis_results.py -v
The API history tests use an isolated SQLite database (with the project's Python dependencies and pytest installed):
python3 -m pytest tests/unit/test_analysis_history_api.py tests/unit/test_analysis_results.py -q
They verify that the default window contains five complete job runs, older report files are not read, repeated jobs count separately, and CVE severity/scores come from the selected snapshots rather than the cumulative legacy table.
After building the frontend, tests/ui/analysis-overviews.cjs checks the dashboards, empty results, timeout diagnostics, filesystem navigation and mobile layout with fixture data. It requires Playwright and Chrome (or UI_BROWSER=msedge). Set PLAYWRIGHT_MODULE to an existing Playwright installation if necessary. Screenshots are written to the ignored frontend/dist/ui-check directory.