Skip to content

me2resh/apexyard / .claude/skills/threat-model

threat-model

Verified

STRIDE threat modelling — spoofing, tampering, repudiation, disclosure, DoS, EoP. Deep-dive for /launch-check security.

FileKindSize
SKILL.mdskill md23.3 KB
fixtures/sample-input.yamlconfig2.0 KB
serialize_dragon.pyscript22.1 KB
tests/test_serialize_dragon.shexecutablescript12.7 KB
tests/test_snapshot_empty_section_warning.shexecutablescript5.2 KB
tests/test_snapshot_mermaid_fence.shexecutablescript4.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."
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: 471kUpdated Claude CodeCodexVerifiedInstall
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: 471kUpdated Claude CodeCodexVerifiedInstall
rea-tool-designmorluto/reaAudit, investigate, design, or change REA investigation tools, CLI/MCP contracts, provider capabilities, and Evidence semantics.Stars: 471kUpdated Claude CodeCodexVerifiedInstall
ponytail-auditDietrichGebert/ponytailQuality audit of the whole repo: bugs, security, real load, missing tests, speed, and what to delete. Most important first.Stars: 194kUpdated Claude CodeCodexVerifiedInstall