SKILL.md
唯讀
名稱
security
描述
使用 PlantUML 語法繪製資安架構圖,整合身分驗證、加密、防火牆與合規性圖例圖示(stencil icons)。非常適合用於繪製 IAM 流程、零信任模型、加密處理管道及威脅偵測架構。
資安架構圖生成器
快速上手: 定義信任邊界 → 放置身分驗證/加密/防火牆圖示 → 以存取流程進行連接 → 分組劃入安全區域 → 用 ```plantuml 代碼圍欄包裹。
⚠️ 重要提示: 請務必使用
```plantuml或```puml代碼圍欄。切勿使用```text,否則將無法渲染為圖表。
核心規則
- 每張圖表都必須以
@startuml開頭,並以@enduml結尾 - 存取流程請使用
left to right direction(使用者 → 身分驗證 AuthN → 授權 AuthZ → 資源) - 資安服務圖示請使用
mxgraph.aws4.*圖例(stencil)語法 - 系統會自動套用預設色彩 — 您不需要手動指定
fillColor或strokeColor - 安全區域請使用
rectangle "Trust Boundary" { ... }來定義 - 定向流程使用
-->,審計/非同步流程使用..>(虛線)
完整圖例參考: 查閱 stencils/README.md 獲取 9500+ 個可用圖示。
Mxgraph 圖例語法
mxgraph.aws4.<icon> "Label" as <alias>
身分識別與存取控制圖例
| 分類 | 圖例(Stencils) | 用途 |
|---|---|---|
| IAM | identity_and_access_management, identity_access_management_iam_roles_anywhere |
身分策略與角色 |
| SSO/Directory | cognito, ad_connector, directory_service, cloud_directory |
使用者身分驗證與聯邦身分整合 |
| STS | sts, sts_alternate |
臨時安全憑證 |
| Organizations | organizations, organizations_account, organizations_organizational_unit |
多帳戶治理 |
加密與金鑰管理圖例
| 分類 | 圖例(Stencils) | 用途 |
|---|---|---|
| KMS | key_management_service, key_management_service_external_key_store |
金鑰管理與加密 |
| Secrets | secrets_manager |
機密/憑據輪換與儲存 |
| Certificates | certificate_manager, private_certificate_authority |
TLS 憑證生命週期管理 |
| HSM | cloudhsm |
硬體安全模組 |
| Encryption | encrypted_data |
靜態加密資料 |
網路安全圖例
| 分類 | 圖例(Stencils) | 用途 |
|---|---|---|
| Firewall | network_firewall, network_firewall_endpoints, firewall_manager |
網路流量過濾 |
| WAF | generic_firewall |
Web 應用程式防火牆 |
| Shield | shield, shield_shield_advanced, shield2 |
DDoS 防護 |
| Security Group | security_group, group_security_group |
執行個體層級防火牆 |
威脅偵測與合規性圖例
| 分類 | 圖例(Stencils) | 用途 |
|---|---|---|
| Detection | guardduty, detective, inspector |
威脅偵測與調查 |
| Data Protection | macie |
敏感資料探索與識別 |
| Compliance | security_hub, security_hub_finding, audit_manager, config |
合規狀態與審計 |
| Logging | cloudtrail, cloudtrail_cloudtrail_lake, security_lake |
審計軌跡與日誌彙整 |
| Governance | control_tower, organizations |
多帳戶治理 |
| Incident | security_incident_response |
安全事件管理 |
連線類型
| 語法 | 意義 | 使用場景 |
|---|---|---|
A --> B |
實線箭頭 | 驗證流程 / 存取請求 |
A ..> B |
虛線箭頭 | 審計事件 / 非同步偵測 |
A -- B |
實線 | 信任關係 |
A --> B : "label" |
具標籤連線 | 描述通訊協定或憑證 |
快速範例
@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
@enduml
資安架構類型
| 類型 | 用途 | 核心圖例 | 範例 |
|---|---|---|---|
| IAM & AuthN | 身分識別與身分驗證 | cognito, identity_and_access_management, sts |
iam-authn.md |
| Encryption Pipeline | 靜態/傳輸中資料加密 | key_management_service, certificate_manager, secrets_manager |
encryption-pipeline.md |
| Network Security | 邊界防禦與防火牆 | network_firewall, shield, security_group |
network-security.md |
| Threat Detection | 自動化威脅回應 | guardduty, detective, security_hub |
threat-detection.md |
| Compliance Audit | 治理與審計軌跡 | config, audit_manager, cloudtrail, security_lake |
compliance-audit.md |
| Zero Trust | 零信任存取模型 | cognito, identity_and_access_management, network_firewall |
zero-trust.md |
| Data Protection | 敏感資料分類 | macie, encrypted_data, key_management_service |
data-protection.md |
| Multi-account Gov | 全組織層級安全治理 | organizations, control_tower, security_hub |
multi-account-governance.md |






