.claude/skills/ck-security/SKILL.md
STRIDE + OWASP-based security audit with optional auto-fix. Scans code for vulnerabilities, categorizes by severity, and can iteratively fix findings using ck:autoresearch pattern.
npx skillsauth add quanganh208/cookmate ck:securityInstall 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.
Runs a structured STRIDE + OWASP security audit on a given scope. Produces a severity-ranked findings report. With --fix, applies fixes iteratively using the ck:autoresearch guard pattern.
| Mode | Invocation | Behavior |
|------|-----------|----------|
| Audit only | /ck:security <scope> | Scan → categorize → report |
| Audit + Fix | /ck:security <scope> --fix | Scan → categorize → fix iteratively |
| Bounded fix | /ck:security <scope> --fix --iterations N | Limit fix iterations to N |
Expand the provided glob or full keyword into a file list. Read all in-scope files before analysis.
Evaluate each threat category systematically:
Map findings to OWASP categories (A01–A10). See references/stride-owasp-checklist.md for per-category checks.
Run the appropriate package audit tool for the detected stack:
npm auditpip-auditgovulncheckbundle auditScan for hardcoded API keys, passwords, tokens, and private keys using regex patterns. See references/stride-owasp-checklist.md → Secret Patterns.
Assign each finding a severity level (see Severity Definitions below).
## Security Audit Report
### Summary
- Files scanned: N
- Findings: X critical, Y high, Z medium, W low, V info
### Findings
| # | Severity | Category | File:Line | Description | Fix Recommendation |
|---|----------|----------|-----------|-------------|-------------------|
| 1 | Critical | Injection | api/users.ts:45 | SQL string concatenation | Use parameterized queries |
| 2 | High | Auth | auth/login.ts:12 | No rate limiting | Add express-rate-limit |
When --fix is provided, apply fixes iteratively after the audit:
security(fix-N): <short description>
d. Advance to next findingck:autoresearch guard pattern for regression preventionTip: Use
--iterations Nto cap total fix iterations when scope is large.
| Severity | Description | Fix Priority | |----------|-------------|-------------| | Critical | Exploitable now, data breach or RCE risk | Immediate — block release | | High | Exploitable with moderate effort, significant impact | This sprint | | Medium | Limited exploitability or impact | Next sprint | | Low | Theoretical risk, defense-in-depth improvement | Backlog | | Info | Best practice suggestion, no direct risk | Optional |
ck:predict when the security persona flags concernsck:autoresearch --fix for automated remediationck:scenario with --focus authorization for deeper auth flow testingck:plan to schedule Medium/Low findings as sprint tasks# Audit API layer only
/ck:security src/api/**/*.ts
# Audit entire src/ and auto-fix, max 15 iterations
/ck:security src/ --fix --iterations 15
# Full codebase audit (no fix)
/ck:security full
See references/stride-owasp-checklist.md for the detailed per-category checklist and secret detection regex patterns.
development
Create, edit, analyze .docx Word documents. Use for document creation, tracked changes, comments, formatting preservation, text extraction, template modification.
development
Analyze codebase and manage project documentation — init, update, summarize.
development
Search library/framework documentation via llms.txt (context7.com). Use for API docs, GitHub repository analysis, technical documentation lookup, latest library features.
development
Deploy to Cloudflare (Workers, R2, D1), Docker, GCP (Cloud Run, GKE), Kubernetes (kubectl, Helm). Use for serverless, containers, CI/CD, GitOps, security audit.