Version 1.0 · Adopted 2026-10-25 · Owner: Security Officer · Review: yearly
Every endpoint checks who is calling, what they may do and which objects they own, on the server, before it reads or changes anything. A change that adds or alters an endpoint must pass every item of this checklist that applies.
Review checklist
Authorization
- API permission checks match what the route does; public routes are genuinely public or verify a token or signature themselves.
- Form and AJAX actions verify a nonce and a capability or ownership check; guest access only where guests need it.
- Network-level actions require network-administrator rights.
- Every id from a request (user, group, site, order, post, task, device, job, proposal) is checked against the caller’s rights.
- No login or role change based on request data without verified proof of identity.
Money
- Prices, totals, amounts and payers are computed on the server; numbers from the browser are ignored.
- Settlement checks the payment method and the full amount before marking anything paid.
- Balance moves take a lock, debit first, then credit, and never go negative.
- Webhooks verify a signature in constant time and are idempotent.
- Nothing spends a member’s balance on a simple link; spending needs a confirmation step.
Tokens and cryptography
- Signed tokens: algorithm pinned, signature verified, expiry required, issuer checked, single use where they grant access.
- Randomness from a cryptographically secure generator.
- Secret comparisons are constant time.
- Secrets never appear in pages, scripts, logs, error messages or API responses.
Input and output
- Database queries are parameterised.
- File paths are resolved and confined to their base folder.
- Redirects go only to allowed destinations.
- Requests to member-supplied URLs cannot reach internal or private addresses.
- Output is escaped for its context.
Release hygiene
- No debug or test scripts reachable from the web.
- Dependencies are current and maintained.
- Desktop and mobile apps keep tokens in the operating system’s keychain and receive signed updates.
- Jobs and prompts arriving from the network are untrusted: no local tools, files or commands.
Testing and AI-written code
Security-relevant changes are tested on a local copy of the platform before deploy. Code written by AI agents follows the same checklist and is reviewed by the owner before merge; agents never receive production secrets in prompts.
