跳到正文
Skillpedia
安全81k · #1575

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。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/ruvnet/ruflo/blob/main/plugins/ruflo-browser/skills/browser-auth-flow/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 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

  1. Open a recorded session via browser-record.

  2. Drive the auth flow as in browser-login (credentials come from --credentials <handle> referencing browser-cookies if the run is a re-auth probe).

  3. Run probes:

    • csrf: inspect the login POST in the trajectory; verify a same-origin token field is present and non-empty.
    • redirect: watch browser_get-url after 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.cookie exposes only name=value of non-HttpOnly cookies; it cannot show Secure, SameSite or expiry. Via browser_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 not HttpOnly. For Secure/HttpOnly/SameSite/expiry, read the Set-Cookie response headers (for example curl -sS -D - -o /dev/null <login-url> for pre-auth cookies); post-login attributes are not observable with these tools, so mark them not-assessed and ask for a HAR or devtools export instead of guessing.
    • oauth: if the flow involves a third-party provider, capture the authorization request, verify state and nonce are present and high-entropy, verify redirect_uri matches the registered callback domain.
  4. Quarantine any token / credential / PII captured during probing — it stays inside the RVF container's findings, never returns to the model unredacted (aidefence_is_safe gate from browser-extract applies if you read the findings back).

  5. Write findings.md with one section per probe, severity rating per finding, and a verdict (pass / warn / fail).

  6. Index the session in browser-sessions with tag: auth-probe so 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

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能