मुख्य सामग्री पर जाएँ
Skillpedia
सिक्योरिटी35k · #8123

implementing-sigstore-for-software-signing

यह क्या करती है

यह टूल पक्का करने में मदद करता है कि आप जो सॉफ्टवेयर इस्तेमाल करते हैं वह असली है और उसमें कोई छेड़छाड़ नहीं हुई है। यह आपकी ऑनलाइन पहचान (जैसे Google या GitHub अकाउंट) का इस्तेमाल करके सॉफ्टवेयर के लिए डिजिटल हस्ताक्षर बनाता है, और इसके लिए आपको जटिल पासवर्ड या keys संभालने की ज़रूरत नहीं पड़ती।

कब इस्तेमाल करें

  • ✓नए सॉफ्टवेयर वर्ज़न प्रकाशित करते समय।
  • ✓डाउनलोड किए गए सॉफ्टवेयर के असली होने की जांच करने के लिए।
  • ✓ऐसे automated सिस्टम में जो सॉफ्टवेयर बनाते और टेस्ट करते हैं।

Skill का लिंक

https://github.com/mukul975/Anthropic-Cybersecurity-Skills/blob/main/skills/implementing-sigstore-for-software-signing/SKILL.md

इसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।

कैसे इस्तेमाल करें

सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।

पेस्ट करने के लिए तैयार मैसेज

इस skill से मेरी मदद करो: https://github.com/mukul975/Anthropic-Cybersecurity-Skills/blob/main/skills/implementing-sigstore-for-software-signing/SKILL.md इस लिंक की SKILL.md फ़ाइल पढ़ो और मेरे काम में उसके निर्देशों का पालन करो।
क्या आप चाहते हैं कि आपका AI ऐसी skills खुद ढूँढे?मुफ़्त Skillpedia MCP इंस्टॉल करें: बस एक लाइन, और हर काम से पहले यह 15,000+ skills में खोजता है।1 मिनट में इंस्टॉल करें →

AI से क्या माँगें: उदाहरण

“इस container image पर मेरे GitHub अकाउंट से साइन करो।”

हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।

यह कैसे काम करती है

यह Cosign नाम के टूल का इस्तेमाल करके डिजिटल हस्ताक्षर बनाता है। यह हस्ताक्षर आपकी ऑनलाइन पहचान (OIDC) से जुड़ा होता है और एक सार्वजनिक लॉग (Rekor) में दर्ज किया जाता है, ताकि कोई भी इसे जांच सके।

तकनीकी सामग्री (मूल SKILL.md)

लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।

Implementing Sigstore for Software Signing

When to Use

  • Signing container images and software artifacts without managing long-lived cryptographic keys
  • Establishing verifiable provenance for build outputs in CI/CD pipelines using OIDC identity binding
  • Querying the Rekor transparency log to audit when and by whom an artifact was signed
  • Verifying that container images pulled from registries were signed by authorized identities and issuers
  • Integrating Sigstore verification into Kubernetes admission controllers to enforce signed-image policies

Do not use for signing artifacts that require air-gapped or offline signing workflows where OIDC authentication is unavailable, for environments that cannot reach the public Sigstore infrastructure (Fulcio, Rekor) and have no private instance deployed, or as a replacement for traditional PGP/GPG signing where regulatory compliance mandates specific key management procedures.

Prerequisites

  • Cosign CLI v2.4+ installed (go install github.com/sigstore/cosign/v2/cmd/cosign@latest or binary release)
  • Access to an OIDC identity provider supported by Fulcio (Google, GitHub, Microsoft, or a custom OIDC issuer)
  • Container registry credentials (for signing container images) with push access to store signature objects
  • Python 3.9+ with sigstore, requests, and cryptography packages for the automation agent
  • Network access to fulcio.sigstore.dev, rekor.sigstore.dev, and tuf-repo-cdn.sigstore.dev (or private Sigstore instance URLs)

Workflow

Step 1: Install and Configure Cosign

Install Cosign and verify it can reach the Sigstore infrastructure:

  • Install from binary release: Download the appropriate binary from the Cosign GitHub releases page and verify its checksum. On Linux: curl -LO https://github.com/sigstore/cosign/releases/latest/download/cosign-linux-amd64 && chmod +x cosign-linux-amd64 && sudo mv cosign-linux-amd64 /usr/local/bin/cosign
  • Verify installation: Run cosign version to confirm the version and check connectivity to Sigstore services with cosign initialize which fetches the TUF root of trust
  • Configure custom infrastructure (optional): If running a private Sigstore stack, set --fulcio-url, --rekor-url, and --oidc-issuer flags or use environment variables COSIGN_REKOR_URL and COSIGN_FULCIO_URL

Step 2: Keyless Signing with Cosign and Fulcio

Perform identity-based signing where Fulcio issues a short-lived certificate bound to your OIDC identity:

  • Sign a container image: Run cosign sign <IMAGE_DIGEST> which triggers an OIDC authentication flow. Cosign generates an ephemeral key pair, obtains a short-lived certificate from Fulcio binding the public key to the OIDC identity, signs the image digest, and records the signing event in Rekor. The private key is destroyed immediately after signing.
  • Sign a blob (file): Run cosign sign-blob <file> --bundle artifact.sigstore.json to sign arbitrary files. The bundle contains the signature, certificate, timestamp, and Rekor inclusion proof.
  • Non-interactive signing in CI: Set SIGSTORE_ID_TOKEN environment variable with a valid OIDC token (e.g., from GitHub Actions OIDC or GCP workload identity) to skip the browser-based authentication flow:
    export SIGSTORE_ID_TOKEN=$(curl -sH "Authorization: bearer $ACTIONS_ID_TOKEN_REQUEST_TOKEN" \
      "$ACTIONS_ID_TOKEN_REQUEST_URL&audience=sigstore" | jq -r '.value')
    cosign sign $IMAGE_DIGEST
    
  • Supported OIDC providers: Google (https://accounts.google.com), GitHub (https://github.com/login/oauth), Microsoft (https://login.microsoftonline.com), GitLab (https://gitlab.com), and custom providers registered with a private Fulcio instance

Step 3: Verify Signed Artifacts

Verify that artifacts were signed by expected identities from expected OIDC issuers:

  • Verify a container image: Run cosign verify <IMAGE_URI> --certificate-identity=name@example.com --certificate-oidc-issuer=https://accounts.google.com to confirm the image was signed by the specified identity. Cosign validates the certificate chain, checks the Rekor inclusion proof, and verifies the signature matches the current image digest.
  • Verify a signed blob: Run cosign verify-blob <file> --bundle artifact.sigstore.json --certificate-identity=name@example.com --certificate-oidc-issuer=https://accounts.google.com

…

अक्सर पूछे जाने वाले सवाल

क्या मुझे पासवर्ड या secret keys बनानी होंगी?

नहीं, यह साइन करने के लिए आपकी ऑनलाइन पहचान (जैसे Google या GitHub) का इस्तेमाल करता है। इस प्रक्रिया को 'keyless' कहा जाता है।

'cryptographic provenance' क्या है?

यह एक तरीका है जिससे साबित किया जाता है कि सॉफ्टवेयर किसने बनाया या साइन किया, और उसके बाद से उसमें कोई बदलाव नहीं हुआ है।

अगर मेरे पास इंटरनेट नहीं है तो?

इस तरीके के लिए Sigstore सेवाओं (Fulcio, Rekor) से जुड़ने के लिए इंटरनेट चाहिए। यह पूरी तरह offline वातावरण में काम नहीं करेगा।

जानकारी

लेखक का मूल विवरण

Implements Sigstore-based software signing and verification using Cosign keyless signing, Rekor transparency log verification, and Fulcio certificate authority integration to establish cryptographic provenance for container images, binaries, and software artifacts, including OIDC-based identity binding and CI/CD pipeline integration. Use when setting up keyless container/artifact signing, verifyin

repo: mukul975/Anthropic-Cybersecurity-Skills

लोकप्रियता

GitHub स्टार
35k
रैंकिंग में स्थान
#8123
लाइसेंस
Apache-2.0
अपडेट की गई
31/8/2026

क्या यह skill काम की है?

0

लॉग इन करें वोट करने के लिए।

कमेंट

  • …

इस repository की और skills

मिलती-जुलती skills