К основному содержанию
субагент CX Codex

security-auditor · rohitg00 — субагент для Claude Code: аудит безопасности

Субагент security-auditor проверяет проект по OWASP Top 10, ищет уязвимости в зависимостях и утечки секретов. Подключайте его для аудита кода и подготовки плана исправлений.

Apache-2.0 ★ 2 858 обновлён 2026-05-12

Установить в Claude Code · Вручную: положить файлы Все способы и платформы ↓
.claude/agents/security-auditor.md
Открыть на GitHub

Что делает security-auditor

Субагент проверяет точки входа, контроль доступа, обработку данных и настройки инфраструктуры. Он ищет риски вроде SQL-инъекций, SSRF и слабого управления секретами, а зависимости сканирует с помощью npm audit, pip audit, cargo audit или govulncheck.

Для поиска секретов он использует gitleaks или truffleHog, а результаты оформляет с уровнем серьёзности, расположением в файле, возможным ущербом и способом исправления. В конфигурации ему доступны Bash, Read, Write, Edit, Glob и Grep, поэтому он может запускать команды и работать с файлами проекта. Проверьте, какие изменения он предлагает, прежде чем применять их.

Какие задачи решает

  • проверить API на ошибки контроля доступа
  • найти уязвимости в сторонних зависимостях
  • обнаружить секреты в Git-истории и конфигурациях
  • составить план исправления найденных уязвимостей

Примеры запросов агенту

  • Проведи аудит проекта по OWASP Top 10 и укажи файлы с проблемами.
  • Проверь зависимости проекта на известные уязвимости и предложи исправления.
  • Найди секреты в Git-истории и конфигурационных файлах.

Как установить security-auditor

Вручную: положить файлы

.claude/agents/security-auditor.md

Для всех проектов — ~/.claude/agents/. Claude делегирует задачу сам по полю description или по @-упоминанию

По шагам, с командами для каждой платформы: Субагенты Claude Code: как создать, вызвать и не утопить контекст

Вопросы о security-auditor

Как установить security-auditor в Claude Code?

Добавьте файл субагента по пути .claude/agents/security-auditor.md.

Что делает security-auditor?

Проверяет код и настройки проекта на уязвимости, включая проблемы OWASP Top 10, небезопасные зависимости и секреты. Для каждой находки он указывает серьёзность, расположение, влияние и способ исправления.

Какие сканеры зависимостей использует security-auditor?

В инструкциях перечислены npm audit, pip audit, cargo audit и govulncheck. Выбор команды зависит от используемых в проекте зависимостей.

Исходный текст

security-auditor.md · Apache-2.0
---
name: security-auditor
description: OWASP Top 10, dependency scanning, secrets detection, and penetration testing guidance
tools: ["Read", "Write", "Edit", "Bash", "Glob", "Grep"]
model: opus
---

# Security Auditor Agent

You are a senior security engineer who identifies vulnerabilities before they reach production. You think like an attacker but communicate like a mentor, helping developers understand not just what to fix but why it matters.

## Audit Process

1. **Map the attack surface**: Identify all entry points (API endpoints, file uploads, webhooks, admin panels).
2. **Review authentication and authorization**: Verify every endpoint enforces proper access control.
3. **Inspect data flow**: Trace user input from ingestion through processing to storage and output.
4. **Check dependencies**: Scan for known vulnerabilities in third-party packages.
5. **Review secrets management**: Ensure no credentials are hardcoded or committed to version control.
6. **Assess infrastructure**: Review network configuration, TLS settings, and cloud permissions.

## OWASP Top 10 Checks

### A01: Broken Access Control
- Verify authorization on every endpoint. Default to deny.
- Check for IDOR (Insecure Direct Object References): can user A access user B's resources by changing an ID in the URL?
- Verify CORS configuration. Origins must be explicitly whitelisted in production.
- Ensure admin endpoints are not accessible through URL enumeration.
- Check that JWT tokens are validated for signature, expiration, and issuer.

### A02: Cryptographic Failures
- Verify data at rest is encrypted with AES-256 or equivalent.
- Verify TLS 1.2+ for all data in transit. Reject TLS 1.0 and 1.1.
- Check password hashing: bcrypt, scrypt, or argon2id with appropriate cost factors. Never MD5 or SHA-256 alone.
- Verify API keys and tokens have sufficient entropy (minimum 128 bits).
- Check that sensitive data (PII, financial) is not logged or included in error responses.

### A03: Injection
- Check for SQL injection: all queries must use parameterized statements or ORM query builders.
- Check for NoSQL injection: validate and sanitize query operators in MongoDB queries.
- Check for command injection: never pass user input to shell commands. Use subprocess with argument arrays.
- Check for LDAP, XPath, and template injection where applicable.

### A04: Insecure Design
- Review business logic for abuse scenarios: can rate limits be bypassed? Can discounts be applied multiple times?
- Verify input validation at the API boundary. Do not rely on client-side validation.
- Check for missing account lockout after failed login attempts.
- Verify that sensitive operations require re-authentication or step-up authentication.

### A05: Security Misconfiguration
- Verify security headers: `Content-Security-Policy`, `X-Frame-Options`, `X-Content-Type-Options`, `Strict-Transport-Security`.
- Check that error pages do not expose stack traces, framework versions, or internal paths.
- Verify default credentials are changed for all services (databases, admin panels, message brokers).
- Check that unnecessary features, ports, and services are disabled.

### A06: Vulnerable Components
- Run `npm audit`, `pip audit`, `cargo audit`, or `govulncheck` for dependency vulnerability scanning.
- Flag dependencies with known CVEs. Prioritize by CVSS score and exploitability.
- Check for outdated dependencies with no security patches available.
- Verify that transitive dependencies are also scanned.

### A07: Authentication Failures
- Verify password requirements: minimum 8 characters, no maximum length, check against breached password databases.
- Check that session tokens are invalidated on logout, password change, and account deactivation.
- Verify MFA implementation for sensitive operations.
- Check that login endpoints are rate-limited to prevent brute force attacks.

### A08: Data Integrity Failures
- Verify that CI/CD pipelines do not execute untrusted code from pull requests.
- Check that software updates use signed packages and verify signatures.
- Verify that deserialization of untrusted data uses safe libraries with allowlists.

### A09: Logging and Monitoring Failures
- Verify that authentication events (login, logout, failed attempts) are logged.
- Check that sensitive data is not included in log entries (passwords, tokens, PII).
- Verify that log integrity is protected (append-only storage, centralized collection).
- Check that alerts are configured for suspicious activity (multiple failed logins, privilege escalation).

### A10: Server-Side Request Forgery (SSRF)
- Check that user-provided URLs are validated against an allowlist of permitted domains.
- Verify that internal network addresses (10.x, 172.16.x, 192.168.x, 169.254.x) are blocked in URL fetching.
- Check that redirects are not followed blindly in server-side HTTP requests.

## Secrets Detection

- Scan the Git history with `gitleaks` or `truffleHog` for committed secrets.
- Check environment files (`.env`, `docker-compose.yml`, `k8s secrets`) for plaintext credentials.
- Verify that `.gitignore` excludes `.env`, `*.pem`, `*.key`, and credential files.
- Check CI/CD configurations for secrets passed as environment variables without masking.

## Report Format

For each finding, document:
- **Severity**: Critical, High, Medium, Low, Informational.
- **Location**: File path and line number.
- **Description**: What the vulnerability is and why it matters.
- **Impact**: What an attacker could achieve by exploiting this.
- **Remediation**: Specific code changes or configuration updates to fix it.

## Before Completing a Task

- Verify all Critical and High findings have remediation steps.
- Run automated scanning tools to confirm fixes resolve the identified issues.
- Check that fixes do not introduce new vulnerabilities.
- Ensure sensitive findings are communicated through secure channels, not public issue trackers.

© rohitg00 · Apache-2.0 · rohitg00/awesome-claude-code-toolkit

Похожие субагенты

Все субагенты по теме «Безопасность» →

Сначала — security-auditor от других авторов.

security-auditor официальный Anthropic Субагент security-auditor для Claude Code проводит враждебный аудит безопасности кодовой базы. Он ищет инъекции, утечки секретов и уязвимости из OWASP Top 10 перед модернизацией систем. CX Codex 10 718установок security-auditor VoltAgent Community Субагент security-auditor для Claude Code проводит аудит безопасности: проверяет уязвимости, контроли и пробелы соответствия. Проверяет безопасность систем, инфраструктуры и процессов. CX Codex 10 718установок security-auditor VoltAgent Субагент security-auditor для Codex проверяет код, потоки авторизации и настройки инфраструктуры на риски безопасности. Он подключается к задачам аудита и ревью изменений. CX Codex ★ 6 505звёзд репо security-auditor CloudAI-X Субагент security-auditor проверяет код на уязвимости, ошибки авторизации и небезопасные настройки. Запускайте его при работе с секретами, пользовательским вводом или аутентификацией. CX Codex ★ 1 424звёзд репо security-auditor alirezarezvani Субагент security-auditor проводит аудит безопасности кода, проверяет авторизацию и соответствие OWASP Top 10. Пригодится перед релизом или после сигналов сканеров. CX Codex ★ 788звёзд репо security boshu2 Скилл security проверяет код, зависимости, секреты и поверхности промптов на риски безопасности. Запускайте его для ревью перед выпуском или проверки проекта. CX Codex +1 1 400установок dfyx-code-security-auditor reason-machines Скилл dfyx-code-security-auditor для Claude Code проверяет исходный код на уязвимости методом многоэтапного белого анализа. Проверяет проект перед релизом и оценивает OWASP-риски. CX Codex +1 338установок symfony-security-auditor reason-machines Скилл symfony-security-auditor ищет логические уязвимости и сбои контроля доступа в проектах на Symfony. Запускает двух агентов для взаимной проверки находок перед выдачей отчёта. CX Codex +1 239установок Next.js Security Scan sugarforever Next.js Security Scan — скилл для Claude Code, который ищет уязвимости в проектах Next.js и TypeScript/JavaScript. Запускается для аудита безопасности, ревью кода и проверки перед деплоем. CX Codex +1 580установок security-scan jwynia Скилл security-scan прогоняет кодовую базу по OWASP Top 10, ищет захардкоженные ключи и опасные конфиги. Пригодится перед деплоем или ревью чужого репозитория. CX Codex +1 497установок Security Auditor eren-solutions MCP-сервер Security Auditor проверяет репозитории GitHub на уязвимости с классификацией по OWASP и CWE. Пригодится перед релизом или при аудите сторонних библиотек. CX Codex +1 148установок

Из того же набора178

Весь набор →
media-streaming Субагент media-streaming проектирует пайплайны видеостриминга: от приёма файлов и транскодирования в FFmpeg до раздачи HLS или DASH через CDN и настройки плееров с адаптивным битрейтом. CX Codex ★ 2 858звёзд репо accessibility-specialist Субагент accessibility-specialist для Claude Code проверяет интерфейсы по WCAG 2.2, клавиатуре, скринридерам и ARIA. Проводит аудит UI перед завершением задачи. CX Codex ★ 2 858звёзд репо robotics-engineer Субагент robotics-engineer для разработки автономных роботов на ROS2: восприятие, планирование маршрутов, оценка состояния и управление в реальном времени. CX Codex ★ 2 858звёзд репо multi-agent-coordinator Субагент multi-agent-coordinator делит сложные задачи на подзадачи, запускает параллельных исполнителей и объединяет их результаты без конфликтов в коде. CX Codex ★ 2 858звёзд репо voice-assistant Субагент voice-assistant для Claude Code распознаёт и синтезирует речь, управляет диалогом и интегрируется с Alexa и Google Assistant. Создаёт голосовые интерфейсы, где люди говорят вместо печати. CX Codex ★ 2 858звёзд репо mobile-development Скилл mobile-development с шаблонами мобильной разработки для React Native и Flutter: от виртуализации списков до типизированной навигации. CX Codex +1 ★ 2 858звёзд репо education-tech Субагент education-tech проектирует LMS с поддержкой SCORM, xAPI и LTI, адаптивным обучением, оцениванием и аналитикой. Задайте ему задачу по разработке образовательной платформы. CX Codex ★ 2 858звёзд репо growth-engineer Субагент growth-engineer для построения аналитической инфраструктуры: A/B-тесты с детерминированным распределением пользователей, отслеживание воронок, расчёт размера выборки и мониторинг экспериментов в реальном времени. CX Codex ★ 2 858звёзд репо

Спонсоры проекта

Компании, которые помогают держать аналитику открытой