Command Palette

Search for a command to run...

UnylyUnyly
Back to skills

security-architecture

FreeNo executable scriptsNot checked

Security architecture documentation requirements including threat models, security controls, and defense-in-depth patterns

Hack23by Hack23★ 15 GitHub stars

About this skill

Security Architecture Skill

Purpose

This skill defines requirements for security architecture documentation following Hack23 ISMS policies. It ensures that security controls, threat models, and defense-in-depth strategies are properly documented and maintained for all systems.

Rules

Required Documentation

MUST CREATE:

  • SECURITY_ARCHITECTURE.md - Current security controls and architecture
  • FUTURE_SECURITY_ARCHITECTURE.md - Planned security improvements
  • THREAT_MODEL.md - Threat analysis and mitigations
  • Security section in main README.md
  • Security policy (.github/SECURITY.md)

SECURITY_ARCHITECTURE.md Requirements

MUST INCLUDE:

  1. Overview - System security posture summary
  2. Security Controls - Implemented controls mapped to frameworks (ISO 27001, NIST CSF, CIS Controls)
  3. Authentication & Authorization - Identity management approach
  4. Data Protection - Encryption at rest and in transit
  5. Network Security - Firewall rules, network segmentation, DMZ architecture
  6. Monitoring & Logging - Security event logging and SIEM integration
  7. Incident Response - Security incident handling procedures
  8. Compliance Mapping - How architecture meets compliance requirements
  9. Security Diagrams - C4 diagrams showing trust boundaries and security zones

MUST NOT:

  • Expose sensitive security details (specific firewall rules, vulnerability details)
  • Include credentials or secrets
  • Document security through obscurity approaches

FUTURE_SECURITY_ARCHITECTURE.md Requirements

MUST INCLUDE:

  1. Security Roadmap - Planned security enhancements with timeline
  2. Gap Analysis - Current vs. desired state
  3. Security Initiatives - Planned projects to improve security
  4. Technology Evolution - Future security technologies to adopt
  5. Risk Mitigation Plans - How future changes will reduce risks
  6. Compliance Improvements - Plans to meet future compliance requirements

THREAT_MODEL.md Requirements

MUST INCLUDE:

  1. System Overview - What is being protected
  2. Assets - Critical data and systems
  3. Threat Actors - Who might attack and their motivations
  4. Attack Vectors - How attacks might occur
  5. Threats - Specific threats using STRIDE or similar methodology:
    • Spoofing
    • Tampering
    • Repudiation
    • Information Disclosure
    • Denial of Service
    • Elevation of Privilege
  6. Risk Assessment - Likelihood and impact of each threat
  7. Mitigations - Controls to prevent or reduce each threat
  8. Residual Risks - Accepted risks after mitigations

Threat Prioritization:

  • Critical: Immediate action required
  • High: Remediate within 30 days
  • Medium: Remediate within 90 days
  • Low: Accept or remediate opportunistically

Defense-in-Depth Layers

MUST IMPLEMENT:

  1. Perimeter Security

    • Web Application Firewall (WAF)
    • DDoS protection
    • Rate limiting
    • Geo-blocking (if applicable)
  2. Network Security

    • Network segmentation (DMZ, application tier, data tier)
    • VPN for remote access
    • Zero-trust networking
    • Private subnets for sensitive resources
  3. Application Security

    • Input validation
    • Output encoding
    • Authentication & authorization
    • Session management
    • CSRF protection
    • Secure headers (CSP, HSTS, X-Frame-Options)
  4. Data Security

    • Encryption at rest (AES-256)
    • Encryption in transit (TLS 1.2+)
    • Data classification and handling
    • Secure key management
    • Database access controls
  5. Monitoring & Detection

    • Security event logging
    • Intrusion detection/prevention (IDS/IPS)
    • Anomaly detection
    • Security alerts and incident response
    • Audit logging
  6. Physical Security

    • Secure data center (for on-premise)
    • Access controls
    • Environmental controls
    • Asset management

Security Control Categories

Preventive Controls:

  • Access controls
  • Encryption
  • Input validation
  • Firewall rules
  • Secure configuration

Detective Controls:

  • Logging
  • Monitoring
  • Intrusion detection
  • Vulnerability scanning
  • Audit reviews

Corrective Controls:

  • Incident response
  • Patch management
  • Backup and recovery
  • Business continuity

Deterrent Controls:

  • Security awareness training
  • Legal agreements (NDAs)
  • Security policies
  • Audit reports

Security Zones

Public Zone (Untrusted):

  • Static website content
  • Public APIs (read-only, rate-limited)
  • CDN distribution

DMZ (Semi-trusted):

  • Web servers
  • API gateways
  • Load balancers
  • WAF

Application Zone (Trusted):

  • Application servers
  • Business logic
  • Internal APIs
  • Background workers

Data Zone (Highly Trusted):

  • Databases
  • File storage with sensitive data
  • Key management systems
  • Backup systems

Examples

Example 1: SECURITY_ARCHITECTURE.md Template

# Security Architecture - Hack23 Homepage

## Overview

The Hac
Full SKILL.md on GitHub

Install security-architecture in Claude Code & Claude Desktop

Sign up to install this skill

Create a free account to reveal the install command and save the skill to your library.

  • Reveal the one-line install command
  • Save skills to your synced library
  • Get notified when skills update
Sign up freeI already have an account

Allowed tools

Tools this skill is permitted to call.

No restriction — this skill can use any tool.

FAQ

What does the security-architecture skill do?

Security architecture documentation requirements including threat models, security controls, and defense-in-depth patterns

How do I install the security-architecture skill?

Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.

Does the security-architecture skill run scripts?

No, this skill is instructions only (SKILL.md) with no executable scripts.

Related skills

Compare security-architecture with