Security

Deployments with checksums: live is what was reviewed

An upload is quickly done, but how do you know that the reviewed files are really on the server? Checksums turn a feeling into evidence.

Airnite Editorial Team27 November 2026 · 3 min
Published
Reading time
3 min
Author
Airnite Editorial Team

In short

  • Every file in a package gets a SHA-256 checksum, and the list travels with the package.
  • After the upload, every file on the server is compared against its checksum.
  • Only when all values match does the version count as live; otherwise the rollback applies.

What it is about

A website package has been reviewed and approved. Several hundred files are uploaded. The range of things that can go wrong is surprisingly wide: a connection drops, a file arrives only half complete, a program converts line endings, someone still has an older version lying in the folder. None of this is visible from the outside until an error occurs.

Checksums solve this problem. A checksum is a digital fingerprint calculated from the content of a file. If even a single character changes, the fingerprint changes completely. The SHA-256 algorithm from the US standard FIPS 180-4 is today’s common benchmark for this.

How it works

When the package is built, the SHA-256 checksum of every file is calculated and stored in a list. This list is part of the package and part of the approval. During the upload, the checksum on the server is read after every single file and compared with the expected value. If it matches, the upload continues. If not, the file is transferred again or the upload is stopped.

The result is a record: package name, time, number of files and the outcome, for example “810 of 810 match”. An independent second review can repeat the same comparison later and also compare the entire web folder with the build. That shows whether there are files that belong to no package. Frameworks for secure software supply chains such as SLSA require exactly this link between the reviewed result and the delivered artifact.

Where it goes wrong

Often the only check is whether a file exists and has roughly the right size. That is not enough. A file with converted line endings has the same size and is still a different file, and some security features, such as hash values in a Content Security Policy, then fail.

A second pitfall is the server configuration. If a package carries an older configuration file, it silently overwrites newer security headers or redirects. A proven rule is that configuration files may only be part of a package if they are explicitly named in the approval.

How to proceed

Generate a SHA-256 checksum for every file during the build and store the list with the package. Have the upload check every file on the server directly after transfer. Treat every mismatch as a reason to stop. Include server configuration in a package only deliberately and with its own approval. File the result with package name and time, so that a second review and later audits can build on it.

Read more: Software supply chain and SBOM: knowing what is inside your software, Rollback: every change needs a way back and Content Security Policy in practice: step by step to a strict CSP.

How Airnite helps

We deliver websites and applications as packages with a checksum list and prove after every upload that exactly the reviewed version is live. For existing systems, we set up this comparison and check in a penetration test whether your delivery is protected against manipulation.

Checklist

Sources

Every fact in this article is based on the following publications. Primary sources are marked.

  1. NISTFIPS 180-4: Secure Hash Standard (SHS)StandardPrimary source
  2. OpenSSFSLSA: Supply-chain Levels for Software ArtifactsStandardPrimary source
  3. Pro GitGit Internals: Git ObjectsVendor

Matching services

Read on

Current incidents and warnings are covered in the Zero Day magazine. Go to the magazine

Want to put this into practice in your company?

We assess your situation and tell you clearly what to do. For businesses, in confidence.

Talk to an expert now