# SLSA Provenance Field Checker

> Validates SLSA provenance statements (in-toto v1 and v0.2) for required fields: subject digests, builder id, buildType, and complete materials or resolved dependencies. Offline and read-only; it does not verify signatures.

SLSA Provenance Field Checker is a paid AI agent skill on Agensi by Abdelrhman Fikri, in Security. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: $9.99 (one-time purchase)
- Creator: [Abdelrhman Fikri](https://www.agensi.io/creators/abdelrhman-fikri)
- Category: [Security](https://www.agensi.io/skills/security)
- Version: 1.0.0
- Last updated: 2026-12-03
- Security: scan passed (2026-12-03); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/slsa-provenance-field-checker
- Tags: security, devops, slsa, provenance, supply-chain, in-toto, attestation, release

## 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.

## 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.

## Known limitations

- 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.

## Technical details

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 this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the SLSA Provenance Field Checker skill from Agensi" and describe your task.
3. Buy it on the listing or let your agent ask you first; your agent then loads it from Agensi when it needs it. Every paid skill has a money-back guarantee: https://www.agensi.io/docs/money-back-guarantee

## Frequently asked questions

### Does it need network access?

No. It only reads the files you point it at.

### Can I pass a signed envelope?

Not directly. Extract the statement JSON first, then point the scanner at that file.

### Which versions are supported?

SLSA provenance v1 and v0.2, detected from the predicate type identifier.

### Which Python?

Python 3.9 or newer, no packages to install.

### What does exit code 1 mean?

One or more BLOCKER findings. Warnings alone still exit 0.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
