auth
This skill should be used when the user asks to "check for authentication issues", "analyze auth", "find credential vulnerabilities", "review login security"…
от florianbuetow★ 22 звезды на GitHub
Установить auth в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Identification and Authentication Failures
Analyze source code for authentication and session management vulnerabilities. Detect weak credential handling, missing brute force protections, insecure session management, and absent multi-factor authentication. Produce actionable findings with severity ratings, code locations, and concrete remediation steps.
Supported Flags
All flags from ../../shared/schemas/flags.md are supported:
| Flag | Relevant Behavior |
|---|---|
--scope <value> |
Determines which files to analyze (default: changed) |
--depth <value> |
quick: pattern scan only. standard: full read + analysis. deep: trace auth flows cross-file. expert: red team simulation with DREAD scoring |
--severity <value> |
Filter findings by minimum severity |
--format <value> |
Output format: text, json, sarif, md |
--fix |
Chain into remediation after analysis |
--quiet |
Findings only, no explanations |
--explain |
Add learning context to each finding |
Framework Context
OWASP Top 10 2021 - A07: Identification and Authentication Failures
Confirmation of the user's identity, authentication, and session management is critical to protect against authentication-related attacks. Applications are vulnerable when they:
- Permit automated attacks such as credential stuffing or brute force
- Permit default, weak, or well-known passwords
- Use weak credential recovery processes (e.g., knowledge-based answers)
- Store passwords in plain text, encrypted, or with weak hashes (MD5, SHA1)
- Lack or have ineffective multi-factor authentication
- Expose session identifiers in URLs
- Reuse session identifiers after successful login
- Fail to properly invalidate sessions on logout or timeout
STRIDE Mapping: Spoofing, Repudiation
CWE References: CWE-287 (Improper Authentication), CWE-384 (Session Fixation), CWE-307 (Brute Force), CWE-521 (Weak Password Requirements), CWE-916 (Weak Password Hash), CWE-613 (Insufficient Session Expiration), CWE-308 (Missing MFA)
Detection Patterns
Read references/detection-patterns.md before
performing analysis. It contains detailed Grep heuristics, language-specific code
examples, scanner coverage, and false positive guidance for each vulnerability pattern.
Workflow
1. Determine Scope
Parse --scope flag and resolve to a concrete file list:
- Apply scope resolution per
../../shared/schemas/flags.md. - Filter to files relevant to authentication:
- Route handlers, middleware, and controllers (login, register, password reset endpoints)
- Authentication modules and services
- Session configuration files
- Password hashing and validation utilities
- JWT/token generation and validation code
- OAuth/OIDC integration code
- Configuration files (session timeout, password policy settings)
- Include framework-specific auth files (e.g.,
passport.jsconfigs, Djangoauthbackends, Spring Security configs, Goauthmiddleware).
2. Check for Scanners
Detect available scanners in order of preference:
| Scanner | Detect | Relevant Rules |
|---|---|---|
| semgrep | which semgrep |
Auth bypass, weak hashing, JWT issues, session management |
| bandit | which bandit |
Hardcoded passwords, weak hashes (Python) |
| gosec | which gosec |
Hardcoded credentials, weak crypto (Go) |
| gitleaks | which gitleaks |
Hardcoded secrets, API keys, passwords in code |
If no scanner is available, proceed with Claude analysis using Grep patterns from
references/detection-patterns.md. Note in output: "No scanner available -- findings
based on code pattern analysis only."
3. Run Scanners
For each available scanner:
- Execute against the scoped file list.
- Parse JSON output.
- Filter to authentication-related rules only.
- Normalize findings to the schema in
../../shared/schemas/findings.md. - Set
scanner.confirmed: truefor scanner-detected findings.
4. Claude Analysis
Regardless of scanner availability, perform manual code analysis:
- Read
references/detection-patterns.mdfor the full pattern catalog. - Use Grep with the regex patterns to locate suspicious constructs.
- Read surrounding code context (30-50 lines) to assess each match.
- Trace authentication flows from entry point to credential validation.
- At
--depth deepor higher: follow imports, trace session lifecycle, map the complete auth flow across files. - Deduplicate against scanner findings (same file + line = same finding).
- Set
confidence: mediumfor Claude-only findings,confidence: highwhen confirmed by a scanner.
5. Report Findings
Format output per --format flag. Each finding uses the schema from
../../shared/schemas/findings.md with these specifics:
- ID prefix:
AUTH(e.g.,AUTH-001,AUTH-002) - references.owasp:
A07:2021 - references.stride:
S(Spoofing) orR(Repu
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- references/detection-patterns.md
FAQ
Что делает скилл auth?
This skill should be used when the user asks to "check for authentication issues", "analyze auth", "find credential vulnerabilities", "review login security", "check session management", or mentions "authentication", "passwords", "MFA", "sessions", or "brute force" in a security context. Maps to OWASP Top 10 2021 A07: Identification and Authentication Failures.
Как установить скилл auth?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл auth запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
AnthropicToolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
access
AnthropicManage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
configure
AnthropicSet up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
access
AnthropicManage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…