Логотип Auditing Idp Initiated Flow Trust

Auditing Idp Initiated Flow Trust

Організація
UnboundCompute
auditing-idp-initiated-flow-trust

Перевірте єдиний вхід, ініційований постачальником посвідчень, на ризики довіри до неочікуваної assertion, яку застосунок не запитував. Зокрема, перевірте відповідь SAML, ініційовану IdP, яку service provider приймає без відповідного запиту, тож її немає з чим пов’язати; неочікувану assertion, яку зловмисник перехоплює та повторно надсилає або доставляє жертві, щоб увійти в обліковий запис, вибраний зловмисником; значення RelayState, якому довіряють як адресі перенаправлення й яке через це створює відкритий редирект; assertion без audience або з надто широким audience, через що її приймає service provider, для якого вона не призначалася; а також відсутність захисту від повторного відтворення (немає одноразового використання або строк дії надто довгий), що дає змогу скористатися тією самою assertion кілька разів. Використовуйте цю навичку, коли застосунок приймає assertion для входу, якої він не запитував, і межу безпеки визначає перевірка цієї неочікуваної assertion. Джерелом є неочікувана або повторно відтворена assertion, ціллю — небажаний автентифікований сеанс, а вразливістю — відсутність прив’язки до запиту, перевірки audience або захисту від повторного відтворення.

Огляд

ВидавецьUnboundCompute
Репозиторійsecurity-agent-skills
Назва навичкиauditing-idp-initiated-flow-trust
Зірки
27
Форки
8
Файли в пакеті
Лише інструкції
ЛіцензіяMIT
Посилання
  • Інструкції у форматі Markdown

    Файл SKILL.md, який модель завантажує за потреби, тож токени витрачаються лише тоді, коли запит справді відповідає навичці.

  • Працює з будь-якою LLM

    Навички ШІ — це звичайний Markdown, а не код для певного постачальника, тому вони працюють із GPT, Claude, Gemini, Grok або локальною моделлю.

  • Усе необхідне — в інструкціях

    Усе потрібне моделі міститься в інструкціях — жодних додаткових файлів для синхронізації.

  • Відкритий вихідний код

    Видавець на GitHub: UnboundCompute. Перед установленням перегляньте вихідні файли навички.

Встановлення

Установіть навичку ШІ Auditing Idp Initiated Flow Trust у TypingMind, щоб використовувати її з будь-якою LLM, або додайте її до іншого агента, що читає SKILL.md.

1

Встановити в TypingMind

TypingMind встановлює навичку безпосередньо з її папки на GitHub — читає SKILL.md, збирає файли ресурсів у пакет і зберігає результат локально.

  1. Відкрийте застосунок і перейдіть до розділу «Плагіни» → «Навички».
  2. Виберіть «Встановити з GitHub».
  3. Вставте наведений нижче URL папки навички та підтвердьте встановлення.
    https://github.com/UnboundCompute/security-agent-skills/tree/main/skills/auditing-idp-initiated-flow-trust
  4. Увімкніть навичку в кожному чаті, де хочете її використовувати.
Плагіни → Навички → Додати навичку → За URL GitHub, потім вставте URL папки й натисніть «Продовжити».
2

Встановити в іншому агенті

Будь-який агент, що підтримує формат Agent Skills, може використовувати цю навичку — скопіюйте папку до каталогу навичок цього агента.

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-idp-initiated-flow-trust .claude/skills/auditing-idp-initiated-flow-trust
Після копіювання перезапустіть Claude Code, щоб завантажити нову навичку.

Використовуйте навичку в TypingMind

Увімкніть навичку Auditing Idp Initiated Flow Trust в будь-якому чаті TypingMind, і далі модель усе зробить сама. Назва й опис навички містяться в системному промпті, а щойно надходить відповідний запит, модель самостійно завантажує повні інструкції — вам не потрібно викликати навичку вручну, і до фактичного використання вона не витрачає токенів.

Модель самостійно завантажує навичку Auditing Idp Initiated Flow Trust, щойно надходить відповідний запит.

Працює з будь-якою моделлю ШІ

Навички ШІ — це звичайні інструкції у форматі Markdown, а не код для певного постачальника, тому навичка Auditing Idp Initiated Flow Trust не прив’язана до моделі, для якої її створено. Установіть її один раз у TypingMind і використовуйте з GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama або локальною моделлю, яку ви запускаєте самостійно, — усе з вашими власними ключами API.

  • Завантажується лише за потреби

    Системний промпт містить лише назву й опис. Інструкції завантажуються за першого відповідного запиту, тож поки навичка не потрібна, токени на її інструкції не витрачаються.

  • Змінюйте моделі під час чату

    Оскільки навичка — це інструкції, а не код, зміна моделі не порушує її роботу: наступна модель читає той самий файл SKILL.md.

Інструкції навички

Це вміст файлу SKILL.md, який завантажує модель. Прочитайте його перед установленням — навичка містить інструкції, яких дотримуватиметься ваша модель.

Auditing IdP-initiated flow trust: an unsolicited login has no request to anchor it, so validate everything else

In service-provider-initiated single sign-on the application starts the flow, so it has a request on file to bind the returning assertion to: a request id it can require the response to reference, and request state it can check. IdP-initiated single sign-on removes that anchor. Login begins at the identity provider and the application receives an assertion it never asked for, with no matching request, no InResponseTo to check, and no request state to compare against. Everything the request would have pinned down, that this response answers a login this browser started, must now be validated some other way, and often is not. An unsolicited assertion an attacker captures can be replayed, or delivered to a victim, to log a browser into an attacker-chosen account. A RelayState value trusted as a redirect target becomes an open redirect or drops the user into an attacker-controlled context after login. An assertion with no audience restriction, or one too wide, is accepted by a service provider it was never meant for. And without a replay defense, one-time-use, a tight expiry, a consumed-assertion cache, the same assertion logs in again and again. The audit treats an unsolicited assertion as untrusted, checks its signature, audience, timing, and single-use, and refuses to trust RelayState as a destination. You audit this by capturing an IdP-initiated assertion and trying to replay it, redirect with it, or use it at the wrong service provider.

When to use

  • An application accepts IdP-initiated single sign-on: an unsolicited SAML assertion (or similar) with no matching service-provider request.
  • The assertion may be accepted with no request binding, no or a too-wide audience, or no replay defense.
  • RelayState may be trusted as a redirect target.

Scope check

Test IdP-initiated flows only against applications and identity providers you own or are authorized to assess, with test accounts. Capturing and replaying assertions logs into real sessions, so use test identities and never replay an assertion or log into an account that is not yours. If you can't name the authorization, stop.

The loop

  1. Establish how an unsolicited assertion is validated first. Name what the service provider checks on an IdP-initiated assertion with no request to anchor it: signature and trusted issuer, audience restriction, timing (NotBefore, NotOnOrAfter), single-use enforcement, and how RelayState is handled. This is the false-positive killer: a service provider that verifies the signature and issuer, enforces a narrow audience, checks tight timing, consumes each assertion once, and treats RelayState only as a validated internal target is behaving correctly. Name the intended validation, then test each check.

  2. Test replay and single-use. Capture a valid IdP-initiated assertion and submit it a second time. Confirm the service provider enforces single-use (a consumed-assertion cache plus a tight expiry window) so a captured assertion cannot be replayed. An unsolicited assertion with no replay defense logs in again every time it is submitted, and can be delivered to a victim's browser.

  3. Test audience restriction. Examine the assertion's audience and try to use it at a different service provider or endpoint. Confirm the audience is present and narrow so the assertion is accepted only by its intended service provider. A missing or too-wide audience lets an assertion minted for one application log in to another.

  4. Test RelayState handling. Set RelayState to an external URL and to an attacker-controlled path and confirm the service provider does not redirect to it. RelayState must be treated as an opaque token mapping to a validated internal destination, not as a redirect target. A trusted RelayState is an open redirect that lands the post-login user in an attacker-controlled context.

  5. Test signature, issuer, and timing. Confirm the assertion's signature is verified against the trusted identity provider's key, the issuer is on the allowlist, and NotBefore and NotOnOrAfter are enforced with little clock skew. Try an assertion from an untrusted issuer, an unsigned or altered one, and an expired one, and confirm each is rejected. A weak signature, issuer, or timing check accepts an assertion it should not.

  6. Confirm and record. Confirm with test accounts by replaying a captured assertion, using one at the wrong service provider, redirecting through RelayState, or logging in with an assertion from an untrusted issuer or past its window, without touching real accounts. Kill the lead if the service provider verifies signature and issuer, enforces a narrow audience and tight timing, consumes each assertion once, and treats RelayState only as a validated internal target. Record the unsolicited or replayed assertion, the unintended authenticated session, and the missing request binding, audience, or replay defense.

Where IdP-initiated trust leaks

  • No replay defense. An unsolicited assertion with no single-use enforcement or a loose expiry replays every time it is submitted and can be delivered to a victim.
  • Missing or too-wide audience. An assertion with no audience restriction, or one covering more than its intended service provider, is accepted where it was never meant to be used.
  • Trusted RelayState. RelayState treated as a redirect target is an open redirect that lands the post-login user in an attacker-controlled destination.
  • Weak signature or issuer check. Accepting an unsigned, altered, or untrusted-issuer assertion lets an attacker mint the login directly.
  • Loose timing. A wide validity window or generous clock skew widens the replay window and accepts stale assertions.

Worked example (a confirm and a kill)

Confirm. A service provider accepts IdP-initiated SAML responses, does not track consumed assertions, uses a generous validity window, and redirects the user to the RelayState value after login. On a test account, a captured assertion is replayed twice and logs in both times, and setting RelayState to an external URL redirects the authenticated user off-site, because there is no single-use enforcement and RelayState is trusted as a destination. Confirmed assertion replay and open redirect in IdP-initiated flow, high, remediation = enforce single-use with a consumed-assertion cache and a tight expiry, and treat RelayState as an opaque token mapping to a validated internal target, never as a redirect URL.

Kill. The service provider verifies the signature against the trusted issuer, enforces a narrow audience so the assertion works only here, checks NotBefore and NotOnOrAfter with minimal skew, consumes each assertion once so a replay is rejected, and maps RelayState only to a validated internal destination. A replayed assertion fails, one for another service provider is refused, and an external RelayState does not redirect. Killed, kill_reason = "unsolicited assertions are signature- and issuer-verified, audience- and time-restricted, single-use, and RelayState is a validated internal target; no assertion replays, crosses service providers, or redirects off-site."

Rationalizations to reject

  • "There is no request because the IdP starts it." → That is exactly why the other checks must be strict; with no request to anchor the assertion, audience, timing, and single-use are the only binding left.
  • "The assertion is signed." → A signed assertion still replays if it is not single-use and still works elsewhere if its audience is wide; verify signature and audience and replay defense, not signature alone.
  • "RelayState is just where to send them." → A trusted RelayState is an open redirect; map it to a validated internal destination and never redirect to its raw value.
  • "The assertion expires quickly." → A short expiry narrows but does not close the replay window; enforce single-use with a consumed-assertion cache on top of the expiry.
  • "Our IdP is trusted." → Confirm the issuer allowlist and signature verification actually enforce that; a weak check accepts an assertion from an issuer you never trusted.

Executing this in practice

You need how the service provider validates an unsolicited assertion (signature, issuer, audience, timing, single-use) and how it handles RelayState. With test accounts, capture an IdP-initiated assertion and replay it, use it at another service provider, drive RelayState to an external target, and submit untrusted-issuer and expired assertions. Reading the assertion-consumption code shows the intended validation; a replayed, cross-provider, or redirecting assertion shows what the validation omits.

Related

  • auditing-saml-and-oidc-federation-trust - the general assertion validation; IdP-initiated flow is the case where the request anchor is absent and the other checks must carry the whole binding.
  • auditing-jit-provisioning-and-role-mapping - an unsolicited assertion often triggers JIT provisioning; the two combine when an IdP-initiated login creates an account.
  • auditing-sso-logout-and-session-revocation - the teardown side of the session an unsolicited assertion creates; both concern sessions the application did not fully originate.
  • auditing-cors-and-cross-origin-trust - a redirected post-login user landing in an attacker-controlled cross-origin context is that skill's concern; RelayState-as-redirect is where the two meet.
  • FINDING-SCHEMA.md - source = the unsolicited or replayed assertion, sink = the unintended authenticated session, evidence = the missing request binding, audience, or replay defense.

Поширені запитання

Що робить навичка ШІ Auditing Idp Initiated Flow Trust?

Перевірте єдиний вхід, ініційований постачальником посвідчень, на ризики довіри до неочікуваної assertion, яку застосунок не запитував. Зокрема, перевірте відповідь SAML, ініційовану IdP, яку service provider приймає без відповідного запиту, тож її немає з чим пов’язати; неочікувану assertion, яку зловмисник перехоплює та повторно надсилає або доставляє жертві, щоб увійти в обліковий запис, вибраний зловмисником; значення RelayState, якому довіряють як адресі перенаправлення й яке через це створює відкритий редирект; assertion без audience або з надто широким audience, через що її приймає s...

Навіщо використовувати Auditing Idp Initiated Flow Trust у TypingMind?

Тому що ви встановлюєте її один раз і використовуєте з будь-якою моделлю. Auditing Idp Initiated Flow Trust — це звичайний Markdown, а не код для конкретного постачальника, тому та сама навичка працює з GPT-5, Claude, Gemini, Grok або локальною моделлю. Ви можете змінити модель навіть посеред чату, і навичка продовжить працювати. TypingMind використовує ваші власні ключі API, тож ви платите безпосередньо постачальникам замість передплати за кожне місце користувача, а ваші навички й чати залишаються у вашому сховищі.

Як встановити Auditing Idp Initiated Flow Trust у TypingMind?

Відкрийте в TypingMind Плагіни → Навички → Встановити з GitHub і вставте https://github.com/UnboundCompute/security-agent-skills/tree/main/skills/auditing-idp-initiated-flow-trust. TypingMind прочитає файл SKILL.md і встановить навичку, яку можна вмикати окремо для кожного чату.

Які моделі ШІ можуть використовувати Auditing Idp Initiated Flow Trust?

Будь-яка модель, яку ви підключите в TypingMind. Навички ШІ — це звичайні інструкції у форматі Markdown, а не код для конкретного постачальника, тому GPT, Claude, Gemini, Grok і локальні моделі можуть завантажувати цю навичку, коли запит їй відповідає.

Зі скількома моделями ШІ можна використовувати Auditing Idp Initiated Flow Trust?

Зі скількома забажаєте. У TypingMind ви можете використовувати Auditing Idp Initiated Flow Trust із будь-якою моделлю, яка підтримує навички, зокрема з GPT, Claude, Gemini, Grok, DeepSeek, Mistral чи Llama. Для цього ви використовуєте власні ключі API.

Чи безкоштовна навичка ШІ Auditing Idp Initiated Flow Trust?

Так. На GitHub цю навичку публікує UnboundCompute за ліцензією MIT. Ви платите лише своєму постачальнику ШІ за використані токени.

Що таке навички ШІ?

Навичка ШІ — це набір інструкцій для повторного використання, який навчає модель ШІ виконувати одне конкретне завдання. Він відповідає відкритому формату Agent Skills: файл SKILL.md із назвою та описом, а також скрипти, шаблони чи довідкові файли, які можуть знадобитися моделі. Модель читає інструкції лише тоді, коли ваш запит відповідає навичці, тому встановлена навичка нічого не коштує, доки її не використано.

Чим навички ШІ відрізняються від плагінів або серверів MCP?

Плагін або сервер MCP надає моделі нові інструменти, які вона може викликати, — код, який десь виконується й повертає результат. Натомість навичка ШІ дає моделі знання й пояснює порядок дій: як підійти до завдання, яких кроків дотримуватися та яким має бути якісний результат. Навички — це звичайний Markdown, тож їм не потрібні ні сервер, ні ключ API, ні середовище виконання, і вони працюють із будь-якою моделлю.

Усі
Логотип openclaw

Openclaw Debugging

openclaw
ОрганізаціяПопулярне

Діагностуйте проблеми з моделями, провайдерами, інтерфейсом інструментів, режимом коду, потоковою передачею та роботою OpenClaw у реальному часі/Crabbox. Перш ніж змінювати код, добирайте потрібні журнали, перевірки та спосіб підтвердження, зокрема отримуйте збережені…

82.2K
391K
Файлів: 1
Відкрити
Логотип openclaw

Openclaw Live Updater

openclaw
ОрганізаціяПопулярне

Підтримуйте канонічну активну копію репозиторію OpenClaw main, Gateway під керуванням macOS LaunchAgent, локальну програму macOS, CI для точного коміту main і регулярну повну перевірку релізу. Використовуйте для швидкого оновлення…

82.2K
391K
Файлів: 2
Відкрити
Логотип openclaw

Openclaw Pr Maintainer

openclaw
ОрганізаціяПопулярне

Переглядайте, сортуйте за пріоритетом і виправляйте проблеми та pull request-и OpenClaw або вносьте зміни, спираючись на актуальні дані з вихідного коду та стандартний робочий процес супровідника.

82.2K
391K
Файлів: 5
Відкрити
Логотип openclaw

Openclaw Refactor Docs

openclaw
ОрганізаціяПопулярне

Переробіть наявну сторінку документації OpenClaw зі збереженням вмісту, перевіреного за джерелами, реструктуризацією та верифікацією.

82.2K
391K
Інструкції
Відкрити

Створіть власний робочий простір зі ШІ вже зараз

Підпишіться на нашу розсилку, щоб дізнаватися про нові функції та майбутні розіграші 👇