Logo de Auditing Saml And Oidc Flows

Auditing Saml And Oidc Flows

Organização
UnboundCompute
auditing-saml-and-oidc-flows

Audite o login único federado em busca de falhas que permitam a um invasor forjar ou reutilizar uma identidade: wrapping e remoção de assinatura em assertions assinadas, aceitação de tokens sem assinatura ou sem verificação, manipulação de redirect_uri e audience, ausência de state e nonce que permita repetição de ataques e falsificação de solicitações entre sites, e confusão de identidade quando a assertion de um provedor é aceita para outra conta. Use ao revisar uma integração SAML ou OIDC, uma conexão com um provedor de identidade ou qualquer login que confie em uma assertion externa. A etapa de verificação é o alvo.

Visão geral

Publicado porUnboundCompute
Repositóriosecurity-agent-skills
Nome da habilidadeauditing-saml-and-oidc-flows
Estrelas
27
Forks
8
Arquivos incluídos
Somente instruções
LicençaMIT
Links
  • Instruções em Markdown

    Um arquivo SKILL.md que o modelo carrega sob demanda, consumindo tokens apenas quando uma solicitação é realmente relevante para a habilidade.

  • Funciona com qualquer LLM

    As habilidades de IA são escritas em Markdown simples, não em código específico de um provedor. Por isso, funcionam com GPT, Claude, Gemini, Grok ou um modelo local.

  • Sem arquivos extras

    Tudo de que o modelo precisa está nas instruções — sem arquivos extras para sincronizar.

  • Código aberto

    Publicada por UnboundCompute no GitHub. Leia os arquivos da habilidade antes de instalá-la.

Instalação

Instale a habilidade de IA Auditing Saml And Oidc Flows no TypingMind para usá-la com qualquer LLM ou adicione-a a outro agente que leia SKILL.md.

1

Instalar no TypingMind

O TypingMind instala uma habilidade diretamente da pasta dela no GitHub — lê o arquivo SKILL.md, reúne os arquivos de recursos em um pacote e armazena o resultado localmente.

  1. Abra o app e vá para Plugins → Habilidades.
  2. Escolha "Instalar do GitHub".
  3. Cole a URL abaixo, que aponta para a pasta da habilidade, e confirme.
    https://github.com/UnboundCompute/security-agent-skills/tree/main/skills/auditing-saml-and-oidc-flows
  4. Ative a habilidade em cada chat em que quiser disponibilizá-la.
Plugins → Habilidades → Adicionar habilidade → Via URL do GitHub. Depois, cole a URL da pasta e pressione Continuar.
2

Instalar em outro agente

Qualquer agente que leia o formato Agent Skills pode usar esta habilidade — copie a pasta para o diretório de habilidades desse agente.

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
Reinicie Claude Code após copiar para que a nova habilidade seja reconhecida.

Use no TypingMind

Ative Auditing Saml And Oidc Flows em qualquer chat do TypingMind e o modelo cuida do resto. O nome e a descrição da habilidade ficam no prompt do sistema e, assim que uma solicitação relevante aparece, o modelo carrega as instruções completas automaticamente — sem precisar de acionamento manual e sem consumir tokens até que ela seja realmente usada.

O modelo carrega Auditing Saml And Oidc Flows automaticamente assim que uma solicitação é relevante para essa habilidade.

Funciona com qualquer modelo de IA

Habilidades de IA são instruções em Markdown simples, não código específico de um provedor. Por isso, Auditing Saml And Oidc Flows não fica vinculada ao modelo para o qual foi criada. Instale-a uma vez no TypingMind e use-a com GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama ou um modelo local executado por conta própria — tudo com suas próprias chaves de API.

  • Carregada apenas quando necessário

    O prompt do sistema contém apenas o nome e a descrição. As instruções são buscadas na primeira solicitação relevante, então uma habilidade sem uso não gera custo.

  • Troque de modelo durante a conversa

    Como a habilidade é composta de instruções, não de código, trocar de modelo não afeta seu funcionamento — o próximo modelo lê o mesmo arquivo SKILL.md.

Instruções da habilidade

Este é o conteúdo de SKILL.md que o modelo carrega. Leia antes de instalar — uma habilidade é um conjunto de instruções que seu modelo seguirá.

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.

Perguntas frequentes

O que a habilidade de IA Auditing Saml And Oidc Flows faz?

Audite o login único federado em busca de falhas que permitam a um invasor forjar ou reutilizar uma identidade: wrapping e remoção de assinatura em assertions assinadas, aceitação de tokens sem assinatura ou sem verificação, manipulação de redirect_uri e audience, ausência de state e nonce que permita repetição de ataques e falsificação de solicitações entre sites, e confusão de identidade quando a assertion de um provedor é aceita para outra conta. Use ao revisar uma integração SAML ou OIDC, uma conexão com um provedor de identidade ou qualquer login que confie em uma assertion externa. A...

Por que usar Auditing Saml And Oidc Flows no TypingMind?

Porque basta instalar uma vez para usar com qualquer modelo. A habilidade Auditing Saml And Oidc Flows é escrita em Markdown simples, e não em código específico de um provedor, então a mesma habilidade funciona com GPT-5, Claude, Gemini, Grok ou um modelo local — e é possível trocar de modelo no meio do chat sem que ela deixe de funcionar. No TypingMind, você usa suas próprias chaves de API e paga diretamente aos provedores, em vez de pagar uma assinatura por licença de usuário. Suas habilidades e chats permanecem no seu próprio armazenamento.

Como instalar Auditing Saml And Oidc Flows no TypingMind?

Abra Plugins → Habilidades → Instalar do GitHub no TypingMind e cole https://github.com/UnboundCompute/security-agent-skills/tree/main/skills/auditing-saml-and-oidc-flows. O TypingMind lê o arquivo SKILL.md e instala a habilidade para que possa ser ativada em cada chat.

Quais modelos de IA podem usar Auditing Saml And Oidc Flows?

Qualquer modelo conectado no TypingMind. As habilidades de IA são instruções em Markdown simples, e não código específico de um provedor. Assim, GPT, Claude, Gemini, Grok e modelos locais podem carregar esta habilidade quando uma solicitação corresponder a ela.

Quantos modelos de IA posso usar com Auditing Saml And Oidc Flows?

Quantos quiser. Desde que o modelo ofereça suporte a habilidades, é possível usar Auditing Saml And Oidc Flows com ele — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama e outros — tudo no TypingMind com suas próprias chaves de API.

A habilidade de IA Auditing Saml And Oidc Flows é gratuita?

Sim. A habilidade é publicada no GitHub por UnboundCompute sob a licença MIT. O pagamento é feito apenas ao seu provedor de IA pelos tokens usados.

O que são habilidades de IA?

Uma habilidade de IA é um conjunto reutilizável de instruções que ensina um modelo de IA a realizar uma tarefa específica. Ela segue o formato aberto Agent Skills: um arquivo SKILL.md com nome e descrição, além de scripts, templates ou arquivos de referência de que o modelo possa precisar. O modelo lê as instruções apenas quando sua solicitação corresponde à habilidade, então uma habilidade instalada não gera custos até ser usada.

Qual é a diferença entre habilidades de IA e plugins ou servidores MCP?

Um plugin ou servidor MCP oferece ao modelo novas ferramentas que ele pode acionar — código que é executado em algum lugar e retorna um resultado. Já uma habilidade de IA dá ao modelo o conhecimento e as orientações de que ele precisa: como abordar uma tarefa, quais etapas seguir e como deve ser um bom resultado. As habilidades são escritas em Markdown simples, por isso não precisam de servidor, chave de API nem ambiente de execução, e funcionam com qualquer modelo.

Ver lista completa

Crie seu próprio espaço de trabalho com IA agora

Inscreva-se na nossa newsletter para receber avisos sobre novos recursos e futuros sorteios 👇