me2resh/apexyard / .claude/skills/threat-model
threat-model
VerifiedSTRIDE threat modelling — spoofing, tampering, repudiation, disclosure, DoS, EoP. Deep-dive for /launch-check security.
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 23.3 KB |
| fixtures/sample-input.yaml | config | 2.0 KB |
| serialize_dragon.py | script | 22.1 KB |
| tests/test_serialize_dragon.shexecutable | script | 12.7 KB |
| tests/test_snapshot_empty_section_warning.shexecutable | script | 5.2 KB |
| tests/test_snapshot_mermaid_fence.shexecutable | script | 4.0 KB |
fixtures/sample-input.yaml
View on GitHub# Smoke-test fixture for serialize_dragon.py.
#
# Mirrors the placeholder DFD shape in templates/audits/threat-model.md:
# user ─▶ web ─▶ api ─▶ db
# └─▶ ext
# Three trust boundaries (internet / backend / third-party).
# Three STRIDE threats covering S, T, I against three different parents
# (process, store, flow) so the smoke test can assert per-parent attachment.
title: "Example Web Application"
description: "Sample threat model for /threat-model --format=dragon smoke testing."
owner: "Security Team"
contributors:
- "Alice"
- "Bob"
reviewer: "Carol"
actors:
- { id: user, name: "External user" }
processes:
- { id: web, name: "Web frontend" }
- { id: api, name: "API service" }
- { id: ext, name: "External service" }
stores:
- { id: db, name: "Primary data store" }
boundaries:
- { id: internet, name: "Public internet", children: [web] }
- { id: backend, name: "Backend network", children: [api, db] }
- { id: thirdparty, name: "Third-party service", children: [ext] }
flows:
- { id: f1, source: user, target: web, label: "credentials, form input" }
- { id: f2, source: web, target: api, label: "auth token, user PII" }
- { id: f3, source: api, target: db, label: "user PII, transaction" }
- { id: f4, source: api, target: ext, label: "webhook payload" }
threats:
- parent: api
type: "Spoofing"
severity: "high"
title: "No rate limit on /auth/login"
description: "Attacker can brute-force login credentials."
mitigation: "Add a rate limiter (5/min/IP) at the API gateway."
- parent: db
type: "Information disclosure"
severity: "medium"
title: "Stack traces in prod"
description: "Server returns stack traces in 500 responses."
mitigation: "Strip stack traces when NODE_ENV=production."
- parent: f2
type: "Tampering"
severity: "high"
title: "No CSRF on state-changing forms"
description: "Auth-token-bearing requests can be forged across origins."
mitigation: "Add CSRF middleware enforcing same-origin tokens."
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| rea-analysis-optimizationmorluto/reaOptimize REA providers and shared analysis workflows for agent context, latency, CPU, and memory while preserving correctness and Evidence. Use for analysis bottlenecks and cache or query design; CI/test-suite optimization belongs to rea-ci-tests-audit. | Stars: 471k | Updated | Claude CodeCodex | Verified | Install |
| rea-ci-tests-auditmorluto/reaAudit REA CI and test suites for correctness, fixture drift, false passes, and measured performance; use for suite or workflow investigations and efficiency changes, rather than ordinary feature testing or a single test failure. | Stars: 471k | Updated | Claude CodeCodex | Verified | Install |
| rea-tool-designmorluto/reaAudit, investigate, design, or change REA investigation tools, CLI/MCP contracts, provider capabilities, and Evidence semantics. | Stars: 471k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-auditDietrichGebert/ponytailQuality audit of the whole repo: bugs, security, real load, missing tests, speed, and what to delete. Most important first. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |