Auditing Saml And Oidc Federation Trust logo

Auditing Saml And Oidc Federation Trust

Organization
UnboundCompute
auditing-saml-and-oidc-federation-trust

Audit federated single sign-on for assertions a relying party should not trust: a SAML response whose signature is not verified over the right element so a wrapped or altered assertion passes, an OIDC ID token whose issuer, audience, or nonce is unchecked, a relying party that accepts an assertion for any user because the subject or email is trusted without binding, and a federation that honors an identity provider or signing key it should not. Covers SAML and OpenID Connect where a relying party consumes assertions or ID tokens minted by an identity provider to authenticate users. Use when login trust crosses from an identity provider to a relying party and assertion validation is the boundary. The forged or misbound assertion is the source, the authenticated session it grants is the sink, and the missing signature, issuer, audience, or binding check that accepts it is the bug.

Overview

PublisherUnboundCompute
Repositorysecurity-agent-skills
Skill nameauditing-saml-and-oidc-federation-trust
Stars
27
Forks
8
Bundled files
Instructions only
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by UnboundCompute on GitHub. Read the source before you install it.

Installation

Install the Auditing Saml And Oidc Federation Trust AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/UnboundCompute/security-agent-skills/tree/main/skills/auditing-saml-and-oidc-federation-trust
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

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
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Auditing Saml And Oidc Federation Trust in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Auditing Saml And Oidc Federation Trust on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Auditing Saml And Oidc Federation Trust is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

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.

Frequently asked questions

What does the Auditing Saml And Oidc Federation Trust AI skill do?

Audit federated single sign-on for assertions a relying party should not trust: a SAML response whose signature is not verified over the right element so a wrapped or altered assertion passes, an OIDC ID token whose issuer, audience, or nonce is unchecked, a relying party that accepts an assertion for any user because the subject or email is trusted without binding, and a federation that honors an identity provider or signing key it should not. Covers SAML and OpenID Connect where a relying party consumes assertions or ID tokens minted by an identity provider to authenticate users. Use when...

Why use Auditing Saml And Oidc Federation Trust on TypingMind?

Because you install it once and use it with any model. Auditing Saml And Oidc Federation Trust is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Auditing Saml And Oidc Federation Trust in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/UnboundCompute/security-agent-skills/tree/main/skills/auditing-saml-and-oidc-federation-trust. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Auditing Saml And Oidc Federation Trust?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Auditing Saml And Oidc Federation Trust?

As many as you like. As long as a model supports skills, you can use Auditing Saml And Oidc Federation Trust with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Auditing Saml And Oidc Federation Trust AI skill free?

Yes. It is published on GitHub by UnboundCompute under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇