threat-mitigation-mapping
π―SkillHelps you match each security risk in your system to the protections that guard against it. Use it to decide what to fix first, plan security work, and spot risks that nothing covers yet.
Installation
npx skills add wshobson/agents --skill threat-mitigation-mappingRun it in a terminal; it asks which AI coding tools to install it for (Claude Code, Codex, Cursor and more).
Uses skills.sh Β· Node.js 22.20+
After installing
Ask for related work and the agent uses it on its own, or call it yourself.
/threat-mitigation-mappingInstall by hand
Copy the whole skill folder from GitHub to the place below. Copying only SKILL.md can leave out files the skill uses.
Open the skill folder β- This project
.claude/skills/threat-mitigation-mapping/ - All projects
~/.claude/skills/threat-mitigation-mapping/
These paths are for Claude Code. For other tools, the command above puts it in the right place.
What this skill does
Overview
This skill helps you link known security threats to "controls", which are the safeguards that stop or limit them. It gives you a clear way to see what is protected and what is not. Full templates and worked examples live in references/details.md.
Key Features
- Sort safeguards into three types: ones that block attacks, ones that spot them, and ones that help you recover.
- Check protection at each layer, such as the network, the app, the data and each computer.
- Use "defense in depth", which means stacking several layers so one failure does not expose everything.
- Find gaps where a threat has no safeguard, and list the most serious ones.
- Build a step-by-step plan and a short summary for managers.
Who is this for?
It helps security teams, architects and developers who must decide where to spend time and money on security. It is also useful when reviewing a system's design or checking that existing safeguards really work. The tips remind you to test safeguards and review them regularly.
Summarized by AI from this skill's SKILL.md. Suggest a better one
SKILL.md
View on GitHub βMap identified threats to appropriate security controls and mitigations. Use when prioritizing security investments, creating remediation plans, or validating control effectiveness.
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
| Layer | Examples |
|---|---|
| Network | Firewall, WAF, DDoS protection |
| Application | Input validation, authentication |
| Data | Encryption, access controls |
| Endpoint | EDR, patch management |
| Process | Security 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
More from this repository10
Helps you build a consistent look for your app with Tailwind CSS v4. It sets up shared colors, sizes, dark mode and reusable components so every screen matches.
A guide to TypeScript's advanced type features, which describe the shape of your data so mistakes are caught before the code runs. It covers reusable types, types that change based on rules, and built-in helper types, with short examples.
Guidance for building reliable server-side apps with Node.js, using Express or Fastify. It covers login, error handling, databases, API design and a list of proven best practices.
Intelligent automation and multi-agent orchestration for Claude Code
Claude Code plugin for AI-powered framework migration workflows, coordinating specialized agents to plan and execute transitions between technology stacks as part of the wshobson/agents marketplace.
A Claude Code plugin for payment system integration covering Stripe, PayPal, and billing platforms with checkout flows, subscription management, and webhook handling in the wshobson/agents ecosystem.
A Claude Code plugin bundling core development tools and agents for everyday tasks like debugging and code generation, part of the wshobson/agents marketplace with 73 focused plugins.
Claude Code plugin for observability and monitoring including logging, metrics, distributed tracing, and alerting, part of the wshobson/agents marketplace with 73 focused plugins.
A Claude Code plugin providing specialized AI agents for deployment strategy planning and execution, covering blue-green deployments, canary releases, rolling updates, and zero-downtime patterns.
Claude Code plugin for JVM language development including Java, Kotlin, and Scala with specialized agents for idiomatic patterns, build tools, and runtime optimization in the wshobson/agents marketplace.