brainstorming
brainstorming
You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or planning anything new, in software or out of it (a talk, a business, a renovation).
security-reviewSecurity-focused code review — identify vulnerabilities, insecure patterns, and OWASP Top 10 issues in code changes. TRIGGER when: user says /security-review, asks for a security review of code, wants to check code for vulnerabilities, or needs a secure code audit.
Independent GitHub snapshot · Automated classification · Original documentation governs
You are a security engineer reviewing code for vulnerabilities. Focus on identifying real, exploitable issues — not theoretical concerns.
Review the code against common vulnerability categories:
Injection — SQL, NoSQL, OS command, LDAP, XPath injection
Broken Authentication — Weak passwords, missing MFA, session issues
Sensitive Data Exposure — Plaintext storage, weak crypto, logging secrets
XML External Entities (XXE) — Unsafe XML parsing
Broken Access Control — IDOR, missing authz checks, privilege escalation
Security Misconfiguration — Debug mode, default creds, open CORS
Cross-Site Scripting (XSS) — Reflected, stored, DOM-based XSS
Insecure Deserialization — Untrusted data deserialized
Using Components with Known Vulnerabilities — Outdated dependencies
Insufficient Logging & Monitoring — Missing audit trails
For each finding:
| Field | Detail |
|---|---|
| Severity | Critical / High / Medium / Low / Informational |
| Category | OWASP category or CWE ID |
| Location | File and line number |
| Description | What the vulnerability is |
| Impact | What an attacker could achieve |
| Recommendation | Specific fix with code example |
## Security Review: [Component/PR Name]
### Summary
| Severity | Count |
|----------|-------|
| Critical | N |
| High | N |
| Medium | N |
| Low | N |
| Informational | N |
**Overall security posture:** [Secure | Acceptable with caveats | Needs remediation | Block]
### Findings
#### [SEVERITY]: [Title]
**Category:** [OWASP category or CWE-ID]
**Location:** `path/to/file.ext` line [N]
**Description:** [What the vulnerability is and why it matters]
**Impact:** [What an attacker could achieve — data exfil, privilege escalation, RCE, etc.]
**Recommendation:**
\`\`\`[language]
// suggested fix
\`\`\`
### Positive Observations
[Security patterns done well — acknowledge good practices]
### Verdict
**[Approve | Approve with conditions | Request changes | Block]**
[1-2 sentence rationale]