Chuyển đến nội dung
Skillpedia
Bảo mật11k · #11752

fix-finding

Skill này làm gì

Skill này sửa một phát hiện bảo mật cụ thể trong mã bằng thay đổi tối thiểu và kiểm tra việc sửa có hiệu quả. Skill dành cho lập trình viên muốn một bản sửa có mục tiêu, đã rà soát thay vì viết lại diện rộng.

Khi nào nên dùng

  • ✓Khi bạn yêu cầu sửa và xác minh một lỗ hổng bảo mật đã xác thực hoặc có khả năng.
  • ✓Khi bạn muốn một thay đổi tối thiểu đóng ranh giới bảo mật mà vẫn giữ hành vi bình thường.
  • ✓Khi bạn nghi ngờ mã đã an toàn và muốn chứng minh điều đó bằng bằng chứng.

Liên kết skill

https://github.com/openai/codex-security/blob/main/plugins/codex-security/skills/fix-finding/SKILL.md

Sao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.

Cách dùng

Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.

Tin nhắn có sẵn để dán

Hãy dùng skill này để giúp tôi: https://github.com/openai/codex-security/blob/main/plugins/codex-security/skills/fix-finding/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Sửa lỗ hổng path traversal trong trình xử lý tải tệp lên và chạy các kiểm tra để xác nhận nó đã được đóng.”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

AI đọc trước mã bị ảnh hưởng, các nơi gọi và bài kiểm thử, rồi phân loại trạng thái hiện tại. Sau đó AI thực hiện thay đổi nhỏ nhất phù hợp với kho mã và chạy các kiểm tra theo chế độ xác minh đã chọn.

Nội dung kỹ thuật (SKILL.md gốc)

Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.

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

  1. Trace the reported path and inspect only the context needed to identify the real shared boundary. Return no_change when repository evidence shows that the reported path is already safe; do not make a speculative change.
  2. In standard mode, when feasible, run the smallest high-signal reproduction through that boundary and one legitimate control through the same path.
  3. 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.
  4. 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.
  5. 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

Câu hỏi thường gặp

Skill có sửa lỗi thông thường không?

Không. Skill chỉ dành cho lỗ hổng bảo mật, không dành cho lỗi chung hoặc các vấn đề thiết kế.

Có thể kiểm tra bản sửa mà không chạy mã không?

Có. Chế độ tĩnh chỉ đánh giá bằng chứng từ mã nguồn và diff, không cài phụ thuộc hay chạy bài kiểm thử.

Nếu mã đã an toàn thì sao?

Skill chứng minh điều đó từ bằng chứng và báo cáo rằng không cần thay đổi.

Chi tiết

Mô tả gốc của tác giả

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

Độ phổ biến

Sao GitHub
11k
Vị trí xếp hạng
#11752
Giấy phép
Apache-2.0
Cập nhật
2/11/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự