signrun
Signed integrity records for scientific Python pipelines.
signrun wraps a Python entrypoint, captures content-addressed identity for declared inputs, code, declared outputs, and runtime environment, and emits a DSSE-enveloped in-toto Statement signed with Ed25519. A third party with the signer's externally-published fingerprint can verify byte-equivalence and confirm the signature matches the expected key in a single command.
Status: v0.1.0, alpha. The spec is stable; the implementation is under active development.
Quickstart
pip install signrun
# Generate a keypair (prints your fingerprint -- publish it; see docs/trust-anchor.md)
signrun init
# Declare what your run reads and writes
cat > signrun.yaml <<EOF
inputs:
- data/input.csv
outputs:
- results/output.json
EOF
# Wrap your script (signrun uses sys.executable; no `python` prefix)
signrun wrap pipeline.py -- --seed 42
# Verify with the signer's externally-supplied trust anchor
signrun verify --fingerprint sha256:<your-fingerprint> manifest.json
See docs/quickstart.md for the full 60-second onboarding.
What v0.1 delivers
- DSSE envelope (
secure-systems-lab/dsse) wrapping an in-toto Statement v1 withpredicateType: https://corman.io/signrun/Provenance/v0.1. - Content-addressed SHA256 over declared inputs, declared outputs (subject), the entrypoint script, and project-local imported modules (paths relative to
cwdfor cross-machine portability). - Ed25519 signature over the DSSE PAE (pre-authentication encoding);
keyidis informational and never trusted. - Three verification states:
signature invalid(exit 3),signature valid, signer untrusted(exit 1),trusted signer verified(exit 0). Trusted failed-run records exit 7. - TOCTOU defense: post-execution input stability re-hash detects changes that persist until the re-hash and refuses to sign by default. A mutate-read-restore attack (modify-during-run, restore-before-rehash) is an inherent wrapper limitation; see
docs/threat-model.md. - Cross-machine reproducibility:
installed_packages_sha256(resolved snapshot) distinguishes platform drift from artifact drift;dependency_spec_sha256andlockfilecapture declared intent.
What v0.1 does NOT deliver
- Author identity binding. The signature only proves possession of the embedded key. For trusted verification, the verifier must supply the signer's fingerprint out-of-band (via the signer's published GitHub README, tagged release commit, personal website). What this proves is continuity with a published key, not real-world identity. Channel compromise defeats attribution. v0.3 plans Sigstore-keyless attestation. See
docs/trust-anchor.md. - Subprocess / multiprocessing / C-extension / external-network capture. Out of scope, surfaced explicitly in
capture_coverage. Seedocs/coverage-limits.md. - Symlinks / HPC shared-storage layouts. v0.1 attests only regular files physically within the verification workspace; symlinked external data requires materializing the file into the workspace or waiting for v0.2.
- Regulatory compliance. NIH DMS, NSF Public Access, EU AI Act Article 10 are policy-level requirements; signrun is a useful primitive but neither sufficient nor mandated.
Documentation
docs/quickstart.md-- install → init → wrap → verify in 60 seconds.docs/threat-model.md-- what signrun proves, what it doesn't, and the exit-code precedence table.docs/trust-anchor.md-- how to publish your fingerprint and what each publication channel does and does not protect.docs/coverage-limits.md-- explicit list of what v0.1 captures and what it does NOT.docs/schema.md-- manifest schema reference for tools that consume signrun output.
License
Apache-2.0. See LICENSE.
Metadata
Release files for signrun 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| signrun-0.1.0.tar.gz | 74.7 kB | With provenance | Details for signrun-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| signrun-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for signrun-0.1.0-py3-none-any.whl |
Total release size: 127.9 kB
Release files / signrun-0.1.0.tar.gz
| Download URL | signrun-0.1.0.tar.gz |
|---|---|
| Size | 74.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8b9786d849d6401d0edf81339c47a53a01410588e221207e6a739fca083afe81
|
|
BLAKE2b-256 checksum How to use checksums |
1fc139e15c10ed9a9e82a7f077825631c3cc21e67a3a94cd3a22ffad394b554e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 30, 2026.
Transparency logRelease files / signrun-0.1.0-py3-none-any.whl
| Download URL | signrun-0.1.0-py3-none-any.whl |
|---|---|
| Size | 53.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
24981906eda601ed76c935f41cdd1377eb99c7ac437a0794ac1a02cbb08694c1
|
|
BLAKE2b-256 checksum How to use checksums |
67de56198704b32d40ce0d2bd8f06c5f57926cad5a5428515e782c3f861f2a07
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 30, 2026.
Transparency logSecurity for signrun 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for signrun-0.1.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 30, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.