performing-supply-chain-attack-simulation
यह क्या करती है
यह टूल software supply chain हमलों की नकल (simulation) करता है और उनका पता लगाता है। यह जांचता है कि कोई खतरनाक या मिलते-जुलते नाम वाले packages तो नहीं हैं, यह देखता है कि निजी packages को सार्वजनिक packages समझा जा सकता है या नहीं, और इंस्टॉल किए गए packages की सुरक्षा जांचता है।
कब इस्तेमाल करें
- ✓किसी प्रोजेक्ट की dependency सुरक्षा का ऑडिट करते समय।
- ✓package registries की सुरक्षा टेस्ट करते समय।
- ✓package से जुड़ी किसी सुरक्षा घटना पर प्रतिक्रिया देते समय।
Skill का लिंक
https://github.com/mukul975/Anthropic-Cybersecurity-Skills/blob/main/skills/performing-supply-chain-attack-simulation/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“मेरे Python प्रोजेक्ट में supply chain हमलों की जांच करो।”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
टूल similarity metric का इस्तेमाल करके package के नामों की तुलना लोकप्रिय packages से करता है, जांचता है कि निजी packages को सार्वजनिक packages से भ्रमित किया जा सकता है या नहीं, और इंस्टॉल किए गए packages को ज्ञात कमजोरियों के लिए स्कैन करता है।
तकनीकी सामग्री (मूल SKILL.md)
लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।
Performing Supply Chain Attack Simulation
Overview
Software supply chain attacks exploit trust in package registries through typosquatting (registering names similar to popular packages), dependency confusion (publishing higher-version public packages matching private names), and compromised package distribution. This skill detects these attack vectors by computing Levenshtein distance between package names and popular PyPI packages, verifying package integrity via SHA-256 hash comparison, scanning for known CVEs with pip-audit, and testing dependency resolution order for confusion vulnerabilities.
When to Use
- When conducting security assessments that involve performing supply chain attack simulation
- When following incident response procedures for related security events
- When performing scheduled security testing or auditing activities
- When validating security controls through hands-on testing
Prerequisites
- Python 3.9+ with
pip-audit,Levenshtein,requests - Access to PyPI JSON API (https://pypi.org/pypi/{package}/json)
- Network access for package metadata retrieval
Legal Notice: This skill is for authorized security testing and educational purposes only. Unauthorized use against systems you do not own or have written permission to test is illegal and may violate computer fraud laws.
Key Detection Areas
- Typosquatting — compare package names against top PyPI packages using edit distance thresholds
- Dependency confusion — check if internal package names exist on public PyPI with higher version numbers
- Hash verification — download packages and verify SHA-256 digests match published hashes
- Vulnerability scanning — audit installed packages against OSV and PyPA advisory databases
- Metadata anomalies — flag packages with suspicious author emails, missing homepages, or very recent first upload dates
Output
JSON report with risk scores per package, detected attack vectors, hash verification results, and CVE findings.
अक्सर पूछे जाने वाले सवाल
'typosquatting' हमला क्या है?
इसमें हमलावर किसी मशहूर package से बहुत मिलता-जुलता नाम रजिस्टर कर लेता है, इस उम्मीद में कि डेवलपर टाइपिंग में गलती करे और खतरनाक package इंस्टॉल हो जाए।
'dependency confusion' क्या है?
इसमें हमलावर किसी कंपनी के अंदरूनी package के नाम वाला package सार्वजनिक registry पर ज्यादा version नंबर के साथ डाल देता है। अगर सेटअप सुरक्षित न हो, तो आपका सिस्टम आपका package लेने के बजाय हमलावर का package डाउनलोड कर सकता है।
SHA-256 hash verification किसलिए है?
यह पक्का करता है कि आपने जो package डाउनलोड किया है, वह बिल्कुल वैसा ही है जैसा डेवलपर ने प्रकाशित किया था। इसके लिए hash नाम का एक अनोखा पहचान कोड मिलाया जाता है, ताकि छेड़छाड़ वाले packages पकड़े जा सकें।
जानकारी
लेखक का मूल विवरण
Simulates and detects software supply chain attacks: typosquatting detection via Levenshtein distance against popular PyPI package names, dependency confusion testing against private registries, SHA-256 package hash verification, and known-CVE scanning with pip-audit. Use when auditing a project's dependencies for malicious or confused packages, or when assessing package-registry supply-chain risk
लोकप्रियता
- GitHub स्टार
- 35k
- रैंकिंग में स्थान
- #8318
- लाइसेंस
- 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
reverse-engineer-anything
422kयह आपके एजेंट को REA टूल से शिप हुई ऐप्स और पैकेज को अंदर से समझने, वर्ज़न की तुलना करने या दोबारा बनाने में मदद करती है।
1password
394kयह आपके एजेंट को 1Password CLI सेट करने, साइन इन करने और सीक्रेट्स की वैल्यू चैट में छापे बिना उन्हें पढ़ने या इस्तेमाल करने में मदद करती है।
healthcheck
394kयह आपके एजेंट को उस कंप्यूटर या सर्वर का सुरक्षा ऑडिट करने देती है जिस पर OpenClaw चलता है, जिसमें SSH, firewall, अपडेट और बैकअप शामिल हैं, और फिर सुरक्षित सुधार सुझाती है।