Логотип Auditing Oauth Token Audience And Scope Trust

Auditing Oauth Token Audience And Scope Trust

Організація
UnboundCompute
auditing-oauth-token-audience-and-scope-trust

Перевірте, чи не довіряє сервер ресурсів токенам доступу OAuth у випадках, які він мав би відхиляти: токен, виданий для однієї аудиторії, приймається іншим сервісом; область дії вважається ширшою або вужчою, ніж є насправді, і токен дає змогу виконати операцію, на яку прав не надано; плутаються видавець токена або сервер авторизації, через що сторона приймає токен від видавця, якому не довіряє; сервер ресурсів перевіряє підпис, але не аудиторію, видавця чи область дії. Охоплює архітектури OAuth і bearer-токенів, де токен доступу авторизує виклик між клієнтом, сервером авторизації та одним або кількома серверами ресурсів. Використовуйте цю навичку, коли сервер ресурсів приймає bearer-токени, а перевірки аудиторії, видавця й області дії є межею безпеки. Токен, наданий не тій аудиторії або використаний поза межами своєї області дії, є джерелом; операція з ресурсом, до якої він дає доступ, — ціллю; а помилка полягає у відсутності перевірки аудиторії, видавця чи області дії.

Огляд

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

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

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

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

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

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

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

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

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

Установіть навичку ШІ Auditing Oauth Token Audience And Scope 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-oauth-token-audience-and-scope-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-oauth-token-audience-and-scope-trust .claude/skills/auditing-oauth-token-audience-and-scope-trust
Після копіювання перезапустіть Claude Code, щоб завантажити нову навичку.

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

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

Модель самостійно завантажує навичку Auditing Oauth Token Audience And Scope Trust, щойно надходить відповідний запит.

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

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

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

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

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

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

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

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

Auditing OAuth token audience and scope trust: a token is only good for what it was issued for

A bearer access token is a claim with a precise domain: it was issued by a particular authorization server, for a particular audience, carrying a particular scope, and it authorizes only what those three agree on. A resource server that checks the signature but not the audience, issuer, and scope is trusting a token far beyond what it was minted for. The confusions are specific and common. A token issued for service A is presented to service B, and if B does not verify the audience it accepts A's token as its own. A scope is treated as coarser than it is, or a missing-scope check lets any valid token reach a privileged operation. A token from a different authorization server is honored by a party that only meant to trust one issuer. Each is a token used outside its domain. The audit checks that every token is validated against the audience, issuer, and scope the operation requires, not merely that it is a well-formed, signed token. You audit this by testing whether a token good for one thing is accepted for another.

When to use

  • A resource server accepts OAuth or bearer access tokens to authorize calls.
  • Multiple services or audiences accept tokens, and the audience or issuer may not be verified per service.
  • Scopes gate operations, and the resource server may not check the specific scope each operation requires.

Scope check

Test token trust only against services you own or are authorized to assess, on non-production tokens and accounts. Presenting tokens across audiences exercises real authorization, so use non-production credentials and never use a confused token to reach real data. If you can't name the authorization, stop.

The loop

  1. Establish each operation's required token domain first. Name, per operation, the audience, issuer, and scope a token must have to be authorized: this service as the audience, the trusted authorization server as the issuer, the specific scope for the action. This is the false-positive killer: a resource server that verifies all three on every call authorizes exactly the tokens it should. Name the required domain, then test what the server actually accepts.

  2. Check audience validation. Determine whether the resource server verifies that the token's audience is itself. Present a token minted for a different service or audience and confirm it is rejected. A server that accepts a token whose audience is another service is honoring credentials issued for someone else, which is the core audience-confusion bug.

  3. Check issuer validation and mix-up. Confirm the resource server verifies the token issuer against the specific authorization server it trusts, and that in a multi-issuer or federated setup a token from one issuer is not honored where another was intended. A party that trusts issuer X but validates only that the token is signed by some known key can be given a token from issuer Y.

  4. Check scope enforcement per operation. For each operation, confirm the server checks the exact scope the action requires rather than accepting any valid token or treating a broad scope as covering everything. Test whether a token with a read scope reaches a write operation, or a token with an unrelated scope reaches a privileged one. Missing or coarse scope checks let a token exceed its grant.

  5. Check token binding and reuse. Where applicable, confirm the token cannot be replayed to a different audience or reused past its intended context: audience restriction, sender constraint, and expiry are honored. A token that is valid, signed, and unexpired but usable anywhere is a bearer secret with no domain, so the binding checks are part of the boundary.

  6. Confirm and record. Confirm by presenting a token outside its domain, a cross-audience token accepted by the wrong service, a wrong-issuer token honored, or an insufficient-scope token reaching a privileged operation, on non-production accounts and without touching real data. Kill the lead if the resource server verifies audience, issuer, and per-operation scope on every call and honors token binding and expiry. Record the misused token, the resource-operation sink, and the missing audience, issuer, or scope validation.

Where token trust leaks

  • Unvalidated audience honors another's token. A resource server that does not check the audience accepts a token minted for a different service as its own.
  • Unvalidated issuer enables mix-up. Trusting any known signer rather than the specific authorization server lets a token from the wrong issuer through.
  • Missing scope checks exceed the grant. Accepting any valid token, or treating a broad scope as universal, lets a token reach an operation it was not granted.
  • A signed token is not an authorized token. Signature validity proves origin, not that the token is for this audience, this issuer, and this scope.
  • An unbound token is a portable secret. A token with no audience restriction, sender constraint, or honored expiry can be replayed wherever a bearer token is accepted.

Worked example (a confirm and a kill)

Confirm. Two internal services accept tokens from the same authorization server, and service B validates the token signature and expiry but not the audience. A token minted for service A, obtained legitimately by a client, is presented to service B and accepted, letting the client reach service B operations it was never granted. Confirmed audience confusion across resource servers, high, remediation = validate the audience on every resource server so each accepts only tokens minted for itself, verify the issuer against the specific authorization server, and check the exact scope each operation requires.

Kill. Each resource server verifies that the token audience is itself, that the issuer is the specific authorization server it trusts, and that the token carries the exact scope the requested operation requires, and it honors audience restriction and expiry. A token minted for another service, from another issuer, or lacking the operation's scope is rejected. Killed, kill_reason = "audience, issuer, and per-operation scope verified on every call with honored binding and expiry; a token is accepted only for exactly what it was issued for."

Rationalizations to reject

  • "The token is signed and valid." → Signature validity is origin, not domain; confirm the audience, issuer, and scope match this operation, or a valid token is accepted outside its grant.
  • "Both services use the same auth server." → Same issuer is not same audience; without an audience check service A's token works on service B.
  • "Any valid token means they are authenticated." → Authentication is not authorization; check the specific scope each operation requires, not merely that a token is present.
  • "We trust our issuer." → Confirm you validate the specific issuer, not just any known signer; a multi-issuer setup enables a mix-up otherwise.
  • "Tokens expire quickly." → Expiry limits the window, not the domain; an unbound token is usable at any audience for its lifetime.

Executing this in practice

You need, per operation, the required audience, issuer, and scope, and what the resource server actually validates on each call. For each service, present a cross-audience token, a wrong-issuer token, and an insufficient-scope token, and observe what is accepted. Reading the token-validation code shows the intended domain checks; a token accepted outside its domain shows whether they hold.

Related

  • auditing-jwt-verification-and-key-trust - the token-verification mechanics beneath this; algorithm and key confusion undermine the same audience and issuer claims this skill checks.
  • auditing-saml-and-oidc-federation-trust - the federation companion; assertion and issuer trust are the identity-layer version of audience and issuer validation.
  • hunting-broken-object-level-authorization - once a token is accepted, whether it may act on the specific object is the next authorization question this pairs with.
  • mapping-service-account-impersonation-chains - tokens that cross audiences are one way an identity reaches beyond its intended scope; the two maps meet at token exchange.
  • FINDING-SCHEMA.md - source = the token presented to the wrong audience or beyond its scope, sink = the resource operation it reaches, evidence = the missing audience, issuer, or scope validation.

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

Що робить навичка ШІ Auditing Oauth Token Audience And Scope Trust?

Перевірте, чи не довіряє сервер ресурсів токенам доступу OAuth у випадках, які він мав би відхиляти: токен, виданий для однієї аудиторії, приймається іншим сервісом; область дії вважається ширшою або вужчою, ніж є насправді, і токен дає змогу виконати операцію, на яку прав не надано; плутаються видавець токена або сервер авторизації, через що сторона приймає токен від видавця, якому не довіряє; сервер ресурсів перевіряє підпис, але не аудиторію, видавця чи область дії. Охоплює архітектури OAuth і bearer-токенів, де токен доступу авторизує виклик між клієнтом, сервером авторизації та одним а...

Навіщо використовувати Auditing Oauth Token Audience And Scope Trust у TypingMind?

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

Як встановити Auditing Oauth Token Audience And Scope Trust у TypingMind?

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

Які моделі ШІ можуть використовувати Auditing Oauth Token Audience And Scope Trust?

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

Зі скількома моделями ШІ можна використовувати Auditing Oauth Token Audience And Scope Trust?

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

Чи безкоштовна навичка ШІ Auditing Oauth Token Audience And Scope Trust?

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

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

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

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

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

Усі
Логотип openclaw

Release Openclaw Ci

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

Запускайте, відстежуйте, налагоджуйте та підсумовуйте повний CI для релізів OpenClaw, перевірки релізів, контрольні перевірки робочих провайдерів, підтвердження встановлення й оновлення та попередні перевірки секретів для релізу.

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

Release Openclaw Mac

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

Виконуйте підписування релізів OpenClaw для macOS, нотаризацію, оновлення appcast і просування ресурсів або відновлюйте ці процеси.

82.2K
391K
Інструкції
Відкрити
Логотип openclaw

Release Openclaw Maintainer

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

Готуйте, публікуйте, відновлюйте або перевіряйте бета-, стабільні й розширено стабільні релізи OpenClaw, зокрема затверджені зворотні перенесення змін.

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

Release Openclaw Plugin Testing

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

Плануйте та виконуйте передрелізну перевірку плагінів OpenClaw: вбудованих плагінів, артефактів пакетів, команд життєвого циклу, doctor/fix, перевірки конфігурації після повторного перетворення, запуску шлюзу, сумісності SDK, Docker E2E,…

82.2K
391K
Файлів: 1
Відкрити

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

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