Skip to main content

signrun

PyPI Python versions CI License: Apache-2.0

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 with predicateType: 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 cwd for cross-machine portability).
  • Ed25519 signature over the DSSE PAE (pre-authentication encoding); keyid is 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_sha256 and lockfile capture 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. See docs/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

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)

Source distribution for signrun 0.1.0
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)

Table of built distributions (wheels) for signrun 0.1.0
File Interpreter ABI Platform Actions
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 log

Release 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 log

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

Select from 2 files

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 log

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

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page