Synthèse automatique
Ce skill analyse les mécanismes d'authentification d'applications web, d'API et de services backend afin de détecter les faiblesses de sécurité, les lacunes de conformité et les défauts d'implémentation, en s'appuyant sur les référentiels OWASP et NIST.
Points forts
- Couvre un large périmètre : hachage des mots de passe, JWT, sessions, flux OAuth/OIDC, MFA et contrôles de compte (rate limiting, verrouillage, réinitialisation).
- Classe chaque constat par sévérité avec référence CWE et produit une matrice de conformité OWASP ASVS V2/V3.
- Fournit un plan de remédiation avec les modifications de code précises à appliquer pour chaque constat.
- Repère les points d'entrée d'authentification par Grep/Glob sur les routes, contrôleurs et handlers de callback.
Limites
- Analyse statique du code uniquement : aucun test dynamique ni exploitation réelle des vulnérabilités n'est effectué.
- Les composants hors codebase (fournisseur d'identité tiers, configuration d'infrastructure, WAF) peuvent échapper à la revue.
- La pertinence des constats dépend de la connaissance du framework d'authentification utilisé (Passport.js, Spring Security, NextAuth, etc.).
À utiliser lors d'une revue de code d'un système de connexion, d'un flux de tokens ou d'un parcours OAuth avant une mise en production.
À ne pas utiliser pour un test d'intrusion dynamique, du fuzzing ou de l'exploitation offensive, que ce skill ne réalise pas.
Analyse de sécurité
PrudenceThis is a legitimate defensive security auditing skill. It instructs the agent to inspect authentication code, identify weaknesses, and produce remediation guidance. There are no destructive commands, exfiltration instructions, obfuscated payloads, or attempts to disable safety controls. However, it grants broad shell and file-editing capabilities for analysis, so it warrants caution rather than a fully safe rating.
- •Allowed tools include Bash(security:*), Bash(scan:*), Bash(audit:*) and Write/Edit, which permit shell execution and file modification beyond pure read-only auditing; the skill does not explicitly state that target files must not be modified.
- •Scanning authentication code and configuration may expose secrets or credentials in findings; the skill does not include guidance to redact sensitive values.
Exemples
Validate authentication security across ./src/auth and ./src/api — inventory the login, session, and token endpoints, then report findings with severity, CWE IDs, and an OWASP ASVS V2/V3 pass/fail matrix.Check our JWT implementation: confirm the signing algorithm is safe, that exp/iat/aud/iss are validated, that the `none` algorithm is rejected, and that tokens aren't stored in localStorage. Give me remediation diffs.Review the OAuth callback handler for CSRF state parameter usage, redirect URI whitelisting, and PKCE on our public client, and flag anything missing.name: validating-authentication-implementations description: Validate authentication mechanisms for security weaknesses and compliance. Use when reviewing login systems or auth flows. Trigger with 'validate authentication', 'check auth security', or 'review login'. version: 1.0.0 allowed-tools: Read, Write, Edit, Grep, Glob, Bash(security:), Bash(scan:), Bash(audit:*) license: MIT author: Jeremy Longshore jeremy@intentsolutions.io tags:
- security
- authentication
- compliance compatibility: Designed for Claude Code, also compatible with Codex and OpenClaw
Validating Authentication Implementations
Overview
Validate authentication mechanisms across web applications, APIs, and backend services for security weaknesses, compliance gaps, and implementation flaws. This skill examines password hashing, JWT token handling, session management, OAuth flows, MFA implementation, and account security controls against OWASP and NIST standards.
Prerequisites
- Access to the target codebase and configuration files in
${CLAUDE_SKILL_DIR}/ - Familiarity with the authentication framework in use (Passport.js, Spring Security, Django Auth, NextAuth, etc.)
- Standard shell utilities and Grep/Glob available for codebase scanning
- Reference:
${CLAUDE_SKILL_DIR}/references/README.mdfor OWASP authentication cheat sheet, NIST password guidelines, and JWT RFC specifications
Instructions
- Identify all authentication entry points by scanning for login routes, token endpoints, session initialization, and OAuth callback handlers using Grep across route definitions and controller files.
- Examine password storage by locating hashing function calls -- verify use of bcrypt, scrypt, or Argon2id with appropriate cost factors. Flag any use of MD5, SHA-1, SHA-256 without key stretching, or plaintext storage as CWE-916 (Use of Password Hash With Insufficient Computational Effort).
- Validate JWT implementations: check signing algorithms (reject
none, flag HS256 with weak secrets), verifyexp,iat,aud, andissclaims are validated, confirm tokens are not stored in localStorage (XSS exposure), and check for proper refresh token rotation. - Assess session management: verify session IDs are regenerated after authentication, sessions have appropriate timeouts (idle and absolute), cookies use
HttpOnly,Secure, andSameSite=StrictorSameSite=Laxattributes, and session fixation protections are in place. - Review OAuth/OIDC flows: confirm
stateparameter usage for CSRF protection, validate redirect URI whitelisting, check PKCE implementation for public clients, and verify token storage security. - Evaluate MFA implementation: confirm MFA is available for privileged accounts, check TOTP secret storage encryption, verify backup code generation uses cryptographically secure randomness, and flag any MFA bypass paths.
- Check account security controls: verify rate limiting on login endpoints, account lockout policies after failed attempts, secure password reset flows (time-limited tokens, no user enumeration), and brute-force protections.
- Validate credential transmission: confirm all auth endpoints enforce HTTPS, passwords are never logged or included in URLs, and API keys use secure header transmission rather than query parameters.
- Classify each finding by severity and map to CWE identifiers and OWASP ASVS requirements.
- Produce a remediation plan with specific code changes for each finding.
Output
- Authentication inventory: List of all auth mechanisms, endpoints, and flows in the codebase
- Findings report: Each finding includes severity, CWE reference (e.g., CWE-287 Improper Authentication, CWE-384 Session Fixation, CWE-916 Weak Password Hash), affected file/line, and remediation steps
- OWASP ASVS compliance matrix: Pass/fail status for ASVS V2 (Authentication) and V3 (Session Management) requirements
- Token security analysis: JWT algorithm, claim validation status, storage mechanism, and expiration policy
- Executive summary: Risk rating, total findings by severity, and top priority fixes
Error Handling
| Error | Cause | Solution |
|-------|-------|----------|
| No authentication code found | Incorrect scan scope or unconventional auth patterns | Broaden Grep patterns; check for third-party auth services (Auth0, Firebase Auth, Cognito) configured externally |
| Cannot determine hashing algorithm | Hashing abstracted behind framework | Inspect framework configuration files (e.g., config/auth.php, settings.py) for algorithm settings |
| JWT library version unknown | Dynamic dependency resolution | Check lock files (package-lock.json, poetry.lock) for pinned versions and cross-reference known vulnerabilities |
| Session config not in codebase | Session management handled by infrastructure | Check reverse proxy configs (nginx, Apache), cloud session stores (Redis, DynamoDB), or PaaS settings |
| Rate limiting not detectable | Rate limiting at infrastructure layer | Note as "unverifiable from codebase" and recommend confirming at the infrastructure level |
Examples
JWT Implementation Review
Scan ${CLAUDE_SKILL_DIR}/src/auth/ and ${CLAUDE_SKILL_DIR}/src/middleware/ for JWT signing and
verification logic. Flag any use of jwt.sign() with algorithm: 'none' or
HS256 paired with a secret shorter than 256 bits as CWE-327 (Use of Broken
Crypto Algorithm), severity critical. Verify that jwt.verify() validates
exp, aud, and iss claims.
Password Storage Audit
Grep for bcrypt, argon2, scrypt, hashSync, pbkdf2 across the
codebase. If password hashing uses crypto.createHash('md5') or
hashlib.sha256() without PBKDF2 wrapping, flag as CWE-916, severity critical.
Verify salt generation uses crypto.randomBytes() or equivalent CSPRNG.
Session Cookie Hardening
Locate session configuration in ${CLAUDE_SKILL_DIR}/config/ or middleware setup files.
Verify cookie attributes include httpOnly: true, secure: true,
sameSite: 'strict', and maxAge under 24 hours. Flag missing httpOnly as
CWE-1004 (Sensitive Cookie Without HttpOnly), severity high.
Resources
Du fichier au premier essai
Le téléchargement contient exactement le contenu affiché sur cette fiche. Cette copie peut différer de la dernière version du dépôt source.
Consulter la source et ses fichiers annexesCe téléchargement contient uniquement SKILL.md. Les scripts, références, modèles et dépendances éventuels ne sont pas inclus. Récupérez les fichiers nécessaires depuis la source en conservant leur arborescence avant de poursuivre.
1. Télécharger le fichier
Télécharger SKILL.mdDepuis la racine d’un projet de test, enregistrez le fichier sous .skill-downloads/validating-authentication-implementations-mrwakcxt/SKILL.md, ou utilisez la commande suivante. Ce dossier sert à examiner la skill avant son installation.
Commande pour macOS/Linux ou WSL : un shell POSIX et curl sont nécessaires. Sous Windows sans WSL, utilisez le bouton de téléchargement et créez le dossier manuellement.
mkdir -p '.skill-downloads/validating-authentication-implementations-mrwakcxt' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/validating-authentication-implementations-mrwakcxt/download' --output '.skill-downloads/validating-authentication-implementations-mrwakcxt/SKILL.md.part' && mv '.skill-downloads/validating-authentication-implementations-mrwakcxt/SKILL.md.part' '.skill-downloads/validating-authentication-implementations-mrwakcxt/SKILL.md'2. Vérifier les prérequis
Lisez SKILL.md avant de l’utiliser. Si le fichier cite des scripts ou services externes, examinez-les et préparez les accès nécessaires dans votre environnement de test.
Environnement déclaré par l’auteur : Designed for Claude Code, also compatible with Codex and OpenClaw
Outils déclarés par l’auteur (à vérifier dans votre agent) : Read, Write, Edit, Grep, Glob, Bash(security:*), Bash(scan:*), Bash(audit:*)
Extrait original : Prerequisites
- Access to the target codebase and configuration files in
${CLAUDE_SKILL_DIR}/ - Familiarity with the authentication framework in use (Passport.js, Spring Security, Django Auth, NextAuth, etc.)
- Standard shell utilities and Grep/Glob available for codebase scanning
- Reference:
${CLAUDE_SKILL_DIR}/references/README.mdfor OWASP authentication cheat sheet, NIST password guidelines, and JWT RFC specifications
Les plateformes de la fiche sont des indications du catalogue. Les chemins ci-dessous suivent la documentation des outils ; ils ne prouvent pas que cette skill y a été exécutée. Aucune version minimale de ces outils n’est attestée pour cette fiche.
3. Charger la skill
Après vérification, copiez le dossier complet dans le projet avec l’une des commandes ci-dessous, puis ouvrez une nouvelle session de l’outil. La commande s’arrête si un dossier du même nom existe déjà : comparez les fichiers avant de le remplacer.
Claude Code
test -f '.skill-downloads/validating-authentication-implementations-mrwakcxt/SKILL.md' && test -s '.skill-downloads/validating-authentication-implementations-mrwakcxt/SKILL.md' && mkdir -p '.claude/skills' && test ! -e '.claude/skills/validating-authentication-implementations' && cp -R '.skill-downloads/validating-authentication-implementations-mrwakcxt' '.claude/skills/validating-authentication-implementations'Codex
test -f '.skill-downloads/validating-authentication-implementations-mrwakcxt/SKILL.md' && test -s '.skill-downloads/validating-authentication-implementations-mrwakcxt/SKILL.md' && mkdir -p '.agents/skills' && test ! -e '.agents/skills/validating-authentication-implementations' && cp -R '.skill-downloads/validating-authentication-implementations-mrwakcxt' '.agents/skills/validating-authentication-implementations'OpenSkills
OpenSkills doit déjà être installé. La procédure locale install/read est contrôlée avec OpenSkills 1.5.0, qui exige Node.js ≥ 20.6.0. Aucun slug du catalogue n’est résolu automatiquement.
Installation officielle d’OpenSkillsopenskills install './.skill-downloads/validating-authentication-implementations-mrwakcxt'openskills read 'validating-authentication-implementations-mrwakcxt'La lecture doit afficher le contenu du fichier installé et son dossier de base. Elle ne lance ni la skill ni ses dépendances.
Pour un agent qui lit AGENTS.md, synchronisez ensuite l’index. Cette commande modifie AGENTS.md : relisez le diff avant de l’utiliser.
openskills syncMode manuel ou autre outil : joignez SKILL.md à une conversation, ou ouvrez-le dans un agent capable de lire les fichiers. Ajoutez les ressources annexes nécessaires. Il n’existe pas de dossier universel reconnu par tous les outils.
4. Faire un premier essai
Utilisez une entrée courte et fictive : un endpoint d’API, un petit document ou un brief d’interface. Dans une nouvelle conversation, joignez le fichier ou donnez son chemin à l’agent, puis adaptez cette demande :
Lis .skill-downloads/validating-authentication-implementations-mrwakcxt/SKILL.md et applique ses instructions à cet exemple : [décrire une entrée de test]. Indique les fichiers, dépendances ou accès qui manquent. Produis le résultat demandé par la skill sans inventer de données ni exécuter de script non examiné.Résultat attendu : une sortie correspondant aux instructions de la skill, ou une liste précise des prérequis manquants. Une simple confirmation de lecture ne valide pas le premier usage. Si une ressource externe est indisponible, ce parcours reste à tester.
Sécurité AMM DeFi
Securite
Checklist de sécurité pour les contrats Solidity AMM, pools de liquidité et flux de swap. Couvre réentrance, attaques par donation, manipulation d'oracles, etc.
Créateur de règles Semgrep
Securite
Crée des règles Semgrep personnalisées pour détecter des vulnérabilités de sécurité, des motifs de bugs et des motifs de code. Inclut une méthodologie de test en premier, le support du mode taint et des étapes de validation. Utile pour construire des détections d'analyse statique ciblées.
Revue barre d'outils développement
Securite
Règles de sécurité pour la barre d'outils de développement, le client PostHog et les feature flags. À utiliser lors de la revue de modifications des composants dev-tools et connexes.