跳到正文
Skillpedia
品牌48k · #4929

identity-federation

它能做什么

这个工具用于检查那些允许你用一个账号访问多个其他服务(比如“使用 Google 登录”)的系统的安全性。它会测试这些系统的配置是否正确,以防止未经授权的访问。

适用场景

  • ✓在已获授权的范围内测试单点登录(SSO)时。
  • ✓排查签名验证方式中的漏洞时。
  • ✓调查令牌(token)可能在多个服务之间被滥用的问题时。

技能链接

https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/identity-federation/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

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

可以这样问 AI

“我想测试网站 X 的登录安全性。我已经拿到了书面授权,需要检查 SAML 流程。”

每周 5 个新技能,1 分钟读完。

工作原理

这个工具会分析不同服务之间如何通信来验证用户身份。它会检查交换的信息(令牌、签名)是否有效,是否可能被伪造或滥用。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

⚠️ AUTHORIZED USE ONLY This skill is for educational purposes or authorized security assessments only. You must have explicit, written permission from the system owner before using this tool. Misuse of this tool is illegal and strictly prohibited.

Mandatory confirmation gate Before running any command that probes, exploits, changes, persists on, extracts data from, or attempts credential access against a target:

  1. Ask the user to state the exact target URL, IP, account, or resource.
  2. Ask the user to confirm written authorization and the permitted scope.
  3. Show the exact command(s) and explain their expected effect.
  4. Wait for explicit confirmation in the current conversation.

Without that confirmation, remain read-only and provide defensive guidance only. Prefer a sandbox, disposable VM, or controlled lab.

Identity Federation (SAML / OIDC / OAuth)

When to Use

  • Testing SSO/federation flows within an approved scope.
  • Hunting signature-validation or audience-confusion flaws.

适用场景

  • SAML Response 签名/断言篡改面(经典缺陷模式)
  • OIDC 隐式/授权码 + PKCE 缺失
  • redirect_uri / state / nonce 问题
  • IdP 与 SP 元数据、多租户 issuer 混淆
  • 与 api-security JWT 攻击互补(本 skill 偏联邦与 SSO 流)

工作流

□ 画清:User → SP → IdP → Token → SP
□ 收集:/.well-known/openid-configuration、SAML metadata
□ 检查:redirect_uri 精确匹配、state 绑定、PKCE
□ 检查:SAML 签名覆盖范围、algorithm 降级
□ 会话固定与登出失效

工具链

工具 用途
Burp + SAML Raider 等 断言编辑(授权)
jwt_tool JWT 段
浏览器 DevTools 重定向链
IdP 管理日志 审计

参考

  • references/sso-flow-checklist.md
  • ../api-security/ ../windows-ad/(企业 IdP)

路由上下文

上游: MASTER R37
下游: 纯 API JWT → api-security;云 IdP → cloud-k8s

任务完成自检

  • 是否映射完整 SSO 流?
  • 每个 Finding 是否有复现与影响?
  • Checklist?

Limitations

  • IdP-side testing is often out of scope; confirm boundaries first.
  • Token replay tests can lock out real users; stage carefully.

Adapted from zhaoxuya520/reverse-skill (MIT).

常见问题

什么是“身份联合”(identity federation)?

这是一种让你用一个统一的登录账号(比如 Google 账号)访问多个不同应用的机制,无需为每个应用单独注册账号。

SAML、OIDC 和 OAuth2 是什么?

它们都是协议(一套规则),用于让身份联合安全地运行。

我可以用它测试任何网站吗?

不可以。你只能对已获得明确书面授权的系统,使用这个工具进行安全测试。

详情

作者的原始描述

Authorized assessment of federated identity systems: SAML, OIDC, OAuth2 flows, SSO misconfiguration, and token-confusion issues.

repo: sickn33/agentic-awesome-skills

热度

GitHub 星标
48k
排名
#4929
许可证
MIT
更新时间
2026/10/15

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能