About Workflow Architecture Methodology Findings Compliance Outputs GitHub Source
Built with Claude Code Agent Teams

Autonomous
Threat Modeling

Nine specialized agents and a custom skill, orchestrated by Claude Code Agent Teams, performing comprehensive security assessments entirely autonomously.

DEMO
0
Agents
0
Phases
0
Findings
0
Formats
0
Human Edits

What I Built

Agent Teams for
security assessment.

Claude Code Agent Teams lets you orchestrate multiple Claude Code sessions working together. One session acts as the team lead, coordinating work and spawning teammates — each a full Claude Code instance with its own context window, running in parallel.

I built nine specialized agents and a custom threat modeling skill on top of this. The team lead orchestrates an eight-phase assessment pipeline — spawning the right specialist for each phase, coordinating via shared task lists and inter-agent messaging, and consolidating everything into a multi-format report.

The entire output — architecture diagrams, 26 findings with OWASP risk scores, compliance mappings across four frameworks, privacy analysis, and a remediation roadmap — is produced without a single human edit.

Why Agent Teams?

Unlike sub-agents that only report back to a parent, Agent Teams teammates message each other directly, share discoveries mid-task, claim work from a shared task list, and coordinate without a human intermediary. Each teammate loads project context and the custom skill but operates in its own context window.

👑
Team Lead (Orchestrator)
Spawns teammates, assigns phases, synthesizes results
🏗️
Specialist Teammates
Security architect, diagram, GRC, privacy, code review agents
⚙️
Threat Model Skill
Custom skill encoding STRIDE-LM + PASTA + OWASP methodology
📋
Shared Task List
Dependency-tracked tasks with automatic claim & coordination
✉️
Inter-Agent Messaging
Teammates message the lead and each other directly

Under the Hood

How the agents
coordinate.

Three views of the orchestration system — from high-level architecture to the step-by-step execution pipeline and full component map.

System Architecture — Parent conversation orchestrating Core Pipeline, Specialist Agents, Post-Processing, Shared Filesystem, and Reference Files

Parent orchestrator spawns core agents (sequential), specialist agents (parallel), and post-processing (sequential). All share a filesystem and consult institutional reference docs.

Pipeline Flow — Solo vs Team decision tree with sequential and parallel execution paths

Solo path for simple systems, Team path for complex ones. Team mode forks 3 specialists in parallel, joins results, validates, then generates 4 report formats.

Component Map — Skill files, 7 agent definitions, Mermaid diagram system, and output structure

The full component inventory: 1 custom skill, 11 reference files (including 6-file Mermaid diagram system), 7 agent definitions, and structured output directory.


Architecture

Eight phases,
nine agents.

The team lead orchestrates each phase, spawning the right specialist. Every agent runs Claude Opus 4.6 with Extended Thinking.

01
🔍
Recon
security-architect
02
📐
Structure Diagram
diagram-specialist
03
🎯
Threat ID
security-architect
04
⚖️
Risk Scoring
security-architect
05
🔬
False Neg Hunt
security-architect
06
False Pos Review
security-architect
07
🗺️
Risk Overlay
diagram-specialist
08
📊
Report Gen
report-analyst
🏗️
Security Architect
Core threat modeling specialist. Recon, threat identification, risk quantification, false positive/negative analysis.
Phases 1, 3–6
📐
Diagram Specialist
Generates L1 structural architecture and L4 risk overlay diagrams with kill chain mappings.
Phases 2, 7
📊
Report Analyst
Consolidates all outputs into HTML, PDF, DOCX, and PPTX with executive summaries.
Phase 8
🔍
Security Reviewer
Deep-dive code reviews and configuration audits across IaC, containers, and CI/CD.
Review
🛡️
GRC Agent
Maps findings to SOC 2, ISO 27001, NIST CSF 2.0, PCI-DSS v4.0 with coverage metrics.
Compliance
🔐
Privacy Agent
LINDDUN-based privacy analysis — data flow violations, deceptive patterns, missing controls.
Privacy
Validation Specialist
Cross-checks accuracy, validates severity scores, deduplicates, ensures consistency.
QA
💻
Code Review Agent
Source code vulnerability analysis, insecure patterns, dependency risks.
Code
Code Quality Reviewer
Code quality, maintainability, and secure coding practices assessment.
Quality
Claude Opus 4.6 — all agents
Extended Thinking — enabled
Agent Teams — team coordination
Custom Skill — threat model methodology

Methodology

Multi-framework
threat analysis.

The custom skill encodes industry-standard frameworks into every agent's workflow — automated risk scoring and compliance mapping baked in.

STRIDE-LM

Spoofing, Tampering, Repudiation, Info Disclosure, DoS, Elevation of Privilege — plus Lateral Movement.

PASTA

Process for Attack Simulation and Threat Analysis — risk-centric, attacker-focused methodology.

OWASP Risk Rating

Likelihood × Impact (1–5) producing 1–25 risk scores mapped to severity bands.

LINDDUN

Linkability, Identifiability, Non-repudiation, Detectability, Disclosure, Unawareness, Non-compliance.


Sample Assessment

26 findings.
2 critical.

OVERALL POSTURE: CONCERNING

Assessment of an AWS ECS Fargate demo application deployed via Terraform. Severity distribution reveals significant security gaps across infrastructure, CI/CD, and application layers.

2
Critical
10
High
11
Medium
3
Low
IDSeverityTitleScore
TM-004CriticalRepository-Sourced Buildspec + Broad IAM25
TM-003CriticalIAM PassRole Wildcard (*)20
TM-023HighNo Branch Protection16
TM-013HighCodeBuild Privileged Docker16
TM-014HighNo Pipeline Approval / Scanning16
TM-001HighNo TLS/HTTPS on ALBs15
TM-002HighNo Authentication/Authorization15
TM-005HighGitHub Token in TF State15
TM-006HighMutable ECR Tags + Latest15
TM-007HighNo WAF or Rate Limiting12
TM-022HighUnrestricted ECS Egress12
TM-024HighNo Billing Alarm12
TM-009MediumS3 Missing Security Controls9
TM-011MediumNo VPC Flow Logs9
TM-015MediumOutdated Dependencies9
TM-017MediumContainer Hardening Deficiencies9
TM-012MediumError Handler Info Leakage8
TM-025Mediumnpm install vs npm ci8
TM-008MediumUnrestricted CORS6
TM-018MediumSingle NAT GW (SPOF)6
TM-021MediumNo Container Insights6
TM-026MediumNo CloudTrail Data Events6
TM-016MediumSwagger Publicly Exposed5
TM-010LowDynamoDB No PITR/CMK4
TM-019LowNo VPC Endpoints4
TM-020LowSNS No Subscribers/Encryption3

Compliance Coverage

Framework
mapping.

Each finding is automatically mapped to relevant controls across four major compliance frameworks, generating coverage metrics.

SOC 2

9%
3 compliant · 6 partial · 22 non-compliant

ISO 27001

10%
5 compliant · 8 partial · 41 non-compliant

NIST CSF 2.0

8%
4 compliant · 9 partial · 38 non-compliant

PCI-DSS v4.0

2%
1 compliant · 3 partial · 48 non-compliant

Sample Output

What the agents
produce.

Demo target: an AWS ECS Fargate reference architecture deployed via Terraform. Four deliverables, zero human edits.