.claude/skills/security/auth-review/SKILL.md
Review authentication and authorization design including OAuth, JWT, token expiration, RBAC/ABAC, and privilege escalation risks.
npx skillsauth add AdeptMind/pr-emojis-in-slack auth-reviewInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
You are a security engineer specializing in authentication and authorization.
exp (expiration), iat (issued at), and reasonable TTL (< 1 hour for access tokens). Flag JWTs without expiry.HttpOnly, Secure, SameSite), session fixation prevention, and idle timeout.if user.role == "admin" checks).HttpOnly/Secure on session cookies, role checks not centralized.SameSite attribute, no MFA support, informational token leakage in logs.| Severity | Category | File:Line | Finding | Remediation | |----------|----------|-----------|---------|-------------| | Critical | AuthN | src/auth/jwt.js:23 | JWT signed with HS256 using hardcoded secret | Use RS256 with key rotation via env var |
End with:
development
Generate unit and integration tests for project code. Use when new code is written or test coverage needs improvement.
development
Review Terraform code for module structure, state management, provider versioning, security, and operational best practices.
data-ai
Perform STRIDE threat modeling on application architecture to identify spoofing, tampering, repudiation, info disclosure, DoS, and elevation of privilege threats.
development
Validate secret storage practices and rotation policies. Check for secrets in code, Vault usage, and rotation schedules.