Skip to content

Verify a download

Every download comes with a .sha256 checksum and a Sigstore signature (.sigstore.json), and each release includes trusted_root.json, the Sigstore trust root. The checksum shows the file arrived intact. The signature shows the SegAudit release process built and signed it, with no long-lived private key that could leak.

For a server bundle you usually have nothing to do: segaudit-update checks the SHA-256 and the CPU type before it loads anything, and checks the signature too when Cosign is installed on the host. Once a signature has been checked on that host, it refuses any later bundle that comes without one.

Check the checksum on the machine you downloaded to:

Terminal window
sha256sum -c SegAudit-Setup-X.Y.Z-windows-x64.exe.sha256

On macOS use shasum -a 256 -c. On Windows without sha256sum, compare the hash from Get-FileHash SegAudit-Setup-X.Y.Z-windows-x64.exe with the one in the .sha256 file. Swap in the .dmg, .deb or .rpm name for the other installers.

Then check the signature with Cosign. No internet is needed: trusted_root.json from the same release holds the trust root.

Terminal window
cosign verify-blob \
--trusted-root trusted_root.json \
--bundle SegAudit-Setup-X.Y.Z-windows-x64.exe.sigstore.json \
--certificate-identity https://github.com/segaudit-hq/segaudit/.github/workflows/release.yml@refs/tags/vX.Y.Z \
--certificate-oidc-issuer https://token.actions.githubusercontent.com \
SegAudit-Setup-X.Y.Z-windows-x64.exe

The --certificate-identity and --certificate-oidc-issuer values name the SegAudit release workflow for version X.Y.Z and the service that issued its signing certificate. Cosign checks them against the certificate and fetches nothing from them. A file signed under any other name did not come from a SegAudit release.

The installers also carry an operating-system code signature. On Windows, right-click the .exe, choose Properties, then Digital Signatures: the signer is SegAudit LLC. On a Mac, spctl -a -vv /Applications/SegAudit.app says source=Notarized Developer ID and names SegAudit LLC.

In the folder with the bundle, its .sha256, its .sigstore.json and trusted_root.json:

Terminal window
sha256sum -c segaudit-X.Y.Z-linux-amd64.tar.gz.sha256
cosign verify-blob \
--trusted-root trusted_root.json \
--bundle segaudit-X.Y.Z-linux-amd64.tar.gz.sigstore.json \
--certificate-identity https://github.com/segaudit-hq/segaudit/.github/workflows/release.yml@refs/tags/vX.Y.Z \
--certificate-oidc-issuer https://token.actions.githubusercontent.com \
segaudit-X.Y.Z-linux-amd64.tar.gz

To accept any release rather than one version, swap --certificate-identity for:

Terminal window
--certificate-identity-regexp '^https://github\.com/(lukeponio|segaudit-hq)/segaudit/\.github/workflows/release\.yml@refs/tags/v[0-9]+\.[0-9]+\.[0-9]+$'

The image is never published to a registry. It ships only as image.tar inside the signed bundle, so the bundle’s checksum and signature cover it, and segaudit-update loads that file and nothing else. To confirm which version is running after an update:

Terminal window
docker inspect segaudit --format '{{ index .Config.Labels "org.opencontainers.image.version" }}'

This reads the running segaudit container, so it shows the version in use, including after a rollback.

Each release includes an SPDX JSON software bill of materials per CPU type, published with the release notes. A release fails to build if the vulnerability scan finds a High or Critical issue.