security-review
하는 일
이 스킬은 코드, 모듈, 기능에 대한 보안 점검을 안내합니다. 공격자가 실제로 악용할 수 있는 약점을 찾고, 각 문제를 고치는 방법을 설명합니다.
사용하는 경우
- ✓실서비스에 올리기 전에 새 코드의 보안 검토를 요청할 때.
- ✓사용자가 보면 안 되는 데이터를 보거나 바꿀 수 있을 것 같을 때.
- ✓프로젝트에 비밀번호, 키, 안전하지 않은 명령이 있는지 확인하고 싶을 때.
스킬 링크
https://github.com/codewhale-hq/Codewhale/blob/main/crates/skills/assets/skills/security-review/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“제 로그인 기능에 보안 구멍이 있는지 확인하고, 위험한 부분이 있다면 고치는 방법을 알려 주세요.”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
에이전트는 외부 입력이 코드에 들어오는 지점과 그 데이터가 피해를 일으킬 수 있는 지점을 찾습니다. 그다음 데이터를 단계별로 따라가며, 지적할 수 있는 문제만 파일과 수정 방법과 함께 보고합니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.
Security Review
Produce findings a reviewer can verify, not a vibes pass. Every finding names the file, the reachable path that makes it real, and the fix.
Scope the review first
- What is under review: a diff, a module, a plugin bundle, a network surface. Say the boundary out loud before reading.
- Trust boundaries: where untrusted input enters (HTTP handlers, MCP tool args, file parsers, CLI flags, env vars, rendered content) and where authority is exercised (fs writes, network egress, process spawn, credential reads, signing).
- Prerequisites: a checked-out tree and the project's own test runner. Ask for credentials only if a live path genuinely needs them; never read secrets from the environment or keychain yourself.
Procedure
- Map entry points and sinks.
rgfor the handlers, deserializers, and exec/fs/net calls in scope. Follow data from entry to sink before judging it. - Authn/authz. Every mutating or sensitive handler checks identity and object-level authorization. Look for checks that exist on one path but not its sibling, and for checks done on the client only.
- Injection. Command lines, SQL, template eval, shell expansion, path joins under user influence, and markup that will render later — including generated HTML/markdown that carries repo content into a browser surface.
- Secrets.
rgfor token/key/secret patterns andgit log -pthe diff for credentials. Also check what gets logged or embedded in receipts, exports, or error messages. - Dependencies. Run the project's audit gate if it exists
(
cargo audit,npm audit,osv-scanner) — report versions and CVEs, not "deps look old". - Denial and abuse paths. Unbounded reads/allocations, missing timeouts on network calls, resource leaks in error paths, retry storms.
- Verify a finding before reporting it. Trace the real call path or write a minimal proof. A finding that "looks suspicious" but has no reachable path is a note, not a finding.
Findings format
For each: severity (exploitability × impact), file:line, the reachable path, a one-paragraph explanation, and the fix. Order by severity. Then a short "checked and clean" list naming what was audited and cleared — the scope statement means something only if the clear list is honest.
Recovery and limits
- If you cannot prove reachability, downgrade the claim and say what evidence is missing.
- Do not claim a formal audit, certification, or absence of vulnerabilities. This review finds defects; it does not prove none exist.
- Never fix-and-stay-quiet on a security finding in someone else's in-flight code — report it first.
Completion criteria
- Every entry point in scope was traced to its sinks.
- Findings carry file:line + reachability + fix; the clear list names what was actually checked.
- Severity ordering is defensible by exploitability, not by how loudly the code smells.
자주 묻는 질문
일반적인 코드 리뷰와 같은가요?
아니요. 일반적인 품질, 스타일, 코드 정리보다 실제로 악용될 수 있는 약점에 초점을 맞춥니다.
에이전트가 제 비밀번호나 키를 읽나요?
아니요. 스킬은 에이전트가 환경이나 키체인에서 비밀 정보를 직접 읽지 말아야 하며, 실제 테스트에 꼭 필요할 때만 인증 정보를 요청한다고 설명합니다.
모든 발견 사항에 수정 방법이 있나요?
네. 각 발견 사항에는 파일, 실제 위험이 되는 경로, 제안하는 수정 방법이 함께 적힙니다.
상세 정보
작성자의 원본 설명
Review a change, module, or surface for exploitable defects — trust boundaries, authn/authz, injection, secret exposure, filesystem and network reach, dependency risk. Use when the user asks for a security review, audit, or vulnerability check of concrete code. Not for general code review, lint, or compliance paperwork.
repo: codewhale-hq/Codewhale
인기도
- GitHub 스타
- 41k
- 순위
- #6552
- 라이선스
- MIT
- 업데이트
- 2026. 11. 2.
댓글
- …
이 저장소의 다른 스킬
best-of-n
41k에이전트가 어려운 문제에 대해 여러 개의 독립된 답을 만들고, 하나의 기준으로 평가한 뒤, 검사를 통과한 답만 적용하도록 돕습니다.
dataviz
41k에이전트가 데이터에 맞는 차트나 대시보드를 고르도록 돕습니다. 명확한 레이블, 출처 메모, 축과 누락된 값에 대한 점검을 포함합니다.
debug
41k에이전트가 버그를 재현하고 범위를 좁혀 실제 원인을 찾도록 돕습니다. 추측하지 않고, 승인을 받은 경우에만 고칩니다.
delegate
41k에이전트가 큰 작업을 집중된 병렬 도우미들에게 나누어 맡기되, 계획, 통합, 최종 확인은 직접 맡도록 가르칩니다.