Senior Security skill for Claude

Check if a design or code is secure: STRIDE threat model, DREAD risk scores, leaked secret scan.

When Claude uses it

Use whenever the user asks what could be attacked, how risky a feature is, or to find exposed keys.

Senior Security SKILL.md

The full skill file from alirezarezvani/claude-skills (MIT).

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 toWhy 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:
    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:
    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 ElementSTRIDE
External EntityXX
ProcessXXXXXX
Data StoreXXXX
Data FlowXXX

(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)

DocumentContent
references/threat-modeling-guide.mdSTRIDE methodology, attack trees, DREAD scoring, DFD creation
references/security-architecture-patterns.mdZero Trust, defense-in-depth, authentication patterns, API security
references/cryptography-implementation.mdAES-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.

How to install Senior Security

Claude Code

Copy the skill into your personal skills folder (or into .claude/skills/ inside a project):

npx degit alirezarezvani/claude-skills/engineering-team/skills/senior-security#main ~/.claude/skills/senior-security

Codex

npx degit alirezarezvani/claude-skills/engineering-team/skills/senior-security#main ~/.codex/skills/senior-security

Claude.ai and Claude Desktop

Download the skill folder from GitHub, zip it, and upload it under Settings → Capabilities → Skills.

Frequently asked questions

+What does the Senior Security skill do?

Check if a design or code is secure: STRIDE threat model, DREAD risk scores, leaked secret scan. Use whenever the user asks what could be attacked, how risky a feature is, or to find exposed keys.

+How do I install Senior Security in Claude Code?

Copy the skill folder into ~/.claude/skills/senior-security, for example with "npx degit alirezarezvani/claude-skills/engineering-team/skills/senior-security#main ~/.claude/skills/senior-security". Claude Code loads it automatically and uses it when a task matches.

+Does Senior Security work with ChatGPT or Codex?

Yes. Senior Security uses the open SKILL.md format. In Codex, put the folder in ~/.codex/skills/senior-security. In Claude.ai, zip the folder and upload it under Settings → Capabilities → Skills.

+Is Senior Security free?

Senior Security is published on GitHub by alirezarezvani under the MIT license, which allows free use.

Related security skills

  1. Security Review

    Official

    Security code review for vulnerabilities. Use when asked to "security review", "find vulnerabilities", "check for security issues", "audit…

    getsentry/skills★ 1.2k
  2. Audit

    a user-authored audit skill

    pbakaus/impeccable★ 112k
  3. Semgrep

    Official

    Runs a Semgrep security scan over a codebase: detects languages, selects rulesets, presents the plan for explicit approval, then runs every…

    trailofbits/skills★ 8.3k
  4. Skill Security Auditor

    Use before installing any skill or plugin from an untrusted source, or when asked if a skill is safe.

    alirezarezvani/claude-skills★ 30k
  5. Threat Detection

    Use when hunting threats, sweeping IOCs or looking for anomalies in logs and telemetry.

    alirezarezvani/claude-skills★ 30k
  6. Define Goal

    Official

    Help the user define a concrete, measurable goal before starting work, especially when they ask to use the goal tool, create a goal, set an…

    openai/skills★ 29k
  7. Security Best Practices

    Official

    Perform language and framework specific security best-practice reviews and suggest improvements.

    openai/skills★ 29k
  8. Security Ownership Map

    Official

    Analyze git repositories to build a security ownership topology (people-to-file), compute bus factor and sensitive-code ownership, and…

    openai/skills★ 29k
  9. Security Threat Model

    Official

    Repository-grounded threat modeling that enumerates trust boundaries, assets, attacker capabilities, abuse paths, and mitigations, and…

    openai/skills★ 29k

See all security skills →

More skills from alirezarezvani

  1. Seo Audit

    Find why a site is not ranking: technical SEO, on-page issues, meta tags, site health.

    alirezarezvani/claude-skills★ 30k
  2. Session Handoff

    Write a handoff document so a fresh session or another agent can pick up exactly where this one left off: goal, current state, decisions,…

    alirezarezvani/claude-skills★ 30k
  3. Ship Gate

    Use before deploying or going live ('am I ready to ship', 'can I deploy', 'preflight check').

    alirezarezvani/claude-skills★ 30k

All skills by alirezarezvani →

Give your whole team an AI agent with skills

Cody runs managed AI agents your team can message in Slack, Teams, WhatsApp and the web, with 50+ business integrations, scheduled tasks and memory. No terminal required.