auth-audit
БесплатноБез исполняемых скриптовНе проверенUse when auditing authentication (JWT, sessions, cookies, OAuth2/OIDC/PKCE, password storage, MFA, account recovery) or authorization (BOLA/IDOR, mass…
от Fusengine★ 36 звёзд на GitHubОб этом скилле
Every fixed value (hash parameters, timeouts, PKCE rules) comes from a cited primary source: OWASP ASVS 5.0.0, OWASP Password Storage Cheat Sheet, RFC 9700, RFC 7518, NIST SP 800-63B-4.
Auth Audit Skill
Workflow
- Detect the auth stack (session framework, JWT library, OAuth/OIDC client or AS, password hasher, MFA) and the entry-point types (route handlers, server actions/functions, controllers, handlers).
- Authentication pass — apply Auth Patterns section by section.
- Authorization pass — apply the method in Authorization Patterns to every entry point that takes an identifier or performs a privileged action.
- Checklist — tick Auth Checklist; every unchecked item is a candidate.
- Refute — run a second, read-only pass on each candidate that tries to disprove it (central middleware, base controller, policy, DB row-level security, query scope, framework default). Keep it only if it survives.
- Report — findings and "needs manual review" list in the audited repository at
docs/security/YYYY-MM-DD-<scope>.md.
Finding format (shared contract)
| Field | Content |
|---|---|
| id | AUTH-NNN / AUTHZ-NNN |
| title | One line |
| severity | CRITICAL / HIGH / MEDIUM / LOW |
| confidence | 1-10 — only ≥ 8 is reported as a finding; lower goes to "needs manual review" |
| CWE | e.g. CWE-639, CWE-915, CWE-347, CWE-384, CWE-916 |
| standard | OWASP Top 10:2025 (A01 Broken Access Control, A07 Authentication Failures, …), OWASP API Security Top 10 2023, OWASP ASVS 5.0.0 (v5.0.0-x.y.z), OWASP MASVS 2.1.0 — whichever applies |
| location | file:line (or URL) |
| evidence | The code excerpt or response that shows it (never a secret value — redact) |
| exploit scenario | Concrete steps an attacker takes |
| recommendation | Smallest fix; snippets are recommendations, not applied |
Search patterns in the references are heuristics: a grep hit alone never reaches confidence 8.
Common high-impact defects
- Server action / server function / route handler that authenticates but never checks ownership of the ID it receives (API1:2023)
- Raw request body written to the model (
$request->all(),data: body, binding into the DB entity) (API3:2023) - JWT accepted without signature verification, with
none, or withoutaud/expchecks (ASVS 9.1-9.2) - Session id not regenerated on login (ASVS 7.2.4); logout that does not invalidate server-side (ASVS 7.4.1)
- OAuth public client without PKCE
S256; non-exact redirect URI; implicit or password grant (RFC 9700) - Password hash below OWASP minimums (e.g. scrypt N=2^15 with p=1, bcrypt cost < 10, fast hashes)
- Password reset that bypasses MFA (ASVS 6.4.3); user enumeration in login/reset (ASVS 6.3.8)
References
- Auth Patterns — tokens, sessions, OAuth/OIDC, password storage, MFA, recovery
- Authorization Patterns — BOLA/BOPLA/BFLA, tenant isolation, per-stack heuristics, iOS MASVS
- Auth Checklist
Установить auth-audit в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл auth-audit?
Use when auditing authentication (JWT, sessions, cookies, OAuth2/OIDC/PKCE, password storage, MFA, account recovery) or authorization (BOLA/IDOR, mass assignment, function-level checks, tenant isolation) in web, API or iOS code.
Как установить скилл auth-audit?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл auth-audit запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic