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

security-hardening · ormus-solutions — команда для Claude Code: установка

Команда security-hardening проводит многоэтапное усиление безопасности приложения через скоординированные субагенты. Она пригодится для поиска уязвимостей и настройки защитных мер.

MIT ★ 126 обновлён 2026-10-04

Установить в Claude Code · Через маркетплейс плагинов Все способы и платформы ↓
/plugin marketplace add Ormus-Solutions/LibreUIUX-Claude-Code
/plugin install security-scanning@libreuiux
Открыть на GitHub

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

Команда запускает оценку безопасности приложения по нескольким слоям. Субагенты выполняют SAST-анализ через Semgrep или SonarQube, DAST-сканирование с OWASP ZAP, аудит зависимостей через Snyk или Trivy, поиск секретов с GitLeaks или TruffleHog и создают SBOM. Затем они моделируют угрозы по STRIDE и проверяют архитектуру, границы сервисов, потоки данных, аутентификацию и авторизацию.

Следующий этап посвящён исправлениям и защитным настройкам. Команда может поручить субагентам устранение критических уязвимостей с CVSS 7+, добавить валидацию ввода, OAuth2/JWT, ограничение запросов, шифрование AES-256/TLS 1.3, CSP, DOMPurify, PKCE OAuth2 и безопасные cookie. Также предусмотрены WAF, сегментация сети, IDS/IPS и управление секретами через HashiCorp Vault или AWS Secrets Manager.

Команде нужно передать приложение или область проверки. Мобильные меры вроде certificate pinning и биометрической аутентификации применяются, когда в задачу входит мобильное приложение.

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

  • найти уязвимости в коде и зависимостях
  • смоделировать угрозы по STRIDE и расставить приоритеты
  • исправить критические уязвимости с CVSS 7+
  • настроить защиту API, фронтенда и инфраструктуры
  • убрать секреты из кода и настроить их ротацию

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

  • Запусти /security-hardening backend API и проверь уязвимости приложения.
  • Выполни /security-hardening весь проект и подготовь план исправлений.
  • Примени /security-hardening мобильное приложение для проверки мобильных мер защиты.

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

1Через маркетплейс плагинов

/plugin marketplace add Ormus-Solutions/LibreUIUX-Claude-Code
/plugin install security-scanning@libreuiux

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

.claude/commands/security-hardening.md

Вызов — /security-hardening. Для всех проектов — ~/.claude/commands/

Вопросы о security-hardening

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

Добавь маркетплейс командой /plugin marketplace add Ormus-Solutions/LibreUIUX-Claude-Code, установи плагин командой /plugin install security-scanning@libreuiux, затем используй файл .claude/commands/security-hardening.md.

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

Команда координирует субагентов для аудита уязвимостей, моделирования угроз, проверки архитектуры и внедрения защитных мер для приложения.

Какие проверки входят в security-hardening?

В сценарии есть SAST, DAST, аудит зависимостей, поиск секретов и создание SBOM. Для анализа также используются STRIDE, OWASP Top 10, CWE и CVE.

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

security-hardening.md · MIT
---
description: "Harden an application in layers with coordinated security agents"
argument-hint: "[application or scope]"
---

Implement comprehensive security hardening with defense-in-depth strategy through coordinated multi-agent orchestration:

[Extended thinking: This workflow implements a defense-in-depth security strategy across all application layers. It coordinates specialized security agents to perform comprehensive assessments, implement layered security controls, and establish continuous security monitoring. The approach follows modern DevSecOps principles with shift-left security, automated scanning, and compliance validation. Each phase builds upon previous findings to create a resilient security posture that addresses both current vulnerabilities and future threats.]

## Phase 1: Comprehensive Security Assessment

### 1. Initial Vulnerability Scanning
- Use Task tool with subagent_type="security-auditor"
- Prompt: "Perform comprehensive security assessment on: $ARGUMENTS. Execute SAST analysis with Semgrep/SonarQube, DAST scanning with OWASP ZAP, dependency audit with Snyk/Trivy, secrets detection with GitLeaks/TruffleHog. Generate SBOM for supply chain analysis. Identify OWASP Top 10 vulnerabilities, CWE weaknesses, and CVE exposures."
- Output: Detailed vulnerability report with CVSS scores, exploitability analysis, attack surface mapping, secrets exposure report, SBOM inventory
- Context: Initial baseline for all remediation efforts

### 2. Threat Modeling and Risk Analysis
- Use Task tool with subagent_type="security-auditor"
- Prompt: "Conduct threat modeling using STRIDE methodology for: $ARGUMENTS. Analyze attack vectors, create attack trees, assess business impact of identified vulnerabilities. Map threats to MITRE ATT&CK framework. Prioritize risks based on likelihood and impact."
- Output: Threat model diagrams, risk matrix with prioritized vulnerabilities, attack scenario documentation, business impact analysis
- Context: Uses vulnerability scan results to inform threat priorities

### 3. Architecture Security Review
- Use Task tool with subagent_type="backend-api-security::backend-architect"
- Prompt: "Review architecture for security weaknesses in: $ARGUMENTS. Evaluate service boundaries, data flow security, authentication/authorization architecture, encryption implementation, network segmentation. Design zero-trust architecture patterns. Reference threat model and vulnerability findings."
- Output: Security architecture assessment, zero-trust design recommendations, service mesh security requirements, data classification matrix
- Context: Incorporates threat model to address architectural vulnerabilities

## Phase 2: Vulnerability Remediation

### 4. Critical Vulnerability Fixes
- Use Task tool with subagent_type="security-auditor"
- Prompt: "Coordinate immediate remediation of critical vulnerabilities (CVSS 7+) in: $ARGUMENTS. Fix SQL injections with parameterized queries, XSS with output encoding, authentication bypasses with secure session management, insecure deserialization with input validation. Apply security patches for CVEs."
- Output: Patched code with vulnerability fixes, security patch documentation, regression test requirements
- Context: Addresses high-priority items from vulnerability assessment

### 5. Backend Security Hardening
- Use Task tool with subagent_type="backend-api-security::backend-security-coder"
- Prompt: "Implement comprehensive backend security controls for: $ARGUMENTS. Add input validation with OWASP ESAPI, implement rate limiting and DDoS protection, secure API endpoints with OAuth2/JWT validation, add encryption for data at rest/transit using AES-256/TLS 1.3. Implement secure logging without PII exposure."
- Output: Hardened API endpoints, validation middleware, encryption implementation, secure configuration templates
- Context: Builds upon vulnerability fixes with preventive controls

### 6. Frontend Security Implementation
- Use Task tool with subagent_type="frontend-mobile-security::frontend-security-coder"
- Prompt: "Implement frontend security measures for: $ARGUMENTS. Configure CSP headers with nonce-based policies, implement XSS prevention with DOMPurify, secure authentication flows with PKCE OAuth2, add SRI for external resources, implement secure cookie handling with SameSite/HttpOnly/Secure flags."
- Output: Secure frontend components, CSP policy configuration, authentication flow implementation, security headers configuration
- Context: Complements backend security with client-side protections

### 7. Mobile Security Hardening
- Use Task tool with subagent_type="frontend-mobile-security::mobile-security-coder"
- Prompt: "Implement mobile app security for: $ARGUMENTS. Add certificate pinning, implement biometric authentication, secure local storage with encryption, obfuscate code with ProGuard/R8, implement anti-tampering and root/jailbreak detection, secure IPC communications."
- Output: Hardened mobile application, security configuration files, obfuscation rules, certificate pinning implementation
- Context: Extends security to mobile platforms if applicable

## Phase 3: Security Controls Implementation

### 8. Authentication and Authorization Enhancement
- Use Task tool with subagent_type="security-auditor"
- Prompt: "Implement modern authentication system for: $ARGUMENTS. Deploy OAuth2/OIDC with PKCE, implement MFA with TOTP/WebAuthn/FIDO2, add risk-based authentication, implement RBAC/ABAC with principle of least privilege, add session management with secure token rotation."
- Output: Authentication service configuration, MFA implementation, authorization policies, session management system
- Context: Strengthens access controls based on architecture review

### 9. Infrastructure Security Controls
- Use Task tool with subagent_type="deployment-strategies::deployment-engineer"
- Prompt: "Deploy infrastructure security controls for: $ARGUMENTS. Configure WAF rules for OWASP protection, implement network segmentation with micro-segmentation, deploy IDS/IPS systems, configure cloud security groups and NACLs, implement DDoS protection with rate limiting and geo-blocking."
- Output: WAF configuration, network security policies, IDS/IPS rules, cloud security configurations
- Context: Implements network-level defenses

### 10. Secrets Management Implementation
- Use Task tool with subagent_type="deployment-strategies::deployment-engineer"
- Prompt: "Implement enterprise secrets management for: $ARGUMENTS. Deploy HashiCorp Vault or AWS Secrets Manager, implement secret rotation policies, remove hardcoded secrets, configure least-privilege IAM roles, implement encryption key management with HSM support."
- Output: Secrets management configuration, rotation policies, IAM role definitions, key management procedures
- Context: Eliminates secrets exposure vulnerabilities

## Phase 4: Validation and Compliance

### 11. Penetration Testing and Validation
- Use Task tool with subagent_type="security-auditor"
- Prompt: "Execute comprehensive penetration testing for: $ARGUMENTS. Perform authenticated and unauthenticated testing, API security testing, business logic testing, privilege escalation attempts. Use Burp Suite, Metasploit, and custom exploits. Validate all security controls effectiveness."
- Output: Penetration test report, proof-of-concept exploits, remediation validation, security control effectiveness metrics
- Context: Validates all implemented security measures

### 12. Compliance and Standards Verification
- Use Task tool with subagent_type="security-auditor"
- Prompt: "Verify compliance with security frameworks for: $ARGUMENTS. Validate against OWASP ASVS Level 2, CIS Benchmarks, SOC2 Type II requirements, GDPR/CCPA privacy controls, HIPAA/PCI-DSS if applicable. Generate compliance attestation reports."
- Output: Compliance assessment report, gap analysis, remediation requirements, audit evidence collection
- Context: Ensures regulatory and industry standard compliance

### 13. Security Monitoring and SIEM Integration
- Use Task tool with subagent_type="incident-response::devops-troubleshooter"
- Prompt: "Implement security monitoring and SIEM for: $ARGUMENTS. Deploy Splunk/ELK/Sentinel integration, configure security event correlation, implement behavioral analytics for anomaly detection, set up automated incident response playbooks, create security dashboards and alerting."
- Output: SIEM configuration, correlation rules, incident response playbooks, security dashboards, alert definitions
- Context: Establishes continuous security monitoring

## Configuration Options
- scanning_depth: "quick" | "standard" | "comprehensive" (default: comprehensive)
- compliance_frameworks: ["OWASP", "CIS", "SOC2", "GDPR", "HIPAA", "PCI-DSS"]
- remediation_priority: "cvss_score" | "exploitability" | "business_impact"
- monitoring_integration: "splunk" | "elastic" | "sentinel" | "custom"
- authentication_methods: ["oauth2", "saml", "mfa", "biometric", "passwordless"]

## Success Criteria
- All critical vulnerabilities (CVSS 7+) remediated
- OWASP Top 10 vulnerabilities addressed
- Zero high-risk findings in penetration testing
- Compliance frameworks validation passed
- Security monitoring detecting and alerting on threats
- Incident response time < 15 minutes for critical alerts
- SBOM generated and vulnerabilities tracked
- All secrets managed through secure vault
- Authentication implements MFA and secure session management
- Security tests integrated into CI/CD pipeline

## Coordination Notes
- Each phase provides detailed findings that inform subsequent phases
- Security-auditor agent coordinates with domain-specific agents for fixes
- All code changes undergo security review before implementation
- Continuous feedback loop between assessment and remediation
- Security findings tracked in centralized vulnerability management system
- Regular security reviews scheduled post-implementation

Security hardening target: $ARGUMENTS

© Seth Hobson · MIT · Ormus-Solutions/LibreUIUX-Claude-Code

Похожие слэш-команды

Все слэш-команды по теме «Безопасность» →

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

security-hardening Seth Hobson Команда security-hardening для Claude Code, которая проводит security-аудит приложения с защитой по слоям. Сканирует уязвимости, строит модель угроз и ждёт одобрения перед исправлениями. CX Codex +1 437установок security-scanning-security-hardening sickn33 Скилл security-scanning-security-hardening для Claude Code координирует проверку безопасности и устранение уязвимостей в приложении, инфраструктуре и CI/CD. Укрепляет защиту проекта поэтапно. CX Codex +1 1установок security-auditor rmyndharis Скилл security-auditor для Claude Code помогает проверять безопасность приложения и CI/CD. Анализирует угрозы, уязвимости и меры защиты, а затем предлагает шаги для исправления. CX Codex +1 128установок quickstart официальный anthropics Скилл quickstart вводит в репозиторий по безопасности кода и ведёт от threat model до первой проверки canary-цели. Подходит для старта или точечных вопросов по документации. CX Codex +1 1 100установок security-engineer VoltAgent Community Субагент security-engineer настраивает DevSecOps-пайплайны, проверяет инфраструктуру на уязвимости и внедряет политики безопасности. Помогает при переходе к модели zero-trust и автоматизации комплаенса. CX Codex 3 243установок security-automation devops-skills Скилл security-automation для автоматизации проверок безопасности и реагирования на инциденты: пайплайны, авто-исправления, SOAR-плейбуки. CX Codex +1 391установок powershell-security-hardening VoltAgent Субагент powershell-security-hardening проверяет и ужесточает безопасность PowerShell-скриптов, админских задач и Windows-настроек. Полезен при аудите изменений и контролей выполнения. CX Codex ★ 6 505звёзд репо

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

Весь набор →
dependency-management Плагин dependency-management находит уязвимости в зависимостях восьми языков и помогает спланировать безопасный перенос легаси-кода. Пригодится при аудите пакетов или обновлении старых стеков. ★ 126звёзд репо debugging-toolkit Плагин debugging-toolkit добавляет в Claude Code команду /smart-debug и двух субагентов для пошагового поиска причин сбоев и настройки окружения. Пригодится при падении тестов и багах в проде. ★ 126звёзд репо full-review Команда full-review запускает поэтапное ревью кода через субагентов Claude Code. Оценивает архитектуру, безопасность по OWASP, производительность и тесты. CX Codex +1 ★ 126звёзд репо full-stack-feature Команда full-stack-feature прогоняет разработку фичи по всем слоям — от схемы базы до фронтенда и инфраструктуры — через цепочку субагентов. Запускается одной командой с описанием фичи в аргументе. CX Codex +1 ★ 126звёзд репо performance-optimization Команда performance-optimization запускает сквозную оптимизацию стека от профилирования узких мест до фронтенда и нагрузочных тестов. CX Codex +1 ★ 126звёзд репо incident-response Команда incident-response координирует разбор инцидента: от оценки серьёзности и поиска причины до исправления и связи с заинтересованными сторонами. Запустите её с описанием сбоя. CX Codex +1 ★ 126звёзд репо ui-responsive Команда ui-responsive анализирует компонент или страницу на пяти брейкпоинтах и выдаёт конкретные правки для мобильных, планшетов и десктопов. CX Codex +1 ★ 126звёзд репо jungian-archetypes Скилл jungian-archetypes связывает 12 юнгианских архетипов бренда с версткой, анимацией и компонентами интерфейса. CX Codex +1 ★ 126звёзд репо

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

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