security-auditor · zhaono1 — скилл для Claude Code: аудит кода по OWASP
Скилл для поиска уязвимостей в коде: проходит по OWASP Top 10, проверяет конфиги, зависимости и секреты. Пригодится перед релизом или ревью чужого проекта.
npx skills add zhaono1/agent-playbook --skill security-auditor -a claude-codeЧто делает security-auditor
Скилл включается, когда вы просите провести аудит безопасности или упоминаете уязвимости и OWASP. Дальше агент идёт по десяти категориям OWASP Top 10:2025 — от сломанного контроля доступа и SSRF до ошибок в обработке исключений и fail-open поведения. Автор сам оговаривает, что этот список работает как таксономия для ориентира, а не как доказательство полного покрытия; для проверяемых контролей находки стоит привязывать к OWASP ASVS или стандарту проекта.
Внутри есть чек-лист по трём блокам: код (хардкод секретов, валидация входа, параметризованные запросы, авторизация на маршрутах), конфигурация (debug, HTTPS, CORS, security headers, доступ к базе) и зависимости. Плюс два скрипта: python3 scripts/security_audit.py --name <service-name> --output security-audit.md для прогона аудита и python3 scripts/find_secrets.py . для поиска секретов. Скиллу разрешены Read, Grep, Glob, Bash и WebSearch — то есть он читает файлы и запускает команды, а не только рассуждает.
Для работы нужен Python 3 в окружении, потому что оба скрипта вызываются через python3. Ставить скилл имеет смысл, если у вас есть доступ к исходникам и конфигам: без них проверка сведётся к общим советам.
Какие задачи решает
- найти хардкод секретов и ключей в репозитории
- проверить авторизацию на чувствительных маршрутах и границы тенантов
- разобрать конфигурацию на debug-флаги, CORS и security headers
- оценить риски зависимостей и цепочки поставки сборки
- проверить обработку таймаутов, частичных сбоев и fail-open поведения
Примеры запросов агенту
- проведи аудит безопасности этого сервиса по OWASP Top 10
- найди уязвимости в папке
src/apiи выпиши их с приоритетами - запусти
python3 scripts/find_secrets.py .и покажи, что нашлось
Как установить security-auditor
1Через Skills CLI (Vercel)
npx skills add zhaono1/agent-playbook --skill security-auditor -a claude-code2Вручную: положить файлы
~/.claude/skills/security-auditor/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/security-auditor/
1Через Skills CLI (Vercel)
npx skills add zhaono1/agent-playbook --skill security-auditor -a codex2Вручную: положить файлы
.agents/skills/security-auditor/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add zhaono1/agent-playbook --skill security-auditor -a cursor2Вручную: положить файлы
.cursor/skills/security-auditor/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install zhaono1/agent-playbook security-auditor2Вручную: положить файлы
.github/skills/security-auditor/SKILL.md1Через Skills CLI (Vercel)
npx skills add zhaono1/agent-playbook --skill security-auditor -a gemini-cli2Командой платформы
gemini skills install https://github.com/zhaono1/agent-playbook --path skills/security-auditorВручную: положить файлы
.devin/skills/security-auditor/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Через Skills CLI (Vercel)
npx skills add zhaono1/agent-playbook --skill security-auditor -a opencodeClaude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов
Вопросы о security-auditor
Как установить security-auditor в Claude?
Выполните npx skills add zhaono1/agent-playbook --skill security-auditor -a claude-code. Скилл окажется в ~/.claude/skills/security-auditor/SKILL.md.
Что делает security-auditor?
Ищет уязвимости по OWASP Top 10:2025: контроль доступа, конфигурация, цепочка поставки, криптография, инъекции, аутентификация, логирование и обработка исключительных ситуаций. Дополнительно проверяет код, конфиги и зависимости по чек-листу.
Что нужно, чтобы скилл заработал?
Python 3 в окружении — оба скрипта запускаются через python3. Ещё нужен доступ к исходникам и конфигам проекта, иначе проверять будет нечего.
Исходный текст
SKILL.md · MIT
---
name: security-auditor
description: Security vulnerability expert covering OWASP Top 10 and common security issues. Use when conducting security audits or reviewing code for vulnerabilities.
allowed-tools: Read, Grep, Glob, Bash, WebSearch
metadata:
hooks:
after_complete:
- trigger: self-improving-agent
mode: background
reason: "Learn from security patterns"
- trigger: session-logger
mode: auto
reason: "Log security audit"
---
# Security Auditor
Expert in identifying security vulnerabilities following OWASP Top 10 and security best practices.
## When This Skill Activates
Activates when you:
- Request a security audit
- Mention "security" or "vulnerability"
- Need security review
- Ask about OWASP
## OWASP Top 10:2025 Coverage
Use the current OWASP Top 10 as an awareness taxonomy, not as proof of complete
security coverage. For verifiable application controls, map findings to the
current OWASP ASVS or the project's required standard.
### A01: Broken Access Control
- Verify authentication and object/function-level authorization on every sensitive path.
- Test tenant boundaries, IDOR/BOLA, role changes, and server-side URL fetch controls.
- SSRF is included in this 2025 category; validate destinations, schemes, redirects, and network egress.
### A02: Security Misconfiguration
- Inspect debug flags, CORS, security headers, default accounts, cloud/IaC policy, and error exposure.
- Compare runtime configuration with hardened environment-specific defaults.
### A03: Software Supply Chain Failures
- Review lockfiles, provenance, build workflows, mutable CI dependencies, update policy, and dependency risk.
- Distinguish a vulnerable package from compromised build or distribution infrastructure.
### A04: Cryptographic Failures
- Check secret storage, transport encryption, key lifecycle, random generation, algorithms, and data-at-rest requirements.
- Flag hardcoded credentials, weak hashes, insecure modes, and missing certificate verification.
### A05: Injection
- Trace untrusted data into SQL/NoSQL, shell, template, LDAP, expression, and browser execution sinks.
- Prefer parameterization and safe APIs; test encoding at the actual output context.
### A06: Insecure Design
- Threat-model trust boundaries, abuse cases, rate limits, high-risk workflows, and failure recovery.
- Verify the design prevents unsafe states rather than relying only on downstream validation.
### A07: Authentication Failures
- Review credential handling, MFA where risk warrants it, reset/recovery flows, session rotation, expiry, and brute-force defenses.
### A08: Software or Data Integrity Failures
- Verify signatures, trusted update channels, deserialization boundaries, artifact integrity, and protection from unauthorized data changes.
### A09: Security Logging and Alerting Failures
- Check that security-relevant events are logged without secrets, protected from tampering, monitored, and connected to actionable alerts.
### A10: Mishandling of Exceptional Conditions
- Exercise malformed input, resource exhaustion, timeouts, partial failures, concurrency, and dependency outages.
- Look for fail-open behavior, swallowed errors, unsafe retries, inconsistent state, and missing rollback or reconciliation.
## Security Audit Checklist
### Code Review
- [ ] No hardcoded secrets
- [ ] Input validation on all inputs
- [ ] Output encoding for XSS prevention
- [ ] Parameterized queries for SQL
- [ ] Proper error handling
- [ ] Authentication on protected routes
- [ ] Authorization checks
- [ ] Rate limiting on public APIs
### Configuration
- [ ] Debug mode off
- [ ] HTTPS enforced
- [ ] CORS configured correctly
- [ ] Security headers set
- [ ] Environment variables for secrets
- [ ] Database not exposed
### Dependencies
- [ ] No known vulnerabilities
- [ ] Dependencies up to date
- [ ] Unused dependencies removed
## Scripts
Run security audit:
```bash
python3 scripts/security_audit.py --name <service-name> --output security-audit.md
```
Check for secrets:
```bash
python3 scripts/find_secrets.py .
```
## References
- `references/owasp.md` - OWASP Top 10 details
- `references/checklist.md` - Security audit checklist
- `references/remediation.md` - Vulnerability remediation guide
© zhaono1 · MIT · zhaono1/agent-playbook
Похожие скиллы
Всё по теме «Безопасность» →Сначала — security-auditor от других авторов.