customize
Skill này làm gì
Skill này hướng dẫn việc điều chỉnh một pipeline mẫu dùng các agent AI để tìm và kiểm tra lỗi bảo mật. Nó giúp bạn đổi loại lỗi, ngôn ngữ hoặc phương pháp phát hiện. Skill dành cho các đội bảo mật muốn tái sử dụng pipeline cho mục tiêu của họ.
Khi nào nên dùng
- ✓Khi bạn muốn trỏ pipeline lỗ hổng sang ứng dụng web hoặc ngôn ngữ khác.
- ✓Khi bạn cần đổi loại lỗi mà pipeline tìm kiếm.
- ✓Khi bạn muốn tách pipeline cho một lĩnh vực như hợp đồng thông minh hoặc hệ thống học máy.
Liên kết skill
https://github.com/anthropics/defending-code-reference-harness/blob/main/.claude/skills/customize/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
“Bạn có thể điều chỉnh pipeline bảo mật này để tìm lỗi trong ứng dụng web của tôi thay vì mã C không?”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Agent đọc pipeline trước, hỏi bạn về mục tiêu, rồi chỉ viết lại những phần đặc thù cho ví dụ gốc bằng C và C++.
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.
Customize the vuln-pipeline
This pipeline ships as an opinionated C/C++ + AddressSanitizer demo. Its real shape is more general: an agent crafts an input, runs a target in a sandbox, a detector fires, a second agent verifies, a third agent analyzes exploitability. Every noun in that sentence can be swapped. Your job is to interview the user, figure out which nouns they want to swap, and rewrite the relevant files.
The existing C/C++ code is the worked example. You don't need a playbook for each domain — read what's there, understand what's generic vs. ASAN-specific, and adapt.
STEP 1 — Read the pipeline (do this BEFORE asking anything)
Skim these files so your questions are grounded:
README.md— pipeline overview (recon → find → grade → judge → report)harness/cli.py— orchestration; shows how stages wire together and what lands on diskharness/find.py,harness/grade.py,harness/report.py— the three container-agent loops; mostly generic plumbingharness/prompts/find_prompt.py,harness/prompts/grade_prompt.py— the C/C++-specific parts; bug taxonomy, quality tiers, grading rubricharness/prompts/report_prompt.py,harness/prompts/report_grader_prompt.py— also C/C++-specific; exploitability sections (primitive, heap layout, escalation path) and the rubric that scores themharness/prompts/judge_prompt.py— triage prompt; keys on ASAN excerpts and memory-safety crash classesharness/prompts/system_prompt.py— authorization block; hard-codes "C/C++ target" and "sanitizer output"harness/asan.py— stack-trace parser for dedup/judge signatures; ASAN-specific regexharness/artifacts.py—CrashArtifact,GraderVerdict,JudgeVerdict,ReportVerdictdata contractsharness/config.py,targets/drlibs/config.yaml— target config schematargets/README.md— how a target directory is structured (Dockerfile + config.yaml + entry wrapper)
You don't need agent.py, docker_ops.py, recon.py, judge.py, or novelty.py in detail — they're generic plumbing (judge/novelty domain-specificity lives in the prompts and the asan parser, not the flow). One caution: part of harness/ doubles as shared infrastructure — dnr_harness/ (the detection-and-response pipeline) imports agent.py, sandbox.py, docker_ops.py, agent_image.py's build/ensure_base, auth.py, cli.py's resolve_target_dir/terminate_subprocesses, and prompts/system_prompt.py's load_engagement_context. A domain port should touch only the domain-specific files (the prompts, asan.py, artifacts.py, target Dockerfiles); treat any edit to the shared files as a change to both pipelines.
STEP 2 — Interview the user
Use AskUserQuestion to gather requirements. Start with broad context, then narrow to technical specifics based on what they say.
Round 1 — Context (always ask these first, together)
Two open-ended questions to understand who you're talking to and what they're after. Expect most answers to come via Other as free text — the options are there to prompt thinking, not to constrain.
Question A — Operating context
- header:
Context - question:
What's your operating environment? Who will run this pipeline and why? - options: a few archetypes as inspiration — e.g. "Pentesting firm — client engagements, need reportable findings", "Internal appsec team — scan our own services in CI", "Smart-contract auditor — pre-deployment reviews", "Security researcher — hunting novel bug classes". These tell you what output format, grading rigor, and workflow integration matter.
Question B — Goal
- header:
Goal - question:
Describe in your own words what you want this pipeline to find. What kind of target, what kind of bugs? - options: 2–3 concrete examples (e.g. "Web vulnerabilities like SQLi/XSS in HTTP services", "Reentrancy and access-control bugs in Solidity contracts", "Deserialization RCE in Java microservices").
The context answer calibrates your follow-ups: a pentesting firm probably cares about CVSS scoring and SARIF output; a researcher may want differential testing and novel detection signals; an internal team likely wants CI integration and low false-positive rates.
Round 2 — Technical follow-ups (adaptive — derive from round-1 answers)
Parse their round-1 answers against the axes of variation below. For each axis left ambiguous, ask a targeted follow-up. Batch up to 4 questions per AskUserQuestion call. Common follow-ups:
- **Det
Câu hỏi thường gặp
Nó chỉ hoạt động với C và C++ thôi sao?
Không. Mẫu gốc viết bằng C và C++, còn skill giải thích cách thay ngôn ngữ và loại lỗi khác.
Agent có hỏi tôi câu nào trước không?
Có. Nó đọc pipeline rồi phỏng vấn bạn về các phần bạn muốn thay đổi.
Đây có phải là thay đổi nhanh không?
Tùy vào mức độ bạn muốn thay đổi, vì một số phần của pipeline mang tính tổng quát còn phần khác thì đặc thù.
Chi tiết
Mô tả gốc của tác giả
Adapt this C/C++ ASAN vulnerability pipeline to a different vulnerability class, target shape, language, or detection mechanism. Use when the user wants to port, migrate, retarget, customize, or fork the pipeline for something other than C/C++ memory-safety bugs — web apps, smart contracts, deserialization, ML systems, or any other domain.
Độ phổ biến
- Sao GitHub
- 7.7k
- Vị trí xếp hạng
- #13100
- Giấy phép
- —
- Cập nhật
- 6/8/2026
Bình luận
- …
Thêm skill từ kho mã này
dnr-hunt
7.7kGiúp agent của bạn săn tìm trong log web khi chưa có cảnh báo nào, tìm dấu hiệu tấn công và ghi lại các sự cố phát hiện được.
dnr-respond
7.7kGiúp agent của bạn xử lý một cảnh báo hoặc dấu hiệu bảo mật, kiểm tra cuộc tấn công có thành công không và đã lan rộng đến đâu.
patch
7.7kGiúp agent của bạn soạn các bản sửa code đề xuất cho những phát hiện bảo mật đã xác minh, lưu dưới dạng diff để người xem xét.
quickstart
7.7kCho agent của bạn một hướng dẫn ngắn về bộ công cụ quét bảo mật và trả lời các câu hỏi về cách dùng những công cụ đó.
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.