Auditing Saml And Oidc Federation Trust 标志

Auditing Saml And Oidc Federation Trust

组织
UnboundCompute
auditing-saml-and-oidc-federation-trust

审查联合单点登录,检查依赖方本不应信任的断言:SAML 响应未对正确的元素验证签名,导致包装或篡改后的断言通过验证;OIDC ID Token 未检查签发方、受众或 nonce;依赖方未绑定主体或邮箱便予以信任,因此接受了任何用户的断言;以及联合身份验证信任了不应信任的身份提供方或签名密钥。适用于 SAML 和 OpenID Connect,依赖方会使用身份提供方签发的断言或 ID Token 对用户进行身份验证。当登录信任从身份提供方传递到依赖方,且断言验证构成安全边界时使用。伪造或绑定错误的断言是来源,由此建立的已验证身份会话是汇点,缺少签名、签发方、受众或绑定检查而接受该断言则是漏洞。

Add to TypingMind

概览

发布者UnboundCompute
代码仓库security-agent-skills
技能名称auditing-saml-and-oidc-federation-trust
星标数
27
复刻数
8
附带文件
仅含指令
许可协议MIT
链接
  • Markdown 格式的指令

    模型按需加载 SKILL.md 文件,因此只有在请求确实与该技能匹配时才会消耗 Token。

  • 兼容任何大语言模型

    AI 技能采用纯 Markdown,而非特定提供商的代码,因此可搭配 GPT、Claude、Gemini、Grok 或本地模型使用。

  • 指令自成一体

    模型所需的一切都包含在指令中,无需同步额外文件。

  • 开源

    由 UnboundCompute 发布于 GitHub。请在安装前查看技能的源文件。

安装

在 TypingMind 中安装 Auditing Saml And Oidc Federation Trust AI 技能,即可搭配任意大语言模型使用;也可以将其放入其他支持读取 SKILL.md 的智能体中。

1

安装到 TypingMind

TypingMind 可直接从 GitHub 文件夹安装技能:读取 SKILL.md,打包资源文件,并将结果保存在本地。

  1. 打开应用,前往“插件 → 技能”。
  2. 选择“从 GitHub 安装”。
  3. 粘贴下方的技能文件夹 URL 并确认。
    https://github.com/UnboundCompute/security-agent-skills/tree/main/skills/auditing-saml-and-oidc-federation-trust
  4. 请在每个需要使用该技能的聊天中启用它。
依次选择“插件 → 技能 → 添加技能 → 从 GitHub URL 导入”,然后粘贴文件夹 URL 并点击“继续”。
2

安装到其他智能体

任何支持 Agent Skills 格式的智能体都可以使用此技能,只需将文件夹复制到该智能体的技能目录中。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/UnboundCompute/security-agent-skills.git /tmp/security-agent-skills
mkdir -p .claude/skills
cp -r /tmp/security-agent-skills/skills/auditing-saml-and-oidc-federation-trust .claude/skills/auditing-saml-and-oidc-federation-trust
复制后,请重启 Claude Code,以加载新技能。

在 TypingMind 中使用此技能

在任意 TypingMind 聊天中启用 Auditing Saml And Oidc Federation Trust,后续即可交由模型处理。技能的名称和描述会放在系统提示词中,一旦请求匹配,模型就会自动加载完整指令,无需您手动调用,且在实际使用前不会消耗 Token。

一旦请求与技能匹配,模型就会自动加载 Auditing Saml And Oidc Federation Trust。

兼容任何 AI 模型

AI 技能是纯 Markdown 指令,而非特定提供商的代码,因此 Auditing Saml And Oidc Federation Trust 不局限于最初适配的模型。只需在 TypingMind 中安装一次,即可搭配 GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 或您自行运行的本地模型使用,全程使用您自己的 API 密钥。

  • 仅在需要时加载

    系统提示词中仅包含技能名称和描述。首次遇到匹配的请求时才会加载完整指令,因此技能未使用时,这些指令不会消耗 Token。

  • 在聊天中切换模型

    技能是指令而非代码,因此切换模型不会导致技能失效,新模型会读取同一个 SKILL.md。

技能指令

这是模型会加载的 SKILL.md 内容。请在安装前阅读,因为技能就是模型将遵循的指令。

Auditing SAML and OIDC federation trust: the assertion is only as good as its verification

Federated login moves the authentication decision to an identity provider and hands the relying party a signed assertion, a SAML response or an OIDC ID token, that says who the user is. The relying party's entire security then rests on verifying that assertion correctly, and the ways to verify it incorrectly are well worn. SAML signature wrapping slips an unsigned, attacker-authored assertion alongside a signed one so the application reads the wrong element; a signature checked over the wrong scope, or not at all, accepts a tampered response. An OIDC ID token whose issuer, audience, or nonce goes unchecked can come from the wrong provider, be minted for a different application, or be replayed. And a relying party that trusts a subject or email in the assertion without binding it to the verified issuer will authenticate any user an attacker names. The audit is not whether federation is configured but whether a forged or misbound assertion is refused. You audit this by testing each validation the relying party must perform on the assertion.

When to use

  • A relying party consumes SAML assertions or OIDC ID tokens from an identity provider to authenticate users.
  • Signature, issuer, audience, or nonce validation on the assertion may be missing or scoped wrong.
  • The relying party may trust a subject, email, or attribute without binding it to the verified issuer.

Scope check

Test federation trust only against relying parties and identity providers you own or are authorized to assess, on non-production accounts. Forging or replaying assertions attempts real authentication, so use non-production identities and never authenticate as a real user. If you can't name the authorization, stop.

The loop

  1. Establish the intended trust first. Name which identity provider and signing key the relying party should trust, the expected issuer and audience, and how the assertion's subject maps to a local user. This is the false-positive killer: a relying party that verifies the signature over the correct element against the expected key, checks issuer, audience, and nonce, and binds the subject to the verified issuer is correct. Name the intended trust, then test each check.

  2. Check SAML signature verification and wrapping. For SAML, confirm the signature is verified over the exact element whose contents are consumed, and that the application reads the signed assertion, not an unsigned one an attacker added. Test signature wrapping: a response containing a valid signed assertion plus an injected unsigned assertion the application might read instead. Confirm a tampered or wrapped response is rejected.

  3. Check OIDC issuer, audience, and nonce. For OIDC, confirm the ID token's issuer matches the expected provider, its audience matches this relying party, its signature verifies against the provider's current key, and the nonce ties it to this login request. A token from the wrong issuer, minted for a different audience, or replayed without a nonce check authenticates something the relying party did not request.

  4. Check subject binding and attribute trust. Confirm the relying party maps the user from the assertion's subject as asserted by the verified issuer, not from an email or attribute it trusts without binding. Test whether an assertion naming a different user's email or identifier authenticates as that user. An identity taken from an unbound attribute lets an attacker assert any user.

  5. Check the trusted providers and keys. Confirm the relying party honors only the specific identity provider and signing keys it should, rejects assertions from unknown issuers or keys, and rotates and pins keys correctly. A relying party that trusts any provider in a shared federation, or accepts a key it should not, can be given a validly signed assertion from the wrong source.

  6. Confirm and record. Confirm by getting a forged, wrapped, wrong-issuer, wrong-audience, replayed, or misbound assertion accepted as a login, on non-production accounts and without authenticating as a real user. Kill the lead if the relying party verifies the signature over the right element against the expected key, checks issuer, audience, and nonce, binds the subject to the verified issuer, and trusts only the intended providers and keys. Record the forged or misbound assertion, the authenticated-session sink, and the missing signature, issuer, audience, or binding check.

Where federation trust leaks

  • Signature wrapping reads the wrong element. An unsigned assertion injected beside a signed one is consumed if the application does not verify the signature over exactly what it reads.
  • An unchecked issuer or audience accepts the wrong token. An OIDC ID token from the wrong provider or minted for a different application passes when issuer and audience are not verified.
  • A missing nonce enables replay. An ID token not bound to the login request by a nonce can be replayed into a session.
  • Unbound subject or email asserts any user. Taking the identity from an attribute the relying party trusts without binding to the verified issuer lets an attacker name any user.
  • An over-broad federation trusts the wrong source. Honoring any provider or key in a shared federation accepts a validly signed assertion from a source it did not intend.

Worked example (a confirm and a kill)

Confirm. A SAML relying party verifies that the response contains a valid signature but reads the subject from an assertion element without confirming the signature covers that element. A crafted response carries a legitimately signed assertion plus an injected unsigned assertion naming a different user, and the application reads the injected one, authenticating as the attacker-named user. Confirmed SAML signature-wrapping authentication bypass, critical, remediation = verify the signature over exactly the element whose contents are consumed, reject responses with multiple or unsigned assertions, and bind the authenticated user to the signed subject only.

Kill. The relying party verifies the signature over the exact consumed element against the expected provider key, rejects responses containing unsigned or extra assertions, checks issuer and audience (and nonce for OIDC), maps the user from the signed subject bound to the verified issuer, and trusts only the one configured provider and its pinned keys. A wrapped, wrong-issuer, or misbound assertion is refused. Killed, kill_reason = "signature verified over the consumed element, issuer/audience/nonce checked, subject bound to the verified issuer, and only the intended provider trusted; no forged or misbound assertion authenticates."

Rationalizations to reject

  • "The response is signed." → Confirm the signature covers exactly the element you read and there is no extra unsigned assertion; a signed response can still carry a wrapped forgery.
  • "The token came from our provider." → Verify the issuer and audience on the token itself; without them a token from the wrong provider or for a different app passes.
  • "We match the user by email." → An email or attribute not bound to the verified issuer lets an attacker assert any user; map the user from the signed subject.
  • "Nonce is optional." → Without a nonce an ID token can be replayed into a session; bind the token to the login request.
  • "We trust the federation." → Confirm you trust only the specific provider and keys intended; a broad federation accepts a valid assertion from a source you did not mean to honor.

Executing this in practice

You need the expected provider, issuer, audience, and signing keys, exactly what the relying party verifies on the assertion and over which element, how the subject maps to a local user, and the trusted-provider set. For each, test a wrapped or tampered SAML response, a wrong-issuer or wrong-audience or replayed OIDC token, and a misbound subject. Reading the assertion-validation code shows the intended trust; a forged assertion accepted as login shows whether it holds.

Related

  • auditing-oauth-token-audience-and-scope-trust - the access-token companion; audience and issuer confusion are the same failure at the authorization-token layer.
  • auditing-jwt-verification-and-key-trust - OIDC ID tokens are JWTs, so the algorithm and key-trust checks there are prerequisites for the issuer and audience checks here.
  • auditing-session-lifecycle-and-fixation - once federation grants a session, its lifecycle and fixation properties are the next boundary this pairs with.
  • auditing-account-recovery-and-reset-trust - federated identity and account recovery are two routes to the same account; audit both so one does not undercut the other.
  • FINDING-SCHEMA.md - source = the forged or misbound assertion, sink = the authenticated session it grants, evidence = the missing signature, issuer, audience, or binding check.

常见问题

Auditing Saml And Oidc Federation Trust AI 技能有什么作用?

审查联合单点登录,检查依赖方本不应信任的断言:SAML 响应未对正确的元素验证签名,导致包装或篡改后的断言通过验证;OIDC ID Token 未检查签发方、受众或 nonce;依赖方未绑定主体或邮箱便予以信任,因此接受了任何用户的断言;以及联合身份验证信任了不应信任的身份提供方或签名密钥。适用于 SAML 和 OpenID Connect,依赖方会使用身份提供方签发的断言或 ID Token 对用户进行身份验证。当登录信任从身份提供方传递到依赖方,且断言验证构成安全边界时使用。伪造或绑定错误的断言是来源,由此建立的已验证身份会话是汇点,缺少签名、签发方、受众或绑定检查而接受该断言则是漏洞。

为什么在 TypingMind 中使用 Auditing Saml And Oidc Federation Trust?

因为您只需安装一次,就能搭配任何模型使用。Auditing Saml And Oidc Federation Trust 采用纯 Markdown 格式,而非特定提供商专用的代码,因此同一技能可用于 GPT-5、Claude、Gemini、Grok 或本地模型。您甚至可以在聊天中途切换模型,而不会影响技能的正常使用。TypingMind 使用您自己的 API 密钥,因此您直接向提供商付费,而不是按席位订阅;您的技能和聊天记录也都保留在您自己的存储空间中。

如何在 TypingMind 中安装 Auditing Saml And Oidc Federation Trust?

在 TypingMind 中打开“插件 → 技能 → 从 GitHub 安装”,然后粘贴 https://github.com/UnboundCompute/security-agent-skills/tree/main/skills/auditing-saml-and-oidc-federation-trust。TypingMind 会读取其中的 SKILL.md,并将其安装为技能,供您在各个聊天中按需启用。

哪些 AI 模型可以使用 Auditing Saml And Oidc Federation Trust?

您在 TypingMind 中连接的任何模型都可以。AI 技能采用纯 Markdown 指令,而非特定提供商专用的代码,因此 GPT、Claude、Gemini、Grok 和本地模型都能在请求匹配时加载此技能。

Auditing Saml And Oidc Federation Trust 可以搭配多少个 AI 模型使用?

数量不限。只要模型支持技能,您就可以将它与 Auditing Saml And Oidc Federation Trust 搭配使用。GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 等模型都可以通过您自己的 API 密钥接入 TypingMind。

Auditing Saml And Oidc Federation Trust AI 技能免费吗?

是的。UnboundCompute 已在 GitHub 上根据 MIT 许可证发布了该技能。您只需向自己的 AI 提供商支付所用 Token 的费用。

什么是 AI 技能?

AI 技能是一组可复用的指令,用于教会 AI 模型完成某项特定任务。它遵循开放的 Agent Skills 格式:包含名称和描述的 SKILL.md 文件,以及模型可能需要的脚本、模板或参考文件。模型仅在您的请求与技能匹配时才会读取这些指令,因此已安装的技能在使用前不会产生任何费用。

AI 技能与插件或 MCP 服务器有何不同?

插件或 MCP 服务器为模型提供可调用的新工具,也就是在某处运行并返回结果的代码。AI 技能则为模型提供知识和流程:如何处理任务、遵循哪些步骤,以及怎样的输出才算优质。技能采用纯 Markdown 格式,因此不需要服务器、API 密钥或运行时环境,并且适用于任何模型。

查看全部

立即创建您自己的 AI 工作区

订阅我们的电子简报,获取新功能和后续赠奖活动的通知 👇