AGENT SKILL
security-auth-flow-review
暂无简介
- License 许可
- MIT
- 最近更新
- 2026-11-06
- Stars
- ★ 8
- Forks
- 0
02 资源文件 1
- 参考文档evals.json655 B
03 SKILL.md 正文
security-auth-flow-review
The auth flow is the door; step through it like an attacker, not like a user.
What you do
Walk the flow step by step, from client initiation to revocation, annotating each step with the secret material, the redirect, the state carried, and the failure path. Then threat-map it — misused redirects, token replay, fixation, scope escalation — and write remediations.
- Reconstruct the flow diagram end-to-end: client → IdP → callback → session → refresh → logout → revocation.
- Check redirect URI allowlists, state / PKCE, nonce, ID token validation, audience / issuer.
- Validate session storage (HttpOnly, Secure, SameSite, idle / absolute timeout, rotation on privilege change).
- Inspect token lifecycle: access / refresh TTL, rotation, revocation server-side, clock skew tolerance.
- Cover the negative paths: stolen refresh token, leaked authorization code, CSRF on login, logout on shared device.
- Map each finding to a concrete fix (code or config), a severity, and an owner.
Output shape
A markdown file auth-review.md:
- Flow diagram — step-by-step with data flowing.
- Components — IdP, authz server, resource server, client, session store.
- Threat map — per step: threat · control · status · finding.
- Findings — severity · description · repro · fix · owner.
- Token lifecycle — issuance · storage · rotation · revocation rules.
- Test plan — cases to add (happy, CSRF, replay, revocation).
Anti-patterns
- Rubber-stamp review — "looks fine" with no step-by-step walk.
- Testing only the happy path — the attacker lives in the negative paths.
- Ignoring token lifecycle — long-lived refresh tokens with no rotation are a classic breach fuel.
- Missing redirect URI exact-match check — open redirect enables auth code theft.
- No revocation plan — "rotate secrets" works until you need to kick a specific user.
- Skipping IdP configuration audit — client-side hardening is wasted if the IdP is mis-set.
Handoff
Return the review doc path to the invoking security specialist. Fixes typically chain to the owning service specialist (backend / mobile); new test cases chain to qa-test-strategy. If the flow needs redesign, escalate to architect-systems-design. This skill does not dispatch.
04 同仓库更多 Skills
technical-writer-user-manual
暂无简介
★ 8
technical-writer-release-notes
暂无简介
★ 8
technical-writer-api-docs
暂无简介
★ 8
social-media-platform-post
暂无简介
★ 8
social-media-engagement-templates
暂无简介
★ 8
social-media-content-calendar
暂无简介
★ 8