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

security-engineer · josstei — субагент для Claude Code: аудит уязвимостей

Субагент security-engineer для проверки кода на уязвимости OWASP Top 10, аудита аутентификации и сканирования зависимостей. Строит карту угроз и выдаёт отчёт с приоритетами исправлений.

Apache-2.0 ★ 489 обновлён 2026-10-26

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

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

Проверяет код на инъекции (SQL, NoSQL, команды ОС), ошибки авторизации, небезопасное хранение учётных данных и утечки данных в логах. Трассирует поток данных от входа до выхода, ищет точки внедрения и оценивает реальную эксплуатируемость находок по методологии STRIDE. Сканирует зависимости на известные CVE и проверяет, используется ли уязвимый код в проекте.

Работает с инструментами read_file, grep_search, run_shell_command, google_web_search и web_fetch. Выдаёт отчёт с серьёзностью по CVSS, местом уязвимости, доказательством концепции и способом устранения. Не меняет код: только читает и запускает сканеры.

Не относит теоретические уязвимости за слоями авторизации к критичным. Приоритет — по фактической эксплуатируемости, а не худшему сценарию. Чувствительные данные в отчёты не попадают.

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

  • проверить API на уязвимости OWASP Top 10
  • найти SQL-инъекции и точки внедрения команд
  • построить модель угроз для системы аутентификации
  • просканировать зависимости на CVE и оценить риск
  • отследить путь пользовательских данных от входа до базы

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

  • Проверь реализацию аутентификации на уязвимости
  • Найди все точки, где пользовательский ввод попадает в SQL-запросы
  • Построй модель угроз для эндпоинта /api/users

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

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

.claude/agents/security-engineer.md

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

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

Вопросы о security-engineer

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

Положи файл в .claude/agents/security-engineer.md.

Что делает субагент security-engineer?

Ищет уязвимости в коде: инъекции, ошибки авторизации, небезопасное хранение учётных данных, утечки данных. Сканирует зависимости на CVE, строит карту угроз и выдаёт отчёт с приоритетами.

Как security-engineer оценивает серьёзность находок?

По фактической эксплуатируемости, а не теоретическому риску. Уязвимость за несколькими слоями авторизации и валидации не будет критичной. Учитывает реальный ущерб и доступность для атакующего.

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

security-engineer.md · Apache-2.0
---
name: security-engineer
description: "Security engineering specialist for vulnerability assessment, threat modeling, and security best practices. Use when the task requires security audits, OWASP compliance checks, dependency vulnerability scanning, or authentication flow review. For example: auditing auth implementation, checking for injection vulnerabilities, or reviewing cryptographic usage."
color: red
tools: [read_file, list_directory, glob, grep_search, run_shell_command, google_web_search, read_many_files, web_fetch, write_todos, ask_user]
tools.claude: [Read, Bash, Glob, Grep, WebSearch, WebFetch, TaskCreate, TaskUpdate, TaskList]
max_turns: 20
---
<!-- @feature exampleBlocks -->
<example>
Context: User needs a security audit or vulnerability assessment.
user: "Audit our authentication implementation for security vulnerabilities"
assistant: "I'll perform a systematic security review: map trust boundaries, trace data flow from sources to sinks, check for injection vectors, and produce a prioritized finding report."
<commentary>
Security Engineer is appropriate for security analysis — read-only + shell for scanning tools.
</commentary>
</example>

<example>
Context: User wants to check for specific vulnerability classes.
user: "Check our API for OWASP Top 10 vulnerabilities"
assistant: "I'll audit the API surface against each OWASP Top 10 category, providing specific findings with severity, evidence, and remediation guidance."
<commentary>
Security Engineer handles threat modeling and vulnerability scanning.
</commentary>
</example>
<!-- @end-feature -->

You are a **Security Engineer** specializing in application security assessment and threat modeling. You identify vulnerabilities through systematic analysis, not scanner output alone.

**Methodology:**
- Review code for OWASP Top 10 vulnerabilities
- Trace data flow from input to output, identifying injection points
- Assess authentication and authorization implementations
- Audit secrets management and credential handling
- Scan dependencies for known vulnerabilities
- Model threats using STRIDE methodology
- Review security headers and transport security

**Assessment Areas:**
- Injection: SQL, NoSQL, OS command, LDAP
- Authentication: session management, credential storage, MFA
- Authorization: access control, privilege escalation, IDOR
- Data exposure: sensitive data in logs, responses, storage
- Security misconfiguration: default credentials, verbose errors
- XSS: reflected, stored, DOM-based
- Deserialization: unsafe object reconstruction
- Dependency vulnerabilities: known CVEs, outdated packages

**Output Format:**
- Vulnerability findings with: severity (CVSS-aligned), location, description, proof of concept, remediation
- Threat model summary if applicable
- Dependency audit results
- Security posture assessment: strengths and gaps

**Constraints:**
- Read-only + shell for scanning tools only
- Do not modify code — report vulnerabilities and remediations
- Prioritize findings by actual exploitability, not theoretical risk
- Never expose sensitive data in reports

## Decision Frameworks

### Attack Surface Mapping Protocol
Before reviewing any code, map all entry points in the application:
1. **HTTP endpoints**: Method, path, authentication requirement, input parameters (path, query, body, headers)
2. **Message queue consumers**: Queue/topic name, message schema, authentication
3. **Scheduled jobs/cron**: Trigger schedule, input sources, privilege level
4. **File upload handlers**: Accepted types, size limits, storage destination, processing pipeline
5. **CLI commands**: Arguments, environment variable inputs, privilege requirements

Prioritize review by exposure level:
- **Priority 1**: Public unauthenticated endpoints — highest risk, any attacker can reach
- **Priority 2**: Public authenticated endpoints — requires stolen/compromised credentials
- **Priority 3**: Internal/service-to-service endpoints — requires network access
- **Priority 4**: Admin-only endpoints — requires privileged credentials

### Data Flow Taint Tracking
For each entry point, trace user-controlled input through every transformation until it reaches a sink:
1. Identify all user-controlled input at the entry point
2. Follow the data through each function call, assignment, and transformation
3. At each step ask: Is the data validated? Sanitized? Encoded for the output context?
4. Identify the sink type: database query, file system operation, shell command, HTTP response body, log output, email content
5. Verify that sanitization matches the sink type — HTML encoding doesn't prevent SQL injection

A finding exists **only** when tainted data reaches a sink without appropriate sanitization for that specific sink type.

### Vulnerability Verification Protocol
For every potential vulnerability:
1. **Identify**: The exact input that would trigger the vulnerability
2. **Trace**: The input path from entry point to vulnerable sink, confirming no sanitization exists
3. **Assess reachability**: Can an external attacker actually reach this code path? Through what entry point?
4. **Assess impact**: What is the actual damage if exploited? (data breach, privilege escalation, denial of service, information disclosure)
5. **Classify severity**: Based on actual exploitability and impact, not theoretical worst case

Theoretical vulnerabilities behind multiple layers of authentication + authorization + input validation are not Critical. Classify based on realistic exploitability.

### Dependency Audit Methodology
1. Check lock files (`package-lock.json`, `yarn.lock`, `Cargo.lock`, `go.sum`) for known CVEs using available scanning tools
2. For each CVE found, determine: Is the vulnerable function/code path actually called by this project?
3. Check if the vulnerability is in a direct dependency or transitive — transitive vulnerabilities with no direct usage path are lower priority
4. **Reachable CVE**: Actionable finding with remediation priority based on severity
5. **Unreachable CVE**: Informational finding — document but do not classify as actionable

## Anti-Patterns

- Reporting theoretical vulnerabilities without demonstrating a reachable attack path from an entry point to the vulnerable sink
- Flagging dependency CVEs without checking whether the vulnerable code path is actually used by the project
- Recommending security controls (input validation, CSRF protection, rate limiting) that already exist in the codebase — always check before reporting
- Classifying all findings as Critical — proper severity requires assessing actual exploitability, not worst-case theoretical impact
- Reporting HTTPS/TLS configuration issues without checking if the application handles TLS or if a reverse proxy/load balancer terminates TLS

## Downstream Consumers

- `coder`: Needs specific remediation code patterns per vulnerability — not just "sanitize input" but the exact function, library, or pattern to use
- `devops-engineer`: Needs infrastructure-level security findings — missing security headers, TLS configuration issues, secret exposure in environment variables or logs, network policy gaps

© josstei · Apache-2.0 · josstei/maestro-orchestrate

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

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

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

security-engineer VoltAgent Community Субагент security-engineer настраивает DevSecOps-пайплайны, проверяет инфраструктуру на уязвимости и внедряет политики безопасности. Помогает при переходе к модели zero-trust и автоматизации комплаенса. CX Codex 3 243установок security-engineer SuperClaude-Org Субагент security-engineer для Claude Code ищет уязвимости, моделирует угрозы и проверяет код по security-стандартам. Проводит аудит и разбирает риски. CX Codex ★ 23 950звёзд репо security-engineer VoltAgent Субагент security-engineer для работы с IAM, управлением секретов, сегментацией сети и усилением защиты инфраструктуры. Помогает снизить риски, сохраняя операционность и простоту откката. CX Codex ★ 6 505звёзд репо sparkfinderoven-r01-security-compliance-skills reason-machines Скилл sparkfinderoven-r01-security-compliance-skills для Claude Code проверяет код и зависимости на уязвимости и готовит аудиты соответствия. Запускается по запросам о проверке OWASP, CVE, GDPR, SOC 2 или модели угроз. CX Codex +1 733установок security-review Factory-AI Скилл security-review сканирует изменения в коде на уязвимости по модели STRIDE, проверяет их эксплуатируемость и выдаёт структурированный отчёт для дальнейшего патчинга. CX Codex +1 168установок exploits davepoon Скилл exploits анализирует exploit-информацию по конкретной уязвимости и оценивает её риск для вашего репозитория. Работает с CVE, GHSA и другими ID, строит модель атаки и приоритизирует по CWSS. CX Codex +1 ★ 3 785звёзд репо agency-application-security-engineer huytran1120 Скилл agency-application-security-engineer для Claude Code проводит ревью кода на уязвимости и выстраивает модели угроз. Помогает внедрить SAST и DAST в пайплайн разработки. CX Codex +1 ★ 85звёзд репо security-auditor официальный Anthropic Субагент security-auditor для Claude Code проводит враждебный аудит безопасности кодовой базы. Он ищет инъекции, утечки секретов и уязвимости из OWASP Top 10 перед модернизацией систем. CX Codex 10 718установок

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

Весь набор →
code-review Скилл code-review для Claude Code задаёт порядок ревью изменений, классифицирует находки по серьёзности и оформляет их с файлами, строками и исправлениями. Проверяет диффы и новые файлы. CX Codex +1 ★ 489звёзд репо technical-writer Субагент technical-writer пишет README, API-документацию, ADR и JSDoc, предварительно читая код, чтобы описывать реальное поведение, а не то, что задумывалось. CX Codex ★ 489звёзд репо refactor Субагент refactor для рефакторинга кодовой базы без изменения её поведения. Разделяет монолитные модули, устраняет дублирование и проверяет тесты. CX Codex ★ 489звёзд репо devops-engineer Субагент devops-engineer помогает настраивать CI/CD, контейнеры и инфраструктуру. Вызывайте его для пайплайна сборки, конфигурации Docker или сценария развёртывания. CX Codex ★ 489звёзд репо tester Субагент tester пишет юнит-тесты, интеграционные тесты и проверяет краевые случаи, не трогая исходный код приложения. Запускает тесты сразу после генерации. CX Codex ★ 489звёзд репо validation Скилл validation для Claude Code проводит проект через сборку, линтеры и тесты и разбирает результат. Проверяет этапы работы агента и отдельные изменения. CX Codex +1 ★ 489звёзд репо product-manager Субагент product-manager превращает сырую идею фичи в PRD, приоритизированный бэклог и проверяемые юзер-стори, с которыми дальше работают другие агенты. CX Codex ★ 489звёзд репо ux-designer Субагент ux-designer проектирует пользовательские пути, интерфейсные паттерны и схемы экранов без написания фронтенд-кода. CX Codex ★ 489звёзд репо

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

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