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

audit-security

Scan the codebase for security vulnerabilities. Check OWASP top 10, input validation, auth, crypto, and known BACKLOG security items.

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

설치 방법 보기

포함된 파일(1)

  • SKILL.md4.0 KB

SKILL.md(원문)

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

Security Audit

Scan the codebase for security vulnerabilities and verify that known issues from docs/ai/BACKLOG.md (Security section) are tracked.

Scope

1. Input Validation & Injection

  • JSON Patch / prototype pollution — verify __proto__, constructor, prototype are blocked in all code paths that apply external data to objects
  • XSS — check for innerHTML, {@html}, document.write, eval usage; verify user-supplied strings are escaped
  • Command injection — check for shell exec, dynamic import(), Function() with user input
  • localStorage / IndexedDB — verify validateSongData() / validateRecoverySnapshot() are called before casting raw JSON to Song

2. Authentication & Authorization

  • multiDevice signaling — room code entropy, rate limiting on connection attempts, room TTL
  • WebRTC data channel — message validation, param whitelist, bounds checking on guest inputs
  • No secrets in client code — scan for API keys, tokens, credentials in source files

3. Cryptographic Safety

  • Room code generation — must use crypto.getRandomValues(), not Math.random()
  • Sufficient entropy — room codes, IDs, nonces should have adequate bit strength

4. Network & Transport

  • CORS / CSP — check for overly permissive headers
  • WebSocket origin validation — signaling server should validate origin
  • Data channel message size — verify chunking limits prevent memory exhaustion (MAX_CHUNKS, memory budget)

5. Resource Exhaustion

  • Rate limiting — verify post-connection message rate limits exist
  • Memory budgets — chunk reassembly budget, undo stack cap, sample pool limits
  • CPU abuse — AudioWorklet cannot be starved by malicious patterns (step count limits, track count limits)

6. Known Issues Tracking

  • Read docs/ai/BACKLOG.md Security section — verify all known vulnerabilities are listed
  • Cross-reference with tests — check security.test.ts covers each known issue
  • Identify gaps — find vulnerabilities NOT yet listed in BACKLOG

Process

  1. Read BACKLOG.md Security section for known issues.
  2. Scan source files using Grep/Glob for vulnerability patterns.
  3. Read security-critical modules in detail:
    • src/lib/multiDevice/ — all files
    • src/lib/validate.ts — data validation
    • src/lib/storage.ts — persistence layer
    • src/lib/audio/engine.ts — worklet bridge
    • workers/signaling/ — signaling server (if present)
  4. Cross-reference with tests in src/lib/multiDevice/security.test.ts.
  5. Output a report:
## Security Audit Report

### Category: [Input Validation / Auth / Crypto / Network / Resources]

#### [Vulnerability name]
- **Severity**: Critical / High / Medium / Low / Info
- **Location**: file:line
- **Description**: what's wrong
- **Status**: Known (in BACKLOG) / New finding / Tested (in security.test.ts)
- **Recommendation**: fix approach

### Summary
- X critical, Y high, Z medium findings
- N known issues tracked in BACKLOG
- M gaps in test coverage

Severity Levels

  • Critical: Remote exploitation without auth, data loss, arbitrary code execution
  • High: Auth bypass, session hijack, significant data exposure
  • Medium: Requires specific conditions, limited blast radius (e.g., room code brute-force)
  • Low: Defense-in-depth improvement, unlikely exploitation path
  • Info: Best practice suggestion, no direct vulnerability

Rules

  • This is a read-only operation — do not modify any files
  • Use parallel Agent tools for different scan categories
  • Report ONLY confirmed issues with specific file/line references
  • Do not report theoretical vulnerabilities without evidence in the code
  • Check the BACKLOG Security section — don't re-report known issues unless their description is incomplete

리뷰

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

댓글

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

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

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

0 / 1,000자

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

같은 저장소의 스킬

adr

무료

Create a new Architecture Decision Record (ADR) for a proposed feature or design change.

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

im9/inboil22026년 10월 17일 업데이트

adr-done

무료

Mark an ADR as Implemented (or Superseded) and archive it, following INDEX.md conventions.

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

im9/inboil22026년 10월 17일 업데이트

Check docs/ai/ spec files and ADRs for inconsistencies with the actual codebase. Report only, no modifications.

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

im9/inboil22026년 10월 17일 업데이트

refactor

무료

Scan the project for refactoring opportunities, then fix them. No behavior/visual changes.

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

im9/inboil22026년 10월 17일 업데이트

sync-docs

무료

Check docs/ai/ spec files and ADRs for inconsistencies with the codebase, then fix all discrepancies.

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

im9/inboil22026년 10월 17일 업데이트

im9의 스킬 모두 보기

이 스킬의 문제 신고