Cryptographic signing and hash verification
Every sealed artifact carries an ECDSA signature; the Seal CLI verifies automatically using a public key embedded in the CLI itself.
Every sealed artifact Seal publishes is cryptographically signed. The Seal CLI verifies the signature on every fetch.
How Seal signs artifacts
The signing scheme:
ECDSA over the NIST P-256 curve, with SHA-256 as the signing hash.
The artifact bytes are first hashed with SHA-512; the digest is what the signature covers.
Signatures are ASN.1-encoded.
The private signing key is held in AWS KMS and cannot be exported: it never leaves KMS's hardware security modules, and Seal signs each artifact through the KMS API. The public half of that key is the one the Seal CLI verifies against.
Seal's public key
Seal's signing public key is embedded in the Seal CLI binary as a constant. The same key is used to sign every sealed version Seal publishes, including all prior sealed versions. The key is not rotated, so signatures on older sealed versions remain verifiable indefinitely.
The key (base64-encoded ECDSA P-256 public key in PKIX format):
MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEi0BRwnEStCPSWz6vpyv7lz8N1NOXTiUlwvVscU7cUqmnC6tM1thDpAoKX+wkPUrrxBbjok+mYgDoH/FSDm1LKw==Anyone validating a sealed artifact uses this same key. There is no per-tenant key, no key fetch at run time, and no key rotation.
The CLI's automatic validation
Every seal fix invocation runs a signature-verification step after downloading sealed artifacts and before installing them. The verification is automatic; you do not need to enable it.
For each downloaded artifact, the CLI:
Loads the embedded public key.
Computes the SHA-512 digest of the artifact bytes the CLI just downloaded.
Verifies the signature against the digest with ECDSA-P256 using the public key.
If any artifact fails verification or is missing a signature, the CLI fails the run with failed validating package signatures and the build does not proceed.
SLSA provenance check
The same step also checks SLSA provenance for sealed npm, Maven, PyPI, Go, and RPM packages. When Seal built a sealed package with SLSA provenance, the CLI downloads its provenance bundle (a Sigstore bundle) and verifies that:
It was signed by Seal's sealing pipeline on GitHub Actions, built from Seal's reviewed main branch.
It covers the exact package name, version, and bytes the CLI just downloaded.
The CLI checks the bundle against GitHub's Sigstore trusted root, which it fetches from tuf-repo.github.com the first time a package in the run has a bundle. See Network requirements.
The provenance check never stops the fix. The signature check above decides whether a package installs:
A package without a provenance bundle is installed with no warning.
If the bundle does not verify, the CLI logs the warning
provenance does not match the package.If the bundle or GitHub's trusted root cannot be reached, the CLI logs a warning and skips the provenance check for the rest of the run.
--skip-sign-checks skips the provenance check together with the signature check.
Verifying SLSA provenance yourself
To check a sealed package's provenance outside the CLI, download its SLSA report (the provenance bundle) from the row's action menu on the Sealed packages tab, then run the GitHub CLI against the package file:
A successful verify confirms that the file is exactly what Seal's sealing pipeline built and signed.
Verifying signatures yourself
The CLI verifies automatically; in almost all cases, no customer-side action is needed. Customers who want to run an independent verification (for instance, against an artifact that took a path the CLI did not handle) use the same primitives:
The public key above.
The artifact bytes.
The signature on the artifact.
The verification is a standard ECDSA-P256 / SHA-256 verify over the SHA-512 of the artifact bytes. Any ECDSA-aware tooling can run it: Python's cryptography module, openssl dgst -verify, Go's crypto/ecdsa, and so on. Contact your Seal account team for current verification helpers if you want to wire this into an internal audit pipeline.
Ecosystem-native signatures
In addition to the ECDSA signature the CLI checks, sealed packages in some ecosystems carry the signature their own package manager expects, so the standard tooling verifies them too:
Maven. Each sealed artifact has a detached OpenPGP signature (
.asc), the same form Maven Central uses.RPM. Each sealed RPM carries an OpenPGP signature in its header, made with the same key as the Maven signatures.
APK. Each sealed APK is signed for Alpine's
apk, which verifies it on install once Seal's APK public key is in/etc/apk/keys. See Configuring apk.
Seal's OpenPGP key for Maven and RPM:
User ID:
Seal Security <info@sealsecurity.io>Type: RSA 3072
Fingerprint:
B211 8999 A1A9 B2BC 7D43 A75D 33F1 F535 51A6 E069
The key is published on keys.openpgp.org and keyserver.ubuntu.com. To verify a Maven artifact or an RPM:
Verifying published hashes
Each sealed artifact also publishes a SHA-256 hash of its bytes. The hash is a lighter integrity check: if the SHA-256 of the artifact on your disk matches the SHA-256 Seal publishes, the bytes were not corrupted in transit or at rest.
Hash verification is weaker than signature verification: it confirms the bytes match what Seal published, but not, by itself, that the published bytes came from Seal. Use the signature for authenticity; use the hash for quick integrity.
The hash is shown in three places:
On the Repository page for the sealed package version.
In the package's drawer on the Protection page.
In the PDF attestation for the artifact.
Compute the local hash with sha256sum <file> (Linux) or shasum -a 256 <file> (macOS) and compare against the published value.
Related
Attestations: the signed records that complement artifact signing.
The CLI fix mode: when the automatic validation runs.
Last updated