attack-path-analysis
Skill này làm gì
Skill này kiểm tra xem một nghi ngờ lỗ hổng bảo mật có đường tấn công thật hay không và mức độ nghiêm trọng ra sao. Skill dành cho người rà soát bảo mật muốn tách rủi ro thật khỏi cảnh báo sai.
Khi nào nên dùng
- ✓Khi một lần quét bảo mật đã gắn cờ một vấn đề và bạn cần biết nó có thật không.
- ✓Khi bạn muốn truy vết một phát hiện từ nơi kẻ tấn công kiểm soát đến thao tác nhạy cảm.
- ✓Khi bạn cần quyết định rõ ràng xem một phát hiện có nên báo cáo không.
Liên kết skill
https://github.com/openai/codex-security/blob/main/plugins/codex-security/skills/attack-path-analysis/SKILL.mdSao 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
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Truy vết phát hiện SQL injection này từ form đăng nhập đến cơ sở dữ liệu, và cho tôi biết nó có nên báo cáo không.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
AI xác định kẻ tấn công, điểm vào, ranh giới bảo mật và thao tác nhạy cảm, dựa trên bằng chứng trong mã. AI xem xét các biện pháp bảo vệ có sẵn, đánh giá tác động và đưa ra quyết định rõ ràng cho từng phát hiệ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.
Security Attack Path Analysis
Determine whether each supplied finding has a supported attacker path, what impact it has, and whether it is reportable. Before creating or retaining files, read ../../references/artifact-storage.md.
Establish the attack path
For a scan phase, use its per-scan threat model and candidate set from ../../references/scan-artifacts.md. Preserve supplied input paths. If a required scan artifact is unavailable, report the missing input.
For standalone analysis, use the supplied finding, repository, threat model or security policy, and context. A per-scan artifact is not required. State material assumptions and ask for missing context only when it prevents a meaningful assessment.
- Establish the in-scope attacker, affected product surface, entry point, controlled input, security boundary, and sensitive operation. Trace the path from repository evidence.
- Identify relevant controls and the strongest counterevidence. Explain what they establish, which prerequisites remain, and whether the exact claimed boundary is crossed.
- Assess impact and likelihood from those facts, then apply references/severity-policy.md. Keep facts, severity calibration, and the final policy decision distinguishable in the result.
- Return an explicit decision for every eligible candidate, including ignored or deferred candidates. Do not replace a supported instance with a neighboring finding or lose its root-control location.
Use repository evidence and explicitly supplied context. Access the network only when the user has expressly authorized it; an offline scan never accesses the network. Do not invent unsupported attack chains. Missing deployment or public-ingress evidence can limit confidence without defeating an otherwise supported finding.
Scan integration
Standard scans and Deep Scan workers assess attack paths within their ordinary Standard scan workflow; neither invokes this separate phase skill.
Compact Workbench Diff
When a workbench-backed $security-diff-scan has a scanId:
- Load the per-scan threat model and all validated candidates with
list_codex_security_candidates({ scanId, cursor?, limit? }). - Analyze every
reportableordeferredvalidation candidate. Preserve candidate identity and existing discovery and validation fields. - Submit every decision together with
record_candidate_attack_paths({ scanId, attackPaths: [{ candidateId, attackPath }] }). SubmitattackPaths: []when no candidate enters this phase. The tool preserves the stored candidate order. - These nested decisions are the complete phase output. Do not create duplicate reports, receipts, or manual ledgers.
Other phase-based scans
Use the active workflow's report and receipt paths in ../../references/scan-artifacts.md. Every candidate entering this phase must have an explicit decision and a receipt with its ID, facts or exact proof gap, and report reference. Record ignored candidates before excluding them from the surviving finding set.
For repository-wide or scoped-path scans, include validation closure rows marked reportable or survives: yes, even if discovery did not assign a polished finding number. Preserve affected entrypoint/wrapper, root-control, sink, and concrete-implementation locations supplied by validation.
Output
For standalone analysis, follow the caller's format or return a concise assessment per finding. Scan phases use their output contract above. Include:
- title and supplied candidate, instance, and ledger identities;
- precise affected locations and attacker-to-impact steps;
- relevant facts from references/attack-path-facts.md;
- controls, counterevidence, prerequisites, and material proof gaps;
- impact, likelihood, calibrated severity, and final policy decision with their reasons.
Retain enough evidence to explain both surviving and suppressed findings. Apply the severity policy to the established facts rather than reopening discovery or substituting a different attack story.
Câu hỏi thường gặp
Skill chỉ xem phát hiện đó thôi sao?
Không. Skill cũng tìm các biện pháp kiểm soát và bằng chứng ngược lại có thể chặn đường tấn công.
Mọi ứng viên đều có quyết định không?
Có. Mỗi ứng viên đủ điều kiện đều có một quyết định rõ ràng, kể cả những cái bị bỏ qua hoặc hoãn lại.
Có cần quét toàn bộ trước không?
Không. Skill có thể làm việc trên một phát hiện đơn lẻ và bối cảnh kho mã, dù kết quả quét được dùng khi có sẵn.
Chi tiết
Mô tả gốc của tác giả
Use when Codex is already in the attack-path-analysis phase of a security scan or the user explicitly asks to trace a security finding from source to sink and calibrate severity. Do not use as the primary trigger for full PR, commit, branch, patch, or repository scans.
repo: openai/codex-security
Độ phổ biến
- Sao GitHub
- 11k
- Vị trí xếp hạng
- #11747
- Giấy phép
- Apache-2.0
- Cập nhật
- 2/11/2026
Bình luận
- …
Thêm skill từ kho mã này
assess-patch-risk
11kGiúp agent của bạn đánh giá rủi ro của một bản vá mã trước khi hợp nhất: phạm vi ảnh hưởng, bài kiểm thử bao phủ và khả năng hoàn tác.
cloud-findings
11kCho phép agent của bạn đọc các phát hiện, báo cáo và trạng thái quét bảo mật đã có trong Codex Security Cloud, mà không thay đổi bất cứ thứ gì.
deep-security-scan
11kGiúp agent của bạn chạy quét bảo mật sâu, nhiều lượt trên kho mã hoặc thư mục bằng cách lặp lại các kiểm tra độc lập và gộp các phát hiện đã xác thực.
define-security-policy
11kGiúp agent của bạn viết hoặc cập nhật SECURITY.md, nêu điều gì quan trọng khi rà soát bảo mật, điều gì ngoài phạm vi và điều gì phải an toàn.
Skill tương tự
reverse-engineer-anything
422kGiúp agent của bạn xem bên trong các app và package đã phát hành để giải thích tính năng, so sánh phiên bản hoặc hướng dẫn dựng lại bằng công cụ REA.
1password
394kGiúp agent của bạn cài đặt CLI của 1Password, đăng nhập, và đọc hoặc đưa thông tin bí mật vào mà không in giá trị ra cuộc trò chuyện.
healthcheck
394kGiúp agent của bạn rà soát bảo mật máy tính hoặc máy chủ đang chạy OpenClaw, như SSH, tường lửa, cập nhật và sao lưu, rồi đề xuất cách sửa an toàn.