patch-diff-research
यह क्या करती है
यह स्किल बताती है कि सुरक्षा पैच का अध्ययन कैसे करें, उसके अंतर को दिखाने वाला टेस्ट कैसे बनाएँ, और मिलती-जुलती कोड समस्याएँ कैसे खोजें। यह उन शोधकर्ताओं और मेंटेनर्स के लिए है जिन्हें कोड देखने की अनुमति है।
कब इस्तेमाल करें
- ✓जब सुरक्षा समीक्षक एजेंट से किसी अधिकृत प्रोजेक्ट के कमज़ोर और सुधरे संस्करण की तुलना करवाना चाहता है।
- ✓जब एजेंट को पैच की गई बग जैसे ही कारण वाले मिलते-जुलते कोड रास्ते खोजने हों।
- ✓जब रिपोर्ट में पुराने संस्करण पर सकारात्मक टेस्ट और सुधरे संस्करण पर नकारात्मक नियंत्रण दिखाना हो।
Skill का लिंक
https://github.com/BitterSecurity/Decepticon/blob/main/packages/decepticon/decepticon/skills/standard/analyst/patch-diff/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“क्या आप इस प्रोजेक्ट के कमज़ोर और सुधरे संस्करण की तुलना कर सकते हैं और जाँच सकते हैं कि मिलते-जुलते कोड रास्तों में वही समस्या अभी भी है या नहीं?”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
एजेंट दोनों संस्करण तय करता है, समझाता है कि पैच में क्या बदला, ऐसा टेस्ट बनाता है जो पुराने संस्करण पर विफल और सुधरे पर सफल हो, और फिर हर मिलते-जुलते स्थान को अलग से जाँचता है।
तकनीकी सामग्री (मूल SKILL.md)
लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।
Patch-Diff Research
Use this workflow only on source, commits, and test targets the engagement is authorized to inspect. A patch is evidence of a changed security boundary, not proof that every neighboring line is exploitable.
Inputs
- Pinned vulnerable and fixed revisions from the same repository.
- Build instructions and a local or intentionally vulnerable test target.
- The advisory, failing test, or exact behavior corrected by the patch.
Loop
- Pin both sides. Record repository URL, vulnerable commit, fixed commit, clean working-tree state, dependency lockfile hashes, and build commands.
- Explain the security delta. Identify the source, guard, sink, trust boundary, and behavior changed by the patch. Ignore formatting-only hunks.
- Build a differential test. The positive case must reproduce on the vulnerable revision; the negative control is the exact same case on the fixed revision. Record both raw outputs.
- Search for siblings. Search only for the abstract cause—not the exact line text. For every hit, confirm framework, data flow, authorization state, and reachability before treating it as a candidate.
- Validate candidates independently. Each candidate gets its own minimal
positive and baseline command through
validate_workspace_finding. Do not inherit validation from the original CVE. - Report the boundary. Record rejected siblings and why they differ. Group only independently confirmed findings under the common root cause.
Required artifacts
research/patch-diff/<advisory>/
revisions.json # commits and dependency hashes
security-delta.md # source / guard / sink explanation
original-positive.txt # vulnerable revision output
original-fixed-control.txt # fixed revision output
variants/<candidate>/positive.txt
variants/<candidate>/baseline.txt
variants/<candidate>/verification.json
A variant is promotable only when its own verification artifact validates and the original fixed-side control demonstrates the intended remediation boundary.
अक्सर पूछे जाने वाले सवाल
दो संस्करणों की तुलना क्यों करें?
स्किल कहती है कि पैच दिखाता है कि सुरक्षा सीमा कहाँ थी, इसलिए कहीं और मिलता-जुलता कोड भी उसी सुधार की ज़रूरत रख सकता है।
क्या पैच साबित करता है कि दूसरा कोड भी कमज़ोर है?
नहीं। स्किल कहती है कि पैच बदली हुई सीमा का सबूत है, और रिपोर्ट करने से पहले हर पड़ोसी कोड की जाँच ज़रूरी है।
रिपोर्ट में क्या होना चाहिए?
कमिट का विवरण, दोनों संस्करणों पर टेस्ट के परिणाम, और हर संभावित स्थान की पुष्टि।
जानकारी
लेखक का मूल विवरण
Authorized patch-diff workflow for deriving and validating vulnerability variants from a known vulnerable-to-fixed source change.
लोकप्रियता
- GitHub स्टार
- 6.5k
- रैंकिंग में स्थान
- #13963
- लाइसेंस
- Apache-2.0
- अपडेट की गई
- 1/11/2026
कमेंट
- …
इस repository की और skills
detector-overview
6.5kयह आपके एजेंट को स्कैनर से चिह्नित कोड पढ़ने और तय करने में मदद करती है कि कौन सी जगहें असली सुरक्षा बग हैं और कौन सी गलत चेतावनी।
exploiter-overview
6.5kयह आपके एजेंट को कई पक्की सुरक्षा कमज़ोरियों को एक परीक्षण श्रृंखला में जोड़ने और जाँचने में मदद करती है कि वह श्रृंखला कितनी दूर तक पहुँच सकती है।
llm-redteam-overview
6.5kयह आपके एजेंट को परीक्षण के लिए सही AI रेड-टीम गाइड खोजने में मदद करती है, प्रॉम्प्ट इंजेक्शन से लेकर मॉडल के दुरुपयोग तक 15 रणनीति समूहों में।
aatmf-t01-prompt-injection
6.5kसमझाती है कि प्रॉम्प्ट इंजेक्शन क्या है, जिसमें छिपे निर्देश AI सिस्टम के नियम बदलने की कोशिश करते हैं, ताकि सुरक्षा परीक्षक उसकी जाँच कर सकें।
मिलती-जुलती skills
reverse-engineer-anything
422kयह आपके एजेंट को REA टूल से शिप हुई ऐप्स और पैकेज को अंदर से समझने, वर्ज़न की तुलना करने या दोबारा बनाने में मदद करती है।
1password
394kयह आपके एजेंट को 1Password CLI सेट करने, साइन इन करने और सीक्रेट्स की वैल्यू चैट में छापे बिना उन्हें पढ़ने या इस्तेमाल करने में मदद करती है।
healthcheck
394kयह आपके एजेंट को उस कंप्यूटर या सर्वर का सुरक्षा ऑडिट करने देती है जिस पर OpenClaw चलता है, जिसमें SSH, firewall, अपडेट और बैकअप शामिल हैं, और फिर सुरक्षित सुधार सुझाती है।