security-architecture

Design secure architectures with STRIDE threat modeling, OAuth2/OIDC, ABAC, TLS/mTLS, Vault, and audit logging.

Updated Feb 4, 2026
One-click install
npx skills add https://github.com/Tirael/cursor-template --skill security-architecture-tirael
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: security-architecture
Source: https://github.com/Tirael/cursor-template/tree/main/.cursor/skills/security-architecture
Command: npx skills add https://github.com/Tirael/cursor-template --skill security-architecture-tirael

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Design and enforce a secure architecture by modeling threats, configuring authentication and authorization, ensuring TLS/mTLS, auditing, and secret management.

Core Features & Use Cases

  • Threat modeling using STRIDE for key flows.
  • Authn: OAuth2/OIDC; Authz: ABAC with tenantId + role + context.
  • Encryption: TLS everywhere, mTLS for internal gRPC.
  • Secrets: Vault-based secret management; avoid secrets in repo.
  • Audit: logging to audit_log for sensitive operations.

Quick Start

Describe a secure perimeter, define authn/authz rules, and specify auditing and secret-management requirements for your project.

Frequently Asked Questions about security-architecture

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I use STRIDE threat modeling to secure application architecture?

STRIDE threat modeling secures application architecture by systematically identifying spoofing, tampering, repudiation, information disclosure, denial of service, and elevation of privilege risks across key system flows, enabling targeted countermeasures before deployment.

How do I configure ABAC authorization with tenantId and role context?

ABAC authorization with tenantId and role context is configured by evaluating access policies against multiple attributes simultaneously, ensuring fine-grained control over sensitive operations based on tenant isolation and user role restrictions.

Do I need mTLS for internal gRPC microservices communication?

mTLS is required for internal gRPC microservices communication to enforce encryption everywhere and prevent spoofing or tampering by authenticating both client and server certificates within the internal network perimeter.

What's the best way to implement Vault-based secret management and avoid hardcoded secrets?

Vault-based secret management avoids hardcoded secrets by centralizing sensitive credentials in a secure vault, ensuring applications dynamically fetch secrets at runtime while audit logging tracks all sensitive operation access.

Can I use OAuth2 and OIDC for authentication in microservices architectures?

OAuth2 and OIDC can be used for authentication in microservices architectures by delegating identity verification to external providers, enabling token-based access control across API gateways and internal service boundaries.

How do I enforce audit logging for sensitive operations to ensure compliance?

Audit logging for sensitive operations is enforced by directing logs to a dedicated audit_log, capturing authentication, authorization, and secret access events to provide a verifiable compliance trail.