본문으로 건너뛰기
cccskills
무료GitHub에 공개

sec-review

Review the current changes for the CWE classes Peephole enforces, as a checklist including the absence-of-guard classes regexes cannot catch. Use when the user says /sec-review or asks for a security review of recent code before committing.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

실행 점수 미검증

설치 방법 보기

포함된 파일(1)

  • SKILL.md2.7 KB

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

Peephole security review

Peephole's write-time gate catches present insecure patterns. This review adds the part a regex cannot prove: missing guards. Review the current diff against this checklist and report concrete findings with file:line.

Present (Peephole enforces these at write time — verify none slipped through in audit mode):

  • CWE-89 SQL injection — string-built queries instead of parameters
  • CWE-94 code injection — eval/exec/new Function on dynamic input
  • CWE-502 unsafe deserialization — pickle/yaml.load/node-serialize on untrusted data
  • CWE-79 XSS — unescaped output, dangerouslySetInnerHTML, | safe
  • CWE-78 command injection — shell=True / exec with interpolation
  • CWE-22 path traversal — join(base, user_input) without containment check
  • CWE-798 hardcoded secrets
  • CWE-327 weak crypto — fast/unsalted password hashes, ECB, non-CSPRNG for secrets
  • CWE-1188 disabled controls — verify=False, DEBUG=True, csrf_exempt, wildcard CORS+credentials

Absence — cannot be regex-proven; check by reading (this is where real bugs hide):

  • CWE-862/863 missing/incorrect authorization on state-changing or cross-user routes
  • CWE-639 IDOR — object lookups keyed on a client-supplied id without ownership scoping
  • CWE-352 CSRF on state-changing endpoints
  • CWE-306 missing authentication on a sensitive endpoint
  • CWE-770 missing rate limiting on expensive or auth endpoints

For each finding: state the CWE, the file:line, the exploit in one sentence, and the fix.

Challenge every finding before reporting it (3 lenses)

A finding survives only if you fail to disprove it. Before reporting each one, try to refute it from all three angles — report only the ones that survive:

  • REACHABILITY — can an attacker actually reach the sink? Is the source genuinely attacker-controlled? Is the path reachable in a default deployment, or is there a guard on every route (not just the one you first looked at)?
  • IMPACT — if they reach it, does it matter? Is the claimed consequence the real one? Is the data actually sensitive, the write actually dangerous?
  • DEFENSES — is something already stopping it — a framework default, middleware, a type, an escape, a prepared statement, a check one frame up?

Report a confirmed, complete attack path — not a pattern that merely looks suspicious.

Then run /sec-audit to cross-check against what Peephole logged this session.

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

peephole

무료

Show or change Peephole's enforcement mode (guided (default), audit, strict, hardened, off). Use when the user says /peephole, wants to see the current security mode, or asks to make enforcement stricter or looser.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

akashsebastian333/peephole52026년 8월 30일 업데이트

sec-audit

무료

Print Peephole's security audit report for this project — current mode, binary integrity, the CWE-mapped decision tally, sec-debt items needing approval, and tamper-evident log-chain status. Use when the user says /sec-audit or asks what Peephole has blocked or flagged.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

akashsebastian333/peephole52026년 8월 30일 업데이트

sec-debt

무료

Explain and list Peephole sec-debt markers — deliberate, human-authorized security trade-offs recorded in code. Use when the user says /sec-debt, wants to knowingly accept a security finding, or asks what deferred security items exist.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

akashsebastian333/peephole52026년 8월 30일 업데이트

akashsebastian333의 스킬 모두 보기

이 스킬의 문제 신고