Threat Mitigation Mapping skill for Claude

Map identified threats to appropriate security controls and mitigations.

When Claude uses it

Use when prioritizing security investments, creating remediation plans, or validating control effectiveness.

Threat Mitigation Mapping SKILL.md

The full skill file from wshobson/agents (MIT).

Threat Mitigation Mapping

Connect threats to controls for effective security planning.

When to Use This Skill

  • Prioritizing security investments
  • Creating remediation roadmaps
  • Validating control coverage
  • Designing defense-in-depth
  • Security architecture review
  • Risk treatment planning

Core Concepts

1. Control Categories

Preventive ────► Stop attacks before they occur
   │              (Firewall, Input validation)
   │
Detective ─────► Identify attacks in progress
   │              (IDS, Log monitoring)
   │
Corrective ────► Respond and recover from attacks
                  (Incident response, Backup restore)

2. Control Layers

LayerExamples
NetworkFirewall, WAF, DDoS protection
ApplicationInput validation, authentication
DataEncryption, access controls
EndpointEDR, patch management
ProcessSecurity training, incident response

3. Defense in Depth

                    ┌──────────────────────┐
                    │      Perimeter       │ ← Firewall, WAF
                    │   ┌──────────────┐   │
                    │   │   Network    │   │ ← Segmentation, IDS
                    │   │  ┌────────┐  │   │
                    │   │  │  Host  │  │   │ ← EDR, Hardening
                    │   │  │ ┌────┐ │  │   │
                    │   │  │ │App │ │  │   │ ← Auth, Validation
                    │   │  │ │Data│ │  │   │ ← Encryption
                    │   │  │ └────┘ │  │   │
                    │   │  └────────┘  │   │
                    │   └──────────────┘   │
                    └──────────────────────┘

Templates and detailed worked examples

Full template library and detailed mitigation/control mappings live in references/details.md. Read that file when you need the concrete templates for: Mitigation Model, Defense in Depth scoring, Executive Summary scaffolding, Critical Gaps reporting, Recommendations, Implementation Roadmap, Results by Control.

Best Practices

Do's

  • Map all threats - No threat should be unmapped
  • Layer controls - Defense in depth is essential
  • Mix control types - Preventive, detective, corrective
  • Track effectiveness - Measure and improve
  • Review regularly - Controls degrade over time

Don'ts

  • Don't rely on single controls - Single points of failure
  • Don't ignore cost - ROI matters
  • Don't skip testing - Untested controls may fail
  • Don't set and forget - Continuous improvement
  • Don't ignore people/process - Technology alone isn't enough

How to install Threat Mitigation Mapping

Claude Code

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

npx degit wshobson/agents/plugins/security-scanning/skills/threat-mitigation-mapping#main ~/.claude/skills/threat-mitigation-mapping

Codex

npx degit wshobson/agents/plugins/security-scanning/skills/threat-mitigation-mapping#main ~/.codex/skills/threat-mitigation-mapping

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 Threat Mitigation Mapping skill do?

Map identified threats to appropriate security controls and mitigations. Use when prioritizing security investments, creating remediation plans, or validating control effectiveness.

+How do I install Threat Mitigation Mapping in Claude Code?

Copy the skill folder into ~/.claude/skills/threat-mitigation-mapping, for example with "npx degit wshobson/agents/plugins/security-scanning/skills/threat-mitigation-mapping#main ~/.claude/skills/threat-mitigation-mapping". Claude Code loads it automatically and uses it when a task matches.

+Does Threat Mitigation Mapping work with ChatGPT or Codex?

Yes. Threat Mitigation Mapping uses the open SKILL.md format. In Codex, put the folder in ~/.codex/skills/threat-mitigation-mapping. In Claude.ai, zip the folder and upload it under Settings → Capabilities → Skills.

+Is Threat Mitigation Mapping free?

Threat Mitigation Mapping is published on GitHub by wshobson 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. Wcag Audit Patterns

    Conduct WCAG 2.2 accessibility audits with automated testing, manual verification, and remediation guidance.

    wshobson/agents★ 43k
  5. A11y Audit

    Use for any accessibility audit or a11y fix (WCAG 2.2 A/AA, color contrast, compliance report, CI check) in React, Next.js, Vue, Angular,…

    alirezarezvani/claude-skills★ 30k
  6. Ai Security

    Use when assessing an AI/ML system or LLM agent for prompt injection, jailbreaks, model inversion, data poisoning or tool abuse.

    alirezarezvani/claude-skills★ 30k
  7. Aims Audit

    ISO 42001 AI readiness check. Use before a stage 1 or internal audit, or /compliance-os:aims-audit.

    alirezarezvani/claude-skills★ 30k
  8. Atlassian Admin

    Use for Atlassian org administration: Jira or Confluence users and groups, permissions, SSO, marketplace apps or security policy.

    alirezarezvani/claude-skills★ 30k
  9. Confluence Expert

    Use when building or restructuring a Confluence space: page hierarchy, permissions, templates, Jira macros or a content audit.

    alirezarezvani/claude-skills★ 30k

See all security skills →

More skills from wshobson

  1. Trace To Training Data

    Convert evaluation traces and production logs into SFT examples and preference pairs.

    wshobson/agents★ 43k
  2. Track Management

    Use this skill when creating, managing, or working with Conductor tracks - the logical work units for features, bugs, and refactors.

    wshobson/agents★ 43k
  3. Turborepo Caching

    Configure Turborepo for efficient monorepo builds with local and remote caching.

    wshobson/agents★ 43k

All skills by wshobson →

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.