repository-security-auditlisted
Install: claude install-skill vitoriarntrindade/pocketledger-openspec
# Repository Security Audit
## Goal
Perform a systematic security review of the repository.
Only report findings that are supported by evidence.
Prefer high-confidence findings over speculative issues.
---
## Workflow
Follow these phases in order.
### 1. Understand the project
Identify:
- Language
- Framework
- Runtime
- Database
- ORM
- Authentication
- Infrastructure
- Deployment model
- External integrations
Build a mental model before looking for vulnerabilities.
---
### 2. Identify attack surface
Locate:
- HTTP routes
- Controllers
- Middleware
- Background jobs
- Scheduled tasks
- Webhooks
- Queue consumers
- CLI commands
Identify every external entry point.
---
### 3. Trace data flow
For every public entry point:
Input
↓
Validation
↓
Business Logic
↓
Database
↓
External Services
↓
Response
Track user-controlled data to sensitive operations.
---
### 4. Review security controls
Verify implementation of:
- Authentication
- Authorization
- Session management
- JWT validation
- CSRF protection
- Rate limiting
- Input validation
- Output encoding
- Secret management
- Logging
- Error handling
---
### 5. Review vulnerability classes
Always review for:
- SQL Injection
- NoSQL Injection
- Command Injection
- Prompt Injection
- SSRF
- Path Traversal
- File Upload
- XSS
- CSRF
- XXE
- IDOR
- Broken Access Control
- Authentication flaws
- Authorization flaws
- Race conditions
- Sensitive Data Exposure
- Weak Cryptography
- Security Misconfigu