Threat modeling or security architecture review completed
Why it matters
Shipping without a threat model means trust boundaries, sensitive data flows, and high-risk attack vectors have never been explicitly identified. NIST 800-53 RA-3 requires threat risk assessment as a foundational security activity; PL-2 requires security plans that address identified threats. ISO 27001:2022 A.5.8 requires information security to be integrated into architecture. Without documented threat analysis, developers don't know which components are high-risk, testers don't know what to probe, and incident responders don't know what could have been compromised. This is especially acute for AI-generated codebases where the developer may not have consciously designed the security architecture.
Severity rationale
Info because threat modeling absence is a process gap, not an immediate vulnerability — but it means all other security controls were implemented without a map of what they are protecting against.
Remediation
Create a SECURITY.md at the repository root using the STRIDE framework as a starting point:
## Threat Model Summary
### Trust Boundaries
- Public internet → load balancer → application → database
- Unauthenticated by default; auth required for all data writes
### Sensitive Data Flows
- Passwords: argon2id hashed, never logged
- Payment data: Stripe tokenization; raw cards never reach the server
### Threats and Mitigations
| Threat | Category | Mitigation |
|--------|----------|-----------|
| Credential stuffing | Spoofing | Rate limiting + account lockout |
| SQL injection | Tampering | Prisma ORM parameterized queries |
| Session hijacking | Elevation | httpOnly cookies, 30-min TTL |
## Security Contact
security@yourapp.com
Review and update this document when adding new data categories, external integrations, or authentication flows.
DetectionPro
The detection method for this pattern is part of AuditBuffet Pro.
The full method (what to look for, pass and fail conditions, and how results get reported) ships inside the Security Hardening Audit. The pattern definition, severity rationale, and remediation remain openly licensed under CC-BY-4.0.
External references
- nist:rev5 · RA-3 — Risk Assessment
- nist:rev5 · PL-2 — System Security and Privacy Plans
- iso-27001:2022 · A.5.8 — Information security in project management
- soc2:2017 · CC3 — Risk Assessment
Taxons
History
- 2026-04-18·v1.0.0·Initial import from security-hardening·automated
- 2026-07-06·v1.0.1·Add SOC 2 TSC mapping (CC3) from the verified compliance crosswalk register (docs/compliance/).·by soc2-mapping-enrichment-ship-2