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。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 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:
- Ask the user to state the exact target URL, IP, account, or resource.
- Ask the user to confirm written authorization and the permitted scope.
- Show the exact command(s) and explain their expected effect.
- 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-securityJWT 攻击互补(本 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.
热度
- GitHub 星标
- 48k
- 排名
- #4929
- 许可证
- MIT
- 更新时间
- 2026/10/15
评论
- …
同一仓库的更多技能
00-andruia-consultant
48k帮你的智能体启动或改进 AI 项目。它可以分析代码、推荐工具,并用西班牙语制定行动计划。
007
48k让你的智能体执行安全审计和威胁建模。它有助于保护项目免受攻击和漏洞的威胁。
10-andruia-skill-smith
48k帮你的智能体创建或改进 AI 工具。它可以定义工具的工作方式、编写文档,并验证其结构。
20-andruia-niche-intelligence
48k让你的智能体创建某个特定行业的摘要。它有助于借助可靠的信息来源,了解项目的背景、规则、使用模式和风险。