agent-security-hardening
AFaffaan-m/ECC278k4,046 new stars in the last 7 days
STRIDE + OWASP-based security audit with optional auto-fix. Scans code for vulnerabilities, categorizes by severity, and can iteratively fix findings using vc-autoresearch pattern.
Output style: Follow
process/development-protocols/communication-standards.md— answer-first, plain language, no unexplained jargon, TL;DR on long responses.
Runs a structured STRIDE + OWASP security audit on a given scope. Produces a severity-ranked findings report. With --fix, applies fixes iteratively using the vc-autoresearch guard pattern.
| Mode | Invocation | Behavior |
|---|---|---|
| Audit only | /vc-security <scope> | Scan → categorize → report |
| Audit + Fix | /vc-security <scope> --fix | Scan → categorize → fix iteratively |
| Bounded fix | /vc-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:
pnpm 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 findingvc-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 |
vc-predict when the security persona flags concernsvc-autoresearch --fix for automated remediationvc-scenario with --focus authorization for deeper auth flow testinggenerate-plan / plan-agent to schedule Medium/Low findings as sprint tasks# Audit API layer only
/vc-security src/api/**/*.ts
# Audit entire src/ and auto-fix, max 15 iterations
/vc-security src/ --fix --iterations 15
# Full codebase audit (no fix)
/vc-security full
See references/stride-owasp-checklist.md for the detailed per-category checklist and secret detection regex patterns.
AFaffaan-m/ECC278k4,046 new stars in the last 7 days
DIDietrichGebert/ponytail162k5,405 new stars in the last 7 days
DIDietrichGebert/ponytail162k5,405 new stars in the last 7 days
DIDietrichGebert/ponytail162k5,405 new stars in the last 7 days
GAgarrytan/gstack136k883 new stars in the last 7 days
Harden code against the OWASP Top 10: input handling, authentication, sessions and dependencies.
ADaddyosmani/agent-skills106k3,628 new stars in the last 7 days