Logo van Auditing Cross Account Role Trust Boundaries

Auditing Cross Account Role Trust Boundaries

Organisatie
UnboundCompute
auditing-cross-account-role-trust-boundaries

Controleer het aannemen van IAM-rollen tussen accounts op trust policies waarmee de verkeerde principal een rol kan aannemen: een trust policy met een wildcard of een te ruime principal, een ontbrekende of niet-verifieerbare externe ID voor een rol van een derde partij, een confused-deputy-pad waarbij een leverancier namens elke klant jouw rol kan aannemen, en een rolketen die toegang geeft tot privileges die de oorspronkelijke principal nooit zou mogen hebben. Dit omvat AWS assume-role-trust policies, condition keys die moeten beperken wie een rol mag aannemen, en de verdere toegang die ontstaat wanneer de ene rol de volgende aanneemt. Gebruik dit wanneer rollen in het ene account kunnen worden aangenomen vanuit een ander account, door een partner of door een service, en de trust policy de beveiligingsgrens vormt. De externe principal die volgens de trust policy is toegestaan, is de bron; de toestemming om de rol aan te nemen is het doel; vertrouwen dat ruimer is dan de beoogde relatie is het probleem.

Overzicht

UitgeverUnboundCompute
Repositorysecurity-agent-skills
Skillnaamauditing-cross-account-role-trust-boundaries
Sterren
27
Forks
8
Meegeleverde bestanden
Alleen instructies
LicentieMIT
Links
  • Instructies in Markdown

    Het model laadt het bestand SKILL.md alleen als dat nodig is. Dat kost dus alleen tokens als een verzoek daadwerkelijk bij de skill past.

  • Werkt met elk LLM

    AI-skills bestaan uit instructies in gewone Markdown, niet uit aanbiederspecifieke code. Daardoor werken ze met GPT, Claude, Gemini, Grok of een lokaal model.

  • Compleet zonder extra bestanden

    Alles wat het model nodig heeft, staat in de instructies — geen extra bestanden om te synchroniseren.

  • Open source

    Gepubliceerd door UnboundCompute op GitHub. Bekijk de bronbestanden voordat je de skill installeert.

Installatie

Installeer de AI-skill Auditing Cross Account Role Trust Boundaries in TypingMind om deze met elk LLM te gebruiken, of voeg de skill toe aan een andere agent die SKILL.md kan lezen.

1

Installeren in TypingMind

TypingMind installeert een skill rechtstreeks vanuit de GitHub-map. De app leest SKILL.md, bundelt de bijbehorende bestanden en slaat het resultaat lokaal op.

  1. Open de app en ga naar Plug-ins → Skills.
  2. Kies "Installeren via GitHub".
  3. Plak de onderstaande URL van de skillmap en bevestig.
    https://github.com/UnboundCompute/security-agent-skills/tree/main/skills/auditing-cross-account-role-trust-boundaries
  4. Schakel de skill in voor elke chat waarin je de skill wilt kunnen gebruiken.
Plug-ins → Skills → Skill toevoegen → Via GitHub-URL. Plak vervolgens de map-URL en druk op Doorgaan.
2

Installeren in een andere agent

Elke agent die het Agent Skills-formaat kan lezen, kan deze skill gebruiken — kopieer de map naar de skillmap van die agent.

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
Start Claude Code na het kopiëren opnieuw op, zodat de nieuwe skill wordt herkend.

Gebruik deze skill in TypingMind

Schakel Auditing Cross Account Role Trust Boundaries in voor een chat naar keuze in TypingMind en het model doet de rest. De naam en beschrijving staan in de systeemprompt. Zodra een verzoek bij de skill past, laadt het model zelf de volledige instructies. Je hoeft de skill nooit handmatig aan te roepen. Pas als het model de skill daadwerkelijk gebruikt, kost dat tokens.

Het model laadt Auditing Cross Account Role Trust Boundaries automatisch zodra een verzoek erbij past.

Werkt met elk AI-model

AI-skills zijn gewone Markdown-instructies in plaats van aanbiederspecifieke code. Daardoor is Auditing Cross Account Role Trust Boundaries niet gebonden aan het model waarvoor de skill is geschreven. Installeer de skill één keer in TypingMind en gebruik deze met GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama of een lokaal model dat je zelf draait — allemaal met je eigen API-sleutels.

  • Alleen geladen wanneer nodig

    De systeemprompt bevat alleen de naam en beschrijving. De instructies worden bij het eerste bijpassende verzoek opgehaald, dus een ongebruikte skill kost niets.

  • Wissel van model tijdens een chat

    Omdat de skill uit instructies bestaat en niet uit code, blijft deze werken als je van model wisselt — het volgende model leest hetzelfde SKILL.md-bestand.

Skillinstructies

Dit is de inhoud van SKILL.md die het model laadt. Lees deze vóór de installatie — een skill bestaat uit instructies die je model zal volgen.

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.

Veelgestelde vragen

Wat doet de AI-skill Auditing Cross Account Role Trust Boundaries?

Controleer het aannemen van IAM-rollen tussen accounts op trust policies waarmee de verkeerde principal een rol kan aannemen: een trust policy met een wildcard of een te ruime principal, een ontbrekende of niet-verifieerbare externe ID voor een rol van een derde partij, een confused-deputy-pad waarbij een leverancier namens elke klant jouw rol kan aannemen, en een rolketen die toegang geeft tot privileges die de oorspronkelijke principal nooit zou mogen hebben. Dit omvat AWS assume-role-trust policies, condition keys die moeten beperken wie een rol mag aannemen, en de verdere toegang die on...

Waarom Auditing Cross Account Role Trust Boundaries gebruiken in TypingMind?

Omdat je deze skill één keer installeert en met elk model kunt gebruiken. Auditing Cross Account Role Trust Boundaries bestaat uit gewone Markdown in plaats van aanbiederspecifieke code. Dezelfde skill werkt dus met GPT-5, Claude, Gemini, Grok of een lokaal model. Ook als je midden in een chat van model wisselt, blijft de skill werken. TypingMind werkt met je eigen API-sleutels, dus je betaalt aanbieders rechtstreeks in plaats van een abonnement per gebruikersplek af te sluiten. Je skills en chats blijven in je eigen opslag.

Hoe installeer ik Auditing Cross Account Role Trust Boundaries in TypingMind?

Open Plug-ins → Skills → Installeren vanaf GitHub in TypingMind en plak https://github.com/UnboundCompute/security-agent-skills/tree/main/skills/auditing-cross-account-role-trust-boundaries. TypingMind leest het bestand SKILL.md en installeert het als een skill die je per chat kunt inschakelen.

Welke AI-modellen kunnen Auditing Cross Account Role Trust Boundaries gebruiken?

Elk model dat je in TypingMind koppelt. AI-skills bestaan uit gewone Markdown-instructies in plaats van aanbiederspecifieke code. GPT, Claude, Gemini, Grok en lokale modellen kunnen deze skill dus allemaal laden wanneer een verzoek erbij past.

Hoeveel AI-modellen kan ik met Auditing Cross Account Role Trust Boundaries gebruiken?

Zoveel als je wilt. Je kunt Auditing Cross Account Role Trust Boundaries gebruiken met elk model dat skills ondersteunt, zoals GPT, Claude, Gemini, Grok, DeepSeek, Mistral of Llama. Allemaal in TypingMind met je eigen API-sleutels.

Is de AI-skill Auditing Cross Account Role Trust Boundaries gratis?

Ja. Deze skill is door UnboundCompute op GitHub gepubliceerd onder de licentie MIT. Je betaalt alleen je eigen AI-aanbieder voor de tokens die je gebruikt.

Wat zijn AI-skills?

Een AI-skill is een herbruikbare bundel instructies die een AI-model leert hoe het één specifieke taak moet uitvoeren. De skill volgt het open Agent Skills-formaat: het bestand SKILL.md bevat de naam en beschrijving van de skill. Daarnaast kan de skill scripts, sjablonen of referentiebestanden bevatten die het model nodig heeft. Het model leest de instructies alleen als je verzoek bij de skill past. Een geïnstalleerde skill kost dus niets zolang deze niet wordt gebruikt.

Waarin verschillen AI-skills van plug-ins of MCP-servers?

Een plug-in of MCP-server geeft een model nieuwe tools om aan te roepen: code die ergens wordt uitgevoerd en een resultaat teruggeeft. Een AI-skill geeft het model juist kennis en een werkwijze: hoe het een taak moet aanpakken, welke stappen het moet volgen en hoe goede uitvoer eruitziet. Skills bestaan uit gewone Markdown en hebben dus geen server, API-sleutel of runtime nodig. Ze werken met elk model.

Bekijk alles

Maak nu je eigen AI-werkruimte

Schrijf je in voor onze nieuwsbrief en blijf op de hoogte van nieuwe functies en toekomstige weggeefacties 👇