Threat model and trust boundaries
Broad Domain scope, missing Secure or overly long-lived cookies increase exposure. HttpOnly limits JavaScript access but does not prevent CSRF or session theft from a compromised device.
- Identify actors, assets and trust boundaries
- Choose controls that address the stated threat
- Test failure behavior and recovery paths