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.1.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.1-py3-none-any.whl (10.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: sscs_hw1-4.0.1.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.1.tar.gz
Algorithm Hash digest
SHA256 7f1b4e5e954f1bae3a5832ddd92e85baa26088fce10f61a229b59ac67a6dc025
MD5 cffa0103f17957cb28b36c44e520882b
BLAKE2b-256 a1aa9b5eedbd65a68e544933af9e3f410aebb3f4efeede279d3ad8ef80e2d926

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sscs_hw1-4.0.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 4b5dcb90dfe328d3916fc58a0fb3bced83cc51550bc84d6d0eee1e1c262af02d
MD5 10a9b61fd9818255cde7dd8a28c52433
BLAKE2b-256 d02ea30a0ae45fc3ca722cd664f7c665455246c399ddf6c3d9d1d1ad2baec32a

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