See whether files were changed. Seal a folder once, check it whenever you like.
$ assay seal ./backups
Sealed 1204 files -> backups/.assay.json
$ assay check ./backups
Checked 1204 files against backups/.assay.json (sealed 2026-10-16T09:12:44Z, sha256)
modified db/users.sqlite (4.2 MiB -> 4.2 MiB)
added db/users.sqlite-wal
removed logs/2026-10-01.log
renamed notes.txt -> archive/notes.txt
CHANGED: 1 modified, 1 added, 1 removed, 1 renamed, 1200 unchangedassay (noun): the testing of a metal to find out whether it is what it claims to be. An assay office tests the metal and then stamps the hallmark on it.
Assay records a cryptographic hash of every file in a manifest and later tells you exactly what differs: modified, added, removed or renamed. It is a single static binary with no dependencies and no daemon.
sha256sum -c checks the files you listed and says nothing about files that appeared. Tripwire and
AIDE do the whole job but are built for system administrators. Assay sits in between:
sha256sum -c |
AIDE / Tripwire | Assay | |
|---|---|---|---|
| Whole folder, finds new files | no | yes | yes |
| Recognises renames | no | partly | yes |
| One small binary, Linux macOS Windows | partly | no | yes |
| Manifest that diffs well in git | yes | no | yes |
| Signed manifests (Ed25519) | no | yes | yes |
Readable output, --json, HTML report |
no | partly | yes |
| Needs root or a database | no | yes | no |
Typical uses: verify backups and archives, detect tampering with deployed sites or release directories, prove that a dataset or evidence folder did not change, check a build output, or find out what a script really touched.
Pick the one that fits your system. All of them give you the same assay command; check with assay version.
Debian, Ubuntu and derivatives (apt): add the signed repository once, then install and update like any other package.
sudo install -d -m 0755 /etc/apt/keyrings
curl -fsSL https://sandsoftwaresolutions.github.io/apt/key.asc | sudo tee /etc/apt/keyrings/sandsoftwaresolutions.asc >/dev/null
echo "deb [signed-by=/etc/apt/keyrings/sandsoftwaresolutions.asc] https://sandsoftwaresolutions.github.io/apt stable main" | sudo tee /etc/apt/sources.list.d/sandsoftwaresolutions.list
sudo apt update
sudo apt install assayUpdates arrive with sudo apt upgrade. More about the repository: SandSoftwareSolutions/apt.
Linux and macOS (install script): downloads the release for your system, checks its SHA-256
checksum and installs to ~/.local/bin. It never uses sudo. Read it first if you like:
install.sh.
curl -fsSL https://raw.githubusercontent.com/SandSoftwareSolutions/assay/main/install.sh | shWindows: download assay_<version>_windows_amd64.zip (or arm64) from the
releases page, unzip it and put assay.exe
in a folder that is on your PATH. Check the download against SHA256SUMS.
With Go (Go 1.22 or newer):
go install github.com/SandSoftwareSolutions/assay@latestOther downloads: every release has archives for Linux, macOS and Windows (amd64 and arm64), .deb
packages and SHA256SUMS. Build provenance can be checked with gh attestation verify <file> --repo SandSoftwareSolutions/assay.
From source:
git clone https://github.com/SandSoftwareSolutions/assay
cd assay
make build # produces ./assayassay seal [folder] # write folder/.assay.json
assay check [folder] # compare; exit status 0 = unchanged, 1 = changes, 2 = error
assay check --json # machine readable
assay check --watch 30s # keep checking, print when the picture changes
assay diff old.json new.json # compare two seals (two points in time)
assay report -o report.html # a self-contained HTML report
assay export > SHA256SUMS # sha256sum -c compatible linesUseful flags: -m file (manifest elsewhere, for example on another disk), --exclude pattern
(repeatable), --algo sha512, -q (quiet when fine), --workers N.
Put patterns in a .assayignore file in the folder (same rules as .gitignore) or pass
--exclude. The patterns in effect are stored in the manifest, so later changes to the ignore file
cannot silently change what a seal means.
In scripts:
assay check /srv/site -q || { echo "site changed!" | mail -s alert ops@example.com; }assay check --fast reuses the hash of every file whose size and modification time have not changed
since the previous run, so a large, mostly unchanged folder is checked in a fraction of the time.
The cache is kept in your user cache directory (override with --cache-file). The trade-off: a file
changed without touching its modification time is not noticed in fast mode. Use plain assay check
when you need certainty; files modified within the last two seconds are always rehashed. The report
says how many hashes were reused.
$ assay completion bash > /etc/bash_completion.d/assay # also zsh, fish, powershell
$ assay man | gzip > /usr/local/share/man/man1/assay.1.gzThe .deb package installs both for you.
- uses: SandSoftwareSolutions/assay@v0.2.0
with:
command: check
path: dist
pubkey: release.pub
require-signature: "true"The action downloads the release archive, verifies it against SHA256SUMS and runs assay.
Inputs: command (seal or check), path, manifest, pubkey, require-signature, version
(default latest; pin one for reproducible builds) and args (extra flags, space separated).
A hash tells you the files differ from the manifest. It cannot tell you the manifest is genuine: whoever can change your files can also seal them again. A signature closes that gap.
$ assay keygen -o release # writes release.key (secret) and release.pub (share)
$ assay seal ./dist --key release.key
$ assay check ./dist --pubkey release.pub --require-signature
signature valid: signed by key 6f1c0a9e22b4d7a1
OK: all 38 files are unchangedThe signature covers the root hash (which covers every path, size and hash), the algorithm and the ignore patterns. Keep the private key off the machine that holds the files. See docs/security-model.md for what Assay does and does not prove.
- Every regular file is hashed with SHA-256 (or SHA-512) in parallel. Symbolic links are skipped, never followed.
- The manifest is a small JSON file: algorithm, ignore patterns, root hash and one
{path, size, hash}per file, sorted. It has no timestamps per file, so sealing an unchanged folder twice gives byte for byte the same manifest apart from the creation time. See docs/format.md. checkre-hashes the folder and compares. A removed and an added file with identical content are reported as a rename.- A manifest is treated as untrusted input: paths that leave the folder, duplicate entries and malformed hashes are rejected.
- Unreadable files are reported and never mistaken for deleted ones.
| Code | Meaning |
|---|---|
| 0 | Everything matches |
| 1 | Differences found, a damaged manifest or an invalid signature |
| 2 | An error: bad usage, unreadable files, no manifest |
- Assay detects changes. It cannot say who made them or prevent them.
- It compares content, size and path. File permissions, owners and timestamps are not recorded.
- Without a signature, the manifest is only as safe as the place you keep it.
make check # gofmt, vet, tests
make race # tests with the race detector
make fuzz # short fuzzing run of the parsers
make dist # release archives and SHA256SUMS in dist/See CONTRIBUTING.md, SECURITY.md and CHANGELOG.md.
GNU Affero General Public License v3.0 or later. See LICENSE.