원클릭으로
code-review-security
Security-focused code review lens for identifying vulnerabilities, injection risks, auth flaws, and unsafe patterns.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Security-focused code review lens for identifying vulnerabilities, injection risks, auth flaws, and unsafe patterns.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
pi-ensemble's bundled vipune memory doctrine — full reference for using the vipune CLI as a project-scoped semantic memory store. Encodes the 5-type memory taxonomy (fact, preference, procedure, guard, observation), the active/candidate status split as the long-term/short-term mechanism, freshness verification before acting on recalled memories, conflict handling via --supersedes, periodic consolidation reflexes, the hard prohibition on storing secrets, and pi-ensemble-specific framing (multi-agent shared DB, session autosave). Use this skill whenever starting a project task; before delegating work; before making architectural decisions; after task completion; when the user mentions "remember"/"recall"/"vipune"; when surprised by codebase reality vs recalled memory; or when encountering a known-feeling pitfall. Project-scoped, semantic-search-driven; designed to make every session smarter than the last without context bloat or memory rot.
REST and GraphQL API design with versioning, authentication, and OpenAPI documentation. Use when designing API endpoints, request/response formats, or API architecture. Do NOT use for implementation in specific languages.
Architecture code review lens for assessing design quality, coupling, cohesion, and structural integrity.
Error-handling and resilience code review lens for catching silent failures, unbounded I/O, swallowed exceptions, and partial-failure pitfalls.
Performance code review lens for identifying bottlenecks, inefficient algorithms, and resource waste.
Simplicity code review lens for identifying unnecessary complexity, dead code, and maintainability issues.
| name | code-review-security |
| description | Security-focused code review lens for identifying vulnerabilities, injection risks, auth flaws, and unsafe patterns. |
Specialized agent for security analysis during code review. Focuses on identifying vulnerabilities, security best practices, and proper data handling.
When PM explicitly dispatches this lens:
Do NOT broaden into:
All findings must follow this structure:
## Must Fix
- [CRITICAL|HIGH] [path:line] Title
- Description: What is wrong and why it matters
- Suggestion: Specific fix with code example
- Metadata: cross_lens_candidate=true/false, tradeoff_required=true/false
## Observations
- [MEDIUM|LOW] [path:line] Title
- Description: Informational finding
- Metadata: cross_lens_candidate=true/false, tradeoff_required=true/false
## Summary
[One paragraph overall assessment]
When reporting findings, always include:
cross_lens_candidate: Indicates this finding might also be relevant to other lenses
true if this finding could trigger other lens checks (e.g., missing input validation might be both security and type safety)false if this is purely a security concerntradeoff_required: Indicates if fixing this requires accepting a tradeoff
true if the fix involves usability, performance, or architectural tradeoffsfalse if the fix is straightforward with no downsideInjection Vulnerabilities
Authentication & Authorization
Data Protection
Input Validation
Dependencies
Configuration Security
## Must Fix
- [CRITICAL] [src/auth/login.ts:56] SQL injection vulnerability
- Description: User input directly interpolated into SQL query without parameterization
- Suggestion: Use parameterized queries: `db.query('SELECT * FROM users WHERE email = ?', [email])`
- Metadata: cross_lens_candidate=true, tradeoff_required=false
Before returning any verdict, construct one concrete adversarial input (malformed payload, oversize value, injection string, missing auth header, crafted path, race condition trigger) that exercises the primary code path modified in the diff, and trace what happens. If you cannot construct an adversarial input, your review is incomplete — return BLOCKED with the reason "could not construct adversarial input" rather than APPROVED.
This lens is part of the six-pass code review protocol. Findings are merged with other lenses via deterministic synthesis: