Chuyển đến nội dung
Skillpedia
Bảo mật48k · #5983

threat-modeling

Skill này làm gì

Công cụ này giúp tìm và khắc phục các điểm yếu bảo mật trong hệ thống máy tính. Nó phân tích cách dữ liệu di chuyển và xác định nơi các cuộc tấn công có thể xảy ra, đồng thời đề xuất cách bảo vệ hệ thống.

Khi nào nên dùng

  • ✓Khi tạo một ứng dụng hoặc dịch vụ mới.
  • ✓Khi thực hiện thay đổi lớn đối với một hệ thống hiện có.
  • ✓Trước một cuộc kiểm toán bảo mật.

Liên kết skill

https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/threat-modeling/SKILL.md

Sao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.

Cách dùng

Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.

Tin nhắn có sẵn để dán

Hãy dùng skill này để giúp tôi: https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/threat-modeling/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Phân tích bảo mật của ứng dụng thương mại điện tử của tôi, tập trung vào cách người dùng đăng nhập và thanh toán.”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

Công cụ dùng một phương pháp gọi là STRIDE để xem xét các loại tấn công khác nhau (như giả danh người khác, thay đổi dữ liệu, v.v.). Nó vẽ luồng dữ liệu của hệ thống bạn, chỉ ra nơi các cuộc tấn công có thể xảy ra và cách ngăn chặn.

Nội dung kỹ thuật (SKILL.md gốc)

Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.

Threat Modeling

Identify and mitigate security threats during system design.

When to Use This Skill

Use this skill when:

  • Designing a new system, service, or feature
  • Making significant architectural changes to existing systems
  • Onboarding a new third-party integration or dependency
  • Preparing for security audits or compliance reviews
  • Responding to a security incident to improve defenses
  • Reviewing infrastructure changes that affect trust boundaries

Prerequisites

  • System architecture documentation or design diagrams
  • Access to development and operations teams for context
  • Understanding of the system's data classification (PII, PHI, financial, etc.)
  • OWASP Threat Dragon or Microsoft Threat Modeling Tool (optional but helpful)
  • Whiteboard or diagramming tool for collaborative sessions

STRIDE Methodology

Threat Description Property Violated Mitigation Examples
Spoofing Pretending to be another user or system Authentication MFA, mTLS, API key validation, certificate pinning
Tampering Modifying data in transit or at rest Integrity HMAC, digital signatures, checksums, immutable logs
Repudiation Denying having performed an action Non-repudiation Audit logging, digital signatures, tamper-evident logs
Information Disclosure Exposing data to unauthorized parties Confidentiality Encryption (TLS, AES), access controls, data masking
Denial of Service Making service unavailable Availability Rate limiting, autoscaling, CDN, circuit breakers
Elevation of Privilege Gaining unauthorized higher access Authorization RBAC, principle of least privilege, input validation

STRIDE Worksheet Template

# stride-worksheet.yaml - Fill out one per component/trust boundary crossing
component:
  name: "API Gateway"
  owner: "Platform Team"
  data_classification: "Confidential"
  trust_boundary: "External -> Internal"

threats:
  - id: T001
    category: Spoofing
    description: "Attacker forges JWT tokens to impersonate users"
    attack_vector: "Stolen signing key or weak algorithm (HS256 with guessable secret)"
    likelihood: Medium
    impact: Critical
    risk_score: 15  # likelihood(3) x impact(5)
    existing_controls:
      - "JWT validation on every request"
      - "RS256 algorithm with rotated keys"
    gaps:
      - "No token binding to device/IP"
    recommended_mitigations:
      - "Add token binding claims"
      - "Implement short-lived tokens (15 min) with refresh"
      - "Monitor for token reuse from different IPs"
    status: "Mitigated (partial)"
    owner: "Auth Team"

  - id: T002
    category: Tampering
    description: "Man-in-the-middle modifies API requests"
    attack_vector: "Compromised network between client and gateway"
    likelihood: Low
    impact: High
    risk_score: 8
    existing_controls:
      - "TLS 1.3 enforced"
      - "HSTS enabled"
    gaps: []
    recommended_mitigations:
      - "Certificate pinning for mobile clients"
    status: "Mitigated"
    owner: "Platform Team"

  - id: T003
    category: Information Disclosure
    description: "Verbose error messages leak internal details"
    attack_vector: "Triggering errors returns stack traces, internal IPs, DB schema"
    likelihood: High
    impact: Medium
    risk_score: 12
    existing_controls:
      - "Generic error pages in production"
    gaps:
      - "Some microservices return raw exceptions"
    recommended_mitigations:
      - "Centralized error handling middleware"
      - "Error response schema validation"
    status: "Open"
    owner: "Backend Team"

  - id: T004
    category: Denial of Service
    description: "API rate limiting bypass through distributed requests"
    attack_vector: "Botnet sending requests below per-IP threshold"
    likelihood: Medium
    impact: High
    risk_score: 12
    existing_controls:
      - "Per-IP rate limiting at WAF"
    gaps:
      - "No aggregate rate limiting"
      - "No bot detection"
    recommended_mitigations:
      - "Add aggregate rate limiting per endpoint"
      - "Deploy bot detection (Cloudflare Bot Management)"
      - "Implement circuit breaker pattern"
    status: "Open"
    owner: "Platform Team"

  - id: T005
    category: Elevation of Privilege
    description: "IDOR allows accessing other users' data"
    attack_vector: "Manipulating resource IDs in API calls"
    likelihood: Medium

…
Câu hỏi thường gặp

STRIDE là gì?

STRIDE là từ viết tắt của sáu nhóm mối đe dọa: Spoofing (giả mạo), Tampering (sửa đổi), Repudiation (chối bỏ), Information Disclosure (lộ thông tin), Denial of Service (từ chối dịch vụ) và Elevation of Privilege (leo thang đặc quyền).

Tôi có cần là chuyên gia bảo mật để dùng công cụ này không?

Không cần. Công cụ được thiết kế để bất kỳ ai phát triển hoặc quản lý hệ thống đều dùng được, kể cả khi không có kiến thức bảo mật sâu.

“Trust boundaries” (ranh giới tin cậy) là gì?

Đây là những điểm mà mức độ tin cậy thay đổi, như giữa internet và máy chủ của bạn, hoặc giữa các phần khác nhau của hệ thống. Cần phân tích bảo mật kỹ tại các điểm này.

Chi tiết

Mô tả gốc của tác giả

Conduct threat modeling using STRIDE methodology. Identify threats, assess risks, and design security controls. Use when designing secure systems or assessing application security.

repo: sickn33/agentic-awesome-skills

Độ phổ biến

Sao GitHub
48k
Vị trí xếp hạng
#5983
Giấy phép
MIT
Cập nhật
15/10/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự