본문으로 건너뛰기
Skillpedia
보안48k · #4457

differential-review

하는 일

이 도구는 보안 관점에서 코드를 검토하도록 도와줍니다. 코드 변경 사항을 분석해 잠재적인 보안 결함을 찾아내며, 특히 인증과 암호화 같은 중요한 영역에 집중합니다.

사용하는 경우

  • ✓한 묶음의 코드 변경 사항에 대해 보안 중심의 검토가 필요할 때.
  • ✓변경 사항이 인증, 암호화, 가치 이전 같은 민감한 영역과 관련될 때.
  • ✓발견 사항에 대한 구체적인 증거와 상세한 보고서가 필요할 때.

스킬 링크

https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/differential-review/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

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

Use this skill to help me: https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/differential-review/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에서 그대로 가져왔습니다.

Differential Security Review

Security-focused code review for PRs, commits, and diffs.

When to Use

  • You need a security-focused review of a PR, commit range, or diff rather than a general code review.
  • The changes touch auth, crypto, external calls, value transfer, permissions, or other high-risk logic.
  • You need findings backed by code evidence, attack scenarios, and an explicit report artifact.

Core Principles

  1. Risk-First: Focus on auth, crypto, value transfer, external calls
  2. Evidence-Based: Every finding backed by git history, line numbers, attack scenarios
  3. Adaptive: Scale to codebase size (SMALL/MEDIUM/LARGE)
  4. Honest: Explicitly state coverage limits and confidence level
  5. Output-Driven: Always generate comprehensive markdown report file

Rationalizations (Do Not Skip)

Rationalization Why It's Wrong Required Action
"Small PR, quick review" Heartbleed was 2 lines Classify by RISK, not size
"I know this codebase" Familiarity breeds blind spots Build explicit baseline context
"Git history takes too long" History reveals regressions Never skip Phase 1
"Blast radius is obvious" You'll miss transitive callers Calculate quantitatively
"No tests = not my problem" Missing tests = elevated risk rating Flag in report, elevate severity
"Just a refactor, no security impact" Refactors break invariants Analyze as HIGH until proven LOW
"I'll explain verbally" No artifact = findings lost Always write report

Quick Reference

Codebase Size Strategy

Codebase Size Strategy Approach
SMALL (<20 files) DEEP Read all deps, full git blame
MEDIUM (20-200) FOCUSED 1-hop deps, priority files
LARGE (200+) SURGICAL Critical paths only

Risk Level Triggers

Risk Level Triggers
HIGH Auth, crypto, external calls, value transfer, validation removal
MEDIUM Business logic, state changes, new public APIs
LOW Comments, tests, UI, logging

Workflow Overview

Pre-Analysis → Phase 0: Triage → Phase 1: Code Analysis → Phase 2: Test Coverage
    ↓              ↓                    ↓                        ↓
Phase 3: Blast Radius → Phase 4: Deep Context → Phase 5: Adversarial → Phase 6: Report

Decision Tree

Starting a review?

├─ Need detailed phase-by-phase methodology?
│  └─ Read: methodology.md
│     (Pre-Analysis + Phases 0-4: triage, code analysis, test coverage, blast radius)
│
├─ Analyzing HIGH RISK change?
│  └─ Read: adversarial.md
│     (Phase 5: Attacker modeling, exploit scenarios, exploitability rating)
│
├─ Writing the final report?
│  └─ Read: reporting.md
│     (Phase 6: Report structure, templates, formatting guidelines)
│
├─ Looking for specific vulnerability patterns?
│  └─ Read: patterns.md
│     (Regressions, reentrancy, access control, overflow, etc.)
│
└─ Quick triage only?
   └─ Use Quick Reference above, skip detailed docs

Quality Checklist

Before delivering:

  • All changed files analyzed
  • Git blame on removed security code
  • Blast radius calculated for HIGH risk
  • Attack scenarios are concrete (not generic)
  • Findings reference specific line numbers + commits
  • Report file generated
  • User notified with summary

Integration

audit-context-building skill:

  • Pre-Analysis: Build baseline context
  • Phase 4: Deep context on HIGH RISK changes

issue-writer skill:

  • Transform findings into formal audit reports
  • Command: issue-writer --input DIFFERENTIAL_REVIEW_REPORT.md --format audit-report

Example Usage

Quick Triage (Small PR)

Input: 5 file PR, 2 HIGH RISK files
Strategy: Use Quick Reference
1. Classify risk level per file (2 HIGH, 3 LOW)
2. Focus on 2 HIGH files only
3. Git blame removed code
4. Generate minimal report
Time: ~30 minutes

Standard Review (Medium Codebase)

Input: 80 files, 12 HIGH RISK changes
Strategy: FOCUSED (see methodology.md)
1. Full workflow on HIGH RISK files
2. Surface scan on MEDIUM
3. Skip LOW risk files
4. Complete report with all sections
Time: ~3-4 hours

Deep Audit (Large, Critical Change)

Input: 450 files, auth system rewrite
Strategy: SURGICAL + audit-context-building
1. Baseline context with audit-context-building
2. Deep analysis on auth changes only

…
자주 묻는 질문

‘합리화(Rationalizations)’란 무엇인가요?

보안 검토 단계를 건너뛰기 위해 흔히 드는 변명으로, 실제로는 위험합니다. 도구는 이런 변명이 왜 잘못되었는지, 그 대신 무엇을 해야 하는지 설명합니다.

도구는 무엇을 가장 중요하게 검토할지 어떻게 결정하나요?

변경 사항을 위험 수준(높음, 중간, 낮음)으로 분류하고, 인증과 암호화처럼 위험이 높은 부분에 더 집중합니다. 또한 프로젝트 규모를 고려해 분석 깊이를 조정합니다.

‘폭발 반경(Blast Radius)’이란 무엇인가요?

보안 결함이 미칠 수 있는 잠재적 영향입니다. ‘폭발 반경이 큰’ 결함은 시스템의 많은 부분에 영향을 줄 수 있어 더 심각합니다.

상세 정보

작성자의 원본 설명

Security-focused code review for PRs, commits, and diffs.

repo: sickn33/agentic-awesome-skills

인기도

GitHub 스타
48k
순위
#4457
라이선스
MIT
업데이트
2026. 10. 15.

이 스킬이 유용한가요?

0

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

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬