senior-security — скилл для Claude Code
Строит модели угроз по STRIDE и DREAD, проверяет код на секреты и направляет остальные задачи безопасности профильным скиллам.
/plugin marketplace add alirezarezvani/claude-skills
/plugin install engineering-skills@claude-code-skillsЧто делает senior-security
Скилл разбирает архитектуру через STRIDE: активы, границы доверия и потоки данных на DFD. Для каждого элемента он формирует угрозы, оценку DREAD и меры защиты; scripts/threat_modeler.py умеет сохранять результат в threats.json.
Угрозы сортируют по DREAD, а затем связывают меры защиты с профильными скиллами, например cloud-security для IAM или code-reviewer для инъекций. Запросы о пентесте, реагировании на инциденты, мониторинге, red team и безопасности ИИ скилл передаёт соседним специализациям.
secret_scanner.py ищет более 20 шаблонов, включая AWS-ключи, GitHub-токены, приватные ключи и учётные данные. Порог DREAD ≥ 7 — жёсткий критерий: перед выпуском нужен ответственный за меру защиты, а находки high и critical блокируют слияние до ротации секрета и переноса в менеджер секретов.
Какие задачи решает
- построить STRIDE-модель угроз для DFD
- оценить угрозы по шкале DREAD
- найти ключи и токены в проекте
- назначить меры защиты угрозам с DREAD ≥ 7
- направить запрос о пентесте профильному скиллу
Примеры запросов агенту
- Построй модель угроз STRIDE для аутентификации пользователей, сессий и базы данных.
- Проанализируй DFD сервиса, оцени угрозы по DREAD и подготовь `threats.json`.
- Проверь проект на секреты с уровнем high и critical.
Как установить senior-security
1Через маркетплейс плагинов
/plugin marketplace add alirezarezvani/claude-skills/plugin install engineering-skills@claude-code-skillsКоманда ставит плагин engineering-skills целиком, со всеми его скиллами
2Через Skills CLI (Vercel)
npx skills add alirezarezvani/claude-skills --skill senior-security -a claude-code3Вручную: положить файлы
~/.claude/skills/senior-security/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/senior-security/
Вручную: положить файлы
.agents/skills/senior-security/SKILL.mdДля всех проектов — ~/.agents/skills/
Вручную: положить файлы
.cursor/skills/senior-security/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install alirezarezvani/claude-skills senior-security2Вручную: положить файлы
.github/skills/senior-security/SKILL.mdКомандой платформы
gemini skills install https://github.com/alirezarezvani/claude-skills --path engineering-team/skills/senior-securityВручную: положить файлы
.devin/skills/senior-security/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Claude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
Из того же набора349
Весь набор →Похожие
Вопросы о senior-security
Как установить senior-security в Claude Code?
Добавьте маркетплейс командой /plugin marketplace add alirezarezvani/claude-skills, затем установите плагин: /plugin install engineering-skills@claude-code-skills.
Что делает senior-security?
Скилл проводит моделирование угроз по STRIDE и DREAD, а также запускает быструю проверку репозитория на секреты. Другие виды задач безопасности он направляет профильным скиллам.
Когда угроза требует назначенного владельца?
Для каждой угрозы со средним DREAD ≥ 7 нужен ответственный за меру защиты до выпуска дизайна. После внесения исправлений скилл предлагает повторно запустить проверку угроз и секретов.
Исходный текст
SKILL.md · MIT
--- name: "senior-security" description: Use when the user asks for STRIDE threat modeling, DREAD risk scoring, data-flow-diagram threat analysis, or a quick secret scan — or when a security request needs routing to the right specialist skill (pen-testing, incident response, cloud posture, red team, AI security, threat hunting, secure code review). This skill owns threat modeling; everything else routes to a sibling. --- # Senior Security Engineer — Threat Modeling + Security Router This skill does exactly one job itself — **STRIDE/DREAD threat modeling** (plus a quick secret scan) — and routes every other security request to the specialist skill that owns that lane. Do not duplicate sibling content here; route instead. ## Routing Table (read this first) | The user wants... | Route to | Why that skill owns it | |---|---|---| | Vulnerability assessment, pen-test methodology, OWASP Top 10 testing | `../security-pen-testing/` | Ships `vulnerability_scanner.py` + `dependency_auditor.py` with exit-code contracts | | Incident triage, SEV classification, forensics, containment | `../incident-response/` | SEV1–SEV4 taxonomy, NIST SP 800-61 phases, `incident_triage.py` | | Production outage command (non-security incidents) | `../incident-commander/` | Severity classifier + timeline + postmortem tools | | Security monitoring, CVE triage SLAs, compliance checks (SOC 2 etc.), security headers | `../senior-secops/` | `security_scanner.py` + `compliance_checker.py`, CVE SLA table | | Hostile/adversarial code review | `../adversarial-reviewer/` | 3-persona review with BLOCK/CONCERNS/CLEAN verdict | | Secure code review as part of general review | `../code-reviewer/` | Language dispatch + regression fixtures | | Cloud IAM escalation paths, S3 exposure, security groups | `../cloud-security/` | `cloud_posture_check.py` with per-check exit codes | | Threat hunting, IOC sweeps, anomaly detection | `../threat-detection/` | z-score anomaly + IOC staleness tooling | | Red-team engagement planning, ATT&CK kill chains | `../red-team/` | `engagement_planner.py` with authorization gate | | LLM/AI attack surface (prompt injection, poisoning) | `../ai-security/` | ATLAS-mapped `ai_threat_scanner.py` | If the request spans lanes (e.g., "secure this new architecture"), do the threat model here first — its output (prioritized threats + mitigations) tells you which siblings to load next. Never bulk-load multiple security skills speculatively. ## What This Skill Owns: STRIDE Threat Modeling ### Workflow 1. **Scope:** assets to protect, trust boundaries, data flows (external entities, processes, data stores, flows). 2. **Generate the threat model** per component: ```bash python3 scripts/threat_modeler.py --component "User Authentication" --assets "credentials,sessions" --json --output threats.json ``` Output: per-threat STRIDE category, DREAD score (Damage, Reproducibility, Exploitability, Affected users, Discoverability — each 1–10), and suggested mitigations. Repeat per DFD element; `--interactive` walks scoping questions; `--list-threats` shows the threat database. 3. **Consume the output:** sort `threats.json` by DREAD score descending; everything ≥ 7 average needs a named mitigation owner before the design ships. Map each mitigation to the responsible sibling lane (e.g., IAM threats → `cloud-security`, injection threats → `code-reviewer`). 4. **Quick secret sweep** while you have the codebase open: ```bash python3 scripts/secret_scanner.py /path/to/project --format json --severity high ``` 20+ patterns (AWS keys, GitHub tokens, private keys, generic credentials). Any critical/high finding blocks merge until rotated and moved to a secret manager. 5. **Verification gate:** every DFD element has ≥ 1 STRIDE row considered, every threat with DREAD ≥ 7 has an owner + mitigation, and the secret scan exits with zero high/critical findings. Re-run both tools after mitigations land — that re-run is the done signal, not the document. ### STRIDE per Element Matrix | DFD Element | S | T | R | I | D | E | |-------------|---|---|---|---|---|---| | External Entity | X | | X | | | | | Process | X | X | X | X | X | X | | Data Store | | X | X | X | X | | | Data Flow | | X | | X | X | | (S=Spoofing→authn, T=Tampering→integrity, R=Repudiation→audit logs, I=Info Disclosure→encryption/access control, D=DoS→rate limiting/redundancy, E=Elevation→least privilege.) ## References (load on demand) | Document | Content | |----------|---------| | [references/threat-modeling-guide.md](references/threat-modeling-guide.md) | STRIDE methodology, attack trees, DREAD scoring, DFD creation | | [references/security-architecture-patterns.md](references/security-architecture-patterns.md) | Zero Trust, defense-in-depth, authentication patterns, API security | | [references/cryptography-implementation.md](references/cryptography-implementation.md) | AES-GCM, Ed25519, password hashing (Argon2id), key management | The architecture and crypto references are kept because no sibling ships them; for *operating* those controls (scanning, compliance, monitoring) still route to `senior-secops`.
© Alireza Rezvani · MIT · alirezarezvani/claude-skills