hunt-saml

Identify SAML and SSO authentication vulnerabilities in XML assertions.

13|2|Updated Jun 1, 2026
One-click install
npx skills add https://github.com/pdparchitect/rook --skill hunt-saml-pdparchitect
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: hunt-saml
Source: https://github.com/pdparchitect/rook/tree/main/skills/hunt-saml
Command: npx skills add https://github.com/pdparchitect/rook --skill hunt-saml-pdparchitect

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill addresses the critical security risks associated with inconsistent XML parsing and improper SAML assertion validation, which often lead to account takeover and authentication bypass vulnerabilities.

Core Features & Use Cases

  • Vulnerability Identification: Detects XML Signature Wrapping (XSW), comment injection, signature stripping, and XXE within SAML assertions.
  • Exploitation Guidance: Provides structured workflows for testing NameID manipulation and audience-restriction validation.
  • Use Case: Use this skill when auditing SSO flows on platforms like Auth0, Okta, or custom SAML implementations to verify if an attacker can impersonate an administrator by manipulating the SAMLResponse.

Quick Start

Use the hunt-saml skill to analyze the intercepted SAMLResponse for XML Signature Wrapping vulnerabilities and potential account takeover paths.

Frequently Asked Questions about hunt-saml

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

FAQPage Schema
How do I test SAML assertions for XML Signature Wrapping vulnerabilities?

To test SAML assertions for XML Signature Wrapping (XSW), you manually manipulate the XML structure of intercepted SAMLResponse payloads to check if identity providers or service providers validate signatures incorrectly, allowing authentication bypasses.

What SSO authentication flaws can be exploited through SAML manipulation?

SAML manipulation can exploit SSO authentication flaws including XML Signature Wrapping, signature stripping, comment injection, and XXE injection to achieve account takeover and bypass authorization boundaries on SAML 2.0 platforms.

Can I use this to audit SSO flows on platforms like Okta and Auth0?

Yes, you can audit SSO flows on platforms like Okta and Auth0 to verify if attackers can impersonate administrators by manipulating NameID values and bypassing audience-restriction validation in the SAMLResponse.

How do I check if a SAML response is vulnerable to XXE injection?

To check if a SAML response is vulnerable to XXE injection, you inject external entity definitions into the XML assertion payloads and observe whether the service provider's XML parser processes them, indicating improper external entity handling.

Why does inconsistent XML parsing lead to SAML account takeover?

Inconsistent XML parsing leads to SAML account takeover because the identity provider and service provider may interpret the same XML document differently, allowing attackers to inject unsigned malicious assertions while keeping the original signature valid.