Logo: Auditing Saml And Oidc Federation Trust

Auditing Saml And Oidc Federation Trust

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

Iwwerpréift de federéierte Single Sign-on op Assertions, deenen eng relying party net vertraue sollt: eng SAML-Äntwert, där hir Signature net um richtegen Element verifizéiert gëtt, soudatt eng agebett oder verännert Assertion duerchgeet; en OIDC-ID-Token, bei deem Issuer, Audience oder Nonce net iwwerpréift ginn; eng relying party, déi eng Assertion fir all Benotzer akzeptéiert, well se Subject oder E-Mail ouni Bindung vertraut; oder eng Federation, déi engem Identity Provider oder Signaturschlëssel vertraut, deem se net vertraue sollt. Deckt SAML an OpenID Connect of, bei deenen eng relying party Assertions oder ID-Tokene vun engem Identity Provider benotzt, fir Benotzer ze authentifizéieren. Benotzt dëse Skill, wann d’Vertrauen beim Login vun engem Identity Provider op eng relying party iwwergeet an d’Validatioun vun der Assertion d’Grenz ass. Déi gefälschten oder falsch gebonne Assertion ass d’Quell; d’autentifizéiert Sessioun, déi se erméiglecht, ass den Zilpunkt; an déi feelend Signature-, Issuer-, Audience- oder Bindungsprüfung, déi se akzeptéiert, ass de Feeler.

Iwwersiicht

EditeurUnboundCompute
Repositorysecurity-agent-skills
Skill-Nummauditing-saml-and-oidc-federation-trust
Stären
27
Forks
8
Matgeliwwert Dateien
Nëmmen Instruktiounen
LizenzMIT
Linken
  • Instruktiounen am Markdown-Format

    Eng SKILL.md-Datei, déi de Modell bei Bedarf luet, soudatt nëmmen Token ufalen, wann eng Ufro tatsächlech dozou passt.

  • Funktionéiert mat all LLM

    KI-Skills si reng Markdown, keen ubidderspezifesche Code. Dofir funktionéiert dëse Skill mat GPT, Claude, Gemini, Grok oder engem lokale Modell.

  • Alles an den Instruktiounen

    Alles, wat de Modell brauch, steet an den Instruktiounen — keng zousätzlech Dateien ze synchroniséieren.

  • Open Source

    UnboundCompute huet de Skill op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill Auditing Saml And Oidc Federation Trust an TypingMind, fir e mat all LLM ze benotzen, oder setzt en an en anere KI-Agent an, deen SKILL.md liest.

1

An TypingMind installéieren

TypingMind installéiert e Skill direkt aus sengem GitHub-Dossier — dobäi gëtt SKILL.md gelies, d'Ressourcedateie gi gebëndelt an d'Resultat gëtt lokal gespäichert.

  1. Maacht d'App op a gitt op Plugins → Skills.
  2. Wielt „Vu GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier, déi hei drënner steet, an a bestätegt d'Installatioun.
    https://github.com/UnboundCompute/security-agent-skills/tree/main/skills/auditing-saml-and-oidc-federation-trust
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill derbäisetzen → Iwwer eng GitHub-URL. Pecht dann d'URL vum Dossier an a klickt op Weider.
2

An engem anere KI-Agent installéieren

All KI-Agent, deen d'Format Agent Skills liest, kann dëse Skill benotzen — kopéiert den Dossier an d'Skill-Verzeechnes vun deem KI-Agent.

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
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Auditing Saml And Oidc Federation Trust an engem Chat vun TypingMind, an de Modell iwwerhëlt de Rescht. Den Numm an d'Beschreiwung stinn am System-Prompt. Soubal eng Ufro dozou passt, luet de Modell déi komplett Instruktioune selwer — Dir musst de Skill ni manuell opruffen, an et fale keng Token un, bis en tatsächlech benotzt gëtt.

De Modell luet Auditing Saml And Oidc Federation Trust automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass Auditing Saml And Oidc Federation Trust net un de Modell gebonnen, fir deen de Skill geschriwwe gouf. Installéiert en eemol an TypingMind a benotzt e mat GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder engem lokale Modell, deen Dir selwer bedreift — alles mat Ären eegenen API-Schlësselen.

  • Gëtt nëmme gelueden, wann et néideg ass

    De System-Prompt enthält nëmmen den Numm an d'Beschreiwung. D'Instruktioune gi bei der éischter passender Ufro gelueden, soudatt en onbenotzte Skill näischt kascht.

  • De Modell am lafende Chat wiesselen

    Well de Skill aus Instruktiounen amplaz vu Code besteet, funktionéiert en och no engem Modellwiessel — den nächste Modell liest déi selwecht SKILL.md-Datei.

Skill-Instruktiounen

Dëst ass den Inhalt vu SKILL.md, deen de Modell luet. Liest e virun der Installatioun — e Skill besteet aus Instruktiounen, déi Äre Modell befollegt.

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.

Heefeg gestallte Froen

Wat mécht de KI-Skill Auditing Saml And Oidc Federation Trust?

Iwwerpréift de federéierte Single Sign-on op Assertions, deenen eng relying party net vertraue sollt: eng SAML-Äntwert, där hir Signature net um richtegen Element verifizéiert gëtt, soudatt eng agebett oder verännert Assertion duerchgeet; en OIDC-ID-Token, bei deem Issuer, Audience oder Nonce net iwwerpréift ginn; eng relying party, déi eng Assertion fir all Benotzer akzeptéiert, well se Subject oder E-Mail ouni Bindung vertraut; oder eng Federation, déi engem Identity Provider oder Signaturschlëssel vertraut, deem se net vertraue sollt. Deckt SAML an OpenID Connect of, bei deenen eng relyi...

Firwat Auditing Saml And Oidc Federation Trust op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Auditing Saml And Oidc Federation Trust besteet aus einfachem Markdown amplaz vun ubidderspezifeschem Code. Dee selwechte Skill funktionéiert also mat GPT-5, Claude, Gemini, Grok oder engem lokale Modell – an Dir kënnt de Modell matzen am Chat wiesselen, ouni datt de Skill ophält ze funktionéieren. TypingMind benotzt Är eegen API-Schlësselen, sou datt Dir d'Ubidder direkt bezuelt, amplaz en Abonnement pro Benotzerplaz ze bezuelen. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech Auditing Saml And Oidc Federation Trust an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/UnboundCompute/security-agent-skills/tree/main/skills/auditing-saml-and-oidc-federation-trust an. TypingMind liest d'Datei SKILL.md an installéiert de Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen Auditing Saml And Oidc Federation Trust benotzen?

All Modell, deen Dir an TypingMind verbënnt. KI-Skills sinn einfach Markdown-Instruktiounen an net ubidderspezifesche Code. Dofir kënne GPT, Claude, Gemini, Grok a lokal Modeller dëse Skill lueden, wann eng Ufro dozou passt.

Wéi vill KI-Modeller kann ech mat Auditing Saml And Oidc Federation Trust benotzen?

Esou vill wéi Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Auditing Saml And Oidc Federation Trust domat benotzen – zum Beispill mat GPT, Claude, Gemini, Grok, DeepSeek, Mistral oder Llama – alles op TypingMind mat Ären eegenen API-Schlësselen.

Ass de KI-Skill Auditing Saml And Oidc Federation Trust gratis?

Jo. UnboundCompute huet de Skill ënner der Lizenz MIT op GitHub publizéiert. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbare Pak vun Instruktiounen, deen engem KI-Modell bäibréngt, wéi en eng bestëmmt Aufgab erfëllt. E follegt dem oppenen Agent Skills-Format: eng Datei SKILL.md mat engem Numm an enger Beschreiwung, plus all Scripten, Virlagen oder Referenzdateien, déi de Modell eventuell brauch. De Modell liest d'Instruktiounen eréischt, wann Är Ufro zum Skill passt. En installéierte Skill kascht also näischt, bis e benotzt gëtt.

Wéi ënnerscheede sech KI-Skills vu Plugins oder MCP-Serveren?

E Plugin oder MCP-Server gëtt engem Modell nei Tools, déi en opruffe kann – Code, deen iergendwou leeft an e Resultat zeréckgëtt. E KI-Skill gëtt dem Modell dogéint Wëssen an eng Virgoensweis: wéi en eng Aufgab ugeet, wéi eng Schrëtt e maache soll a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a kee Lafzäitëmfeld a funktionéiere mat all Modell.

Alleguer weisen

Elo Ären eegene KI-Aarbechtsberäich ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇