askill
security-architecture-validation

security-architecture-validationSafety 100Repository

Security architecture review, control validation, penetration testing guidance, and compliance verification for the CIA platform

206 stars
4.1k downloads
Updated 2/22/2026

Package Files

Loading files...
SKILL.md

Security Architecture Validation Skill

Purpose

This skill provides structured guidance for validating the security architecture of the Citizen Intelligence Agency platform. It covers architecture reviews, control validation, penetration testing coordination, and compliance verification against ISMS requirements.

When to Use This Skill

Apply this skill when:

  • ✅ Reviewing architecture changes for security impact
  • ✅ Validating security controls are properly implemented
  • ✅ Planning or reviewing penetration test results
  • ✅ Preparing for compliance audits (ISO 27001, SOC 2)
  • ✅ Assessing new integration points (APIs, data sources)
  • ✅ Evaluating infrastructure changes (CloudFormation, AWS)
  • ✅ Conducting periodic security architecture reviews

Do NOT use for:

  • ❌ Line-by-line code review (use secure-code-review)
  • ❌ Day-to-day coding practices (use secure-development-policy)
  • ❌ Incident handling (use incident-response)

Architecture Review Framework

CIA Platform Security Layers

┌─────────────────────────────────────────┐
│           WAF / CloudFront              │  Layer 1: Edge Security
├─────────────────────────────────────────┤
│         Load Balancer (ALB)             │  Layer 2: Network
├─────────────────────────────────────────┤
│    Spring Security Filter Chain         │  Layer 3: Application Auth
├─────────────────────────────────────────┤
│   Vaadin UI + Service Layer             │  Layer 4: Business Logic
├─────────────────────────────────────────┤
│   JPA/Hibernate + PostgreSQL            │  Layer 5: Data Access
├─────────────────────────────────────────┤
│   AWS VPC + Security Groups             │  Layer 6: Infrastructure
└─────────────────────────────────────────┘

Architecture Review Checklist

Authentication & Authorization:

□ Spring Security configured with secure defaults
□ Session management uses secure cookies (HttpOnly, Secure, SameSite)
□ Password storage uses bcrypt or Argon2
□ Role-based access control enforced at service layer
□ Admin endpoints protected with additional authentication
□ API authentication uses token-based mechanism
□ Session timeout configured appropriately

Network Security:

□ TLS 1.2+ enforced for all connections
□ HSTS header configured
□ Security groups follow least privilege
□ Database not publicly accessible
□ VPC subnets properly segmented
□ Outbound traffic restricted to required destinations

Data Protection:

□ Data at rest encrypted (RDS, EBS, S3)
□ Data in transit encrypted (TLS)
□ Sensitive fields encrypted at application level
□ Database credentials managed via AWS Secrets Manager
□ No PII in application logs
□ Backup encryption enabled

Control Validation Matrix

Control DomainExpected ControlValidation MethodEvidence
Access ControlRBAC via Spring SecurityConfig review + testSecurityConfig.java
EncryptionTLS 1.2+ all connectionsSSL scanCloudFormation template
Input ValidationAll user inputs validatedCode review + DASTController layer review
Audit LoggingSecurity events loggedLog reviewLogback configuration
Session MgmtSecure session handlingConfig reviewSpring Security config
Error HandlingNo info leakageDAST + code reviewException handlers
CSRFToken-based protectionConfig review + testSpring Security config
SQL InjectionParameterized queries onlySAST + code reviewJPA repositories
XSS PreventionOutput encodingDAST + code reviewVaadin components
Dependency MgmtNo critical CVEsOWASP DC scanCI/CD pipeline

Penetration Testing Guidance

Scope Definition

In Scope:

  • Web application (Vaadin UI + REST APIs)
  • Authentication and session management
  • Authorization boundaries between roles
  • Input validation across all entry points
  • External API integrations (Riksdag, World Bank)
  • CloudFormation-deployed infrastructure

Out of Scope:

  • Third-party services (GitHub, AWS managed services)
  • Physical security
  • Social engineering
  • Denial of service attacks

Test Categories

CategoryFocus AreasOWASP Reference
AuthenticationLogin, session, password resetA07:2021
AuthorizationRole escalation, IDORA01:2021
InjectionSQL, XSS, Command injectionA03:2021
ConfigurationHeaders, TLS, error pagesA05:2021
Data ExposurePII leakage, API responsesA02:2021
ComponentsKnown vulnerable dependenciesA06:2021
LoggingAudit trail completenessA09:2021

Penetration Test Report Template

## Finding: [Title]
- **Severity:** Critical / High / Medium / Low
- **CVSS Score:** X.X
- **OWASP Category:** AXX:2021
- **Affected Component:** [Component name]
- **Description:** [What was found]
- **Impact:** [Business impact]
- **Reproduction Steps:** [Step-by-step]
- **Remediation:** [How to fix]
- **ISO 27001 Control:** [Relevant control]
- **Status:** Open / In Progress / Resolved

Compliance Verification

ISO 27001:2022 Architecture Controls

ControlRequirementCIA ImplementationStatus
A.8.1User endpoint devicesN/A (server-side app)N/A
A.8.3Information access restrictionSpring Security RBAC
A.8.5Secure authenticationSpring Security + bcrypt
A.8.9Configuration managementCloudFormation IaC
A.8.15LoggingSLF4J + CloudWatch
A.8.20Network securityVPC + Security Groups
A.8.24Use of cryptographyTLS + encrypted storage
A.8.25Secure development lifecycleCI/CD security gates
A.8.26Application security requirementsSecurity requirements
A.8.28Secure codingSAST + code review

Validation Frequency

Validation ActivityFrequencyResponsible
Architecture reviewQuarterly + major changesSecurity lead
Control validationMonthly automated + quarterly manualDevSecOps
Penetration testingAnnually + major releasesExternal firm
Compliance auditAnnual (ISO 27001 certification)Auditor
Dependency reviewWeekly automatedDependabot + manual
Configuration reviewMonthlyDevSecOps

Decision Framework

Architecture Change Proposed
    │
    ├─→ Does it change authentication/authorization?
    │   └─→ YES → Full security architecture review required
    │
    ├─→ Does it add new external integrations?
    │   └─→ YES → Threat model update + data flow review
    │
    ├─→ Does it change data storage or processing?
    │   └─→ YES → Data classification review + encryption check
    │
    ├─→ Does it modify infrastructure (CloudFormation)?
    │   └─→ YES → Infrastructure security review
    │
    └─→ Does it change network boundaries?
        └─→ YES → Network security review + firewall rules

References

Install

Download ZIP
Requires askill CLI v1.0+

AI Quality Score

85/100Analyzed 2/23/2026

Highly comprehensive security architecture validation skill with clear framework, detailed checklists, validation matrices, penetration testing guidance, and ISO 27001 compliance mapping. Well-structured with clear When to Use/Not to Use sections. Minor limitation: references internal repo documents (SECURITY_ARCHITECTURE.md, THREAT_MODEL.md) which slightly reduces reusability beyond this specific project. The security layers diagram, control validation matrix, and decision framework provide strong actionability.

100
95
75
90
85

Metadata

Licenseunknown
Version-
Updated2/22/2026
PublisherHack23

Tags

apici-cddatabasegithubobservabilitysecuritytesting