fix-finding
ما الذي تفعله
تصلح هذه المهارة نتيجة أمنية محددة في الشيفرة بتغيير أدنى، وتتحقق من أن الإصلاح يعمل. وهي للمطورين الذين يريدون إصلاحاً مراجَعاً ومحدداً بدلاً من إعادة كتابة واسعة.
متى تستخدمها
- ✓عندما تطلب إصلاح ثغرة أمنية مُتحقق منها أو محتملة والتحقق منها.
- ✓عندما تريد تغييراً أدنى يغلق حدّاً أمنياً مع الحفاظ على السلوك الطبيعي.
- ✓عندما تشك أن الشيفرة آمنة بالفعل وتريد إثبات ذلك بالأدلة.
رابط المهارة
https://github.com/openai/codex-security/blob/main/plugins/codex-security/skills/fix-finding/SKILL.mdانسخه والصقه في الذكاء الاصطناعي الذي تستخدمه (Claude أو ChatGPT أو Cursor) واطلب منه اتباع التعليمات.
طريقة الاستخدام
أسهل طريقة: انسخ الرسالة والصقها في الذكاء الاصطناعي الذي تستخدمه. سيقرأ المهارة وينفّذ تعليماتها.
رسالة جاهزة للصق
لـ Claude Code أو Codex أو Cursor: شغّله داخل مجلد مشروعك وستُثبَّت المهارة.
نزّل ملف SKILL.md وضعه في مجلد مهارات وكيلك.
مثال على ما تطلبه من الذكاء الاصطناعي
“أصلح ثغرة اجتياز المسار في معالج رفع الملفات، وشغّل الفحوص للتأكد من إغلاقها.”
5 مهارات جديدة كل أسبوع. قراءة في دقيقة واحدة.
كيف تعمل
يقرأ الذكاء الاصطناعي أولاً الشيفرة المتأثرة ومستدعيها واختباراتها، ويصنف حالتها الحالية. ثم يجري أصغر تغيير يناسب المستودع، ويشغّل الفحوص التي يتطلبها وضع التحقق المختار.
المحتوى التقني (ملف 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
الأسئلة الشائعة
هل يصلح الأخطاء العادية أيضاً؟
لا. المهارة للثغرات الأمنية فقط، لا لإصلاح الأخطاء العامة أو ملاحظات التصميم.
هل يستطيع التحقق من الإصلاح دون تشغيل الشيفرة؟
نعم. يقيّم الوضع الثابت المصدر والفروقات فقط، دون تثبيت الاعتماديات أو تشغيل الاختبارات.
ماذا لو كانت الشيفرة آمنة بالفعل؟
تثبت المهارة ذلك من الأدلة، وتعلن أنه لم يكن هناك حاجة إلى أي تغيير.
التفاصيل
الوصف الأصلي من المؤلف
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
التعليقات
- …
المزيد من المهارات من هذا المستودع
assess-patch-risk
11kيساعد وكيلك على تقدير مدى خطورة رقعة برمجية قبل دمجها، عبر تحديد ما تؤثر فيه والاختبارات التي تغطيها وهل يمكن التراجع عنها.
attack-path-analysis
11kيساعد وكيلك على تتبع ثغرة أمنية من نقطة الدخول إلى الهدف، ثم تقدير الأثر الحقيقي وهل ينبغي الإبلاغ عنها.
cloud-findings
11kيتيح لوكيلك قراءة نتائج أمنية موجودة وتقارير وحالة فحص من Codex Security Cloud في حسابك المتصل، دون تغيير أي شيء.
deep-security-scan
11kيساعد وكيلك على تشغيل فحص أمني عميق متعدد المراحل لمستودع أو مجلد، بتكرار فحوصات مستقلة ودمج النتائج المُتحقق منها.
مهارات مشابهة
reverse-engineer-anything
422kيساعد وكيلك على فحص التطبيقات والحزم المنشورة من الداخل ليشرح الميزات ويقارن الإصدارات ويرشد إلى إعادة البناء، باستخدام أداة REA.
1password
394kيساعد وكيلك على إعداد واجهة سطر أوامر 1Password وتسجيل الدخول، وقراءة الأسرار أو حقنها دون طباعة قيمها في المحادثة.
healthcheck
394kيساعد وكيلك على تدقيق جهاز OpenClaw أو خادمه أمنيًا، مثل SSH والجدار الناري والتحديثات، ويقترح إصلاحات آمنة قابلة للتراجع.