Skip to content
Skillpedia
Security7.7k Β· #13100

customize

What it does

This skill guides the adaptation of a sample pipeline that uses AI agents to find and check security bugs. It helps you swap the bug type, language or detection method. It is for security teams who want to reuse the pipeline for their own targets.

When to use it

  • βœ“When you want to point the vulnerability pipeline at web apps or another language.
  • βœ“When you need to change the bug type the pipeline looks for.
  • βœ“When you want to fork the pipeline for a domain such as smart contracts or machine learning systems.

Skill link

https://github.com/anthropics/defending-code-reference-harness/blob/main/.claude/skills/customize/SKILL.md

Copy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.

How to use

The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.

Ready-to-paste message

Use this skill to help me: https://github.com/anthropics/defending-code-reference-harness/blob/main/.claude/skills/customize/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
Want your AI to find skills like this on its own?Install the free Skillpedia MCP: one line, and it searches 15,000+ skills before each task.Install in 1 minute β†’

Example of what to ask your AI

β€œCan you adapt this security pipeline so it looks for bugs in my web app instead of C code?”

5 new skills a week. 1 minute to read.

How it works

The agent reads the pipeline first, asks you questions about your target, and then rewrites only the parts that are specific to the original C and C++ example.

Technical content (original SKILL.md)

Original text by the author, straight from GitHub.

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 disk
  • harness/find.py, harness/grade.py, harness/report.py β€” the three container-agent loops; mostly generic plumbing
  • harness/prompts/find_prompt.py, harness/prompts/grade_prompt.py β€” the C/C++-specific parts; bug taxonomy, quality tiers, grading rubric
  • harness/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 them
  • harness/prompts/judge_prompt.py β€” triage prompt; keys on ASAN excerpts and memory-safety crash classes
  • harness/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 regex
  • harness/artifacts.py β€” CrashArtifact, GraderVerdict, JudgeVerdict, ReportVerdict data contracts
  • harness/config.py, targets/drlibs/config.yaml β€” target config schema
  • targets/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
FAQ

Does it only work for C and C++?

No. The sample is C and C++, and the skill explains how to swap in other languages and bug types.

Will the agent ask me questions first?

Yes. It reads the pipeline, then interviews you about the parts you want to change.

Is this a quick change?

It depends on how far you want to go, since some parts of the pipeline are generic and others are specific.

Details

Original description by the author

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.

repo: anthropics/defending-code-reference-harness

Popularity

GitHub stars
7.7k
Ranking position
#13100
License
β€”
Updated
8/6/2026

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills