| name | security-analysis |
| description | Perform OWASP-based security analysis of the codebase. Use when auditing code for vulnerabilities, before production deployment, or when reviewing authentication/authorization changes. |
| context | fork |
| agent | security-analyzer |
| allowed-tools | Read, Grep, Glob, Bash(grep *) |
| automation | manual |
| metadata | {"version":"1.0","created":"2026-03-13T00:00:00.000Z","author":"Ability.ai","changelog":["1.0: Initial version — performs an OWASP Top 10 based security analysis of the codebase for auditing vulnerabilities before deployment or after auth changes."]} |
Security Analysis
ℹ️ First, set expectations: before anything else, print one short line with this skill's version and its most recent change — the top entry of metadata.changelog above — e.g. security-analysis vX.Y — recent: <summary>. Then proceed.
Perform a comprehensive security analysis of the codebase based on OWASP Top 10.
State Dependencies
| Source | Location | Read | Write | Description |
|---|
| Architecture | docs/memory/architecture.md | ✅ | | Security boundaries |
| Backend Code | src/backend/ | ✅ | | API security |
| Frontend Code | src/frontend/ | ✅ | | Client security |
| Security Report | docs/security-reports/security-analysis-{date}.md | | ✅ | Generated report |
Scope
$ARGUMENTS
If no scope specified, analyze the full codebase with focus on:
src/backend/ - API endpoints, authentication, database access
src/frontend/ - Client-side security, token handling
Analysis Process
Follow the methodology in the security-analyzer agent:
- Read architecture.md to understand security boundaries
- Check each OWASP category systematically
- Document findings with severity levels
- Generate report to
docs/security-reports/
OWASP Categories to Check
- A01: Broken Access Control
- A02: Cryptographic Failures
- A03: Injection
- A04: Insecure Design
- A05: Security Misconfiguration
- A07: Authentication Failures
- A09: Security Logging Failures
Output
Save report to: docs/security-reports/security-analysis-{date}.md
Return a summary with:
- Critical/High findings count
- Top 3 most urgent issues
- Recommended immediate actions
Completion Checklist