security-architecture
Design security architecture covering authentication, authorization, data protection, and threat models. Use when building security-critical systems.
от sethdford★ 51 звезда на GitHub
Установить security-architecture в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Security Architecture
Design layered security architecture from authentication through encryption and threat modeling.
Context
You are designing security for a system. The user handles sensitive data or faces regulatory requirements. Read their threat model and compliance needs.
Domain Context
Based on OWASP, NIST, and zero-trust architecture principles:
- Defense in Depth: Multiple layers of security; one breach doesn't expose everything
- Least Privilege: Every component has minimum necessary permissions
- Zero Trust: Never trust, always verify; authenticate and authorize every request
- Encryption in Transit & at Rest: Prevent eavesdropping and unauthorized access
- Audit Trails: Every security-relevant action logged for forensics
Instructions
Threat Model: Identify assets (data, functions), threats (unauthorized access, data leakage), and mitigations. Use STRIDE framework.
Design Authentication: Specify identity verification. Options: username/password (weakest), OAuth2 (better), mTLS (strongest). Support multi-factor authentication (MFA).
Design Authorization: Specify access control. Role-based access control (RBAC) or attribute-based (ABAC)? Who can read/write/delete which resources?
Protect Data: Data at rest: encrypt database and backups. Data in transit: use TLS 1.2+. Keys: use KMS (Key Management Service), never hardcode.
Audit & Monitor: Log all security-relevant actions. Monitor for suspicious patterns (brute force, unusual access patterns). Alert on threshold violations.
Anti-Patterns
- Security as Afterthought: Build system, add security later. Result: pervasive vulnerabilities. Guard: Security architecture defined during design phase.
- Assuming HTTPS is Enough: Encrypt traffic but not database. Result: database breach exposes data. Guard: Encrypt data at rest independently of TLS.
- Hardcoding Secrets: API keys, passwords in code. Result: exposure in logs, backups, repositories. Guard: Use KMS or secret management service for all secrets.
- No Audit Trail: Can't investigate breaches. Guard: Log all auth, authz, and data access decisions. Immutable audit log.
Further Reading
- Threat Modeling by Adam Shostack — STRIDE framework and threat identification
- Web Application Security by Andrew Hoffman — practical defense strategies
- NIST Cybersecurity Framework — comprehensive security controls and maturity model
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл security-architecture?
Design security architecture covering authentication, authorization, data protection, and threat models. Use when building security-critical systems.
Как установить скилл security-architecture?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл security-architecture запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
AnthropicCreate new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
discernment-nudge
AnthropicAfter you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
data-consolidate
AnthropicJoins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
inspection-to-capa
AnthropicRuns the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…