Security Playbook
← All threat models
Threat modeling challenges · TM01/6Easy1M users

Threat model a URL shortener

Anyone on the internet can create links and every redirect is public. Find 5 threats in this 1M-user design.

Tap a component or a data flowOpen the system design ↗
Your backend (trusted)◱Browser / appuser◍CDN / edgecached redirects⇄Load balancer⚙Shorten servicePOST /urls⚙Redirect serviceGET /:code⚙Key generatorpre-made codes⛁PostgreSQLprimary + replicasϟRediscode → url☰Click queueSQS / Kafka↻Analytics workerbatches clicks⛁Analytics DBClickHouse

Dashed boxes are trust boundaries. Data flows (lines) can be selected too.

Found
0/5
Misses
0
Score
0%

Tap a component or a data flow

STRIDE explained →