Security Risk
Identify security and privacy risks and propose mitigations.
Workflow
- Review data flows and trust boundaries.
- Scan for injection, logging, auth, and cross-origin risks.
- Validate privacy boundaries (what is and is not synced/stored/transmitted).
- Summarize risks and mitigations.
Cross-Origin Security Checks
For backend APIs called from browsers:
- Treat CORS as an explicit allowlist decision per origin.
- Verify
Access-Control-Allow-Originis echoed from a vetted allowlist (no wildcard for credentialed/sensitive flows). - Ensure disallowed origins receive no allow-origin header.
- Add
Vary: Originwhen origin-based responses differ. - Confirm preflight and non-preflight responses enforce consistent origin policy.
- Confirm config docs and runtime env origins are aligned to avoid accidental exposure or outages.
Sync Privacy Checks
For encrypted sync payload systems:
- Verify server treats encrypted payload as opaque unless schema parsing is explicitly required.
- Confirm migrations do not broaden synced data classes (e.g., no amounts/PII unless approved).
- Confirm logs/telemetry do not include sensitive payload content.
Output Format
- Risks identified
- Mitigations
- Residual risk
References
- Threat modeling worksheet
Converted and distributed by TomeVault — claim your Tome and manage your conversions.