Logo von Auditing Saml And Oidc Flows

Auditing Saml And Oidc Flows

Organisation
UnboundCompute
auditing-saml-and-oidc-flows

Audit federated single sign-on for the flaws that let an attacker forge or replay an identity: signature wrapping and signature stripping on signed assertions, unsigned or unverified tokens accepted, redirect_uri and audience manipulation, missing state and nonce allowing replay and cross-site request forgery, and identity confusion where one provider's assertion is honored for another account. Use when reviewing a SAML or OIDC integration, an identity-provider connection, or any login that trusts an external assertion. The verification step is the target.

Übersicht

HerausgeberUnboundCompute
Repositorysecurity-agent-skills
Skill-Nameauditing-saml-and-oidc-flows
Sterne
27
Forks
8
Mitgelieferte Dateien
Nur Anweisungen
LizenzMIT
Links
  • Anweisungen in Markdown

    Eine SKILL.md-Datei, die das Modell bei Bedarf lädt. So werden nur dann Token verbraucht, wenn eine Anfrage tatsächlich dazu passt.

  • Funktioniert mit jedem LLM

    KI-Skills bestehen aus reinem Markdown, nicht aus anbieterspezifischem Code. Daher funktionieren sie mit GPT, Claude, Gemini, Grok oder einem lokalen Modell.

  • In sich abgeschlossen

    Alles, was das Modell braucht, steht in den Anweisungen — keine zusätzlichen Dateien zum Synchronisieren.

  • Open Source

    Von UnboundCompute auf GitHub veröffentlicht. Prüfen Sie vor der Installation die Quelldateien.

Installation

Installieren Sie den KI-Skill Auditing Saml And Oidc Flows in TypingMind, um ihn mit jedem LLM zu nutzen, oder fügen Sie ihn einem anderen Agenten hinzu, der SKILL.md lesen kann.

1

In TypingMind installieren

TypingMind installiert einen Skill direkt aus seinem GitHub-Ordner. Dabei liest die App SKILL.md, bündelt die Ressourcendateien und speichert das Ergebnis lokal.

  1. Öffnen Sie die App und gehen Sie zu Plugins → Skills.
  2. Wählen Sie „Von GitHub installieren“.
  3. Fügen Sie die unten angegebene URL des Skill-Ordners ein und bestätigen Sie.
    https://github.com/UnboundCompute/security-agent-skills/tree/main/skills/auditing-saml-and-oidc-flows
  4. Aktivieren Sie den Skill in jedem Chat, in dem er verfügbar sein soll.
Plugins → Skills → Skill hinzufügen → Über GitHub-URL. Fügen Sie dann die Ordner-URL ein und klicken Sie auf „Weiter“.
2

In einem anderen Agenten installieren

Jeder Agent, der das Agent-Skills-Format unterstützt, kann diesen Skill nutzen. Kopieren Sie den Ordner in das Skill-Verzeichnis des jeweiligen Agenten.

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-flows .claude/skills/auditing-saml-and-oidc-flows
Starten Sie Claude Code nach dem Kopieren neu, damit der neue Skill erkannt wird.

In TypingMind verwenden

Aktivieren Sie Auditing Saml And Oidc Flows in einem beliebigen Chat in TypingMind. Den Rest übernimmt das Modell. Name und Beschreibung des Skills stehen im System-Prompt. Sobald eine Anfrage passt, lädt das Modell selbstständig die vollständigen Anweisungen — Sie müssen den Skill nie manuell aufrufen, und er verbraucht erst Token, wenn er tatsächlich genutzt wird.

Das Modell lädt Auditing Saml And Oidc Flows automatisch, sobald eine passende Anfrage gestellt wird.

Funktioniert mit jedem KI-Modell

KI-Skills bestehen aus reinen Markdown-Anweisungen statt aus anbieterspezifischem Code. Daher ist Auditing Saml And Oidc Flows nicht an das Modell gebunden, für das der Skill geschrieben wurde. Installieren Sie ihn einmal in TypingMind und nutzen Sie ihn mit GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder einem selbst betriebenen lokalen Modell — alles mit Ihren eigenen API-Schlüsseln.

  • Wird nur bei Bedarf geladen

    Der System-Prompt enthält nur den Namen und die Beschreibung. Die Anweisungen werden bei der ersten passenden Anfrage geladen. Ein ungenutzter Skill verursacht daher keine Kosten.

  • Modell im laufenden Chat wechseln

    Da der Skill aus Anweisungen statt aus Code besteht, funktioniert er auch nach einem Modellwechsel — das nächste Modell liest dieselbe SKILL.md-Datei.

Skill-Anweisungen

Dies ist der Inhalt von SKILL.md, den das Modell lädt. Lesen Sie ihn vor der Installation — ein Skill besteht aus Anweisungen, denen Ihr Modell folgt.

Auditing SAML and OIDC flows: the whole trust rests on one verification

Federated login moves the trust boundary to a signed assertion from an identity provider, and the entire security rests on the relying party verifying that assertion exactly. The classic flaws are all failures of that verification: a signature checked over the wrong element, a token accepted without a signature, an audience or redirect target not pinned, a flow with no anti-replay value. Each lets an attacker present an identity that is not theirs.

When to use

  • You are reviewing a SAML or OIDC integration or an identity-provider connection.
  • A login trusts an externally-issued, signed assertion or token.
  • You are assessing account-linking and how an external identity maps to a local one.

Scope check

Audit login flows you own or are authorized to test, with test accounts and a test identity provider. Do not forge assertions against systems you do not control. If you can't name the authorization, stop.

The loop

  1. Identify the trusted assertion and where it is verified. Find the token or assertion the relying party trusts (a signed SAML assertion, an OIDC id token) and the exact code that validates it. Everything downstream trusts whatever that check accepts, so the check is the audit target.

  2. Test signature presence and coverage. Is every accepted assertion actually signed, and is the signature verified over the exact element whose contents are used? Try stripping the signature (does an unsigned assertion get accepted), and try signature wrapping (add a second, attacker-controlled assertion the app reads while the signature still validates over the original). A signature that does not cover the data the app consumes is no signature.

  3. Verify audience, issuer, and expiry. Does the relying party confirm the assertion was issued for it (audience or client id), by the expected issuer, and still valid (not expired, not before)? An assertion minted for another service, or by an unexpected issuer, must be rejected. Missing audience pinning lets a token from elsewhere be replayed here.

  4. Test redirect_uri and response routing. For the redirect-based flows, is redirect_uri matched exactly against a strict allowlist, or can it be widened (extra path, open redirect, wildcard) to divert the code or token to the attacker? Loose redirect matching is how the credential leaves the intended path.

  5. Test anti-replay and binding. Is there a state value bound to the user's session (cross-site request forgery and mix-up defense) and a nonce bound into the id token (replay defense), both verified on return? Absence lets an assertion or code be replayed or injected into another user's session. Confirm an assertion cannot be replayed twice.

  6. Test identity mapping. How is the asserted subject mapped to a local account: by a stable, provider-scoped identifier, or by a mutable, cross-provider field like email that another identity source could also assert? Mapping on an unverified or non-unique claim is account takeover by identity confusion. Confirm or kill each and record.

Where federation breaks

  • The signature must cover what you read. Wrapping and stripping both exploit a gap between what is signed and what is consumed.
  • An assertion is a bearer credential. If audience and replay are not enforced, whoever holds it is whoever it names.
  • redirect_uri is a capability. Loose matching hands the code or token to the attacker's endpoint.
  • Email is not an identity. Map on the provider's stable subject, not a claim other providers can also set.

Worked example (a confirm and a kill)

Confirm. A relying party verifies the SAML signature but reads the subject from the first matching element, while the signature covers a second. An attacker wraps a forged subject element the app reads and leaves the signed one intact for verification. The forged identity is accepted. Confirmed signature wrapping, critical, remediation = verify the signature over the exact consumed element, reject multiple assertions, and use a hardened parser.

Kill. An OIDC relying party accepts only signed id tokens, verifies signature, issuer, audience, and expiry, matches redirect_uri exactly against an allowlist, binds and checks state and nonce, and maps identity on the provider-scoped subject. A stripped, wrapped, or replayed token is rejected at verification. Killed, kill_reason = "signature, issuer, audience, expiry, exact redirect_uri, and state/nonce all verified; identity mapped on stable subject."

Rationalizations to reject

  • "The assertion is signed." → Signed over what? Confirm coverage of the element you actually read.
  • "We check the signature, that's enough." → Not without audience, expiry, and anti-replay. A valid signature on a token minted elsewhere still verifies.
  • "redirect_uri starts with our domain." → Prefix and substring matching are bypassable. Match the full URI against an allowlist.
  • "We link accounts by email." → Another provider can assert that email. Map on the issuer-scoped subject id.

Executing this in practice

You need the exact assertion the relying party trusts, the verification code, and the ability to replay a login while modifying the assertion, the redirect_uri, and the state and nonce. An intercepting proxy plus a test identity provider works; the verification-coverage analysis and the anti-replay checks are the method.

Related

  • auditing-guard-gaps - the verification step is the guard; this finds where it is missing or partial.
  • finding-fail-open-flaws - a verification that passes on error is a federation bypass.
  • writing-vuln-reports - an identity-forgery finding to a reproducible writeup.
  • FINDING-SCHEMA.md - source = the attacker-shaped assertion or redirect, sink = the login that trusts it.

Häufig gestellte Fragen

Was macht der KI-Skill Auditing Saml And Oidc Flows?

Audit federated single sign-on for the flaws that let an attacker forge or replay an identity: signature wrapping and signature stripping on signed assertions, unsigned or unverified tokens accepted, redirect_uri and audience manipulation, missing state and nonce allowing replay and cross-site request forgery, and identity confusion where one provider's assertion is honored for another account. Use when reviewing a SAML or OIDC integration, an identity-provider connection, or any login that trusts an external assertion. The verification step is the target.

Warum Auditing Saml And Oidc Flows in TypingMind nutzen?

Weil Sie den Skill einmal installieren und mit jedem Modell verwenden können. Auditing Saml And Oidc Flows besteht aus reinem Markdown statt aus anbieterspezifischem Code. So funktioniert derselbe Skill mit GPT-5, Claude, Gemini, Grok oder einem lokalen Modell – und Sie können das Modell mitten im Chat wechseln, ohne dass der Skill seine Funktion verliert. TypingMind verwendet Ihre eigenen API-Schlüssel. Sie bezahlen die Anbieter daher direkt statt über ein Abonnement pro Nutzerplatz, und Ihre Skills und Chats bleiben in Ihrem eigenen Speicher.

Wie installiere ich Auditing Saml And Oidc Flows in TypingMind?

Öffnen Sie in TypingMind Plugins → Skills → Von GitHub installieren und fügen Sie https://github.com/UnboundCompute/security-agent-skills/tree/main/skills/auditing-saml-and-oidc-flows ein. TypingMind liest die Datei SKILL.md und installiert den Skill, den Sie für jeden Chat einzeln aktivieren können.

Welche KI-Modelle können Auditing Saml And Oidc Flows nutzen?

Jedes Modell, das Sie mit TypingMind verbinden. KI-Skills bestehen aus reinen Markdown-Anweisungen statt aus anbieterspezifischem Code. Daher können GPT, Claude, Gemini, Grok und lokale Modelle diesen Skill laden, wenn eine Anfrage dazu passt.

Wie viele KI-Modelle kann ich mit Auditing Saml And Oidc Flows verwenden?

So viele Sie möchten. In TypingMind können Sie Auditing Saml And Oidc Flows mit jedem Modell verwenden, das Skills unterstützt, etwa mit GPT, Claude, Gemini, Grok, DeepSeek, Mistral oder Llama. Dabei nutzen Sie Ihre eigenen API-Schlüssel.

Ist der KI-Skill Auditing Saml And Oidc Flows kostenlos?

Ja. Der Skill wird von UnboundCompute auf GitHub unter der Lizenz MIT veröffentlicht. Sie bezahlen nur Ihren eigenen KI-Anbieter für die verwendeten Token.

Was sind KI-Skills?

Ein KI-Skill ist ein wiederverwendbares Anweisungspaket, das einem KI-Modell vermittelt, wie es eine bestimmte Aufgabe erledigt. Es folgt dem offenen Format Agent Skills: Die Datei SKILL.md enthält den Namen und die Beschreibung des Skills. Hinzu kommen bei Bedarf Skripte, Vorlagen oder Referenzdateien für das Modell. Das Modell liest die Anweisungen nur, wenn Ihre Anfrage zum Skill passt. Ein installierter Skill verursacht daher erst Kosten, wenn er verwendet wird.

Wie unterscheiden sich KI-Skills von Plugins oder MCP-Servern?

Ein Plugin oder MCP-Server stellt einem Modell neue aufrufbare Tools bereit – Code, der auf einem System ausgeführt wird und ein Ergebnis zurückgibt. Ein KI-Skill vermittelt dem Modell stattdessen Wissen und Vorgehensweisen: wie es eine Aufgabe angeht, welche Schritte es befolgt und wie eine gute Ausgabe aussieht. Skills bestehen aus reinem Markdown und kommen daher ohne Server, API-Schlüssel und Laufzeitumgebung aus. Sie funktionieren mit jedem Modell.

Alle anzeigen

Jetzt eigenen KI-Arbeitsbereich einrichten

Abonnieren Sie unseren Newsletter und erfahren Sie mehr über neue Funktionen und kommende Gewinnspiele 👇