browser-auth-flow
它能做什么
这项技能指导智能体检查网站的登录过程,查找令牌泄露、缺少防伪造请求保护以及 Cookie 不安全等问题。适合拥有网站、希望在上线前检查登录功能的开发者。
适用场景
- ✓当你即将上线新的登录或注册流程时。
- ✓当你怀疑登录跳转可能泄露会话令牌时。
- ✓当你希望长期、可重复地检查登录安全性时。
技能链接
https://github.com/ruvnet/ruflo/blob/main/plugins/ruflo-browser/skills/browser-auth-flow/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请在我的预发布站点上测试登录流程,检查跳转是否泄露数据、是否缺少 CSRF 保护,以及会话 Cookie 是否薄弱。”
每周 5 个新技能,1 分钟读完。
工作原理
智能体记录一次登录会话,然后对捕获的请求、跳转和 Cookie 运行检查,并生成一份发现报告。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Browser Auth Flow
Adversarial probe of a site's authentication. Drives the login flow once, records the trajectory, then runs a configurable set of probes against the captured artifacts and live page. Output is a structured findings.md inside the RVF container.
When to use
- Pre-deployment audit of a new auth flow.
- Investigating a suspected token leak or redirect issue.
- Establishing a baseline for ongoing regression checks.
Steps
Open a recorded session via
browser-record.Drive the auth flow as in
browser-login(credentials come from--credentials <handle>referencingbrowser-cookiesif the run is a re-auth probe).Run probes:
csrf: inspect the login POST in the trajectory; verify a same-origin token field is present and non-empty.redirect: watchbrowser_get-urlafter each nav for cross-origin redirects with auth state in the URL or fragment. Flag any token-bearing URL that crosses an origin boundary.cookie:document.cookieexposes only name=value of non-HttpOnlycookies; it cannot showSecure,SameSiteor expiry. Viabrowser_eval, return only each visible cookie's name, value length and entropy estimate (never the values themselves), and flag any session-looking name that is visible at all, because a visible cookie is by definition notHttpOnly. ForSecure/HttpOnly/SameSite/expiry, read theSet-Cookieresponse headers (for examplecurl -sS -D - -o /dev/null <login-url>for pre-auth cookies); post-login attributes are not observable with these tools, so mark themnot-assessedand ask for a HAR or devtools export instead of guessing.oauth: if the flow involves a third-party provider, capture the authorization request, verifystateandnonceare present and high-entropy, verifyredirect_urimatches the registered callback domain.
Quarantine any token / credential / PII captured during probing — it stays inside the RVF container's findings, never returns to the model unredacted (
aidefence_is_safegate frombrowser-extractapplies if you read the findings back).Write
findings.mdwith one section per probe, severity rating per finding, and averdict(pass / warn / fail).Index the session in
browser-sessionswithtag: auth-probeso future audits compare against it.
Caveats
Authorization first. Only probe a site you own or have written permission to test; state which in the report. The skill must refuse third-party production sites.
This skill probes; it does not exploit. Do not chain follow-up requests using a captured token.
Credentials must come from a vaulted handle or interactive entry. Never hardcode them in the field map.
Some probes require multiple page loads. Trajectory step count for an auth probe typically lands at 15–40 steps; budget accordingly.
The output is structured for human review. Do not auto-act on findings without surfacing them to the user first.
常见问题
我可以测试不属于我的网站吗?
只能测试你拥有或已获得测试许可的网站,因为这项技能会运行对抗性探测。
它会显示 Cookie 的值吗?
不会。它只返回 Cookie 的名称和值的长度,不返回值本身。
它能替代完整的安全审计吗?
不能。它只涵盖特定的登录检查,应与更全面的审查结合使用。
详情
作者的原始描述
Probe a site's authentication flow for redirect leaks, missing CSRF, weak session cookies, and OAuth misconfiguration; produces an auth findings.md
repo: ruvnet/ruflo
热度
- GitHub 星标
- 81k
- 排名
- #1575
- 许可证
- MIT
- 更新时间
- 2026/11/2
评论
- …
同一仓库的更多技能
agent-adaptive-coordinator
81k帮你的智能体在工作量变化时拆分和重新平衡一组 AI 智能体,并选择适合任务的分工方式。
agent-agent
81k教你的智能体把一个大目标拆成有顺序的行动计划,并在情况变化时重新规划。
agent-agentic-payments
81k帮你的智能体管理 AI 购物的消费授权,包括消费上限、时间窗口、商户规则和签名审批。
agent-analyze-code-quality
81k帮你的智能体检查代码质量,找出代码异味、技术债务和重构建议,且不改动文件。