security-requirement-extraction – skill Bảo mật cho agent AI
Suy ra yêu cầu bảo mật từ mô hình mối đe dọa và bối cảnh nghiệp vụ. Dùng khi chuyển mối đe dọa thành yêu cầu cụ thể, tạo user story bảo mật hoặc xây dựng test case bảo mật.
Cài skill security-requirement-extraction bằng một lệnh
Chọn công cụ bạn đang dùng, copy lệnh và dán vào terminal. Skill sẽ nằm trong thư mục skills của công cụ đó và sẵn sàng dùng ở phiên làm việc tiếp theo.
Claude Code
mkdir -p ~/.claude/skills && curl -fsSL https://skill.dn1nguoi.com/z/security-requirement-extraction-ee337.tgz | tar xz -C ~/.claude/skills
Gọi trong Claude Code: /security-requirement-extraction – rồi mô tả công việc bạn muốn làm.
Codex
mkdir -p ~/.codex/skills && curl -fsSL https://skill.dn1nguoi.com/z/security-requirement-extraction-ee337.tgz | tar xz -C ~/.codex/skills
Gọi trong Codex: $security-requirement-extraction – rồi mô tả công việc bạn muốn làm.
Hermes Agent
mkdir -p ~/.hermes/skills && curl -fsSL https://skill.dn1nguoi.com/z/security-requirement-extraction-ee337.tgz | tar xz -C ~/.hermes/skills
Gọi trong Hermes Agent: /security-requirement-extraction – rồi mô tả công việc bạn muốn làm.
DeepSeek
mkdir -p ~/.deepcode/skills && curl -fsSL https://skill.dn1nguoi.com/z/security-requirement-extraction-ee337.tgz | tar xz -C ~/.deepcode/skills
Gọi trong DeepSeek: /security-requirement-extraction – rồi mô tả công việc bạn muốn làm.
Nội dung SKILL.md
Nội dung SKILL.md gốc bằng tiếng Anh.
Security Requirement Extraction
Transform threat analysis into actionable security requirements.
When to Use This Skill
- Converting threat models to requirements
- Writing security user stories
- Creating security test cases
- Building security acceptance criteria
- Compliance requirement mapping
- Security architecture documentation
Core Concepts
1. Requirement Categories
Business Requirements → Security Requirements → Technical Controls
↓ ↓ ↓
"Protect customer "Encrypt PII at rest" "AES-256 encryption
data" with KMS key rotation"2. Security Requirement Types
| Type | Focus | Example |
| ------------------ | ----------------------- | ------------------------------------- |
| Functional | What system must do | "System must authenticate users" |
| Non-functional | How system must perform | "Authentication must complete in <2s" |
| Constraint | Limitations imposed | "Must use approved crypto libraries" |
3. Requirement Attributes
| Attribute | Description |
| ---------------- | --------------------------- |
| Traceability | Links to threats/compliance |
| Testability | Can be verified |
| Priority | Business importance |
| Risk Level | Impact if not met |
Templates and detailed worked examples
Full template library lives in references/details.md. Read that file when you need concrete templates for this skill.
Best Practices
Do's
- Trace to threats - Every requirement should map to threats
- Be specific - Vague requirements can't be tested
- Include acceptance criteria - Define "done"
- Consider compliance - Map to frameworks early
- Review regularly - Requirements evolve with threats
Don'ts
- Don't be generic - "Be secure" is not a requirement
- Don't skip rationale - Explain why it matters
- Don't ignore priorities - Not all requirements are equal
- Don't forget testability - If you can't test it, you can't verify it
- Don't work in isolation - Involve stakeholders
Skill liên quan
- staging-subdomain-hunt – Tìm môi trường staging qua crt.sh khi production được bảo vệ bằng WAF.
- subdomain-enumeration – Lập bản đồ subdomain qua crt.sh và subfinder khi bắt đầu giai đoạn recon.
- scholar-evaluation – Cung cấp đánh giá phát triển ưu tiên định tính, có thể truy vết bằng chứng đối với các…
- subdomain-takeover-hunt – Phát hiện và xác minh lỗ hổng chiếm quyền subdomain qua CNAME treo trỏ tới dịch vụ chưa…
- cyber-audit – Chạy kiểm tra phơi nhiễm chỉ đọc đối với các cảnh báo bảo mật và ghi báo cáo kiểm toán…
- signed-audit-trails-recipe – Hướng dẫn từng bước (cookbook) để thiết lập nhật ký kiểm toán có ký mật mã cho các lệnh…
- supply-chain-attack-recon – Trinh sát bên ngoài bề mặt tấn công chuỗi cung ứng phần mềm — ứng viên chiếm dụng…
- darkmoon-pentest – Khởi động, theo dõi và phân loại các phiên pentest AI tự động đã được ủy quyền trên…