Skip to main content

Software Supply Chain Security project using Sigstore Rekor

Project description

SSCS-HW1 - Software Supply Chain Security Assignment 1

Overview

This project implements a software supply chain security workflow using Sigstore’s Rekor transparency log. It demonstrates how artifacts can be signed, verified, and validated for integrity to ensure a secure and tamper-resistant software release process.

The project covers three core areas of software supply chain security:

1. Artifact Signing & Transparency Log Upload

Using Sigstore’s cosign, artifacts are signed with an ephemeral certificate tied to the developer’s identity, and signatures are uploaded to Rekor, a public transparency log.

2. Log Entry Verification & Merkle Inclusion Proof

The project retrieves log entry data from Rekor, extracts the certificate and signature, verifies the artifact’s integrity using the public key, and validates the Merkle inclusion proof to confirm that the entry exists within the Rekor log.

3. Checkpoint Consistency Verification

The Rekor log is treated as an append-only tamper-proof log. The project verifies the consistency between past and latest checkpoints using Merkle tree proofs, ensuring that no previous log history has been altered.

This project forms the foundation for future assignments, which will further enhance the security, quality, and maintainability of this repository.

Installation

1. Install all required dependencies:

pip install -r requirements.txt

2. If you are using Homebrew (or Linuxbrew), install Cosign:

brew install cosign

For other environments, refer to https://docs.sigstore.dev/cosign/system_config/installation/

Example Usage

1. Sign an artifact (e.g. artifact.md) using Cosign:

cosign sign-blob artifact.md --bundle artifact.bundle

To see the signing info and log index:

tail -n6 artifact.bundle

2. Fetch the latest Rekor checkpoint:

python main.py -c

3. Verify artifact inclusion and signature:

python main.py --inclusion {logIndex} --artifact artifact.md

4. Verify checkpoint consistency:

python main.py --consistency --tree-id {tree-id} --tree-size {tree-size} --root-hash {root-hash}

Contributing Guideline

To learn about pull requests, testing requirements, and coding standards, see CONTRIBUTING.md.

Security Policy

Please refer to SECURITY.md for details about:

  • Supported versions
  • Reporting vulnerabilities
  • Responsible disclosure policy

Branch Protection Rules

The main branch is protected to ensure secure and traceable development practices. The following protection rules have been applied:

  • Pull requests are required before merging.
  • At least one code review approval is required.
  • Branches must be up to date before merging.
  • Linear commit history is enforced.
  • Signed commits are required.

These configurations prevent direct pushes to the main branch and enforce code review and integrity verification in the development workflow.

License

This project is licensed under the MIT License.

Contact / Support

If you encounter issues or have improvement suggestions, please open an issue or reach out through the course platform.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sscs_hw1-4.0.0.tar.gz (10.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sscs_hw1-4.0.0-py3-none-any.whl (10.5 kB view details)

Uploaded Python 3

File details

Details for the file sscs_hw1-4.0.0.tar.gz.

File metadata

  • Download URL: sscs_hw1-4.0.0.tar.gz
  • Upload date:
  • Size: 10.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.2.1 CPython/3.12.11 Darwin/23.6.0

File hashes

Hashes for sscs_hw1-4.0.0.tar.gz
Algorithm Hash digest
SHA256 b3b8f4683d11a8182a99eed84dfe7925ec01dff41525ce5979f92f201e9ef72f
MD5 5898560586a9aeac142b2722b1e3bf0b
BLAKE2b-256 cb4b194ea15b4b0f3be7b8999a23841ebece567665ad43a836f8117b43126965

See more details on using hashes here.

File details

Details for the file sscs_hw1-4.0.0-py3-none-any.whl.

File metadata

  • Download URL: sscs_hw1-4.0.0-py3-none-any.whl
  • Upload date:
  • Size: 10.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.2.1 CPython/3.12.11 Darwin/23.6.0

File hashes

Hashes for sscs_hw1-4.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c99ae65e60df167eecb960a5001013016394248e491903ae5b0673918449c71c
MD5 6557037fe8c143f98f1f4d876abb49c4
BLAKE2b-256 36518cef4c023882b2239b99a63b88cd4aa112f913c51e02830e7a78e88ec1c3

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page