Skip to content

Architecture

Trowl architectureThe image, an optional VEX file, an optional SBOM and an optional kernel tree with config go into Trowl, which runs locally. Trowl unpacks the image (ext4, squashfs, cpio or disk) into a root filesystem. It parses the VEX file (OpenVEX or CycloneDX) and the kernel tree's Kbuild files with its .config, and takes components from the first source found: the SBOM (SPDX 2, SPDX 3 or CycloneDX), the package database (opkg, dpkg or rpm) or fingerprints of versions in ELF files. It then analyses the image. CVE analysis matches versions, checks kernel CVEs against the kernel tree, applies the VEX file and adds CISA KEV and EPSS. SBOM analysis compares the SBOM's declared files with the image. Hardening covers ELF flags, the kernel config and mounts. Secrets finds private keys and API tokens. The report is index.html, a dashboard built by Vite into one static file with the report data embedded, plus report.json and openvex.json with each CVE's status. An optional local LLM uses llama.cpp and a model from Hugging Face to write a short summary into the dashboard. NVD (JSON), CISA KEV (JSON), EPSS (CSV) and the Hugging Face model (GGUF) are fetched when stale and cached in ~/.cache/trowl. llama.cpp is installed separately.External sourcesdata and runtimeNVD (JSON)CISA KEV (JSON)EPSS (CSV)Hugging Face (GGUF)llama.cppCache~/.cache/trowlLocal LLMImagerequired--vexoptional--sbomoptional--kernel-tree+ optional .config01Unpackext4, squashfs, cpio, disk02ParseOpenVEX, CycloneDXSPDX 2/3, CycloneDXKbuild, .config03AnalyseCVE analysisVersion match, kernel VEXSBOM analysisDependency graphs, enrichmentHardeningCompiler flags, kernel hardening, mount flagsSecretsprivate keys, API tokens04Reportindex.htmlReact + Cytoscape UI,bundled by Vite intoone file with the reportreport.jsonevery finding as JSONopenvex.jsonCVE statuses as VEX

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 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

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.

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.

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.

Each scan writes three files:

  • report.json contains the scan results as JSON.
  • index.html is a self-contained report with the results and an optional local summary.
  • openvex.json records each CVE’s status in OpenVEX format.

See Report output for details about each format.