Loading source
Pulling the file list, source metadata, and syntax-aware rendering for this listing.
Source from repo
Extract and formalize security requirements from specs and architecture docs into actionable controls.
Files
Skill
Size
Entrypoint
Format
Open file
Syntax-highlighted preview of this file as included in the skill package.
SKILL.md
1---2name: security-requirement-extraction3description: Derive security requirements from threat models and business context. Use when translating threats into actionable requirements, creating security user stories, or building security test cases.4---56# Security Requirement Extraction78Transform threat analysis into actionable security requirements.910## When to Use This Skill1112- Converting threat models to requirements13- Writing security user stories14- Creating security test cases15- Building security acceptance criteria16- Compliance requirement mapping17- Security architecture documentation1819## Core Concepts2021### 1. Requirement Categories2223```24Business Requirements → Security Requirements → Technical Controls25↓ ↓ ↓26"Protect customer "Encrypt PII at rest" "AES-256 encryption27data" with KMS key rotation"28```2930### 2. Security Requirement Types3132| Type | Focus | Example |33| ------------------ | ----------------------- | ------------------------------------- |34| **Functional** | What system must do | "System must authenticate users" |35| **Non-functional** | How system must perform | "Authentication must complete in <2s" |36| **Constraint** | Limitations imposed | "Must use approved crypto libraries" |3738### 3. Requirement Attributes3940| Attribute | Description |41| ---------------- | --------------------------- |42| **Traceability** | Links to threats/compliance |43| **Testability** | Can be verified |44| **Priority** | Business importance |45| **Risk Level** | Impact if not met |4647## Templates and detailed worked examples4849Full template library lives in `references/details.md`. Read that file when you need concrete templates for this skill.5051## Best Practices5253### Do's5455- **Trace to threats** - Every requirement should map to threats56- **Be specific** - Vague requirements can't be tested57- **Include acceptance criteria** - Define "done"58- **Consider compliance** - Map to frameworks early59- **Review regularly** - Requirements evolve with threats6061### Don'ts6263- **Don't be generic** - "Be secure" is not a requirement64- **Don't skip rationale** - Explain why it matters65- **Don't ignore priorities** - Not all requirements are equal66- **Don't forget testability** - If you can't test it, you can't verify it67- **Don't work in isolation** - Involve stakeholders68