Verifying SLSA Attestations
Starting from Wisec Level 3, every build on Starter and Pro plans produces a SLSA provenance attestation - a signed document that proves Wisec (as an independent service) processed your build and recorded its full provenance.
This page explains what it is, why it exists, and how to verify it independently.
What is a SLSA attestation?
SLSA (Supply-chain Levels for Software Artifacts) is a framework by Google and the OpenSSF that defines levels of build provenance integrity.
A SLSA provenance attestation is a JSON document (in in-toto format), here signed by Wisec, that answers:
"What was built, from which source, with which dependencies?"
It is not the same as the build event signature made by your agent. There are two distinct signatures:
| Signature | Signed by | Certifies |
|---|---|---|
| Agent signature (Ed25519) | Your CI/CD pipeline key | "This developer initiated this build" |
| SLSA attestation (DSSE/Ed25519) | Wisec service key | "Wisec independently attests this provenance" |
The value of having Wisec sign the provenance is that it comes from an independent third party - your CI key cannot forge it.
Which SLSA level?
Stated precisely, because a level claimed more firmly than it is met is worth less than no claim at all:
- SLSA Build Level 1: met. Every build has a provenance describing how it was produced.
- SLSA Build Level 2: not claimed. Level 2 requires the provenance to be generated and signed by the hosted build platform itself. Wisec signs it as an independent third party, from what the agent reports from inside your pipeline: that is what makes it unforgeable by your CI key, but it is not what Level 2 describes.
- SLSA Build Level 3: not claimed.
What Wisec adds on top of the provenance is independent of the SLSA levels: a public timestamp in the Rekor transparency log, and storage that cannot be altered afterwards.
Wisec Production Public Key
The following Ed25519 public key is used to sign all SLSA attestations produced by app.wisec.io (production environment).
d553e9dbf0b0ad698ddbcd3d9d9225f0a804a85f999a511ce8823fc21a9e3a10
This key is stable. Any rotation will be announced with a minimum 90-day notice and the old key will remain valid for previously issued attestations.
Where to find the attestation
For any certified build (Starter/Pro plan), the SLSA attestation CID is available:
- Dashboard → Certificates page →
slsa_attestation_cidfield - Public verify page:
https://app.wisec.io/verify/<event_hash>→slsa_attestation_cidfield - Security bundle ZIP →
slsa-provenance.jsonfile
Verifying an attestation
1. Retrieve the attestation from IPFS
# Wisec's public verification gateway (read-only, no account needed)
curl https://api.wisec.io/ipfs/<slsa_attestation_cid> > attestation.json
2. Inspect the DSSE envelope
cat attestation.json | jq .
You will see:
{
"payloadType": "application/vnd.in-toto+json",
"payload": "<base64-encoded SLSA statement>",
"signatures": [
{
"keyid": "d553e9dbf0b0ad698ddbcd3d9d9225f0a804a85f999a511ce8823fc21a9e3a10",
"sig": "<base64-encoded Ed25519 signature>"
}
]
}
3. Decode the SLSA statement
cat attestation.json | jq -r '.payload' | base64 -d | jq .
{
"_type": "https://in-toto.io/Statement/v1",
"subject": [
{
"name": "https://github.com/your-org/your-repo@abc123...",
"digest": { "sha256": "9f86d081884c7d65..." }
}
],
"predicateType": "https://slsa.dev/provenance/v1",
"predicate": {
"buildDefinition": {
"buildType": "https://wisec.io/slsa/pipeline-agent/v1",
"externalParameters": {
"repository": "https://github.com/your-org/your-repo",
"ref": "main"
},
"resolvedDependencies": [
{
"uri": "git+https://github.com/your-org/your-repo",
"digest": { "gitCommit": "abc123..." }
},
{ "uri": "pkg:npm/lodash@4.17.21" },
{ "uri": "pkg:pypi/flask@2.0.0" }
]
},
"runDetails": {
"builder": {
"id": "https://wisec.io/builders/pipeline-agent",
"version": { "wisec-agent": "wisec-agent-go/v1.3.0" }
},
"metadata": { "invocationId": "<wisec-event-hash>" },
"byproducts": [
{
"name": "sbom.json",
"digest": { "sha256": "2c26b46b68ffc68f..." },
"mediaType": "application/vnd.cyclonedx+json"
}
]
}
}
}
Two things to know when reading it:
- The subject is the file you delivered when your pipeline gave the agent its path (
WISEC_BINARY_PATH, see Installation). Otherwise it is the source revision:"name": "git+https://github.com/your-org/your-repo","digest": { "gitCommit": "abc123..." }. - Dependencies have no digest. They are identified by their Package URL (name and version), because the manifests they are read from do not carry one. SLSA v1 allows this.
Builds attested before the switch to SLSA v1 keep their original document, in the v0.2 format (predicate.builder, predicate.materials, subject.digest.sha1 for the commit): an anchored attestation is never rewritten. The signature is verified the same way.
4. Verify the signature
The signature follows the DSSE spec. The signed message is the PAE (Pre-Authentication Encoding):
DSSEv1 <len(payloadType)> <payloadType> <len(payload)> <payload>
Verification in Python:
import base64, hashlib, json
from cryptography.hazmat.primitives.asymmetric.ed25519 import Ed25519PublicKey
from cryptography.hazmat.primitives.serialization import Encoding, PublicFormat
from cryptography.hazmat.backends import default_backend
import binascii
WISEC_PUBLIC_KEY_HEX = "d553e9dbf0b0ad698ddbcd3d9d9225f0a804a85f999a511ce8823fc21a9e3a10"
with open("attestation.json") as f:
env = json.load(f)
payload_type = env["payloadType"].encode()
payload = base64.b64decode(env["payload"])
sig = base64.b64decode(env["signatures"][0]["sig"])
# Compute PAE
pae = b"DSSEv1 " + str(len(payload_type)).encode() + b" " + payload_type + b" " + str(len(payload)).encode() + b" " + payload
pub_key_bytes = bytes.fromhex(WISEC_PUBLIC_KEY_HEX)
pub_key = Ed25519PublicKey.from_public_bytes(pub_key_bytes)
try:
pub_key.verify(sig, pae)
print("✅ Signature valid - attestation is authentic")
except Exception as e:
print(f"❌ Signature invalid: {e}")
Cross-checking with your build
- The build:
runDetails.metadata.invocationIdis the Wisecevent_hash(metadata.buildInvocationIDin v0.2 documents). Look it up on the public verify page to confirm the attestation matches a specific certified build. - The delivered file, when the subject has a
sha256digest:sha256sum <your-file>must print exactly that value. A different value means the file you hold is not the one that was attested. - A container image, when the subject is named after an image (
registry/repo):docker pull <image>orcrane digest <image>must print the samesha256digest. A build can have several subjects, one per artifact. - The source, when the subject has a
gitCommitdigest (sha1in v0.2 documents): it is your commit hash, to cross-check against your VCS. - The SBOM: the
sbom.jsonbyproduct is the SBOM your pipeline produced, byte for byte. Compare it with the file kept by your CI, not with thesbom.jsonof the security bundle, which Wisec enriches with the vulnerabilities found and therefore has a different hash.