patch-diff-research
하는 일
이 스킬은 보안 패치를 연구하고, 차이를 보여 주는 테스트를 만들며, 비슷한 코드 문제를 찾는 방법을 설명합니다. 검사 권한이 있는 보안 연구자와 관리자를 위한 스킬입니다.
사용하는 경우
- ✓보안 검토자가 검사 권한이 있는 프로젝트의 취약 버전과 수정 버전을 비교해 달라고 요청할 때.
- ✓에이전트가 패치된 버그와 같은 원인을 가진 인접 코드 경로를 찾아야 할 때.
- ✓보고서에 이전 버전에서는 긍정 테스트, 수정 버전에서는 부정 대조군을 보여 줘야 하는 경우.
스킬 링크
https://github.com/BitterSecurity/Decepticon/blob/main/packages/decepticon/decepticon/skills/standard/analyst/patch-diff/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“이 프로젝트의 취약 버전과 수정 버전을 비교하고, 비슷한 코드 경로에 여전히 같은 문제가 있는지 확인해 주시겠어요?”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
에이전트는 두 버전을 고정하고, 패치가 무엇을 바꿨는지 설명하며, 이전 버전에서는 실패하고 수정 버전에서는 통과하는 테스트를 만든 뒤, 비슷한 지점을 하나씩 확인합니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.
Patch-Diff Research
Use this workflow only on source, commits, and test targets the engagement is authorized to inspect. A patch is evidence of a changed security boundary, not proof that every neighboring line is exploitable.
Inputs
- Pinned vulnerable and fixed revisions from the same repository.
- Build instructions and a local or intentionally vulnerable test target.
- The advisory, failing test, or exact behavior corrected by the patch.
Loop
- Pin both sides. Record repository URL, vulnerable commit, fixed commit, clean working-tree state, dependency lockfile hashes, and build commands.
- Explain the security delta. Identify the source, guard, sink, trust boundary, and behavior changed by the patch. Ignore formatting-only hunks.
- Build a differential test. The positive case must reproduce on the vulnerable revision; the negative control is the exact same case on the fixed revision. Record both raw outputs.
- Search for siblings. Search only for the abstract cause—not the exact line text. For every hit, confirm framework, data flow, authorization state, and reachability before treating it as a candidate.
- Validate candidates independently. Each candidate gets its own minimal
positive and baseline command through
validate_workspace_finding. Do not inherit validation from the original CVE. - Report the boundary. Record rejected siblings and why they differ. Group only independently confirmed findings under the common root cause.
Required artifacts
research/patch-diff/<advisory>/
revisions.json # commits and dependency hashes
security-delta.md # source / guard / sink explanation
original-positive.txt # vulnerable revision output
original-fixed-control.txt # fixed revision output
variants/<candidate>/positive.txt
variants/<candidate>/baseline.txt
variants/<candidate>/verification.json
A variant is promotable only when its own verification artifact validates and the original fixed-side control demonstrates the intended remediation boundary.
자주 묻는 질문
왜 두 버전을 비교하나요?
스킬은 패치가 보안 경계가 어디 있었는지 보여 주므로, 다른 곳의 비슷한 코드도 같은 수정이 필요할 수 있다고 설명합니다.
패치는 다른 코드가 취약하다는 것을 증명하나요?
아닙니다. 스킬은 패치가 바뀐 경계의 증거일 뿐이며, 보고 전에 각 이웃 코드를 확인해야 한다고 설명합니다.
보고서에는 무엇이 들어가야 하나요?
커밋 세부 정보, 두 버전의 테스트 결과, 각 후보에 대한 검증이 들어가야 합니다.
상세 정보
작성자의 원본 설명
Authorized patch-diff workflow for deriving and validating vulnerability variants from a known vulnerable-to-fixed source change.
인기도
- GitHub 스타
- 6.5k
- 순위
- #13963
- 라이선스
- Apache-2.0
- 업데이트
- 2026. 11. 1.
댓글
- …
이 저장소의 다른 스킬
detector-overview
6.5k에이전트가 스캐너가 표시한 코드를 읽고, 표시된 곳 중 어디가 실제 보안 버그이고 어디가 오탐인지 판단하도록 돕습니다.
exploiter-overview
6.5k에이전트가 확인된 여러 보안 약점을 하나의 테스트 체인으로 묶고, 그 체인이 어디까지 닿을 수 있는지 확인하도록 돕습니다.
llm-redteam-overview
6.5k에이전트가 프롬프트 인젝션부터 모델 악용까지 15개 전술 그룹 중 테스트에 맞는 AI 레드팀 가이드를 찾도록 돕습니다.
aatmf-t01-prompt-injection
6.5k숨겨진 지시가 AI 시스템을 덮어쓰려 하는 프롬프트 인젝션을 설명해, 보안 테스터가 이를 점검할 수 있게 합니다.