This guide covers different ways to install kspec on your system.
- Go 1.21 or later
- Git
# Clone the repository
git clone https://github.com/kopexa-grc/kspec.git
cd kspec
# Build the binary
go build -o kspec ./cmd/kspec
# Verify installation
./kspec --version
# Optional: Move to PATH
sudo mv kspec /usr/local/bin/go install github.com/kopexa-grc/kspec/cmd/kspec@latestDownload pre-built binaries from the GitHub Releases page.
curl -LO https://github.com/kopexa-grc/kspec/releases/latest/download/kspec_Linux_x86_64.tar.gz
tar -xzf kspec_Linux_x86_64.tar.gz
sudo mv kspec /usr/local/bin/curl -LO https://github.com/kopexa-grc/kspec/releases/latest/download/kspec_Linux_arm64.tar.gz
tar -xzf kspec_Linux_arm64.tar.gz
sudo mv kspec /usr/local/bin/curl -LO https://github.com/kopexa-grc/kspec/releases/latest/download/kspec_Darwin_arm64.tar.gz
tar -xzf kspec_Darwin_arm64.tar.gz
sudo mv kspec /usr/local/bin/curl -LO https://github.com/kopexa-grc/kspec/releases/latest/download/kspec_Darwin_x86_64.tar.gz
tar -xzf kspec_Darwin_x86_64.tar.gz
sudo mv kspec /usr/local/bin/Download kspec_Windows_x86_64.zip from the releases page and extract to a directory in your PATH.
kspec --version
kspec --helpAll releases are signed using Sigstore Cosign. To verify:
# Install cosign
go install github.com/sigstore/cosign/v2/cmd/cosign@latest
# Download signature files
curl -LO https://github.com/kopexa-grc/kspec/releases/latest/download/checksums.txt
curl -LO https://github.com/kopexa-grc/kspec/releases/latest/download/checksums.txt.sig
curl -LO https://github.com/kopexa-grc/kspec/releases/latest/download/checksums.txt.pem
# Verify signature
cosign verify-blob \
--signature checksums.txt.sig \
--certificate checksums.txt.pem \
--certificate-identity-regexp "https://github.com/kopexa-grc/kspec" \
--certificate-oidc-issuer "https://token.actions.githubusercontent.com" \
checksums.txt
# Verify checksum
sha256sum -c checksums.txt --ignore-missingReleases include SLSA Level 3 provenance attestations. Download the .intoto.jsonl file from releases to verify build provenance.
For contributing to kspec:
# Clone repository
git clone https://github.com/kopexa-grc/kspec.git
cd kspec
# Install dependencies
go mod download
# Run tests
go test ./...
# Build
go build -o kspec ./cmd/kspec
# Run linter
golangci-lint runDocker images will be available at ghcr.io/kopexa-grc/kspec.
- Quickstart Guide - Run your first scan
- Writing Policies - Create custom security policies
- CLI Reference - Full command reference