技能 security-requirement-extraction
🛡️

security-requirement-extraction

安全 🌐 網路存取⚙️ 外部命令

從威脅生成安全需求

安全威脅很難轉化為明確的需求。此技能將威脅轉換為可測試的需求、使用者故事和合規映射。在將威脅模型轉化為可操作的安全控制時使用。

支援: Claude Codex Code(CC)
📊 69 充足
1

下載技能 ZIP

2

在 Claude 中上傳

前往 設定 → 功能 → 技能 → 上傳技能

3

開啟並開始使用

測試它

正在使用「security-requirement-extraction」。 Create requirements from a spoofing threat targeting login

預期結果:

  • SR-001: Authenticate users before access to login
  • Acceptance criteria: MFA for sensitive operations, authentication failures logged
  • Test cases: Unauthenticated access denied, invalid credentials rejected, tokens cannot be forged

正在使用「security-requirement-extraction」。 Generate requirements for data tampering threats

預期結果:

  • SR-005: Validate all input to data store
  • Acceptance criteria: Data integrity verified, modification attempts trigger alerts
  • Test cases: Invalid input rejected, tampered data detected and rejected

安全審計

安全
v4 • 1/17/2026

Pure documentation skill containing templates and guidance for security requirement extraction. Python code examples in SKILL.md are documentation templates only, not executable code. All 47 static findings are false positives: URLs are documentation links, backticks are markdown code blocks, and security terminology (C2, crypto, reconnaissance, SAM) appears in legitimate compliance and threat modeling context. No actual code execution, network calls, or credential access occurs.

2
已掃描檔案
853
分析行數
2
發現項
4
審計總數
審計者: claude 查看審計歷史 →

品質評分

38
架構
100
可維護性
85
內容
21
社群
100
安全
87
規範符合性

你能建構什麼

威脅到需求的映射

將 STRIDE 威脅列表轉換為帶有理據的優先安全需求。

安全使用者故事

為安全待辦事項規劃生成使用者故事和驗收標準。

控制可追溯性

將需求映射到 PCI DSS、HIPAA、GDPR 和 OWASP 控制。

試試這些提示

基本提取
Convert this threat into security requirements with acceptance criteria and test cases: [threat details].
STRIDE 批次處理
Extract security requirements for these STRIDE threats and group by domain: [list of threats].
使用者故事重點
Generate security user stories with priority and acceptance criteria for these threats: [threats].
合規映射
Map these requirements to PCI DSS and OWASP controls, and note gaps: [requirements].

最佳實務

  • 提供清晰的威脅描述,包含影響和可能性評級
  • 將每個需求追溯到特定的威脅標識符
  • 包含可測量的驗收標準和可測試的條件

避免

  • 使用不可測試的通用需求
  • 省略需求的理由或優先級
  • 在沒有威脅可追溯性的情況下映射到合規

常見問題

這是否與 Claude、Codex 和 Claude Code 相容?
是的。它提供可在這些平台上使用的文字模板和指導。
生成的需求有什麼限制?
它們取決於所提供輸入威脅和分類的品質。
我可以將其與我的工具整合嗎?
是的。將輸出匯出到您的待辦事項或測試管理系統。
此技能是否存取或儲存敏感資料?
不。這是靜態指導,不執行任何程式碼或存取資料。
如果輸出看起來太通用怎麼辦?
新增更多上下文,例如資產、參與者和業務影響詳情。
這與威脅建模工具有何不同?
它將威脅轉化為需求,但不會建立威脅模型本身。