본문으로 건너뛰기
Skillpedia
보안6.5k · #13963

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가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/BitterSecurity/Decepticon/blob/main/packages/decepticon/decepticon/skills/standard/analyst/patch-diff/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

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

  1. Pin both sides. Record repository URL, vulnerable commit, fixed commit, clean working-tree state, dependency lockfile hashes, and build commands.
  2. Explain the security delta. Identify the source, guard, sink, trust boundary, and behavior changed by the patch. Ignore formatting-only hunks.
  3. 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.
  4. 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.
  5. 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.
  6. 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.

repo: BitterSecurity/Decepticon

인기도

GitHub 스타
6.5k
순위
#13963
라이선스
Apache-2.0
업데이트
2026. 11. 1.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬