본문으로 건너뛰기
Skillpedia
보안41k · #6552

security-review

하는 일

이 스킬은 코드, 모듈, 기능에 대한 보안 점검을 안내합니다. 공격자가 실제로 악용할 수 있는 약점을 찾고, 각 문제를 고치는 방법을 설명합니다.

사용하는 경우

  • ✓실서비스에 올리기 전에 새 코드의 보안 검토를 요청할 때.
  • ✓사용자가 보면 안 되는 데이터를 보거나 바꿀 수 있을 것 같을 때.
  • ✓프로젝트에 비밀번호, 키, 안전하지 않은 명령이 있는지 확인하고 싶을 때.

스킬 링크

https://github.com/codewhale-hq/Codewhale/blob/main/crates/skills/assets/skills/security-review/SKILL.md

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

사용 방법

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

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

Use this skill to help me: https://github.com/codewhale-hq/Codewhale/blob/main/crates/skills/assets/skills/security-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에서 그대로 가져왔습니다.

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

  1. Map entry points and sinks. rg for the handlers, deserializers, and exec/fs/net calls in scope. Follow data from entry to sink before judging it.
  2. 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.
  3. 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.
  4. Secrets. rg for token/key/secret patterns and git log -p the diff for credentials. Also check what gets logged or embedded in receipts, exports, or error messages.
  5. Dependencies. Run the project's audit gate if it exists (cargo audit, npm audit, osv-scanner) — report versions and CVEs, not "deps look old".
  6. Denial and abuse paths. Unbounded reads/allocations, missing timeouts on network calls, resource leaks in error paths, retry storms.
  7. 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.

이 스킬이 유용한가요?

0

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

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬