security-auditor
Audits code for security vulnerabilities including OWASP Top 10 and authentication issues.
- License 许可
- MIT
- 所属仓库
- goffity/dev-km
- 最近更新
- 2026-11-10
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- security-auditor
- context
- fork
- description
- Audits code for security vulnerabilities including OWASP Top 10 and authentication issues.
- user-invocable
- false
02 资源文件 2
- 参考文档evals/triggers.json4.0 KB
- 参考文档references/control-section.md7.9 KB
03 SKILL.md 正文
Security Auditor
Agent สำหรับตรวจสอบ security vulnerabilities ตาม OWASP Top 10 และ best practices
Purpose
- ตรวจหา security vulnerabilities
- ตรวจสอบ OWASP Top 10 risks
- วิเคราะห์ authentication และ authorization
- ตรวจสอบ data protection
- หา hardcoded secrets
When to Use
- ก่อน push code ไป production
- Periodic security audit
- เมื่อเพิ่ม feature เกี่ยวกับ auth/data
- หลังจาก code review พบ potential issues
Instructions
Step 1: Identify Scope
find . -type f \( -name "*.js" -o -name "*.ts" -o -name "*.py" -o -name "*.go" \) | head -50
# Or changed files only
git diff --name-only HEAD
Step 2: OWASP Top 10 Checklist
A01: Broken Access Control
- [ ] Authorization checks on all endpoints
- [ ] No direct object references exposed
- [ ] CORS properly configured
- [ ] Directory traversal prevention
A02: Cryptographic Failures
- [ ] No sensitive data in plain text
- [ ] Strong encryption algorithms used
- [ ] Secure key management
- [ ] HTTPS enforced
A03: Injection
- [ ] SQL injection prevention (parameterized queries)
- [ ] NoSQL injection prevention
- [ ] Command injection prevention
- [ ] LDAP injection prevention
A04: Insecure Design
- [ ] Threat modeling done
- [ ] Security requirements defined
- [ ] Fail-safe defaults
A05: Security Misconfiguration
- [ ] Default credentials changed
- [ ] Unnecessary features disabled
- [ ] Error messages don't leak info
- [ ] Security headers present
A06: Vulnerable Components
- [ ] Dependencies up to date
- [ ] No known vulnerabilities in deps
- [ ] Minimal dependencies
A07: Authentication Failures
- [ ] Strong password policy
- [ ] Brute force protection
- [ ] Secure session management
- [ ] MFA support (if applicable)
A08: Software & Data Integrity
- [ ] Integrity verification for updates
- [ ] CI/CD pipeline secured
- [ ] Unsigned/untrusted data rejected
A09: Logging & Monitoring
- [ ] Security events logged
- [ ] No sensitive data in logs
- [ ] Log injection prevention
- [ ] Alerting configured
A10: Server-Side Request Forgery (SSRF)
- [ ] URL validation
- [ ] Allowlist for external requests
- [ ] No user-controlled redirects
Step 3: Secrets Detection
grep -r "password\|secret\|api_key\|token\|credential" --include="*.js" --include="*.ts" --include="*.py" --include="*.go" .
Look for:
- Hardcoded passwords
- API keys in code
- Private keys
- Connection strings with credentials
Step 4: Risk Assessment
| Risk Level | Criteria |
|---|---|
| Critical | Exploitable, high impact |
| High | Exploitable, medium impact |
| Medium | Requires conditions to exploit |
| Low | Minimal impact |
Output Format
## Security Audit Report
**Scope:** [files/directories audited]
**Date:** YYYY-MM-DD
**Risk Level:** [CRITICAL/HIGH/MEDIUM/LOW]
---
### Executive Summary
| Severity | Count |
|----------|-------|
| Critical | X |
| High | Y |
| Medium | Z |
| Low | W |
---
### [VULN-001] [Vulnerability Name]
- **File:** `path/to/file.js:123`
- **Type:** [OWASP Category]
- **Description:** What the vulnerability is
- **Impact:** What could happen if exploited
- **Remediation:** How to fix it
---
### Recommendations
1. **Immediate:** [Critical fixes]
2. **Short-term:** [High priority improvements]
3. **Long-term:** [Security enhancements]
04 同仓库更多 Skills
wait-what
Stop. That last message did not land: re-pitch it.
tdd
Test-driven development loop (red-green-refactor) with commit-based phase state and Jira traceability. Use when the user wants to build a feature or fix a bug test-first, mentions "tdd", "red-green-refactor", or "test-first". Replaces the tdg plugin — combines its commit/phase discipline with seam-based test quality rules from kb Testing Standards.
td
Creates post-task retrospectives with Before/After context and session documentation.
summary
Generates weekly or monthly session summaries from retrospectives and activity logs.
share
Shares knowledge across projects by copying to shared-knowledge directory with cross-project metadata.
session-analyzer
Analyzes git changes and creates retrospective drafts with Before/After context.