saml-sso-assertion-attacks
SAML SSO assertion attack playbook. Use when testing signature validation, assertion wrapping, audience restrictions, ACS handling, XML trust boundaries, and enterprise SSO flaws.
Security Assessment
About saml-sso-assertion-attacks
A security-testing playbook for assessing SAML-based single sign-on and assertion trust. It is intended for authorized testing of enterprise SSO flows, focusing on whether an identity provider's assertions are correctly validated by the service provider. Load it when a target uses SAML requests or responses, when you see SAMLRequest, SAMLResponse, XML assertions, or ACS endpoints, and when login involves an external IdP with browser POST or redirect bindings.
The skill organizes high-value checks into themes: signature validation (unsigned assertions accepted, wrong node signed, signature wrapping), audience and recipient validation (weak Audience, Recipient, Destination, or ACS checks), issuer trust (wrong IdP accepted or multi-tenant issuer confusion), replay and freshness (missing InResponseTo, weak NotBefore/NotOnOrAfter enforcement), account mapping (email-only binding, case folding, unverified attributes), and XML parser behavior such as XXE-like issues or unsafe transforms.
A quick triage procedure guides the tester to capture one full login round trip, inspect which XML nodes are signed and which attributes drive account binding, compare SP-initiated and IdP-initiated flows, and test replay, altered attributes, and assertion placement confusion. It also cross-references related routes for deeper work, pointing to an XXE skill for XML parser depth, an OAuth/OIDC misconfiguration skill for alternative SSO protocols, and an authentication-bypass skill for auth boundary issues that surface after SSO.
FAQ
When should this skill be loaded?
When the target uses SAML-based SSO, you observe SAMLRequest, SAMLResponse, XML assertions, or ACS endpoints, and login flows involve an external IdP using browser POST or redirect bindings.
What misconfiguration classes does it check?
Signature validation, audience and recipient validation, issuer trust, replay and freshness, account mapping, and XML parser behavior such as XXE-like issues.
What does the quick triage process involve?
Capture one full login round trip, inspect which XML nodes are signed and which attributes drive account binding, compare SP-initiated and IdP-initiated flows, and test replay, altered attributes, and assertion placement confusion.
Does it address replay and assertion freshness?
Yes. It calls out checking for missing InResponseTo and weak NotBefore or NotOnOrAfter enforcement as part of the replay and freshness theme.
What related skills does it reference?
It links to an XXE external-entity skill for XML parser depth, an OAuth/OIDC misconfiguration skill for alternative SSO, and an authentication-flaws skill for auth boundary issues after SSO.
Install saml-sso-assertion-attacks
Quick Setup:
- Copy the skill folder to
.claude/skills/ - Claude will automatically detect and use the skill
Repository
yaklang/hack-skills