Tamper-proof execution proofs for your scripts.
Run anything. Prove everything. Detect tampering instantly.
pip install -e .Or run directly:
PYTHONPATH=. python3 -m sk.cli run <script>sk run build.sh
sk run deploy.py
sk run test_suite.pyOutput:
SK: executing build.sh
SK: command = bash build.sh
---
[your script output here]
---
SK: exit code = 0
SK: duration = 0.014s
SK: script = 9cf8eb6adaab4377...
SK: stdout = da5cc1cd147a099d...
SK: proof = f10f3aa670c6dcfc...
Proof generated: proof_1714430000.json
sk verify proof_1714430000.jsonOutput:
SK Verify: proof_1714430000.json
proof_id: abb9c0fa-fd4b-4468-985d-1813f68d3e5b
script: /path/to/build.sh
exit code: 0
duration: 0.014112s
checks run: 5
All integrity checks passed.
VERIFICATION PASSED
If anyone modifies the proof file, stdout, stderr, or the script itself:
FAIL: proof_hash mismatch — proof file has been tampered with
FAIL: stdout_hash mismatch — stdout has been modified
VERIFICATION FAILED
Each proof file contains:
| Field | Description |
|---|---|
proof_id |
Unique UUID for this execution |
script |
Absolute path to the executed script |
script_hash |
SHA-256 of the script at execution time |
stdout / stderr |
Captured output |
stdout_hash / stderr_hash |
SHA-256 of each output stream |
returncode |
Exit code |
timestamp_start / timestamp_end |
Execution window |
duration_seconds |
Wall-clock duration |
environment |
Python version, OS, architecture, hostname |
proof_hash |
SHA-256 seal over the entire proof |
sk verify runs 5 integrity checks:
- Proof seal — proof_hash matches recomputed hash of all fields
- stdout integrity — stdout_hash matches actual stdout content
- stderr integrity — stderr_hash matches actual stderr content
- Script integrity — script_hash matches current script on disk (if available)
- Required fields — all mandatory fields are present
- CI/CD integrity — prove your build ran exactly as claimed
- Audit trails — tamper-proof execution records for compliance
- Reproducibility — capture environment + output for debugging
- Supply chain security — verify build artifacts weren't modified
John David Taylor Preston — Founder-Architect Safety Kernel / Aethel Grid / Undermoon OS / Civics OS
MIT