Run with Docker
Installation
Section titled “Installation”Trowl’s Docker image includes filesystem extraction tools and llama-server for the LLM summary. It runs with Docker on Linux, macOS or Windows.
docker pull ghcr.io/corefense-security/trowl:$TAGVerify the image
Section titled “Verify the image”Release images are signed with Cosign using GitHub Actions.
With Cosign 3+ and Docker Buildx installed, replace vX.Y.Z with the release tag, including any preview suffix. Keep both certificate flags as shown, as they identify Trowl’s release workflow and GitHub Actions as its identity provider.
TAG='vX.Y.Z'IMAGE="ghcr.io/corefense-security/trowl"DIGEST="$(docker buildx imagetools inspect "$IMAGE:$TAG" --format '{{.Manifest.Digest}}')"
cosign verify "$IMAGE@$DIGEST" \ --certificate-identity "https://github.com/corefense-security/trowl/.github/workflows/build-release-trowl.yml@refs/tags/$TAG" \ --certificate-oidc-issuer "https://token.actions.githubusercontent.com"Scan a Yocto image
Section titled “Scan a Yocto image”Put the Yocto image, its SBOM and kernel.config in ~/trowl-in/, then run:
# Create host directories owned by your user.mkdir -p ~/trowl-out ~/.cache/trowl
docker run --rm -t \ --user "$(id -u):$(id -g)" \ -v ~/trowl-in:/in:ro \ -v ~/trowl-out:/out \ -v ~/.cache/trowl:/cache/trowl \ ghcr.io/corefense-security/trowl:$TAG \ scan /in/core-image-minimal-qemux86-64.rootfs.ext4.zst \ --sbom /in/core-image-minimal-qemux86-64.rootfs.spdx.json \ --kernel-config /in/kernel.config \ -o /out/reportSee Yocto integration to scan images during a build.
Scan a Buildroot image
Section titled “Scan a Buildroot image”Put output/images/rootfs.ext4 from your Buildroot build in ~/trowl-in/, then run:
mkdir -p ~/trowl-out ~/.cache/trowl
docker run --rm -t \ --user "$(id -u):$(id -g)" \ -v ~/trowl-in:/in:ro \ -v ~/trowl-out:/out \ -v ~/.cache/trowl:/cache/trowl \ ghcr.io/corefense-security/trowl:$TAG \ scan /in/rootfs.ext4 -o /out/reportKernel VEX
Section titled “Kernel VEX”Trowl can perform VEX on kernel CVEs with or without an SBOM. To enable, mount the source tree with -v ~/src/linux:/tree:ro and pass --kernel-tree /tree.
Mount the host cache at /cache/trowl to reuse downloads between containers:
-v ~/.cache/trowl:/cache/trowlSee Data fetching and caching.
Local AI summary
Section titled “Local AI summary”Docker mode generates LLM scan summary by default. Pass --no-llm after scan to skip AI summary and model weight downloads.
For details, refer to Local AI summary.
Open the report
Section titled “Open the report”Open ~/trowl-out/report/index.html directly or serve the report locally:
docker run --rm -it -p 8765:8765 \ -v ~/trowl-out:/out:ro \ ghcr.io/corefense-security/trowl:$TAG \ view /out/reportOpen http://localhost:8765 and press Ctrl+C to stop the viewer.
See Report output for more details.