SLSA Provenance Field Checker
A provenance file that is missing a builder id or a subject digest is not useful, even if a tool produced an attestation.
$9.99
What it does
- Reads in-toto provenance statements from JSON files or a folder
- Detects SLSA provenance v1 versus v0.2 and applies the matching required-field set
- Requires a subject digest, a builder id and a buildType
- Warns when materials or resolvedDependencies are missing, empty or lack a digest
- Checks metadata timestamps for RFC3339 and rejects unknown predicate types
Who it's for
Release, platform and security engineers
who need a field-level check on a provenance file before they trust a release
and anyone adding a CI gate
that should fail closed on incomplete attestations.
SLSA Provenance Field Checker
Example session with this skill installed
Command: python3 scripts/check_slsa_provenance.py examples/dirty
- Read your context and instructions
- Compiled the slsa provenance field
The first file is a v1 statement with no subject digest, no buildType, no builder id, incomplete materials and a non-RFC3339 start time. The second file uses a predicate type that is not SLSA provenance.
[BLOCKER] missing-fields-v1.json: subject[0]: missing digest
[BLOCKER] missing-fields-v1.json: predicate.buildDefinition.buildType is missing or empty
[WARN] missing-fields-v1.json: predicate.buildDefinition.resolvedDependencies is missing or empty (materials look incomplete)
[BLOCKER] missing-fields-v1.json: predicate.runDetails.builder.id is missing or empty
[WARN] missing-fields-v1.json: predicate.runDetails.metadata.invocationId is missing
[WARN] missing-fields-v1.json: runDetails.metadata.startedOn: 'yesterday' is not an RFC3339 timestamp
[BLOCKER] unknown-predicate.json: predicateType is not a recognised SLSA provenance v1 or v0.2 identifier
Summary: 4 blocker(s), 3 warning(s), 2 file(s)
A second run on a v0.2 statement with an empty builder id, no buildType, an empty invocation and a slash-style date:
Command: python3 scripts/check_slsa_provenance.py examples/v0.2/dirty-v0.2.json
[BLOCKER] dirty-v0.2.json: predicate.builder.id is missing or empty
[BLOCKER] dirty-v0.2.json: predicate.buildType is missing or empty
[WARN] dirty-v0.2.json: predicate.invocation is missing
[WARN] dirty-v0.2.json: predicate.materials[0]: has neither uri nor digest
[WARN] dirty-v0.2.json: metadata.buildStartedOn: '10/18/2026' is not an RFC3339 timestamp
Summary: 2 blocker(s), 3 warning(s), 1 file(s)
Complete v1 and v0.2 examples (examples/clean and examples/v0.2/clean-v0.2.json) return exit code 0:
Summary: 0 blocker(s), 0 warning(s), 1 file(s)
Summary: 0 blocker(s), 0 warning(s), 1 file(s)
Connects securely to your tools. The creator never sees your data.
About this skill
A provenance file that is missing a builder id or a subject digest is not useful, even if a tool produced an attestation. This skill gives your agent a deterministic, offline workflow: parse the statement, select the v1 or v0.2 field set from the predicate type, and report every required field that is missing or empty.
The scanner is a single standard-library script. It does not call a registry or a transparency log, and it does not decode DSSE envelopes (pass the extracted statement). It accepts a single JSON statement, a list of statements, or JSONL. Blockers include a missing subject digest, a missing or empty builder id, a missing buildType, and a predicate type that is not SLSA provenance v1 or v0.2. Warnings cover incomplete materials, missing invocation metadata, and timestamps that are not RFC3339.
Synthetic example statements with expected output are included so you can verify the behaviour in seconds.
- Field checks only: it does not verify signatures, certify a SLSA level, or prove the builder is honest.
- It does not decode DSSE envelopes or hash the subject artifact.
- It does not contact a registry or a transparency log.
- Reports and explains; it does not rewrite the attestation.
The scanner is a single standard-library Python script. It makes no network calls and never writes files. Give it files or directories; it walks .json and common provenance file suffixes. Each file must be an in-toto Statement object, a JSON array of statements, or JSONL (one statement per line). DSSE envelopes are not decoded; extract the statement payload first. The predicate type string selects the v1 or v0.2 required-field set. Any other predicate type is a blocker. v1 required fields are buildDefinition.buildType and runDetails.builder.id, plus a subject with digests. v0.2 required fields are builder.id and buildType. Materials or resolvedDependencies, metadata timestamps (RFC3339) and invocation or configSource completeness are warnings when missing. Exit codes: 0 no blockers, 1 blockers found, 2 bad arguments. Optional --format json. It does not hash artifacts, check a transparency log, or certify a SLSA level.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Money-back guarantee
Doesn't do what its page promises? You get your money back.
Trust & safety
Security scan
Security scan passed 1 day ago
Permissions
What's inside
Frequently Asked Questions
New in Security
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Security.