security-requirement-extraction

Convert threat models into traceable security requirements, user stories, and test cases.

Updated May 22, 2026
One-click install
npx skills add https://github.com/viniciuscs84/sdd-toolkit --skill security-requirement-extraction-viniciuscs84
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: security-requirement-extraction
Source: https://github.com/viniciuscs84/sdd-toolkit/tree/main/skills/security-requirement-extraction
Command: npx skills add https://github.com/viniciuscs84/sdd-toolkit --skill security-requirement-extraction-viniciuscs84

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Translating threat analysis into concrete, testable security requirements is often ad hoc, leaving gaps between identified threats and implemented controls. This Skill structures that translation so every requirement traces back to a threat and maps to compliance frameworks. ## Core Features & Use Cases - Threat-to-Requirement Extraction: Convert STRIDE-categorized threats into functional security requirements with priorities derived from impact and likelihood. - User Story and Test Case Generation: Produce security user stories, acceptance criteria, and test specifications ready for sprint planning. - Compliance Mapping: Map requirements to PCI DSS, HIPAA, GDPR, and OWASP controls, and run gap analysis to find missing coverage. - Use Case: After a threat modeling session identifies spoofing and information disclosure threats against an API, use this Skill to generate prioritized requirements, acceptance criteria, and a compliance traceability matrix. ## Quick Start Use the security-requirement-extraction skill to convert my STRIDE threat model into prioritized security requirements with acceptance criteria and OWASP compliance mapping.

Frequently Asked Questions about security-requirement-extraction

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

FAQPage Schema
How do I convert a threat model into security requirements?

Feed STRIDE-categorized threats into the RequirementExtractor, which maps each threat category to security domains and generates requirements with acceptance criteria and test cases. Priority is calculated automatically from impact and likelihood scores.

How to write security user stories from requirements?

Use the SecurityUserStoryGenerator to turn each requirement into a story with role-specific framing, acceptance criteria, definition of done, and traceability links to threats and compliance controls. Stories can be grouped into epics per security domain.

Which compliance frameworks does the mapping support?

The ComplianceMapper includes control mappings for PCI DSS, HIPAA, GDPR, and OWASP ASVS, organized by security domain. It can generate a compliance traceability matrix and run gap analysis to identify missing or weakly covered controls.

How is requirement priority calculated from threats?

Priority is derived by multiplying numeric scores for impact and likelihood (LOW through CRITICAL). Combined scores of 12 or more yield CRITICAL priority, 6 or more HIGH, 3 or more MEDIUM, and lower scores LOW.

What are the limitations of STRIDE-based requirement extraction?

The extractor uses fixed pattern templates per STRIDE category, so generated requirements are generic starting points that need review and tailoring. It does not cover threats outside the six STRIDE categories or organization-specific control requirements.