/phoenix-security-review:security-assessmentfrom phoenix-security-review
Runs OWASP Top 10 2025 and ASVS Level 1 security assessments across a codebase with cost budgeting, knowledge-graph linking, and automated test generation. Activates on requests for security audits, vulnerability assessments, or pre-release security passes.
Ships in phoenix-security-review. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Run comprehensive security assessment covering OWASP Top 10 2025 and ASVS Level 1 requirements. This skill provides automated, full-codebase security analysis with real-time token monitoring, knowledge graph integration, and automated test generation.
On-disk fallback (when MCP unavailable): if
run_security_assessmentis not reachable, use the bundled checklists at../security-reviewer/checklists/owasp-asvs.md(OWASP Top 10 ↔ ASVS L1 mapping) and../security-reviewer/checklists/endpoint-checklist.md(per-endpoint review template), plus the language reference packs at../security-reviewer/languages/*.md, to drive the workflow with the assistant's built-in tools (Read/Grep/Glob/Bash).
Extract:
Use MCP tool run_security_assessment:
{
"repo_path": "/path/to/repo",
"max_cost_usd": 10.0,
"link_to_graph": true,
"generate_tests": true,
"check_dependencies": true,
"stream_progress": true,
"report_format": "markdown"
}
Stream real-time updates to user:
Executive Summary:
Detailed Findings:
Compliance Report:
Offer to:
User: "Run a security assessment on this repository"
Assistant:
I'll run a comprehensive security assessment covering OWASP Top 10 and ASVS Level 1 (estimated cost: $8-10, duration: 15-20 minutes).
[Detecting stack...]
✅ Stack detected:
- Backend: Kotlin/Spring Boot 2.7.18 with Spring Security
- Frontend: Angular 20 with NgRx
- ORM: JPA/Hibernate
- Auth: JWT with Nimbus JOSE
[Running 24 security checks...]
[Progress: 5/24 checks completed (21%)]
Token usage: 15,000 tokens ($0.75)
Findings: 3 (1 Critical, 2 High)
🔴 **CRITICAL**: Missing Authentication on Admin Endpoint
File: src/main/kotlin/com/example/AdminController.kt:45
OWASP: A01 (Broken Access Control)
ASVS: 4.1.1, 4.1.3
[Progress: 12/24 checks completed (50%)]
Token usage: 45,000 tokens ($2.25)
Findings: 8 (2 Critical, 4 High, 2 Medium)
🔴 **CRITICAL**: SQL Injection via String Concatenation
File: src/main/kotlin/com/example/UserRepository.kt:78
OWASP: A03 (Injection)
ASVS: 5.3.4
[Progress: 24/24 checks completed (100%)]
✅ **ASSESSMENT COMPLETE**
**Executive Summary**:
- Total findings: 23
- 🔴 Critical: 2
- 🟠 High: 7
- 🟡 Medium: 10
- 🟢 Low: 4
**OWASP Top 10 Breakdown**:
- A01 Broken Access Control: 5 findings
- A02 Cryptographic Failures: 3 findings
- A03 Injection: 8 findings
- A04 Insecure Design: 2 findings
- A05 Security Misconfiguration: 3 findings
- A06 Vulnerable Components: 1 finding
- A07 Authentication Failures: 1 finding
- A08 Software and Data Integrity Failures: 0 findings
- A09 Security Logging and Monitoring Failures: 0 findings
- A10 Server-Side Request Forgery (SSRF): 0 findings
**ASVS L1 Compliance**: 84.7% (127/150 requirements passed)
**Token Usage**: 160,000 tokens ($8.20)
**Analysis Time**: 18 minutes
**Top 5 Risks**:
1. Missing Authentication on Admin Endpoint (CRITICAL)
2. SQL Injection via String Concatenation (CRITICAL)
3. XSS via Sanitizer Bypass in Dashboard (HIGH)
4. JWT Expired Token Accepted (HIGH)
5. Weak Cryptography: MD5 Password Hashing (HIGH)
Would you like me to:
1. Generate security test suite (23 tests)
2. Export detailed report (Markdown/HTML/PDF)
3. Show detailed analysis of critical findings
4. Create remediation roadmap
User: "Check for SQL injection vulnerabilities, budget $2"
Assistant:
I'll run a targeted assessment for SQL injection (OWASP A03) with a budget of $2.00.
[Detecting stack...]
Backend: Kotlin/Spring Boot with JPA/Hibernate and MyBatis
[Analyzing SQL injection vectors...]
[Check 1/2: Primary ORM (JPA/Hibernate)]
Token usage: 8,500 tokens ($0.43)
✅ No SQL injection found in JPA queries
[Check 2/2: Secondary ORM (MyBatis)]
Token usage: 12,000 tokens ($0.60)
🟠 **HIGH**: SQL Injection in MyBatis XML Mapper
**Finding Details**:
File: src/main/resources/mappers/UserMapper.xml:34
Severity: High
OWASP: A03 (Injection)
ASVS: 5.3.4, 5.3.5
**Vulnerable Code**:
```xml
<select id="findByStatus">
SELECT * FROM users WHERE status = ${status}
</select>
Attack Scenario: Attacker can inject SQL via status parameter: ' OR 1=1--
Proof of Concept: status=' OR 1=1--
Remediation: Use #{status} instead of ${status} for parameterized query
Knowledge Graph Context:
Generated Test:
@Test
fun `MyBatis findByStatus rejects SQL injection`() {
val result = userMapper.findByStatus("' OR 1=1--")
assertThat(result).isEmpty()
}
Summary:
Would you like me to:
### Example 3: Quick Access Button
**User**: [Clicks 🛡️ Security Assessment button]
**System**: [Shows quick options dialog]
┌─────────────────────────────────────┐ │ Security Assessment Options │ ├─────────────────────────────────────┤ │ Max Cost (USD): [10.00 ] 💵 │ │ ☑ Generate Security Tests │ │ ☑ Link to Knowledge Graph │ │ ☑ Check Dependencies │ │ │ │ [Cancel] [Run Assessment]│ └─────────────────────────────────────┘
**User**: [Clicks "Run Assessment"]
**Assistant**:
Starting comprehensive security assessment...
[Detecting stack...] ✅ Backend: Kotlin/Spring Boot ✅ Frontend: Angular 20
[Running 24 security checks...] [Progress updates stream here...]
[Assessment complete - see Example 1 for full output]
## Key APIs
### MCP Tool
```typescript
run_security_assessment({
repo_path: string,
backend_only?: boolean,
frontend_only?: boolean,
owasp_categories?: string[],
asvs_chapters?: number[],
max_cost_usd?: number,
provider?: "openai" | "anthropic" | "gemini",
model?: string,
link_to_graph?: boolean,
generate_tests?: boolean,
check_dependencies?: boolean,
save_to_db?: boolean,
stream_progress?: boolean,
report_format?: "markdown" | "html" | "pdf" | "json"
})
# Run assessment
POST /api/v1/security-assessment/assessments
{
"repo_path": "/path/to/repo",
"options": {
"max_cost_usd": 10.0,
"generate_tests": true,
"link_to_graph": true
}
}
# Get status
GET /api/v1/security-assessment/assessments/{assessment_id}
# Stream progress (SSE)
GET /api/v1/security-assessment/assessments/{assessment_id}/stream
# Get report
GET /api/v1/security-assessment/assessments/{assessment_id}/report?format=markdown
# Get generated tests
GET /api/v1/security-assessment/assessments/{assessment_id}/tests
"Security assessment with budget $5, backend only"
"Run OWASP Top 10 check without generating tests"
"Assess authentication and authorization only"
IMPORTANT: When displaying risk assessments, use a proper risk matrix format, NOT a flowchart.
✅ CORRECT - Use Markdown Table Matrix:
| Impact ↓ / Likelihood → | 🟢 Low | 🟡 Medium | 🟠 High | 🔴 Very High |
|---|---|---|---|---|
| 🔴 Critical | Medium | High | Critical | SQL Injection, Command Injection |
| 🟠 High | Low | Medium | XXE Injection | Critical |
| 🟡 Medium | Low | Medium | High | High |
| 🟢 Low | Low | Low | Medium | Medium |
✅ CORRECT - Use Mermaid Quadrant Chart (Mermaid 10.6+):
%%{init: {'theme': 'dark', 'themeVariables': { 'quadrant1Fill': '#991b1b', 'quadrant2Fill': '#b45309', 'quadrant3Fill': '#166534', 'quadrant4Fill': '#7d6608', 'quadrant1TextFill': '#ffffff', 'quadrant2TextFill': '#ffffff', 'quadrant3TextFill': '#ffffff', 'quadrant4TextFill': '#ffffff'}}}%%
quadrantChart
title Vulnerability Risk Assessment
x-axis Low Likelihood --> High Likelihood
y-axis Low Impact --> High Impact
quadrant-1 Critical Risk
quadrant-2 High Risk
quadrant-3 Low Risk
quadrant-4 Medium Risk
SQL Injection: [0.90, 0.95]
Command Injection: [0.90, 0.95]
XXE Injection: [0.75, 0.70]
❌ WRONG - Never use flowchart/graph for risk matrix:
graph LR
subgraph Likelihood
L1[Low] --> L2[Medium]
end
This creates a flow diagram, NOT a risk matrix. Risk matrices must show 2D positioning (likelihood × impact).
-- Get all security findings for repository
MATCH (a:SecurityAssessment {repo_name: "my-repo"})-[:CONTAINS]->(f:SecurityFinding)
RETURN f.title, f.severity, f.owasp_category
ORDER BY f.severity DESC
-- Find critical findings affecting specific function
MATCH (f:SecurityFinding {severity: 'CRITICAL'})-[:AFFECTS]->(fn:Function {name: "authenticate"})
RETURN f.title, f.description, f.attack_scenario
-- Calculate vulnerability density by OWASP category
MATCH (f:SecurityFinding)-[:MAPS_TO]->(o:OwaspCategory)
WITH o.category_id AS category, COUNT(f) AS count
RETURN category, count
ORDER BY count DESC
-- Find functions with multiple security findings
MATCH (fn:Function)<-[:AFFECTS]-(f:SecurityFinding)
WITH fn, COUNT(f) AS finding_count
WHERE finding_count > 1
RETURN fn.name, fn.filePath, finding_count
ORDER BY finding_count DESC
-- Get ASVS compliance gaps
MATCH (f:SecurityFinding)-[:VIOLATES]->(r:AsvsRequirement)
WITH r.chapter AS chapter, COUNT(DISTINCT r) AS failed_requirements
RETURN chapter, failed_requirements
ORDER BY chapter
🛡️ **SECURITY ASSESSMENT STARTED**
Stack Detection:
✅ Backend: Kotlin/Spring Boot 2.7.18
✅ Frontend: Angular 20.3.16
✅ ORM: JPA/Hibernate + MyBatis
✅ Auth: Spring Security 5.8.16 + JWT
Running 24 Security Checks:
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 100%
OWASP Top 10 Analysis:
✅ A01 Broken Access Control: 5 findings
✅ A02 Cryptographic Failures: 3 findings
✅ A03 Injection: 8 findings
✅ A04 Insecure Design: 2 findings
✅ A05 Security Misconfiguration: 3 findings
✅ A06 Vulnerable Components: 1 finding
✅ A07 Authentication Failures: 1 finding
✅ A08 Software/Data Integrity: 0 findings
✅ A09 Logging/Monitoring: 0 findings
✅ A10 SSRF: 0 findings
ASVS Level 1 Compliance: 84.7% (127/150 passed)
Token Usage: 160,000 tokens ($8.20)
Duration: 18 minutes
📊 **RESULTS SUMMARY**:
- Total Findings: 23
- 🔴 Critical: 2
- 🟠 High: 7
- 🟡 Medium: 10
- 🟢 Low: 4
🎯 **TOP 5 RISKS**:
1. Missing Authentication on Admin Endpoint (CRITICAL)
2. SQL Injection via String Concatenation (CRITICAL)
3. XSS via Sanitizer Bypass (HIGH)
4. JWT Expired Token Accepted (HIGH)
5. Weak Cryptography: MD5 Hashing (HIGH)
📝 **GENERATED ARTIFACTS**:
- Security test suite: 23 tests across 5 files
- Detailed report: SECURITY_ASSESSMENT_REPORT.md
- ASVS compliance matrix
- Remediation roadmap
Next steps:
1. Review critical findings
2. Run generated test suite
3. Implement high-priority remediations
4. Re-run assessment to verify fixes
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
owasp, asvs, security-audit, vulnerability-assessment, codebase-scanning
npx claudepluginhub security-phoenix-demo/security-skills-claude-code --plugin phoenix-security-review6 skills in this plugin
/0day-scannerLLM-powered zero-day vulnerability analysis of code changes — a commit, a pull request, a file or a branch — in light, standard or deep mode, with cost budgeting and knowledge-graph linking. Use whenever someone asks to scan for vulnerabilities, check for security issues, mentions 0-day or zero-day, or wants a specific commit, PR, diff or branch reviewed for security. Prefers the `analyze_for_zero_day_vulnerabilities` MCP tool and falls back to the per-language reference packs plus the 8-point check scoped to the diff. For a whole-repo pass use `security-assessment`.
/security-reviewerMulti-language security review for web apps, APIs, and CLIs. Use whenever code is added or modified — new endpoints, auth/RBAC changes, template or DOM rendering, outbound HTTP, dependency updates, IaC/config changes, or end-of-feature reviews. Covers Python, JavaScript, TypeScript, Go, Rust, Java/Kotlin, Ruby, C#/.NET, plus shared OWASP Top 10 and ASVS L1 logic. Triggers on phrases like "security review", "review this for security", "audit this code", "is this safe", "AppSec check", "threat-model this change", "supply chain risk", "before I merge", or whenever a senior engineer would pause to ask "what could go wrong here". Pairs with the `security-reviewer` subagent and the session-start / pre-bash / post-edit hooks shipped alongside it./threat-modelingAutomated STRIDE and DREAD threat modelling from code analysis. Extracts architecture, data flows, entry points and trust boundaries, then produces ranked threats, attack scenarios, mitigations and compliance-ready documentation. Use for security assessment, architecture review, compliance documentation and attack-scenario planning, or whenever someone says threat model this, STRIDE, DREAD, attack surface, data flow diagram or trust boundaries. Runs as Phase 0 of `tm-security-review`.
/tm-quick-security-assessmentThe QUICK tier. Scope to a git worktree/branch and assess only what changed against a base — a fast, threat-model-aware pre-merge security pass (attack-surface delta + OWASP Top 10 on changed files) with the trust-direction gate applied. Composes the security-assessment + 0day-scanner (light) skills. Use for "quick security assessment on this branch", pre-merge review of a worktree/diff, or a fast posture check. For a comprehensive whole-repo review with a full threat model as input, use tm-security-review./tm-security-reviewThe COMPREHENSIVE tier. Build (or ingest) a full STRIDE threat model as input, then run a sophisticated whole-repo adversarial zeroday exploit review (triple-pass HUNT -> JUDGE -> VERIFY) that validates the model against the code and proves a runnable PoC per confirmed finding. Composes the threat-modeling + 0day-scanner (deep) skills. Use for "tm security review", a deep exploit-focused review with a threat model, or any agentic/LLM/MCP codebase where design risk outweighs pattern bugs. Ask about deployment/trust context when unclear. For a quick pre-merge diff pass instead, use tm-security-assessment.Other plugins' skills for the same job