-
Notifications
You must be signed in to change notification settings - Fork 2
threat model template
github-actions[bot] edited this page Jun 3, 2026
·
2 revisions
title: "Threat model template" description: "STRIDE template for libraries adopting worker-kmp — copy + fill in for your integration."
Consumer-extension template — copy to your fork's THREAT_MODEL.md and extend with deployment-specific threats. worker-kmp's library-level threat model is at security.md.
- App name:
- User data sensitivity: <e.g. medical / financial / consumer-grade>
- Compliance requirements: <e.g. GDPR, HIPAA, none>
- Threat actor model: <e.g. opportunistic / state-level / insider>
Add rows for threats SPECIFIC to your app on top of worker-kmp's library threat model:
| ID | Surface | Threat class | Status | Mitigation |
|---|---|---|---|---|
| C1 | <MITIGATED / ACCEPTED> | |
If you ship a Web Push server (per Phase 9), extend with rows for:
- Server-side subscription storage (encryption at rest, access controls)
- /push/subscribe rate-limiting + bot defense
- Cross-user subscription tampering
- Server compromise → push storm
If your workers handle sensitive data or external network:
- Input validation on WorkData parameters
- TLS pinning for outbound network from doWork()
- Worker output sanitization before persisting
- Review security-assumptions.md and confirm each item is true in your deployment.
- Add deployment-specific assumptions to your own ASSUMPTIONS.md.
- Re-audit quarterly or after material architecture changes.
Getting Started
Platform Support
Features
Operations
Release