Логотип Auditing Cross Account Role Trust Boundaries

Auditing Cross Account Role Trust Boundaries

Організація
UnboundCompute
auditing-cross-account-role-trust-boundaries

Перевіряйте довіру в політиках, що дозволяють припускати роль IAM між обліковими записами: чи не дає політика довіри змогу припускати роль неналежному принципалу через шаблон або надто широке визначення принципала; чи не бракує зовнішнього ID для ролі третьої сторони або чи можна його перевірити; чи немає сценарію «заплутаного заступника», коли постачальник може припускати вашу роль від імені будь-якого клієнта; чи не веде ланцюжок ролей до привілеїв, яких початковий принципал не повинен мати. Перевіряйте політики довіри AWS assume-role, ключі умов, які мають обмежувати коло тих, кому дозволено припускати роль, а також транзитивний доступ, який дає одне припущення ролі для наступних. Використовуйте цю навичку, коли ролі в одному обліковому записі можна припускати з іншого облікового запису, партнером або службою, а політика довіри є межею безпеки. Джерело — зовнішній принципал, якому політика довіри дозволяє припускати роль; ціль — дозвіл припускати роль; вразливість — обсяг довіри ширший за передбачені відносини.

Огляд

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

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

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

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

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

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

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

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

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

Установіть навичку ШІ Auditing Cross Account Role Trust Boundaries у 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-cross-account-role-trust-boundaries
  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-cross-account-role-trust-boundaries .claude/skills/auditing-cross-account-role-trust-boundaries
Після копіювання перезапустіть Claude Code, щоб завантажити нову навичку.

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

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

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

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

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

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

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

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

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

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

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

Auditing cross-account role trust boundaries: when the trust policy lets the wrong caller in

A role's trust policy decides who may assume it, and in a multi-account or partner setup that policy is the whole boundary between organizations. It fails in quiet ways. A principal element written as a wildcard, or as an entire account rather than a specific role, lets any identity in that account assume the role. A third-party integration role that omits or does not verify an external ID is open to the confused-deputy attack, where the vendor is tricked into assuming your role on an attacker's behalf. And assumption chains, where one role assumes another, can carry a low-privilege origin into high-privilege territory the trust policies never meant to connect. You audit these by reading each trust policy for who it actually admits and by following where an admitted principal can go next.

When to use

  • Roles in one account can be assumed from another account, a partner organization, or a third-party vendor.
  • A trust policy uses a broad principal, or a third-party role relies on an external ID for scoping.
  • One assumed role can assume another, forming a chain that may reach privileges the origin should not.

Scope check

Test role assumption only in accounts and organizations you own or are authorized to assess. A confirming assumption obtains real credentials in the target account, so stay inside the authorized accounts and never assume a role belonging to an organization outside your engagement. If you can't name the authorization, stop.

The loop

  1. Establish the intended trust relationship first. For each cross-account role, name who is supposed to assume it and why: which specific partner role, which service, which internal account. This is the false-positive killer: a trust policy that admits exactly the intended principal under the intended conditions is correct even in a sprawling multi-account setup. Name the intended relationship, then read the policy against it.

  2. Read the principal element for who it actually admits. A trust policy naming an entire account as the principal admits every identity in that account, not just the intended role. A wildcard principal admits anyone, gated only by whatever conditions follow. Determine the true set of principals the policy allows, not the one the author had in mind.

  3. Check third-party roles for external-ID enforcement. A role a vendor assumes on your behalf must require an external ID that the vendor sets per customer and that an attacker cannot guess or supply, otherwise the vendor can be induced to assume your role for someone else. Confirm the trust policy requires the external ID as a condition and that the value is unique and secret to your relationship, not a shared or predictable string.

  4. Confirm the conditions actually scope the assumption. Condition keys on the trust policy (source account, source identity, external ID, network conditions) are the difference between a broad principal and a safe one. Read whether the conditions are present, whether they use the correct keys, and whether they can be satisfied by an attacker. A condition that references a spoofable or caller-controlled value does not scope anything.

  5. Follow the assumption chain. Where an assumed role can assume a further role, trace the chain to its end and ask whether the origin principal should be able to reach the final role's privileges. A chain that lets a partner or a low-privilege account step through intermediate roles into administrative access is a trust-boundary break even when each individual policy looks reasonable.

  6. Confirm and record. Confirm by assuming the role from a principal that should not be admitted (within owned accounts), or by demonstrating a chain that carries an origin to privileges beyond its intended reach, without touching accounts outside the engagement. Kill the lead if every trust policy admits only the specific intended principal, third-party roles require a unique secret external ID, conditions scope the assumption to unspoofable values, and no chain reaches unintended privilege. Record the admitted principal, the assume-role sink, and the trust scope beyond intent.

Where cross-account trust boundaries leak

  • An account-wide principal admits everyone in that account. Naming the account instead of the specific role grants assumption to every identity it contains.
  • A missing external ID is a confused-deputy opening. Without it, a vendor can be induced to assume your role for an attacker's benefit.
  • A wildcard principal relies entirely on the conditions. If the conditions are absent or spoofable, the role is effectively open.
  • Assumption chains connect trust domains the policies never meant to link. A safe-looking pair of policies can compose into an origin-to-admin path.
  • A predictable external ID is no boundary. If the value is shared, guessable, or attacker-suppliable, it does not scope the third-party assumption.

Worked example (a confirm and a kill)

Confirm. A data-integration role trusts a vendor account but omits the external-ID condition. Because the vendor assumes the role for many customers, an attacker who is also a vendor customer induces the vendor to assume this role on their behalf, obtaining credentials in the target account. Confirmed confused-deputy cross-account assumption, high, remediation = add a required external-ID condition to the trust policy with a value unique and secret to this relationship, and confirm the vendor sends it on every assume-role call.

Kill. Every cross-account role names the specific partner role as principal, third-party roles require a unique secret external ID as a condition, and no assumed role can chain into privileges beyond its intended reach. An assumption attempt from any other principal, or without the external ID, is denied. Killed, kill_reason = "trust policies admit only the specific intended role under a unique-external-ID condition and no chain reaches unintended privilege; no unadmitted principal can assume the role."

Rationalizations to reject

  • "Only our partner's account is trusted." → Naming the account admits every identity in it; scope the principal to the specific role, not the whole account.
  • "The external ID is set, so it is safe." → Confirm it is unique and secret to your relationship; a shared or guessable value provides no scoping.
  • "Each policy is fine on its own." → Trace the chain; safe individual policies can compose into an origin-to-admin path.
  • "The condition restricts it." → Confirm the condition uses the correct key and an unspoofable value; a condition on a caller-controlled field is not a boundary.
  • "It is inside our organization." → Cross-account within one organization still crosses a trust boundary; the trust policy is the control regardless.

Executing this in practice

You need each cross-account role's trust policy, the intended principal for each, what the principal element actually admits, the external-ID and condition scoping on third-party roles, and the assumption chains that lead onward. For each role, compare the admitted set to the intended relationship and follow where an admitted principal can chain. Reading the policy shows who is meant to assume; assuming from an unintended principal in an owned account shows whether the boundary holds.

Related

  • hunting-iam-privilege-escalation-paths - the in-account escalation companion; a cross-account entry often lands on a role that then escalates within the target account.
  • mapping-service-account-impersonation-chains - the same assumption-chain reasoning in cloud identity, where impersonation rather than assume-role carries the principal onward.
  • auditing-cicd-oidc-trust - a federated CI principal assuming a cloud role is a cross-account trust with the same subject-scoping requirements.
  • adjudicating-taint-paths - use it to trace an admitted principal through an assumption chain to a privileged final role.
  • FINDING-SCHEMA.md - source = the external principal the trust policy permits, sink = the assume-role grant, evidence = the trust scope beyond the intended relationship.

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

Що робить навичка ШІ Auditing Cross Account Role Trust Boundaries?

Перевіряйте довіру в політиках, що дозволяють припускати роль IAM між обліковими записами: чи не дає політика довіри змогу припускати роль неналежному принципалу через шаблон або надто широке визначення принципала; чи не бракує зовнішнього ID для ролі третьої сторони або чи можна його перевірити; чи немає сценарію «заплутаного заступника», коли постачальник може припускати вашу роль від імені будь-якого клієнта; чи не веде ланцюжок ролей до привілеїв, яких початковий принципал не повинен мати. Перевіряйте політики довіри AWS assume-role, ключі умов, які мають обмежувати коло тих, кому дозво...

Навіщо використовувати Auditing Cross Account Role Trust Boundaries у TypingMind?

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

Як встановити Auditing Cross Account Role Trust Boundaries у TypingMind?

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

Які моделі ШІ можуть використовувати Auditing Cross Account Role Trust Boundaries?

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

Зі скількома моделями ШІ можна використовувати Auditing Cross Account Role Trust Boundaries?

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

Чи безкоштовна навичка ШІ Auditing Cross Account Role Trust Boundaries?

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

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

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

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

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

Усі
Логотип 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
Відкрити
Логотип openclaw

Solid

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

Write, port, review, or test Solid 2 UI in OpenClaw (Control UI, plugin views, Canvas hosts), including state ownership, Lit interop during the migration, native overlays, testing, performance, and…

82.4K
391.7K
Файлів: 9
Відкрити

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

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