mcpField
A
auth-audit

auth-audit

github.com/fusengineSecurity3446 installsUpdated 2w ago
Repository

About auth-audit

auth-audit is a skill for reviewing authentication and authorization implementations, from JWTs and sessions to OAuth2, passwords, and MFA. Its workflow checks cryptographic choices, token lifecycles, and authorization logic for common security flaws.

Key features

  1. 01JWT signing, expiry, refresh, and storage checks
  2. 02Session lifecycle and fixation checks
  3. 03OAuth2 PKCE and redirect validation
  4. 04Password hashing and reset-flow review
  5. 05MFA recovery and authorization logic checks

Use cases

  1. 01Reviewing a new authentication implementation
  2. 02Checking token and session handling
  3. 03Auditing OAuth2 and password security
  4. 04Finding authorization and MFA weaknesses

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/fusengine/claude-plugins --skill auth-audit

After installing, type/auth-auditin Claude Code to confirm it loaded.

Details

From the project README
This skill audits authentication and authorization implementations end to end: JWT signing algorithm, expiration, refresh, and storage; session storage, expiry, regeneration, and fixation; OAuth2 PKCE, state parameter, and redirect validation; password hashing algorithm, strength rules, and reset flow; and MFA implementation, backup codes, and recovery.

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

CategoryChecks
JWTSigning algo, expiration, refresh, storage
SessionsStorage, expiry, regeneration, fixation
OAuth2PKCE, state param, redirect validation
PasswordsHashing algo, strength rules, reset flow
MFAImplementation, backup codes, recovery

Workflow

  1. Detect auth implementation (JWT, sessions, OAuth)
  2. Scan for known anti-patterns
  3. Verify cryptographic choices
  4. Check token/session lifecycle
  5. 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

Comments

Markdown supported