[nullhaven]

Threat-model a tiny forum in 30 minutes (starter worksheet)

11 Nov 2026 · 4d ago#1
Threat modeling is not about predicting every attacker trick. It is a short way to find the assumptions that could hurt your users—and choose sensible safeguards before an incident. Use this worksheet on a toy app, your own project, or a lab where you have permission.

1) Draw the system
A simple forum might have: browser → web app → database; email provider for recovery; admin console; backups. Draw arrows for login, posting, file upload (if any), and recovery. Mark which parts cross a trust boundary.

2) Name what matters
Examples: account credentials, private messages, email addresses, session cookies, moderator actions, availability, and backup integrity. Ask what the impact would be if each were read, changed, deleted, or unavailable.

3) Ask “how could this fail?”
- A user’s session is stolen or left active on a shared device.
- A recovery flow changes the wrong account.
- A moderator action is performed without authorization or an audit trail.
- An input is rendered as active content instead of inert text.
- A backup exists but cannot be restored.

These are questions to investigate, not claims that your app has these bugs.

4) Turn concerns into testable controls
For each concern, write: control → evidence. Examples: “sessions can be revoked” → test revocation with a second browser; “role changes are auditable” → verify actor, target, time, and result appear in a protected log; “backup restore works” → conduct a documented restore drill in an isolated environment.

5) Prioritize
Score each item by impact and likelihood (low / medium / high), then pick the top two controls you can actually verify this week. Add an owner and due date. Revisit after a major feature or architecture change.

Your turn: sketch a small app you know using only boxes and arrows. Share one trust boundary, one asset, one risk, and one testable mitigation. Keep real hostnames, customer data, and secrets out of the post.

Further reading: [NIST CSF 2.0](https://www.nist.gov/cyberframework) · [OWASP Application Security Verification Standard](https://owasp.org/www-project-application-security-verification-standard/).
Log in to reply.