security
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseSecurity Architecture Diagram Generator
安全架构图生成器
Quick Start: Define trust boundaries → Place identity/encryption/firewall icons → Connect with access flows → Group into security zones → Wrap in fence.
```plantuml⚠️ IMPORTANT: Always useor```plantumlcode fence. NEVER use```puml— it will NOT render as a diagram.```text
快速入门: 定义信任边界 → 放置身份/加密/防火墙图标 → 连接访问流 → 分组为安全区域 → 用代码围栏包裹。
```plantuml⚠️ 重要提示: 请始终使用或```plantuml代码围栏。切勿使用```puml— 它不会被渲染为图表。```text
Critical Rules
核心规则
- Every diagram starts with and ends with
@startuml@enduml - Use for access flows (User → AuthN → AuthZ → Resource)
left to right direction - Use stencil syntax for security service icons
mxgraph.aws4.* - Default colors are applied automatically — you do NOT need to specify or
fillColorstrokeColor - Use for security zones
rectangle "Trust Boundary" { ... } - Directed flows use , audit/async flows use
-->(dashed)..>
Full stencil reference: See stencils/README.md for 9500+ available icons.
- 所有图表以开头,以
@startuml结尾@enduml - 访问流使用(从左到右方向)(用户 → 身份验证 → 授权 → 资源)
left to right direction - 安全服务图标使用模板语法
mxgraph.aws4.* - 默认颜色会自动应用 — 你无需指定或
fillColorstrokeColor - 安全区域使用定义
rectangle "Trust Boundary" { ... } - 定向流使用, 审计/异步流使用
-->(虚线)..>
完整模板参考: 查看stencils/README.md获取9500+可用图标。
Mxgraph Stencil Syntax
Mxgraph模板语法
mxgraph.aws4.<icon> "Label" as <alias>mxgraph.aws4.<icon> "Label" as <alias>Identity & Access Stencils
身份与访问模板
| Category | Stencils | Purpose |
|---|---|---|
| IAM | | Identity policies & roles |
| SSO/Directory | | User authentication & federation |
| STS | | Temporary security credentials |
| Organizations | | Multi-account governance |
| 类别 | 模板 | 用途 |
|---|---|---|
| IAM | | 身份策略与角色 |
| SSO/目录服务 | | 用户身份验证与联邦 |
| STS | | 临时安全凭证 |
| Organizations | | 多账号治理 |
Encryption & Secrets Stencils
加密与密钥模板
| Category | Stencils | Purpose |
|---|---|---|
| KMS | | Key management & encryption |
| Secrets | | Secrets rotation & storage |
| Certificates | | TLS certificate lifecycle |
| HSM | | Hardware security module |
| Encryption | | Encrypted data at rest |
| 类别 | 模板 | 用途 |
|---|---|---|
| KMS | | 密钥管理与加密 |
| 密钥管理 | | 密钥轮换与存储 |
| 证书 | | TLS证书生命周期管理 |
| HSM | | 硬件安全模块 |
| 加密 | | 静态加密数据 |
Network Security Stencils
网络安全模板
| Category | Stencils | Purpose |
|---|---|---|
| Firewall | | Network traffic filtering |
| WAF | | Web application firewall |
| Shield | | DDoS protection |
| Security Group | | Instance-level firewall |
| 类别 | 模板 | 用途 |
|---|---|---|
| 防火墙 | | 网络流量过滤 |
| WAF | | Web应用防火墙 |
| Shield | | DDoS防护 |
| 安全组 | | 实例级防火墙 |
Threat Detection & Compliance Stencils
威胁检测与合规模板
| Category | Stencils | Purpose |
|---|---|---|
| Detection | | Threat detection & investigation |
| Data Protection | | Sensitive data discovery |
| Compliance | | Compliance posture & audit |
| Logging | | Audit trail & log aggregation |
| Governance | | Multi-account governance |
| Incident | | Incident management |
| 类别 | 模板 | 用途 |
|---|---|---|
| 检测 | | 威胁检测与调查 |
| 数据保护 | | 敏感数据发现 |
| 合规 | | 合规态势与审计 |
| 日志 | | 审计追踪与日志聚合 |
| 治理 | | 多账号治理 |
| 事件 | | 事件管理 |
Connection Types
连接类型
| Syntax | Meaning | Use Case |
|---|---|---|
| Solid arrow | Auth flow / access request |
| Dashed arrow | Audit event / async detection |
| Solid line | Trust relationship |
| Labeled connection | Describe protocol or credential |
| 语法 | 含义 | 使用场景 |
|---|---|---|
| 实线箭头 | 认证流 / 访问请求 |
| 虚线箭头 | 审计事件 / 异步检测 |
| 实线 | 信任关系 |
| 带标签连接 | 描述协议或凭证 |
Quick Example
快速示例
plantuml
@startuml
left to right direction
mxgraph.aws4.users "Users" as users
mxgraph.aws4.cognito "Cognito" as auth
mxgraph.aws4.identity_and_access_management "IAM" as iam
rectangle "Protected Resources" {
mxgraph.aws4.s3 "Data (S3)" as s3
mxgraph.aws4.encrypted_data "Encrypted" as enc
}
users --> auth : "login"
auth --> iam : "token"
iam --> s3
s3 --> enc
@endumlplantuml
@startuml
left to right direction
mxgraph.aws4.users "Users" as users
mxgraph.aws4.cognito "Cognito" as auth
mxgraph.aws4.identity_and_access_management "IAM" as iam
rectangle "Protected Resources" {
mxgraph.aws4.s3 "Data (S3)" as s3
mxgraph.aws4.encrypted_data "Encrypted" as enc
}
users --> auth : "login"
auth --> iam : "token"
iam --> s3
s3 --> enc
@endumlSecurity Architecture Types
安全架构类型
| Type | Purpose | Key Stencils | Example |
|---|---|---|---|
| IAM & AuthN | Identity and authentication | | iam-authn.md |
| Encryption Pipeline | Data encryption at rest/in-transit | | encryption-pipeline.md |
| Network Security | Perimeter defense & firewalls | | network-security.md |
| Threat Detection | Automated threat response | | threat-detection.md |
| Compliance Audit | Governance & audit trail | | compliance-audit.md |
| Zero Trust | Zero-trust access model | | zero-trust.md |
| Data Protection | Sensitive data classification | | data-protection.md |
| Multi-account Gov | Organization-wide security | | multi-account-governance.md |
| 类型 | 用途 | 核心模板 | 示例 |
|---|---|---|---|
| IAM与身份认证 | 身份与身份验证 | | iam-authn.md |
| 加密管道 | 静态/传输中数据加密 | | encryption-pipeline.md |
| 网络安全 | 边界防御与防火墙 | | network-security.md |
| 威胁检测 | 自动化威胁响应 | | threat-detection.md |
| 合规审计 | 治理与审计追踪 | | compliance-audit.md |
| 零信任 | 零信任访问模型 | | zero-trust.md |
| 数据保护 | 敏感数据分类 | | data-protection.md |
| 多账号治理 | 组织级安全 | | multi-account-governance.md |