eliyce/paqad-ai/auth-mechanism-review

Claude Code and agent skill by eliyce/paqad-ai

Trust tier 2
  • community
LLM review pending
Source check pending

Checking that the SKILL.md file is still in the repository.

Reasons about authentication weaknesses (JWT flaws, session security, OAuth and OIDC flaws, brute-force surfaces, password storage) from code and docs evidence. Use when docs or route inventories describe login, sessions, token handling, OAuth callbacks, password reset or MFA.

Install

npx vskill@latest install eliyce/paqad-ai/auth-mechanism-review

SKILL.md

The same SKILL.md was published earlier as eliyce/paqad-ai/auth-mechanism-review.

What It Does

Reviews authentication implementation for weaknesses that let an attacker bypass identity verification (JWT algorithm confusion, session fixation, OAuth redirect manipulation, brute-force surfaces, and weak password storage) producing findings backed by code or test evidence.

Use This When

When module docs or route inventories describe login flows, session management, token issuance/validation, OAuth/OIDC callbacks, password reset flows, or MFA enforcement.

Inputs

  • Read the module docs describing authentication and session flows.
  • Read references/auth-attack-checklist.md before evaluating each area.
  • Read code files and tests that show JWT validation, session handling, and rate limiting.

Procedure

  1. JWT review: Find JWT validation code. Check:
  • Algorithm is verified; alg:none is explicitly rejected
  • RS256 public key is not reused as HMAC secret (RS256 → HS256 confusion attack)
  • Token expiry (exp) is enforced; refresh token rotation is implemented
  • kid header is not used in a file path or SQL lookup without sanitization
  • JWT secret is not a weak/guessable string (secret, password, key, 123456)
  • aud and iss claims are validated
  1. Session review: Check:
  • Session fixation protection: session ID is regenerated after successful authentication
  • Secure + HttpOnly + SameSite=Strict cookie flags
  • Session invalidation on both logout and password change
  • Absolute session timeout (not just sliding window)
  1. Token storage: Find client-side token storage. localStorage or sessionStorage are accessible to XSS; HttpOnly cookies are not. Verify refresh tokens are stored separately from access tokens. Check that a token revocation mechanism exists.
  1. Brute-force protection: Find login, password reset, and OTP verification endpoints. Check for:
  • Per-IP or per-account rate limiting
  • Account lockout after N failures
  • Username enumeration via response timing or different error messages ("user not found" vs "wrong password")
  1. Password policy: Check:
  • Hashing algorithm: bcrypt / argon2 / scrypt vs MD5 / SHA1 / SHA256 without cost factor
  • Salt uniqueness per password (not a global salt)
  • bcrypt cost factor ≥ 10; argon2 memory ≥ 64MB; PBKDF2 ≥ 100k iterations
  • Breached password detection (HIBP-style check or equivalent)
  1. OAuth / OIDC review: Check:
  • state parameter is present and validated on the callback (CSRF protection)
  • Authorization code flow is used, not implicit flow
  • Redirect URI is strictly validated: no wildcard, no open redirect via callback
  • PKCE is enforced for public clients (mobile, SPA)
  • Token scopes are properly minimized (principle of least privilege)

Output Contract

  • Match assets/output.template.md: ## Findings heading, one bullet per weakness with severity, WSTG id (from assets/wstg-mapping.txt), Evidence: file:line, and Required action:.
  • Output must pass scripts/lint-findings.sh (exit 0).
  • Run scripts/scan-auth-smells.sh before drafting; treat each emitted hit as an investigation candidate, not an automatic finding.

Escalate / Stop Conditions

  • Ask when the auth library in use is not identified: cannot verify JWT validation without knowing the library.
  • Warn when alg:none is not explicitly blocked and the framework does not reject it by default.
  • Do not mark authentication as safe purely because a login endpoint exists: each of the 6 areas must be verified independently.

Resources

  • references/auth-attack-checklist.md
  • scripts/scan-auth-smells.sh: pre-investigation grep over the codebase
  • scripts/lint-findings.sh: enforces WSTG id + Evidence citation per finding
  • assets/output.template.md
  • assets/wstg-mapping.txt: area → WSTG test id lookup

Security

  • Security scanPassed, 96 of 100Pattern checks on the skill's files.
  • Model reviewNot runA model review is scheduled for the next rescan.

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
0

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/eliyce/paqad-ai/auth-mechanism-review/badge)](https://verified-skill.com/skills/eliyce/paqad-ai/auth-mechanism-review)

Something wrong with this skill or its page? Tell us.