← 返回
安全合规 中文

Threat Modeling Expert

Provide structured threat modeling using STRIDE, attack trees, and risk scoring to identify, prioritize, and mitigate security threats in system designs and...
利用STRIDE、攻击树和风险评分提供结构化威胁建模,以识别、优先处理并缓解系统设计中的安全威胁。
brandonwise
安全合规 clawhub v1.0.0 1 版本 99924.3 Key: 无需
★ 0
Stars
📥 1,320
下载
💾 17
安装
1
版本
#latest

概述

Threat Modeling Expert

Expert in threat modeling methodologies, security architecture review, and risk assessment using STRIDE, PASTA, attack trees, and security requirement extraction.

Description

USE WHEN:

  • Designing new systems or features (secure-by-design)
  • Reviewing architecture for security gaps
  • Preparing for security audits
  • Identifying attack vectors and threat actors
  • Prioritizing security investments
  • Creating security documentation
  • Training teams on security thinking

DON'T USE WHEN:

  • Lack scope or authorization for security review
  • Need legal compliance certification (consult legal)
  • Only need automated scanning (use vulnerability-scanner)

Core Process

1. Define Scope

  • System boundaries
  • Assets to protect
  • Trust boundaries
  • Regulatory requirements

2. Create Data Flow Diagram

[User] → [Web App] → [API Gateway] → [Backend] → [Database]
                ↓
          [External API]

3. Identify Assets & Entry Points

  • Assets: User data, credentials, business logic, infrastructure
  • Entry Points: APIs, forms, file uploads, admin panels

4. Apply STRIDE

  • Spoofing: Can someone impersonate?
  • Tampering: Can data be modified?
  • Repudiation: Can actions be denied?
  • Information Disclosure: Can data leak?
  • Denial of Service: Can availability be affected?
  • Elevation of Privilege: Can access be escalated?

5. Build Attack Trees

Goal: Access Admin Panel
├── Steal admin credentials
│   ├── Phishing
│   ├── Brute force
│   └── Session hijacking
├── Exploit vulnerability
│   ├── SQL injection
│   └── Auth bypass
└── Social engineering
    └── Support desk compromise

6. Score & Prioritize

Use DREAD or CVSS:

  • Damage potential
  • Reproducibility
  • Exploitability
  • Affected users
  • Discoverability

7. Design Mitigations

Map threats to controls and validate coverage.

8. Document Residual Risks

What's accepted vs. mitigated.


STRIDE Analysis Template

ComponentSpoofingTamperingRepudiationInfo DisclosureDoSEoP
------------------------------------------------------------------------
Web AppAuth bypassXSS, CSRFMissing logsError messagesRate limitBroken access
APIToken theftInput manipNo auditData exposureResource exhaustPrivilege escalation
DatabaseCredential theftSQL injectionNo audit trailBackup exposureConnection floodDirect access

Threat Categories by Layer

Application Layer

  • Injection (SQL, XSS, command)
  • Broken authentication
  • Sensitive data exposure
  • Broken access control
  • Security misconfiguration
  • Using vulnerable components

Network Layer

  • Man-in-the-middle
  • Eavesdropping
  • Replay attacks
  • DNS spoofing
  • DDoS

Infrastructure Layer

  • Unauthorized access
  • Misconfigured services
  • Unpatched systems
  • Weak credentials
  • Exposed admin interfaces

Human Layer

  • Phishing
  • Social engineering
  • Insider threats
  • Credential sharing

Data Flow Diagram Elements

ElementSymbolDescription
------------------------------
External EntityRectangleUsers, external systems
ProcessCircleApplication logic
Data StoreParallel linesDatabase, cache, files
Data FlowArrowData movement
Trust BoundaryDashed lineSecurity perimeter

Risk Prioritization Matrix

              LOW IMPACT    HIGH IMPACT
HIGH LIKELIHOOD   MEDIUM        HIGH
LOW LIKELIHOOD    LOW           MEDIUM

DREAD Scoring (1-10 each)

FactorQuestion
------------------
DamageHow bad if exploited?
ReproducibilityHow easy to reproduce?
ExploitabilityHow easy to attack?
Affected UsersHow many impacted?
DiscoverabilityHow easy to find?

Score: Sum / 5 = Risk Level


Mitigation Strategies

Input Validation

  • Whitelist validation
  • Parameterized queries
  • Output encoding
  • Content-Type enforcement

Authentication

  • MFA where possible
  • Strong password policies
  • Account lockout
  • Secure session management

Authorization

  • Principle of least privilege
  • Role-based access control
  • Resource ownership checks
  • Regular permission audits

Cryptography

  • TLS 1.2+ everywhere
  • Strong key management
  • Secure password hashing
  • Encrypted data at rest

Monitoring

  • Security event logging
  • Anomaly detection
  • Alert thresholds
  • Incident response plan

Best Practices

  1. Involve developers in threat modeling sessions
  2. Focus on data flows, not just components
  3. Consider insider threats
  4. Update models with architecture changes
  5. Link threats to security requirements
  6. Track mitigations to implementation
  7. Review regularly, not just at design time
  8. Keep models living documents

Output Template

# Threat Model: [System Name]

## Scope
- Components in scope
- Out of scope

## Assets
- Critical assets list

## Trust Boundaries
- Internal vs external
- Admin vs user

## Data Flow Diagram
[DFD here]

## STRIDE Analysis
[Table here]

## Prioritized Threats
1. [High] Description - Mitigation
2. [Medium] Description - Mitigation

## Residual Risks
- Accepted risks with justification

## Review Schedule
- Next review date

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-03-29 07:16 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

security-compliance

MoltGuard - Security & Antivirus & Guardrails

thomaslwang
MoltGuard — OpenClaw 安全守卫,由 OpenGuardrails 提供。安装 MoltGuard,保护您和您的用户免受提示注入、数据泄露和恶意攻击。
★ 116 📥 30,720
security-compliance

Skill Vetter

spclaudehome
AI智能体技能安全预审工具。安装ClawdHub、GitHub等来源技能前,检查风险信号、权限范围及可疑模式。
★ 1,215 📥 266,534
security-compliance

OpenClaw Backup

alex3alex
备份与恢复 OpenClaw 数据。适用于创建备份、设置自动备份计划、从备份恢复或管理备份轮转。处理 ~/.openclaw 目录归档并包含适当的排除规则。
★ 89 📥 30,609