Architecture
Image analysis
Section titled “Image analysis”Trowl unpacks the image into a root filesystem and identifies components from the SBOM, a package database or supported binary fingerprints, in that order. With --kernel-tree, the kcond fork reads the kernel’s build rules.
CVE analysis matches component versions, checks kernel CVEs against the image’s configuration and modules, applies --vex statements and adds CISA KEV data and EPSS scores.
Other checks cover ELF hardening, kernel configuration, mounts and secrets, and compare files listed in the SBOM with those in the image.
Data fetching and caching
Section titled “Data fetching and caching”Data sources
Section titled “Data sources”| Data | Links | Refresh interval |
|---|---|---|
| NVD and kernel CNA records | fkie-cad/nvd-json-data-feeds | Every 24 hours |
| CISA KEV | cisagov/kev-data, cisa.gov | Daily |
| EPSS | empiricalsecurity.com | Daily |
| Advisory link results | NVD, OSV, cve.org, kernel CNA | Every 7 days |
| AI model weights | Hugging Face | On cache miss |
Cache
Section titled “Cache ”Native runs, including those installed with the install script, use $XDG_CACHE_HOME/trowl when XDG_CACHE_HOME is set, or ~/.cache/trowl otherwise.
The Docker image sets XDG_CACHE_HOME=/cache, so its cache is /cache/trowl inside the container. See Docker cache for the host mount.
Use --cache-dir DIR to override the default in either case.
Offline scan
Section titled “Offline scan”Pass --no-network to use cached CVE data, KEV, EPSS and advisory links without internet requests. Stale entries are used without refreshing the cache. The AI summary uses local model weights if available.
Local AI summary
Section titled “Local AI summary”Trowl uses a CPU-based LLM inference to generate impact summaries on the UI overview. The analysis is completely local through llama-server, and uses facts computed during the scan. If llama-server is unavailable, the scan continues without a summary.
Supported models are qwen3.5-4b (default), qwen3.5-9b and qwen3-4b, all licensed under Apache 2.0.
The model runs with these fixed settings:
| Setting | Purpose |
|---|---|
Temperature 0, seed 0 |
Greedy decoding and a fixed seed reduce variation between runs. |
| Thinking disabled | Avoids reasoning overhead and keeps the output budget available for the summary. |
Context window 8192 tokens |
Holds the instructions, scan facts and generated summary. |
Output limit 600 tokens |
Keeps the response brief, with at most five summary points. |
| CPU threads set to the logical CPU count | Uses the available CPU parallelism for local inference. |
Reporting
Section titled “Reporting”Each scan writes three files:
report.jsoncontains the scan results as JSON.index.htmlis a self-contained report with the results and an optional local summary.openvex.jsonrecords each CVE’s status in OpenVEX format.
See Report output for details about each format.