Skip to content
provablPublic

About

Software supply chain verification for AWS Secure Research Environments

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

vet

Software supply chain verification for AWS Secure Research Environments

Part of the Provabl suite:

  • ground — deploy correct AWS foundations
  • attest — compile, enforce, and prove compliance
  • qualify — train and qualify researchers
  • vet — vet your software ← you are here

Ground your infrastructure, attest your controls, qualify your people, vet your software, steward your data.


What vet does

vet verifies software artifacts before they are permitted to access sensitive data in an SRE. Where qualify qualifies the person, vet qualifies the software.

flowchart LR
    art["artifact / AMI<br/>(image, binary)"] --> vet["<b>vet</b><br/>sign · SLSA · SBOM · CVE"]
    vet --> gate[".vet/gate-result.json"]
    vet --> amitag["attest:vetted / attest:pcr&lt;N&gt; tags"]
    gate -->|"context.workload.*"| attest["<b>attest</b><br/>Cedar PDP"]
    amitag -->|"gated by"| scp["<b>ground</b> AMI SCP"]
Loading
vet sign    image:tag            # sign artifact via Sigstore keyless
vet verify  image:tag            # verify SLSA provenance + CVE status
vet sbom    image:tag --attest   # generate and attest SBOM
vet gate    image:tag            # write Cedar workload attributes for attest
vet gate    ami-0abc --tag-vetted  # vet an AWS AMI and tag attest:vetted=true (see below)
vet ami-reference ami-0abc --pcr 0=… # record golden boot PCR(s) on a vetted AMI (see below)

Core concepts

The handful of ideas to hold (terms link to the suite glossary):

  • SLSA provenance — how trustworthy an artifact's build chain is; vet verifies the level via cosign/Sigstore.
  • SBOM + CVE check — vet generates the bill of materials and checks each package against known vulnerabilities (OSV); fails closed if a requested check can't run.
  • Lowered attribute — vet's verdict becomes .vet/gate-result.json (→ context.workload.*) and, for AMIs, the attest:vetted / attest:pcr<N> tags attest/ground gate on.
  • vet the software, not the person — vet qualifies artifacts; qualify qualifies people. Together they cover both things that must be trusted before data access.

Install

go install github.com/provabl/vet/cmd/vet@latest   # requires Go 1.26.4+
# or build from a clone: go build ./cmd/vet

Prerequisites. Go 1.26.4+, the external tools below (cosign/gh/syft, each only for the checks that use it), and — for AMI vetting — AWS credentials with ec2:CreateTags as the vetter principal (run vet preflight to check). CVE checks reach the OSV API over HTTPS; no AWS access is needed for the software (sign/verify/sbom/gate) flow.

Required external tools

vet shells out to standard supply-chain tools; each is needed only for the checks that use it:

Tool Used by Needed for
cosign vet sign, vet verify, vet sbom --attest Sigstore keyless signing + signature verification
gh vet verify --source SLSA provenance (gh attestation verify)
syft vet sbom SBOM generation (SPDX / CycloneDX)

CVEs are queried from the OSV API over HTTPS (no local tool) using the packages parsed from a stored SBOM. vet fails closed: if a requested check's tool or input is missing — --source without gh, or --check-cves without an SBOM — verify reports a policy violation rather than silently passing.

AMI vetting (gate AMI launches)

vet also vets an AWS AMI (ami-... target). On a passing gate, --tag-vetted writes the attest:vetted=true tag to the AMI via the EC2 API:

vet verify ami-0abc123 --source github.com/org/image-pipeline   # record the verdict
vet gate   ami-0abc123 --tag-vetted --region us-east-1          # tag attest:vetted=true if it passes

That tag is exactly what ground's AMI-launch-gating SCP requires to permit ec2:RunInstances, and a companion lockdown SCP restricts who may set it to a designated vetter principal — so the principal running vet gate --tag-vetted (vet's CI) must be that vetter. On a failing gate, no tag is written (fail-closed), so an un-vetted AMI stays un-launchable.

Deep AMI-content scanning (vet ami-scan)

Beyond asserting an AMI's provenance/verdict, vet ami-scan inspects the image's disk contents: it resolves the AMI's backing EBS snapshot, mounts a copy of it read-only on an operator-provided helper instance, runs syft over the filesystem, and stores the SBOM where vet verify --check-cves reads it. AMIs auto-route to the distro-aware grype scanner (a naive OSV Linux query is false-clean on an Amazon Linux / RHEL AMI — grype matches the distro's ALAS/RHSA advisories).

# Prereqs: a running, SSM-managed, syft+awscli-equipped helper instance, and an
# S3 bucket the helper can PutObject + you can GetObject.
vet ami-scan ami-0abc123 --helper-instance i-0helper --az us-east-1a --scan-bucket my-vet-staging
vet verify   ami-0abc123 --check-cves high       # gate on the scanned SBOM (auto-routes to grype)

vet creates a volume from the snapshot and attaches it to the helper, then detaches and deletes that volume when done — it never creates/terminates the helper instance and never touches the AMI's own snapshot. The CVE source is pluggable (--cve-source osv|grype); Amazon Inspector is the other viable source (see #32).

Binding the running instance to the vetted image (golden PCR)

Tagging an AMI vetted gates which image id may launch; to also bind the running instance to that image, record the AMI's known-good boot measurement and check it at attestation. Measured-boot PCRs cannot be computed offline from an AMI — capture them from a trusted reference boot:

# 1. launch the vetted AMI on a TRUSTED instance, then on that instance:
tpm attest --device            # (or: nitro attest --device, for an enclave)
# 2. read the measured PCRs from the attestation output:
#      .tpm/attestation.json   → tpm_pcrs   (e.g. "0", "7")
#      .nitro/attestation.json → pcr0/pcr8
# 3. record them as locked golden tags on the AMI (run as the vetter principal):
vet ami-reference ami-0abc123 --pcr 0=<hex> --pcr 7=<hex> --region us-east-1
# → writes attest:pcr0=<hex>, attest:pcr7=<hex>

# 4. at launch, on the instance, enforce the match — auto-loads the golden tags from the source AMI:
tpm attest --device --expected-from-ami        # (or: nitro attest --device --expected-from-ami)
#   reads this instance's source-AMI id from IMDS, pulls its attest:pcr* tags, and requires the match;
#   a measured boot that diverges from the vetted reference fails attestation.
#   (--expected-pcrN still works for a manual override.)

The attest:pcr* tags are locked to the vetter principal by ground's lockdown SCP (a forgeable golden PCR would defeat the binding). Trust boundary: the binding is only as strong as (a) the reference boot being genuinely known-good and (b) the golden tags staying locked to the vetter.

Status

🚧 Under active development — initial CLI being built.

Open source

vet is fully open source (Apache 2.0) with no commercial tier. It integrates with attest by writing Cedar workload attributes that the attest Cedar PDP evaluates. See COMMERCIAL.md.

License

Apache 2.0. Copyright 2026 Playground Logic LLC.

About

Software supply chain verification for AWS Secure Research Environments

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages