auditing-security — скилл для Claude Code: что делает и как установить
Проверяет кодовую базу на утечки секретов, уязвимости OWASP Top 10 и ошибки настроек. Помогает найти уязвимости перед релизом приложения.
npx skills add spencerpauly/awesome-cursor-skills --skill auditing-security -a claude-codeЧто делает auditing-security
Скилл запускает аудит по семи шагам. Сначала ассистент ищет открытые токены, ключи AWS или Stripe и проверяет файлы вроде .env. Затем анализирует авторизацию, хеширование паролей и защиту от инъекций: SQL, XSS, Path traversal и вызовы exec().
Также проверяются зависимости через npm audit или pip audit, заголовки CORS и CSP, а также утечки персональных данных в ответах API и логах. В конце формируется отчёт со списком находок по уровням Critical, High, Medium и Low с номерами строк и рекомендациями по исправлению.
Это ревью исходного кода, а не пентест. Для динамических тестов запущенного сервиса понадобятся отдельные утилиты вроде trivy или snyk.
Какие задачи решает
- Найти захардкоженные API-ключи, токены и незакрытые файлы
.env - Выявить SQL-инъекции, XSS и опасные вызовы
eval()в коде - Проверить конфигурацию заголовков CORS, CSP и атрибуты сессионных кук
- Собрать отчёт по уязвимостям с оценкой критичности и номерами строк
Примеры запросов агенту
- Проверь безопасность проекта и найди уязвимости в кодовой базе
- Проведи аудит аутентификации и работы с сессиями в этом сервисе
- Сделай security audit проекта и сформируй отчёт с уровнями риска
Как установить auditing-security
1Через Skills CLI (Vercel)
npx skills add spencerpauly/awesome-cursor-skills --skill auditing-security -a claude-code2Вручную: положить файлы
~/.claude/skills/auditing-security/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/auditing-security/
1Через Skills CLI (Vercel)
npx skills add spencerpauly/awesome-cursor-skills --skill auditing-security -a codex2Вручную: положить файлы
.agents/skills/auditing-security/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add spencerpauly/awesome-cursor-skills --skill auditing-security -a cursor2Вручную: положить файлы
.cursor/skills/auditing-security/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install spencerpauly/awesome-cursor-skills auditing-security2Вручную: положить файлы
.github/skills/auditing-security/SKILL.md1Через Skills CLI (Vercel)
npx skills add spencerpauly/awesome-cursor-skills --skill auditing-security -a gemini-cli2Командой платформы
gemini skills install https://github.com/spencerpauly/awesome-cursor-skills --path resources/auditing-securityВручную: положить файлы
.devin/skills/auditing-security/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Через Skills CLI (Vercel)
npx skills add spencerpauly/awesome-cursor-skills --skill auditing-security -a opencodeClaude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов
Вопросы о auditing-security
Как установить auditing-security в Claude Code?
Выполните команду npx skills add spencerpauly/awesome-cursor-skills --skill auditing-security -a claude-code. Конфигурация сохранится в файле ~/.claude/skills/auditing-security/SKILL.md.
Что делает скилл auditing-security?
Он инструктирует ассистента провести системную проверку репозитория по правилам OWASP Top 10, найти открытые секреты, проверить права доступа и подготовить отчёт с рекомендациями.
Заменяет ли этот аудит тестирование на проникновение?
Нет, скилл предназначен для статического анализа исходников. Для проверки запущенной системы автор рекомендует использовать инструменты вроде trivy, snyk или руководство OWASP Testing Guide.
Исходный текст
SKILL.md · CC0-1.0
--- name: auditing-security description: Perform a systematic security audit of a codebase, checking for OWASP Top 10 vulnerabilities, secrets exposure, and insecure patterns. --- # Security Audit Use this skill when the user asks to audit security, check for vulnerabilities, review code for security issues, or harden an application. ## Steps 1. **Scan for hardcoded secrets** — search for API keys, tokens, passwords, and connection strings in source files. Check for patterns like: - `password=`, `secret=`, `token=`, `api_key=` - Base64-encoded credentials - AWS keys (`AKIA...`), Stripe keys (`sk_live_...`), GitHub tokens (`ghp_...`) - Files: `.env` committed to git, `config.json` with credentials 2. **Check authentication & authorization** - Verify all API routes check authentication before processing. - Ensure role-based access control is enforced server-side, not just in the UI. - Check that password hashing uses bcrypt/argon2 (not MD5/SHA1). - Verify session tokens are HTTP-only, secure, and have reasonable expiry. 3. **Check for injection vulnerabilities** - **SQL injection**: look for string concatenation in SQL queries instead of parameterized queries. - **XSS**: look for `dangerouslySetInnerHTML`, `innerHTML`, or unescaped user input rendered in templates. - **Command injection**: look for `exec()`, `eval()`, `child_process.exec()` with user input. - **Path traversal**: check file operations for unsanitized user input in paths. 4. **Review dependency security** - Run `npm audit` or `pip audit` to check for known vulnerabilities. - Flag outdated dependencies with known CVEs. - Check for overly permissive dependency ranges. 5. **Check CORS and CSP configuration** - Verify CORS doesn't use `Access-Control-Allow-Origin: *` in production. - Check for Content Security Policy headers. - Verify `X-Frame-Options`, `X-Content-Type-Options`, and `Strict-Transport-Security` headers. 6. **Review data exposure** - Check API responses for leaking sensitive fields (password hashes, internal IDs, PII). - Verify error messages don't expose stack traces or internal details in production. - Check logging for sensitive data being written to logs. 7. **Generate report** — produce a summary with severity ratings (Critical / High / Medium / Low) for each finding, with the file path, line number, and recommended fix. ## Notes - This is a code review, not a penetration test. Recommend tools like `npm audit`, `trivy`, or `snyk` for automated scanning. - Always check `.gitignore` to ensure `.env`, credentials, and key files are excluded. - For comprehensive auditing, recommend the OWASP Testing Guide.
© spencerpauly · CC0-1.0 · spencerpauly/awesome-cursor-skills