detecting-supply-chain-attacks-in-ci-cd
यह क्या करती है
यह टूल आपके कोड ऑटोमेशन सिस्टम (CI/CD) में ऐसी सुरक्षा कमियां जांचता है जिनका इस्तेमाल आपकी software supply chain पर हमला करने के लिए हो सकता है। यह असुरक्षित actions, code injection और संवेदनशील जानकारी लीक होने के खतरे खोजता है।
कब इस्तेमाल करें
- ✓जब किसी संभावित supply chain हमले की जांच करनी हो।
- ✓अपनी ऑटोमेशन प्रक्रियाओं की सुरक्षा सेटअप करते या मज़बूत करते समय।
- ✓यह पक्का करने के लिए कि आपके सुरक्षा मॉनिटरिंग टूल ज्ञात जोखिमों को कवर करते हैं।
Skill का लिंक
https://github.com/mukul975/Anthropic-Cybersecurity-Skills/blob/main/skills/detecting-supply-chain-attacks-in-ci-cd/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“मेरे GitHub Actions workflows को supply chain सुरक्षा जोखिमों के लिए स्कैन करो।”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
टूल आपके ऑटोमेशन सिस्टम की कॉन्फ़िगरेशन फ़ाइलों का विश्लेषण करता है। यह खतरनाक पैटर्न खोजता है, जैसे कोड के ऐसे वर्शन का इस्तेमाल जो फिक्स्ड नहीं हैं, या खतरनाक कमांड डालने की संभावना।
तकनीकी सामग्री (मूल SKILL.md)
लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।
Detecting Supply Chain Attacks in CI/CD
When to Use
- When investigating security incidents that require detecting supply chain attacks in ci cd
- When building detection rules or threat hunting queries for this domain
- When SOC analysts need structured procedures for this analysis type
- When validating security monitoring coverage for related attack techniques
Prerequisites
- Familiarity with security operations concepts and tools
- Access to a test or lab environment for safe execution
- Python 3.8+ with required dependencies installed
- Appropriate authorization for any testing activities
Instructions
Scan CI/CD workflow files for supply chain risks by parsing GitHub Actions YAML, checking for unpinned dependencies, script injection vectors, and secrets exposure.
import yaml
from pathlib import Path
for wf in Path(".github/workflows").glob("*.yml"):
with open(wf) as f:
workflow = yaml.safe_load(f)
for job_name, job in workflow.get("jobs", {}).items():
for step in job.get("steps", []):
uses = step.get("uses", "")
if uses and "@" in uses and not uses.split("@")[1].startswith("sha"):
print(f"Unpinned action: {uses} in {wf.name}")
Key supply chain risks:
- Unpinned GitHub Actions (using @main instead of SHA)
- Script injection via ${{ github.event }} expressions
- Overly permissive GITHUB_TOKEN permissions
- Third-party actions with write access to repo
- Dependency confusion via public/private package name collision
Examples
# Check for script injection in run steps
for step in job.get("steps", []):
run_cmd = step.get("run", "")
if "${{" in run_cmd and "github.event" in run_cmd:
print(f"Script injection risk: {run_cmd[:80]}")
अक्सर पूछे जाने वाले सवाल
software supply chain हमला क्या है?
यह ऐसा हमला है जिसमें हमलावर आपके डेवलपमेंट में इस्तेमाल होने वाले किसी भरोसेमंद हिस्से (जैसे टूल या library) से छेड़छाड़ करता है, ताकि उसके ज़रिए आपका software या सिस्टम संक्रमित हो जाए।
'unpinned actions' का मतलब क्या है?
इसका मतलब है कि कोई action (एक छोटी ऑटोमेटेड स्क्रिप्ट) बिना किसी खास वर्शन के इस्तेमाल हो रही है। यह खतरनाक हो सकता है, क्योंकि वह action आपको पता चले बिना खतरनाक कोड वाले अपडेट के साथ बदल सकता है।
'dependency confusion' क्या है?
यह एक तकनीक है जिसमें हमलावर किसी कंपनी के internal package जैसा ही नाम वाला खतरनाक package बनाकर उसे public repository पर डाल देता है। अगर सेटअप सावधानी से न हो, तो आपका सिस्टम सही package की जगह यह खतरनाक वर्शन डाउनलोड कर सकता है।
जानकारी
लेखक का मूल विवरण
Scans GitHub Actions workflows and CI/CD pipeline configurations for supply chain attack vectors including unpinned actions, script injection via expressions, dependency confusion, and secrets exposure. Uses PyGithub and YAML parsing for automated audit. Use when hardening CI/CD pipelines or investigating compromised build systems. '
लोकप्रियता
- GitHub स्टार
- 35k
- रैंकिंग में स्थान
- #7878
- लाइसेंस
- Apache-2.0
- अपडेट की गई
- 31/8/2026
कमेंट
- …
इस repository की और skills
abusing-dpapi-for-credential-access
35kआपके AI एजेंट को किसी खास काम के लिए तैयार instructions देता है, ताकि वह उसे बेहतर और तेज़ी से कर सके।
abusing-shadow-credentials-for-privesc
35kआपके AI एजेंट को साफ़ और अच्छी तरह से व्यवस्थित लिखना सिखाता है।
achieving-cmmc-level-2-compliance
35kयह आपके एजेंट को CMMC Level 2 compliance के लिए environment तैयार करने में मदद करता है। यह security requirements लागू करता है और ज़रूरी documentation संभालता है।
acquiring-disk-image-with-dd-and-dcfldd
35kआपके एजेंट को hard drives की exact copies बनाने में मदद करता है। जाँच के दौरान किसी भी जानकारी के खोने या बदलने से बचाने के लिए यह उपयोगी है।
मिलती-जुलती skills
add-model-provider
394kयह आपके एजेंट को सुरक्षित कमांड से OpenClaw में नया AI मॉडल प्रोवाइडर जोड़ने, API कीज़ को सादे टेक्स्ट से बचाने और लाइव टेस्ट चलाने देती है।
acp-router
394kयह आपके एजेंट को OpenClaw के ज़रिए Claude Code या Cursor जैसे कोडिंग असिस्टेंट को काम भेजने देती है, ताकि काम उसी टूल में चले।
browser-automation
394kयह आपके एजेंट को लॉगिन, टैब और अटकी वेब पेज से उबरने समेत, वेबसाइट पर चरण-दर-चरण काम करना सिखाती है।