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.2.tar.gz (10.3 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.2-py3-none-any.whl (10.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: sscs_hw1-4.0.2.tar.gz
  • Upload date:
  • Size: 10.3 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.2.tar.gz
Algorithm Hash digest
SHA256 dff15a6085a101f3cefb47568aa8bb0766bf17065e5cfcdf6c7736dd3b2dca7d
MD5 ba1c89471f568f1ebdec0431defc2575
BLAKE2b-256 9061d33a6619646f6b696346306150f5d6092962092c7ba1617d4f032a7072fe

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sscs_hw1-4.0.2-py3-none-any.whl
  • Upload date:
  • Size: 10.8 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 40232dd3c01727e925b6f3b87ca5cedf2772b2449d8767762555db9b78273d98
MD5 8e4e8808a332e8f4216abe5453b92f9b
BLAKE2b-256 23ae0ef8ed20535a718176f124c77ab3fed24a4fcbe0fd2e5fe3406fb8127d1d

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