Verify the cryptographic authenticity, Sigstore Fulcio OIDC certificate, Rekor transparency log entry, and non-forgeable SLSA Build Level 3 provenance of official ELCODE Forge release archives across Linux, macOS, and Windows.
Verification Methods Matrix
| Verification Method | Tool Required | Assurance Level | Supply-Chain Threat Mitigated |
|---|---|---|---|
| 1. GitHub Artifact Attestation | gh (≥ 2.49.0) | Sigstore OIDC + Rekor | Binary tampering, unauthorized release uploads, compromised keys |
| 2. OpenSSF SLSA-Verifier | slsa-verifier | SLSA Build Level 3 | CI parameter tampering, source repo/tag spoofing, rogue runner builds |
| 3. SHA256SUMS.txt Digest | sha256sum / shasum / pwsh | SHA-256 Digest | Corrupted downloads, MITM transit modification, cache poisoning |
1. GitHub Artifact Attestation Verification (gh attestation verify)
All release archives (eforge-v*-x86_64-unknown-linux-gnu.tar.gz, eforge-v*-aarch64-apple-darwin.tar.gz, eforge-v*-x86_64-pc-windows-msvc.zip) are signed keyless in GitHub Actions via actions/attest-build-provenance@v2:
export FORGE_VERSION="v1.2.0"
export TARGET="x86_64-unknown-linux-gnu"
# 1. Download the release archive
gh release download "$FORGE_VERSION" \
--repo elcode-id/elcode-forge \
--pattern "eforge-${FORGE_VERSION}-${TARGET}.tar.gz"
# 2. Verify cryptographic attestation against Sigstore Rekor & elcode-id owner
gh attestation verify "eforge-${FORGE_VERSION}-${TARGET}.tar.gz" --owner elcode-id2. OpenSSF SLSA Level 3 Verification (slsa-verifier)
Validate the non-forgeable multiple.intoto.jsonl provenance statement generated by slsa-framework/slsa-github-generator:
# Download both the binary archive and the signed in-toto provenance bundle
gh release download v1.2.0 \
--repo elcode-id/elcode-forge \
--pattern "eforge-v1.2.0-x86_64-unknown-linux-gnu.tar.gz" \
--pattern "multiple.intoto.jsonl"
# Verify SLSA Build Level 3 provenance, source repository URI, and exact tag
slsa-verifier verify-artifact eforge-v1.2.0-x86_64-unknown-linux-gnu.tar.gz \
--provenance-path multiple.intoto.jsonl \
--source-uri github.com/elcode-id/elcode-forge \
--source-tag v1.2.03. Cross-Platform SHA256SUMS.txt
# Linux
sha256sum -c SHA256SUMS.txt --ignore-missing
# macOS
shasum -a 256 -c SHA256SUMS.txt --ignore-missing
# Windows PowerShell
$Exp = (Select-String "windows-msvc.zip" SHA256SUMS.txt).Line.Split(" ")[0]
$Act = (Get-FileHash -Algorithm SHA256 eforge-v1.2.0-x86_64-pc-windows-msvc.zip).Hash.ToLower()
if ($Exp -ne $Act) { throw "SHA256 mismatch!" }4. Hardened Dockerfile Ingestion
FROM alpine:3.20 AS verifier
RUN apk add --no-cache github-cli tar
WORKDIR /verify
RUN gh release download v1.2.0 --repo elcode-id/elcode-forge \
--pattern "eforge-v1.2.0-x86_64-unknown-linux-gnu.tar.gz" \
--pattern "SHA256SUMS.txt" && \
sha256sum -c SHA256SUMS.txt --ignore-missing && \
gh attestation verify eforge-v1.2.0-*.tar.gz --owner elcode-id && \
tar -xzf eforge-v1.2.0-*.tar.gz