auth-session-review

auth-session-review is a skill for Claude Code, Codex from liuxinye23/CyberStrikeAI. It costs 31 tokens per session (1,172 once invoked), scanned A, original, Apache-2.0.

A guide for reviewing login, logout, password recovery, multi-factor authentication, cookies, tokens, permissions, and cross-site request protections.

In plain words
What is it for?
Use it to compare anonymous and signed-in roles, inspect cookie and token settings, test session renewal and revocation, permission changes, account switching, and CSRF protections.
Why use it?
It helps reveal sessions that remain valid too long, fail to expire, cross security boundaries, or allow actions from an untrusted website.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to compare anonymous and signed-in roles, inspect cookie and token settings, test session renewal and revocation, permission changes, account switching, and CSRF protections.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/liuxinye23/cyberstrikeai/auth-session-review
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add liuxinye23/CyberStrikeAI --skill auth-session-review
Clone the repo
git clone --depth 1 https://github.com/liuxinye23/CyberStrikeAI

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for auth-session-review

README.md
[![agentmods](https://agentmods.dev/badge/skills/liuxinye23/cyberstrikeai/auth-session-review/github.svg)](https://agentmods.dev/skills/liuxinye23/cyberstrikeai/auth-session-review)
Your own site
<a href="https://agentmods.dev/skills/liuxinye23/cyberstrikeai/auth-session-review"><img src="https://agentmods.dev/badge/skills/liuxinye23/cyberstrikeai/auth-session-review/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for auth-session-review

Your own site · 80×15
<a href="https://agentmods.dev/skills/liuxinye23/cyberstrikeai/auth-session-review"><img src="https://agentmods.dev/badge/skills/liuxinye23/cyberstrikeai/auth-session-review.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 31 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,172 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00031 $0.01172
Opus 5 $0.00015 $0.00586
Sonnet 5 $0.00006 $0.00234
Haiku 4.5 $0.00003 $0.00117

Measured 10d ago against content hash 1633dfc3a180, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

auth-session-review scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 10d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/auth-session-review/SKILL.md · 120 lines

What it actually says

认证与会话审计

何时使用

当目标涉及登录、登出、密码重置、会话续期、记住我、MFA、管理后台切换身份、API Token 与浏览器 Cookie 共存等场景时使用本技能。

如果请求已经明确落到 SQLi、XSS、文件上传或 IDOR,优先调用对应专项 skill;本技能负责把认证与会话面的边界审计做完整。

快速流程

  1. 画出认证面:登录入口、登出、注册、找回密码、刷新令牌、MFA、后台切换身份、移动端接口。
  2. 区分匿名态、普通用户态、高权限态,保存每类请求与响应摘要。
  3. 检查会话建立、续期、失效、权限升级与跨设备行为是否一致。
  4. 审核 Cookie/Token 属性、作用域、生命周期、撤销逻辑与 CSRF 防护。
  5. 记录可复现证据,重点写“前置条件、角色、步骤、预期、实际”。

重点检查

登录与会话建立

  • 登录成功后是否签发多个并存凭据,例如 Cookie、Bearer Token、临时票据。
  • 登录失败、锁定、验证码、MFA 缺失时,返回是否泄露用户名存在性或策略细节。
  • 不同入口是否共享同一会话体系,避免 Web 与 API 的认证边界不一致。
  • Cookie 是否设置 HttpOnlySecure、合适的 SameSite
  • Domain / Path 作用域是否过宽,避免把管理会话暴露给不相关子路径或子域。
  • Token 是否包含过长有效期、缺失受众限制、角色与设备信息不一致。

会话续期与撤销

  • 登出后旧凭据是否立即失效,还是仅前端删除本地状态。
  • 修改密码、重置密码、MFA 重绑、权限变更后,历史会话是否被统一撤销。
  • “记住我”与常规会话是否清晰区分,避免长期凭据绕过短期会话控制。

权限切换与敏感操作

  • 升权、切租户、切组织、切项目、模拟登录等操作后,会话上下文是否刷新。
  • 敏感操作是否需要再次确认身份,例如二次密码、MFA、短期 step-up。
  • 不同角色共享同一浏览器时,缓存和前端状态是否造成越权显示。

CSRF 与跨站边界

  • 浏览器态接口是否对跨站请求具备清晰防护:SameSite、CSRF Token、双重提交、Origin/Referer 校验。
  • 仅依赖自定义 Header 而无源校验时,要确认真实浏览器请求链是否能稳定阻断跨站调用。

建议工具

http-framework-test

  • 对匿名、普通用户、高权限三类请求做并排比较。
  • 固定重放登录后关键操作,关注 Set-Cookie、缓存头、重定向、状态码差异。
  • 对登出后相同请求做复测,验证旧会话是否真正失效。

jwt-analyzer

  • 用于解码与审阅声明、时间字段、受众和作用域,不要只看前端展示文案。
  • 若系统同时使用 Cookie 与 JWT,分别记录谁是授权源、谁只是显示载体。

nuclei

  • 作为补充检查常见认证配置错误、默认后台、敏感路径暴露,不替代手工状态对比。

证据要求

  • 保存匿名态、已登录态、登出后复测三组请求摘要。
  • 对权限切换、密码修改、MFA 变更等动作,记录变更前后相同接口的差异。
  • 若问题依赖浏览器行为,补充 Cookie 属性、重定向链和关键响应头。

输出模板

  • 资产与入口
  • 角色与会话模型
  • 发现的问题
  • 复现步骤
  • 影响范围
  • 修复建议

修复建议方向

  • 缩短长期凭据有效期,并把撤销逻辑与密码/MFA/权限变更联动。
  • 按操作敏感度增加 step-up 身份确认。
  • 收紧 Cookie 作用域,明确 SameSite 策略,补足跨站源校验。
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 10d ago First seen · 120 lines · 31 tokens per session scan A 1633dfc3a180

Subscribe to this mod's changes

auth-session-review is a skill published in the GitHub repository liuxinye23/CyberStrikeAI (0 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 31 tokens to every session and 1,172 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

systematic-debugging

Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.

obra/superpowers · 21 tokens

local-ai-agents

Build local-first AI agents that run entirely on a developer workstation with Microsoft Foundry Local and Qwen function-calling models. Covers Small Language Models (SLMs), the OpenAI-compatible local endpoint, sandboxed local tools, local RAG with Chroma, local MCP servers, hybrid cloud/local routing, and the…

microsoft/ai-agents-for-beginners · 200 tokens

next-cache-components-adoption

Turn on Cache Components in a Next.js app and resolve the blocking routes it surfaces. Use when the user wants to enable, adopt, or migrate to Cache Components, flip the cacheComponents flag, work through a flood of blocking-prerender / instant validation errors, run the cache-components-instant-false codemod, or…

vercel/next.js · 95 tokens

insight-error-page

Write or audit an insight-kind error page for the Next.js dev overlay. Use when creating a new errors/ .mdx page, auditing an existing one, or checking that a page matches the framework fix cards. Covers page structure, title alignment, FixCard cards with Copy prompt button, code snippets, terminology verification…

vercel/next.js · 83 tokens

next-cache-components-optimizer

Drive a Next.js route to instant navigation by setting up an agentic loop, under Cache Components / PPR, on initial load (hard navigation) and client-side navigation (soft navigation). Encode the goal as a failing @next/playwright instant() e2e and work it to green, one verified route at a time; the shipped test then…

vercel/next.js · 170 tokens

next-partial-prefetching-adoption

Turn on Partial Prefetching in a Next.js app and work through the insights it surfaces. Use when the user wants to enable or adopt Partial Prefetching, flip the partialPrefetching flag, opt routes in with export const prefetch = 'partial', audit Link prefetch={true} behavior, preserve existing prefetched UI with…

vercel/next.js · 103 tokens