authn-authz-testing
Installation
SKILL.md
Authentication & Authorization Testing
Auth is where most critical breaches live (OWASP A01 Broken Access Control, A07 Auth Failures, API1 BOLA). Test who you are (authn) and what you may do (authz) separately.
Authentication matrix
| Area | Cases |
|---|---|
| Login | Valid/invalid; user-enumeration via message/timing/status; lockout & rate limit; credential stuffing; case/space/unicode normalization |
| Passwords | Min length (≥12), breached-password check, no truncation, strong hashing (argon2id/bcrypt), reset tokens single-use + short TTL + bound to user, reset doesn't leak account existence |
| MFA | Enforced for privileged; brute-force limits; bypass via alternate endpoint/remember me; recovery codes; SIM-swap resilience; step-up for sensitive actions |
| Sessions | New ID on login (fixation), HttpOnly; Secure; SameSite, idle + absolute timeout, logout invalidates server-side, concurrent sessions, revoke-all on password change |
| OAuth2/OIDC | state & PKCE enforced; exact redirect_uri match; nonce; code single use; scopes minimal; refresh-token rotation/reuse detection; ID-token aud/iss/exp validated |
| SAML/SSO | Signature wrapping, Audience, InResponseTo, replay, assertion expiry, JIT provisioning role mapping |
| API keys | Scoped, rotatable, hashed at rest, never in URLs/logs |