saml-sso-assertion-attacks

Validate SAML assertions for signature coverage, audience checks, and ACS handling.

1.6k|204|Updated Apr 7, 2026
One-click install
npx skills add https://github.com/yaklang/hack-skills --skill saml-sso-assertion-attacks
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: saml-sso-assertion-attacks
Source: https://github.com/yaklang/hack-skills/tree/main/skills/saml-sso-assertion-attacks
Command: npx skills add https://github.com/yaklang/hack-skills --skill saml-sso-assertion-attacks

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill provides a focused playbook to identify and validate weaknesses in SAML-based SSO assertion handling, covering signature coverage, audience/recipient checks, ACS handling, XML parser trust boundaries, and IdP/SP confusion that can lead to unauthorized access.

Core Features & Use Cases

  • Signature coverage inspection: Determine which XML nodes are signed and detect wrapping or misplaced signatures.
  • Audience, recipient, and ACS validation tests: Check Destination, Recipient, and ACS enforcement and identify weak or missing checks.
  • Replay, freshness, and issuer trust checks: Validate InResponseTo, NotBefore/NotOnOrAfter handling and issuer/tenant trust assumptions.
  • Use Case: During a penetration test or bug bounty assessment, capture a SAML login flow, analyze signed nodes and account-mapping attributes, and attempt assertion placement or issuer confusion attacks to verify whether the SP accepts malicious or malformed assertions.

Quick Start

Capture a full SAML login round-trip, inspect which XML nodes are signed and whether audience/recipient and ACS validations are enforced, and list exploitable assertion validation issues.

Frequently Asked Questions about saml-sso-assertion-attacks

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I detect SAML signature wrapping vulnerabilities in SSO flows?

To detect SAML signature wrapping vulnerabilities, you must inspect which XML nodes are signed and verify if the Service Provider processes unsigned assertion elements. This Skill analyzes signature coverage to identify misplaced signatures and wrapping attack vectors.

What is SAML assertion validation and why does it matter for SSO security?

SAML assertion validation is the process of verifying signature coverage, audience restrictions, and recipient checks in SSO responses. It matters because weak validation allows attackers to forge assertions, bypass authentication, and gain unauthorized access.

How to test ACS endpoint and recipient validation in a SAML login flow?

Test ACS endpoint and recipient validation by capturing a SAML login round-trip and manipulating the Destination and Recipient attributes. This Skill checks whether the Service Provider strictly enforces ACS handling and rejects mismatched assertions.

Does this Skill work with both SP-initiated and IdP-initiated SSO login flows?

Yes, this Skill works with both SP-initiated and IdP-initiated SSO login flows. It analyzes SAMLRequest and SAMLResponse messages and validates issuer trust, audience enforcement, and InResponseTo handling across both flow types.

How do I check SAML replay attacks and token freshness during a penetration test?

Check SAML replay attacks and token freshness by validating the NotBefore, NotOnOrAfter, and InResponseTo attributes within the captured assertion. This Skill verifies strict freshness validation to prevent replaying intercepted login tokens.

What are the limitations of SAML assertion attack detection in enterprise SSO?

A limitation of SAML assertion attack detection is that it requires capturing a complete SAML login round-trip first, meaning it cannot passively discover flaws without active traffic interception and assessment during penetration tests.