Demonstration study. This article uses the Hugo website to explain security controls. It does not claim SLSA certification, a complete SBOM or a completed vulnerability audit.

The build is also a trust boundary

A static website eliminates the need to execute application logic for every request, but content security depends on the chain that produces it. A compromised binary, malicious template or tampered dependency can insert code into the final HTML before a reader accesses the page.

In this blog, the Hugo security model distinguishes content from trusted templates. Unsafe HTML remains disabled in Markdown, and the resources needed during browsing are local. These choices reduce the attack surface, but do not remove the need to review code and tools.1

Controls that do not replace each other

ControlQuestion it answersLimitation
Pinned versionWhich version was selected?A pinned version may still have flaws
ChecksumDoes the file match the expected digest?Depends on the authenticity of the reference
SBOMWhich components were identified?May be incomplete or outdated
ScannerWhich known vulnerabilities were found?Does not prove absence of flaws
ProvenanceHow and by which process was the artifact produced?Requires trust and verification of evidence

An SBOM (Software Bill of Materials) is a structured inventory of components. It provides input for vulnerability analysis tools, but is not a list of vulnerabilities. Scanners such as OSV-Scanner can compare components identified in supported formats against records of known vulnerabilities. Coverage depends on dependency types and metadata quality.

Integrity in the blog example

Tool installation uses pinned versions and integrity checks. The build script verifies the binaries again before execution. From the project root, the installed files can be checked locally with:

sha256sum -c .tools/bin.sha256

A successful result confirms that the files match the stored digests. The source and authenticity of those digests must also be checked during installation. An attacker able to replace both a file and its reference could bypass a purely local check.

The SLSA specification provides a model for describing artifact production and associating artifacts with build inputs and builder information. In a future workflow, recording the commit, tool versions, build environment and output digests improves traceability. A manually generated manifest, however, is not automatically a verifiable attestation or proof of compliance with a SLSA level.

A proportional delivery gate

The planned pipeline should execute controls before allowing a new object collection to reach the distribution origin. For the lab, a simple sequence is to review code, verify tools, validate metadata, generate output in a clean directory and test the artifact. Vulnerability analysis should also consider transitive components and distributed executables, even without an application package manager.

Acceptance criteria

  • Unexpected modification of a protected binary or script is detected by the corresponding integrity check.
  • Drafts, credentials and internal files do not reach the published directory.
  • Dependency analysis records versions, sources, coverage and handling of relevant vulnerabilities.
  • The validated artifact can be associated with the Git revision and process that produced it.

The goal is to establish trust through complementary controls and reproducible results rather than adding tools that merely duplicate checks.

Related reading: Terraform in practice and CI/CD for static content.

References