threat-mitigation-mapping

Map identified threats to security controls and generate mitigation plans with coverage analysis.

Updated Apr 23, 2026
One-click install
npx skills add https://github.com/SanketAdlak/PDMProjectDesign --skill threat-mitigation-mapping-sanketadlak
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: threat-mitigation-mapping
Source: https://github.com/SanketAdlak/PDMProjectDesign/tree/main/.agents/skills/threat-mitigation-mapping
Command: npx skills add https://github.com/SanketAdlak/PDMProjectDesign --skill threat-mitigation-mapping-sanketadlak

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Security teams often identify threats but struggle to systematically connect them to the right controls, leaving gaps in coverage and making it hard to prioritize security investments or justify remediation budgets. ## Core Features & Use Cases - Threat-to-Control Mapping: Model threats (STRIDE categories) and link them to preventive, detective, and corrective controls across network, application, data, endpoint, and process layers. - Gap & Defense-in-Depth Analysis: Calculate coverage scores per threat, detect unmapped threats, missing control diversity, and single-layer weaknesses. - Control Library & Roadmap Generation: Use a built-in library of standard controls (MFA, WAF, encryption, RBAC, logging) with compliance references, then generate prioritized implementation roadmaps and budget-optimized recommendations. - Use Case: After a threat modeling session flags spoofing and data disclosure risks, use this Skill to map each threat to controls, identify that logging lacks integrity protection, and produce a phased remediation roadmap for leadership. ## Quick Start Ask the AI to map your identified threats to security controls and generate a mitigation report with coverage gaps and a prioritized remediation roadmap.

Frequently Asked Questions about threat-mitigation-mapping

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I map threats to security controls?

Create Threat objects with STRIDE categories and risk scores, then build MitigationMapping entries linking each threat to SecurityControl objects. The mapping calculates coverage scores and checks defense-in-depth and control diversity automatically.

What is defense in depth in security architecture?

Defense in depth layers controls across network, application, data, endpoint, and process levels so a single failure does not compromise the system. The has_defense_in_depth method verifies at least two distinct layers have implemented controls per threat.

How do I prioritize security controls within a limited budget?

Use the optimize_budget method, which ranks unimplemented controls by threats covered times effectiveness divided by cost, then greedily selects controls within your budget. This maximizes risk reduction per dollar spent.

What is the difference between preventive, detective, and corrective controls?

Preventive controls stop attacks before they occur (firewalls, input validation), detective controls identify attacks in progress (IDS, log monitoring), and corrective controls support response and recovery (incident response, backups). Effective plans mix all three types.

How do I test whether a security control actually works?

Define ControlTest entries with test functions and expected results, then run them through ControlTester. It reports pass rates per control and calculates an effectiveness score, flagging controls that fail validation.

When should I not rely on a single security control?

Single controls create single points of failure and should be avoided for any meaningful threat. The gap analysis flags threats lacking control diversity or layered coverage, recommending additional controls at different layers.