identity-federation

Original🇨🇳 Chinese
Translated

Use for authorized assessment of federated identity systems including SAML, OIDC, OAuth2 flows, SSO misconfiguration, and token confusion issues.

3installs
Added on

NPX Install

npx skill4agent add zhaoxuya520/reverse-skill identity-federation

SKILL.md Content (Chinese)

View Translation Comparison →

Identity Federation (SAML / OIDC / OAuth)

ACTION REQUIRED (Execute Immediately After Reading)

  1. NOW
    : Read precedent-pentest; Include SSO test accounts and IdP/SP scope into the scope
  2. NOW
    : Prohibit brute-force attempts that lock real user accounts
  3. NEXT
    : Packet capture tools and documents (metadata URL)
  4. ACT
    : Protocol flow mapping → Common mismatches → Verification

Applicable Scenarios

  • SAML Response signature/assertion tampering surfaces (classic defect patterns)
  • OIDC implicit/authorization code + PKCE missing
  • redirect_uri / state / nonce issues
  • IdP and SP metadata, multi-tenant issuer confusion
  • Complementary to
    api-security
    JWT attacks (this skill focuses on federation and SSO flows)

Workflow

text
□ Map clearly: User → SP → IdP → Token → SP
□ Collect: /.well-known/openid-configuration, SAML metadata
□ Check: Exact redirect_uri matching, state binding, PKCE
□ Check: SAML signature coverage, algorithm downgrade
□ Session fixation and logout invalidation

Toolchain

ToolPurpose
Burp + SAML Raider, etc.Assertion editing (authorization)
jwt_toolJWT segments
Browser DevToolsRedirect chain
IdP management logsAudit

References

  • references/sso-flow-checklist.md
  • ../api-security/
    ../windows-ad/
    (Enterprise IdP)

Routing Context

Upstream: MASTER R37
Downstream: Pure API JWT → api-security; Cloud IdP → cloud-k8s

Task Completion Self-Check

  • Is the complete SSO flow mapped?
  • Does each Finding have reproduction steps and impact description?
  • Checklist completed?