It runs a fixed workflow — detect the auth implementation, scan for known anti-patterns,
verify cryptographic choices, check token/session lifecycle, and audit authorization logic
(RBAC/ABAC) — checking for vulnerabilities such as JWT signed with none, undersized JWT
secrets, missing/too-long token expiration, refresh tokens in localStorage, session fixation,
missing CSRF protection, and OAuth flows missing PKCE or the state parameter.
Auth Audit Skill
Overview
Comprehensive audit of authentication and authorization implementations.
Audit Categories
| Category |
Checks |
| JWT |
Signing algo, expiration, refresh, storage |
| Sessions |
Storage, expiry, regeneration, fixation |
| OAuth2 |
PKCE, state param, redirect validation |
| Passwords |
Hashing algo, strength rules, reset flow |
| MFA |
Implementation, backup codes, recovery |
Workflow
- Detect auth implementation (JWT, sessions, OAuth)
- Scan for known anti-patterns
- Verify cryptographic choices
- Check token/session lifecycle
- Audit authorization logic (RBAC, ABAC)
Common Vulnerabilities
- JWT signed with
none algorithm
- JWT secret too short (< 256 bits)
- No token expiration or too long
- Refresh tokens stored in localStorage
- Session fixation after login
- Missing CSRF protection
- OAuth without PKCE for public clients
- Missing
state parameter in OAuth flow
References
- Auth Patterns
- Auth Checklist
1---2name: auth-audit3description: "Use when auditing JWT, session, OAuth2/PKCE, password, or MFA implementations for security vulnerabilities and best-practice deviations."4argument-hint: "[--jwt] [--session] [--oauth]"5user-invocable: true6metadata:7 source: https://skillmd.com/skills/fusengine/auth-audit8---910<objective>11This skill audits authentication and authorization implementations end to end: JWT signing12algorithm, expiration, refresh, and storage; session storage, expiry, regeneration, and13fixation; OAuth2 PKCE, state parameter, and redirect validation; password hashing algorithm,14strength rules, and reset flow; and MFA implementation, backup codes, and recovery.1516It runs a fixed workflow — detect the auth implementation, scan for known anti-patterns,17verify cryptographic choices, check token/session lifecycle, and audit authorization logic18(RBAC/ABAC) — checking for vulnerabilities such as JWT signed with `none`, undersized JWT19secrets, missing/too-long token expiration, refresh tokens in localStorage, session fixation,20missing CSRF protection, and OAuth flows missing PKCE or the `state` parameter.21</objective>2223# Auth Audit Skill2425## Overview2627Comprehensive audit of authentication and authorization implementations.2829## Audit Categories3031| Category | Checks |32|----------|--------|33| JWT | Signing algo, expiration, refresh, storage |34| Sessions | Storage, expiry, regeneration, fixation |35| OAuth2 | PKCE, state param, redirect validation |36| Passwords | Hashing algo, strength rules, reset flow |37| MFA | Implementation, backup codes, recovery |3839## Workflow40411. **Detect** auth implementation (JWT, sessions, OAuth)422. **Scan** for known anti-patterns433. **Verify** cryptographic choices444. **Check** token/session lifecycle455. **Audit** authorization logic (RBAC, ABAC)4647## Common Vulnerabilities4849- JWT signed with `none` algorithm50- JWT secret too short (< 256 bits)51- No token expiration or too long52- Refresh tokens stored in localStorage53- Session fixation after login54- Missing CSRF protection55- OAuth without PKCE for public clients56- Missing `state` parameter in OAuth flow5758## References5960- [Auth Patterns](references/auth-patterns.md)61- [Auth Checklist](references/templates/auth-checklist.md)