security-reviewer
Agent: Sr. Backend Developer
L3 senior backend developer (Nx) responsible for third-party integrations, instrumentation, building backend services, and security review.
Department ethos: ideal-engineering.md
Skill Description
Reviews backend code for security vulnerabilities including injection attacks, authentication and authorization flaws, data exposure, and insecure dependency usage, producing a findings report with severity ratings and remediation guidance.
When to Use
- A PR modifies authentication, authorization, session management, or cryptographic code.
- A new service handles personally identifiable information (PII), payment data, or API secrets.
- A third-party integration introduces new attack surface through external data ingestion.
- A scheduled security review cycle is due per team policy.
- An incident or vulnerability disclosure triggers a targeted review of affected code paths.
Workflow
- Define review scope: Identify the code paths, services, and data flows under review. Prioritize code handling authentication, authorization, input processing, and data storage. Deliverable: scoped review checklist.
- Run static analysis: Execute SAST tools (e.g., Semgrep, CodeQL, Bandit) against the target codebase. Deliverable: raw static analysis report with flagged issues.
- Review OWASP Top 10: Manually inspect code for each OWASP Top 10 category: injection, broken auth, sensitive data exposure, XXE, broken access control, misconfiguration, XSS, insecure deserialization, vulnerable components, insufficient logging. Deliverable: OWASP checklist with pass/fail per category.
- Audit dependency chain: Check direct and transitive dependencies against known vulnerability databases (CVE, GitHub Advisory). Deliverable: dependency audit report with vulnerable packages and upgrade paths.
- Assess data handling: Verify that PII is encrypted at rest and in transit, secrets are not hardcoded, and sensitive data is excluded from logs. Deliverable: data-handling compliance checklist.
- Classify findings: Rate each finding by severity (critical, high, medium, low) using CVSS or equivalent scoring. Deliverable: classified findings list.
- Write remediation guidance: For each finding, provide a specific fix recommendation with code examples where applicable. Deliverable: security review report with remediation plan.
Anti-Patterns
- Reviewing only new code. Focusing exclusively on the diff ignores vulnerabilities in the existing code that the change interacts with. Why: attackers exploit the weakest link in the call chain, not just the newest code.
- Tool-only review. Treating SAST output as the complete review misses logic-level vulnerabilities (broken access control, business logic bypass) that tools cannot detect. Why: security tooling catches patterns, not intent; human review catches design flaws.
- Severity inflation. Marking every finding as critical desensitizes developers and delays remediation of actual critical issues. Why: accurate severity ratings enable risk-based prioritization of fixes.
- No remediation guidance. Reporting vulnerabilities without specific fix recommendations leaves developers to guess at solutions. Why: vague reports produce vague fixes that may introduce new vulnerabilities.
Output
On success: Produces a security review report containing static analysis results, OWASP Top 10 checklist outcomes, dependency audit findings, data-handling compliance results, and severity-classified findings with remediation guidance. Delivered to the code author and engineering lead.
On failure: Report which code paths could not be reviewed (e.g., obfuscated third-party code, missing test environment), what partial coverage was achieved, and what access or context is needed to complete the review.
Related Skills
builder -- builds the code that this skill reviews for security.
third-party-integrator -- integrates external services that introduce attack surface reviewed by this skill.
1---2name: security-reviewer3description: This skill reviews backend code for security vulnerabilities including injection, auth flaws, and data exposure. Use when asked to perform a security review, audit authentication logic, or check for OWASP Top 10 issues. Also consider when a service handles PII or payment data. Suggest when a PR modifies authentication, authorization, or data-handling code.4---56# security-reviewer78## Agent: Sr. Backend Developer910L3 senior backend developer (Nx) responsible for third-party integrations, instrumentation, building backend services, and security review.1112Department ethos: [ideal-engineering.md](../../../../departments/engineering/ideal-engineering.md)1314## Skill Description1516Reviews backend code for security vulnerabilities including injection attacks, authentication and authorization flaws, data exposure, and insecure dependency usage, producing a findings report with severity ratings and remediation guidance.1718## When to Use1920- A PR modifies authentication, authorization, session management, or cryptographic code.21- A new service handles personally identifiable information (PII), payment data, or API secrets.22- A third-party integration introduces new attack surface through external data ingestion.23- A scheduled security review cycle is due per team policy.24- An incident or vulnerability disclosure triggers a targeted review of affected code paths.2526## Workflow27281. **Define review scope**: Identify the code paths, services, and data flows under review. Prioritize code handling authentication, authorization, input processing, and data storage. Deliverable: scoped review checklist.292. **Run static analysis**: Execute SAST tools (e.g., Semgrep, CodeQL, Bandit) against the target codebase. Deliverable: raw static analysis report with flagged issues.303. **Review OWASP Top 10**: Manually inspect code for each OWASP Top 10 category: injection, broken auth, sensitive data exposure, XXE, broken access control, misconfiguration, XSS, insecure deserialization, vulnerable components, insufficient logging. Deliverable: OWASP checklist with pass/fail per category.314. **Audit dependency chain**: Check direct and transitive dependencies against known vulnerability databases (CVE, GitHub Advisory). Deliverable: dependency audit report with vulnerable packages and upgrade paths.325. **Assess data handling**: Verify that PII is encrypted at rest and in transit, secrets are not hardcoded, and sensitive data is excluded from logs. Deliverable: data-handling compliance checklist.336. **Classify findings**: Rate each finding by severity (critical, high, medium, low) using CVSS or equivalent scoring. Deliverable: classified findings list.347. **Write remediation guidance**: For each finding, provide a specific fix recommendation with code examples where applicable. Deliverable: security review report with remediation plan.3536## Anti-Patterns3738- **Reviewing only new code.** Focusing exclusively on the diff ignores vulnerabilities in the existing code that the change interacts with. *Why*: attackers exploit the weakest link in the call chain, not just the newest code.39- **Tool-only review.** Treating SAST output as the complete review misses logic-level vulnerabilities (broken access control, business logic bypass) that tools cannot detect. *Why*: security tooling catches patterns, not intent; human review catches design flaws.40- **Severity inflation.** Marking every finding as critical desensitizes developers and delays remediation of actual critical issues. *Why*: accurate severity ratings enable risk-based prioritization of fixes.41- **No remediation guidance.** Reporting vulnerabilities without specific fix recommendations leaves developers to guess at solutions. *Why*: vague reports produce vague fixes that may introduce new vulnerabilities.4243## Output4445**On success**: Produces a security review report containing static analysis results, OWASP Top 10 checklist outcomes, dependency audit findings, data-handling compliance results, and severity-classified findings with remediation guidance. Delivered to the code author and engineering lead.4647**On failure**: Report which code paths could not be reviewed (e.g., obfuscated third-party code, missing test environment), what partial coverage was achieved, and what access or context is needed to complete the review.4849## Related Skills5051- [`builder`](../builder/SKILL.md) -- builds the code that this skill reviews for security.52- [`third-party-integrator`](../third-party-integrator/SKILL.md) -- integrates external services that introduce attack surface reviewed by this skill.