mcpField
S
security

security

github.com/markdown-viewerSecurity3.4k2.9k installsUpdated 3w ago
Repository

About security

security is a skill for generating security architecture diagrams, for users mapping trust boundaries, authentication, and access flows. It organizes diagrams into security zones and uses AWS security service stencils.

Key features

  1. 01AWS security service stencils
  2. 02Identity and access flow diagrams
  3. 03Trust boundaries and security zones
  4. 04Coverage of multiple security architecture types

Use cases

  1. 01Diagram IAM and authentication flows
  2. 02Show encryption at rest and in transit
  3. 03Plan network defenses and firewalls
  4. 04Map threat detection or compliance audits

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/markdown-viewer/skills --skill security

After installing, type/securityin Claude Code to confirm it loaded.

Bundled files

References and scripts installed along with SKILL.md.

examples/
compliance-audit.md
data-protection.md
encryption-pipeline.md
iam-authn.md
multi-account-governance.md
network-security.md
threat-detection.md
zero-trust.md

Details

From the project README

Security Architecture Diagram Generator

Quick Start: Define trust boundaries → Place identity/encryption/firewall icons → Connect with access flows → Group into security zones → Wrap in ```plantuml fence.

⚠️ IMPORTANT: Always use ```plantuml or ```puml code fence. NEVER use ```text — it will NOT render as a diagram.

Critical Rules

  • Every diagram starts with @startuml and ends with @enduml
  • Use left to right direction for access flows (User → AuthN → AuthZ → Resource)
  • Use mxgraph.aws4.* stencil syntax for security service icons
  • Default colors are applied automatically — you do NOT need to specify fillColor or strokeColor
  • Use rectangle "Trust Boundary" { ... } for security zones
  • Directed flows use -->, audit/async flows use ..> (dashed)

Full stencil reference: See stencils/README.md for 9500+ available icons.

Mxgraph Stencil Syntax

mxgraph.aws4.<icon> "Label" as <alias>
Identity & Access Stencils
CategoryStencilsPurpose
IAMidentity_and_access_management, identity_access_management_iam_roles_anywhereIdentity policies & roles
SSO/Directorycognito, ad_connector, directory_service, cloud_directoryUser authentication & federation
STSsts, sts_alternateTemporary security credentials
Organizationsorganizations, organizations_account, organizations_organizational_unitMulti-account governance
Encryption & Secrets Stencils
CategoryStencilsPurpose
KMSkey_management_service, key_management_service_external_key_storeKey management & encryption
Secretssecrets_managerSecrets rotation & storage
Certificatescertificate_manager, private_certificate_authorityTLS certificate lifecycle
HSMcloudhsmHardware security module
Encryptionencrypted_dataEncrypted data at rest
Network Security Stencils
CategoryStencilsPurpose
Firewallnetwork_firewall, network_firewall_endpoints, firewall_managerNetwork traffic filtering
WAFgeneric_firewallWeb application firewall
Shieldshield, shield_shield_advanced, shield2DDoS protection
Security Groupsecurity_group, group_security_groupInstance-level firewall
Threat Detection & Compliance Stencils
CategoryStencilsPurpose
Detectionguardduty, detective, inspectorThreat detection & investigation
Data ProtectionmacieSensitive data discovery
Compliancesecurity_hub, security_hub_finding, audit_manager, configCompliance posture & audit
Loggingcloudtrail, cloudtrail_cloudtrail_lake, security_lakeAudit trail & log aggregation
Governancecontrol_tower, organizationsMulti-account governance
Incidentsecurity_incident_responseIncident management
Connection Types
SyntaxMeaningUse Case
A --> BSolid arrowAuth flow / access request
A ..> BDashed arrowAudit event / async detection
A -- BSolid lineTrust relationship
A --> B : "label"Labeled connectionDescribe protocol or credential
Quick Example
@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

Security Architecture Types

TypePurposeKey StencilsExample
IAM & AuthNIdentity and authenticationcognito, identity_and_access_management, stsiam-authn.md
Encryption PipelineData encryption at rest/in-transitkey_management_service, certificate_manager, secrets_managerencryption-pipeline.md
Network SecurityPerimeter defense & firewallsnetwork_firewall, shield, security_groupnetwork-security.md
Threat DetectionAutomated threat responseguardduty, detective, security_hubthreat-detection.md
Compliance AuditGovernance & audit trailconfig, audit_manager, cloudtrail, security_lakecompliance-audit.md
Zero TrustZero-trust access modelcognito, identity_and_access_management, network_firewallzero-trust.md
Data ProtectionSensitive data classificationmacie, encrypted_data, key_management_servicedata-protection.md
Multi-account GovOrganization-wide securityorganizations, control_tower, security_hubmulti-account-governance.md

Comments

Markdown supported