workflows/workflows/agent-environment-setup/platforms/copilot/skills/owasp-security-review/SKILL.md
Use when performing OWASP-aligned security reviews, including vulnerability analysis, secure code review, threat modeling, and SAST/DAST integration.
npx skillsauth add cubetiq/cubis-foundry owasp-security-reviewInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Perform structured, OWASP-standards-based security reviews of application code and architecture. This skill drives systematic vulnerability identification using the OWASP Top 10 (2025) as the primary framework, combining automated SAST/DAST patterns with manual code review and lightweight threat modeling.
Identify the review scope and application context — Determine which components, endpoints, or modules are in scope so the review stays focused and avoids wasted effort on unrelated code paths.
Gather architecture artifacts — Collect data-flow diagrams, deployment topology, authentication mechanisms, and trust boundaries because threat modeling requires understanding how data moves through the system.
Map the attack surface — Enumerate all external inputs (HTTP parameters, file uploads, API bodies, headers, cookies, WebSocket messages) because every untrusted input is a potential injection vector.
Evaluate against OWASP Top 10 (2025) categories systematically — Walk through each category (Broken Access Control, Cryptographic Failures, Injection, Insecure Design, Security Misconfiguration, Vulnerable Components, Authentication Failures, Data Integrity Failures, Logging Failures, SSRF) because structured enumeration prevents coverage gaps.
Review authentication and session management — Inspect login flows, token issuance, session expiry, MFA implementation, and credential storage because authentication bypasses are consistently the highest-impact vulnerabilities.
Analyze authorization and access control logic — Trace every privileged operation to its authorization check, looking for IDOR, privilege escalation, and missing function-level access control because broken access control is the number-one OWASP category.
Inspect input validation and output encoding — Verify that all user-controlled data is validated on input and encoded on output, checking for SQL injection, XSS, command injection, and path traversal because injection remains a top attack class.
Assess cryptographic implementations — Check key lengths, algorithm choices, IV/nonce handling, certificate validation, and secret storage because weak cryptography silently undermines all other security controls.
Evaluate error handling and logging — Confirm that errors do not leak stack traces or internal state, and that security-relevant events are logged with sufficient detail for incident response because poor logging delays breach detection.
Run or simulate SAST patterns — Apply static analysis rules (Semgrep, CodeQL, ESLint security plugins) against the codebase to catch known vulnerability patterns because automated tools find issues that manual review misses at scale.
Run or simulate DAST patterns — Identify runtime-testable vulnerabilities (CSRF, CORS misconfiguration, header injection, open redirects) that require an executing application because some flaws only manifest at runtime.
Build a lightweight threat model — Using STRIDE or PASTA, identify threats for each trust boundary crossing, rank them by likelihood and impact, and document residual risk because threat models connect code-level findings to business-level risk.
Classify each finding by severity — Assign Critical/High/Medium/Low using CVSS v4 base scores contextualized by exploitability and business impact because consistent severity drives correct prioritization.
Write remediation guidance for each finding — Provide specific, actionable fix instructions (code snippets, configuration changes, library recommendations) because findings without remediation create work without progress.
Verify that SAST/DAST tool coverage matches OWASP categories — Cross-reference the toolchain rules against all ten categories to identify detection gaps because uncovered categories represent blind spots in continuous security.
Produce the final review report — Consolidate scope, methodology, findings table, detailed findings, threat model summary, and prioritized recommendations into a single document because a structured report enables stakeholder action.
## OWASP Security Review Report
### Scope
[Components, endpoints, and modules reviewed]
### Methodology
[OWASP Top 10 (2025) categories evaluated, tools used]
### Executive Summary
[Risk posture: critical/high/medium/low counts, top risks]
### Threat Model Summary
[Trust boundaries, STRIDE threats, residual risk]
### Findings
| # | Title | OWASP Category | Severity | CVSS | Location | Status |
|---|-------|----------------|----------|------|----------|--------|
| 1 | ... | A01:2025 | Critical | 9.1 | file:line| Open |
### Detailed Findings
[For each: description, evidence, impact, remediation, references]
### SAST/DAST Coverage Matrix
[Category vs. tool coverage with gaps highlighted]
### Recommendations
[Priority-ordered action items]
| Topic | Reference | Load When |
|-------|-----------|-----------|
| OWASP Top 10 (2025) | references/owasp-top-10.md | Reviewing against OWASP categories |
| Code Review Checklist | references/code-review-checklist.md | Performing manual code review |
| Threat Modeling | references/threat-modeling.md | Building or updating a threat model |
| SAST/DAST Patterns | references/sast-dast.md | Configuring or running security scanners |
| Remediation Playbook | references/remediation.md | Writing fix guidance for findings |
tools
Use when investigating latest vendor behavior, comparing tools or platforms, verifying claims beyond the repo, or gathering external evidence before implementation.
documentation
Use when designing database schemas, normalization strategies, indexing plans, query optimization, and migration workflows for relational, document, or hybrid data stores.
development
Use when writing, reviewing, or refactoring modern C#/.NET code, including minimal APIs, records, async streams, pattern matching, DI lifetimes, and memory-efficient performance tuning.
development
Use when conducting code reviews, building review checklists, calibrating review depth, providing structured feedback, or establishing team review practices. Covers review methodology, feedback patterns, automated checks, and batch review strategies.