fix-finding
यह क्या करती है
यह स्किल कोड में किसी खास सुरक्षा निष्कर्ष को न्यूनतम बदलाव से ठीक करती है और जाँचती है कि सुधार काम करता है। यह उन डेवलपर्स के लिए है जिन्हें बड़े फेरबदल की जगह जाँचा हुआ, लक्षित सुधार चाहिए।
कब इस्तेमाल करें
- ✓जब आप किसी सत्यापित या संभावित सुरक्षा कमज़ोरी को ठीक करके जाँचना चाहते हैं।
- ✓जब आपको ऐसा न्यूनतम बदलाव चाहिए जो सुरक्षा सीमा बंद करे और सामान्य व्यवहार बनाए रखे।
- ✓जब आपको शक है कि कोड पहले से सुरक्षित है और आप इसे सबूत से साबित करवाना चाहते हैं।
Skill का लिंक
https://github.com/openai/codex-security/blob/main/plugins/codex-security/skills/fix-finding/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“फ़ाइल अपलोड हैंडलर में path traversal कमज़ोरी ठीक कीजिए, और जाँच चलाकर पक्का कीजिए कि वह बंद हो गई है।”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
AI पहले प्रभावित कोड, उसे बुलाने वाले हिस्सों और उसके टेस्ट पढ़ता है, और मौजूदा स्थिति का वर्गीकरण करता है। फिर वह रिपॉज़िटरी के अनुकूल सबसे छोटा बदलाव करता है और चुने हुए सत्यापन मोड की ज़रूरी जाँचें चलाता है।
तकनीकी सामग्री (मूल SKILL.md)
लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।
Fix Finding
Before choosing paths or saving retained output, read ../../references/artifact-storage.md and follow its storage policy.
Objective
Turn a current security finding into a minimal, validated code change. If the code is already safe, prove that and report that no change was needed.
Classify the current state from evidence, close the broken security boundary, preserve legitimate behavior, and pass the checks required by the selected verification mode. Prefer the smallest repository-native change that meets those requirements.
Verification Mode
Use standard verification unless the caller explicitly selects verificationMode: static. The selected mode applies throughout this skill, including delegated reviews and workbench stages; pass it to every delegated agent.
In static mode, assess source and diff evidence only. Do not install dependencies or run builds, tests, reproducers, or the application, including when validation instructions request them. Repository-reading tools remain available. State that runtime checks were not performed; do not count them as passed or require them for this assessment. Missing runtime tooling alone is not a blocker, but a material gap in the source evidence still requires blocked.
Patch Contract
Before editing, inspect the affected implementation, its direct callers, nearby helpers, and relevant existing tests. Establish from repository evidence:
- the attacker-controlled input and concrete source-to-sink path or broken control
- the security invariant and narrowest shared enforcement boundary
- legitimate behavior, APIs, error semantics, and compatibility constraints that must remain
- the closest existing implementation, validation, and error-handling precedents
Treat the finding as a data-flow and boundary problem, not merely the named input example. Check equivalent encodings, parser forms, aliases, callers, sinks, and every representation or copy of security-sensitive state that could bypass the proposed change. Handle unsafe state explicitly; do not silently accept, truncate, or reinterpret it into another reachable form.
Implementation Workflow
- Trace the reported path and inspect only the context needed to identify the real shared boundary. Return
no_changewhen repository evidence shows that the reported path is already safe; do not make a speculative change. - In standard mode, when feasible, run the smallest high-signal reproduction through that boundary and one legitimate control through the same path.
- Implement the smallest repository-native fix at the shared boundary. Prefer nearby helpers and established APIs. Do not broaden into unrelated redesign, cleanup, or sibling findings.
- Before verification, challenge the patch rather than defending it: inspect every direct caller of each changed helper and both outcomes of each changed condition. Look for one sibling path, representation, or copy that still reaches the vulnerable sink and one ordinary or default input that the patch newly rejects or reinterprets; revise the implementation if either exists.
- In standard mode, verify the resulting change:
- inspect the final diff and run the narrowest syntax, import, build, or type check relevant to it
- rerun the security trigger or strongest focused substitute and review one alternate malicious input class
- rerun the legitimate control, nearest existing tests, and the owning package's applicable required checks
In static mode, use these verification gates instead: inspect the final diff; trace the original exploit path and relevant alternate inputs through the changed control; then inspect callers and existing tests as source to establish that legitimate behavior and compatibility remain intact. Cite the source evidence for each gate and identify anything it cannot establish.
Return blocked if the vulnerability may be real, but essential evidence, tooling, access, or a product or compatibility decision is missing, so a safe fix cannot be responsibly completed or verified.
Review the fix
Challenge the patch for surviving bypasses and regressions in legitimate behavior. Use independent investigation or review when the complexity, uncertainty, or security impact warrants it. Give a fresh read-only reviewer the finding, repository root, authorized scope, repository policy, verification mode, and candidate diff so they can assess it from source without the author's rationale or claimed test results. If delegati
अक्सर पूछे जाने वाले सवाल
क्या यह साधारण बग भी ठीक करेगी?
नहीं। यह सिर्फ़ सुरक्षा कमज़ोरियों के लिए है, सामान्य बग सुधार या डिज़ाइन समीक्षा के लिए नहीं।
क्या बिना कोड चलाए फ़िक्स जाँचा जा सकता है?
हाँ। स्टैटिक मोड सिर्फ़ सोर्स और diff के सबूत का आकलन करता है, बिना डिपेंडेंसी इंस्टॉल किए या टेस्ट चलाए।
अगर कोड पहले से सुरक्षित हो तो?
स्किल सबूतों से यह साबित करती है और बताती है कि कोई बदलाव ज़रूरी नहीं था।
जानकारी
लेखक का मूल विवरण
Use only when the user explicitly asks to fix and verify a validated or plausible security vulnerability. Do not use for ordinary bug fixes, correctness or design review findings, general validation, or full PR, commit, branch, patch, or repository scans.
repo: openai/codex-security
लोकप्रियता
- GitHub स्टार
- 11k
- रैंकिंग में स्थान
- #11752
- लाइसेंस
- Apache-2.0
- अपडेट की गई
- 2/11/2026
कमेंट
- …
इस repository की और skills
assess-patch-risk
11kयह आपके एजेंट को मर्ज करने से पहले किसी कोड पैच के जोखिम का आकलन करने में मदद करती है, यह देखकर कि वह किसे प्रभावित करता है, कौन से टेस्ट उसे कवर करते हैं और क्या उसे वापस लिया जा सकता है।
attack-path-analysis
11kयह आपके एजेंट को किसी सुरक्षा निष्कर्ष को उसके प्रवेश बिंदु से लक्ष्य तक ट्रेस करने में मदद करती है, फिर असली प्रभाव और रिपोर्ट करने योग्य होने का फ़ैसला करती है।
cloud-findings
11kयह आपके एजेंट को जुड़े हुए खाते से मौजूदा Codex Security Cloud निष्कर्ष, रिपोर्ट और स्कैन की स्थिति पढ़ने देती है, बिना कुछ बदले।
deep-security-scan
11kयह आपके एजेंट को किसी रिपॉज़िटरी या फ़ोल्डर का गहन, कई चरणों वाला सुरक्षा स्कैन करने में मदद करती है, स्वतंत्र जाँचों को दोहराकर और सत्यापित निष्कर्षों को मिलाकर।
मिलती-जुलती skills
reverse-engineer-anything
422kयह आपके एजेंट को REA टूल से शिप हुई ऐप्स और पैकेज को अंदर से समझने, वर्ज़न की तुलना करने या दोबारा बनाने में मदद करती है।
1password
394kयह आपके एजेंट को 1Password CLI सेट करने, साइन इन करने और सीक्रेट्स की वैल्यू चैट में छापे बिना उन्हें पढ़ने या इस्तेमाल करने में मदद करती है।
healthcheck
394kयह आपके एजेंट को उस कंप्यूटर या सर्वर का सुरक्षा ऑडिट करने देती है जिस पर OpenClaw चलता है, जिसमें SSH, firewall, अपडेट और बैकअप शामिल हैं, और फिर सुरक्षित सुधार सुझाती है।