Find a security recipe

Protect requests, sessions, redirects, content, credentials, and permissions

Protect server operations

ProblemRecipe
Audit a complete interactionRun the security audit
Protect cookie-authenticated writesSend CSRF proof
Enforce current permissionsHandle permission rejection
Prevent duplicate critical writesUse idempotency
End an authenticated sessionLog out safely

Protect browser content

ProblemRecipe
Validate a return destinationPrevent open redirects
Render user-authored formattingSanitize rich text
Restrict executable resourcesDeploy Content Security Policy
Restrict session deliveryHarden session cookies
Remove credentials from diagnosticsRedact secrets

Protect destructive actions

ProblemRecipe
Confirm permanent removalConfirm deletion
Prefer a reversible operationArchive and restore