fix-finding
Fungsinya
Skill ini memperbaiki temuan keamanan tertentu dalam kode dengan perubahan minimal dan memeriksa bahwa perbaikannya berfungsi. Skill ini ditujukan untuk developer yang menginginkan perbaikan yang ditinjau dan terarah, bukan penulisan ulang yang luas.
Kapan dipakai
- ✓Saat Anda meminta memperbaiki dan memverifikasi kerentanan keamanan yang sudah divalidasi atau masuk akal.
- ✓Saat Anda menginginkan perubahan minimal yang menutup batas keamanan sambil menjaga perilaku normal.
- ✓Saat Anda menduga kode sudah aman dan ingin hal itu dibuktikan dengan bukti.
Link skill
https://github.com/openai/codex-security/blob/main/plugins/codex-security/skills/fix-finding/SKILL.mdSalin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.
Cara pakai
Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.
Pesan siap tempel
Untuk Claude Code, Codex, atau Cursor: jalankan di folder proyek, lalu skill langsung terpasang.
Unduh SKILL.md lalu taruh di folder skill agen Anda.
Contoh permintaan ke AI
“Perbaiki kerentanan path traversal di penangan unggahan berkas, dan jalankan pemeriksaan untuk memastikan celahnya sudah tertutup.”
5 skill baru setiap minggu. 1 menit baca.
Cara kerjanya
AI lebih dulu membaca kode yang terdampak, pemanggilnya dan tesnya, lalu mengklasifikasikan kondisi saat ini. Setelah itu AI membuat perubahan terkecil yang sesuai dengan repositori dan menjalankan pemeriksaan yang dibutuhkan oleh mode verifikasi yang dipilih.
Konten teknis (SKILL.md asli)
Teks asli dari pembuat, dalam bahasa Inggris, langsung dari 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
Pertanyaan umum
Apakah bug biasa juga diperbaiki?
Tidak. Skill hanya untuk kerentanan keamanan, bukan perbaikan bug umum atau masalah tinjauan desain.
Bisakah perbaikan diperiksa tanpa menjalankan kode?
Bisa. Mode statis hanya menilai bukti dari sumber dan diff, tanpa instalasi dependensi atau menjalankan tes.
Bagaimana jika kode ternyata sudah aman?
Skill membuktikannya dari bukti dan melaporkan bahwa tidak ada perubahan yang diperlukan.
Detail
Deskripsi asli dari pembuat
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
Popularitas
- Bintang GitHub
- 11k
- Peringkat
- #11752
- Lisensi
- Apache-2.0
- Diperbarui
- 2/11/2026
Komentar
- …
Skill lain dari repositori ini
assess-patch-risk
11kMembantu agent Anda menilai seberapa berisiko sebuah patch kode sebelum digabungkan, mencakup apa yang terdampak, tes mana yang mencakupnya, dan apakah perubahan itu bisa dibatalkan.
attack-path-analysis
11kMembantu agent Anda melacak temuan keamanan dari titik masuknya sampai sasarannya, lalu menilai dampak nyata dan apakah temuan itu sebaiknya dilaporkan.
cloud-findings
11kMembantu agent Anda membaca temuan, laporan dan status pemindaian Codex Security Cloud yang sudah ada dari akun terhubung Anda, tanpa mengubah apa pun.
deep-security-scan
11kMembantu agent Anda menjalankan pemindaian keamanan mendalam dengan banyak putaran pada repositori atau folder, dengan mengulangi pemeriksaan independen dan menggabungkan temuan yang tervalidasi.
Skill serupa
reverse-engineer-anything
422kMembantu agent Anda memeriksa aplikasi dan paket yang sudah dirilis untuk menjelaskan fitur, membandingkan versi, atau memandu pembangunan ulang dengan alat REA.
1password
394kMembantu agent Anda mengatur CLI 1Password, masuk, serta membaca atau menyisipkan rahasia tanpa menampilkan nilainya di chat.
healthcheck
394kMembantu agent Anda mengaudit komputer atau server OpenClaw dari risiko keamanan seperti SSH, firewall, pembaruan, dan cadangan, lalu menyarankan perbaikan aman.