Logo: Auditing Jit Provisioning And Role Mapping

Auditing Jit Provisioning And Role Mapping

Organisatioun
UnboundCompute
auditing-jit-provisioning-and-role-mapping

Iwwerpréift d’Just-in-Time-Bereetstellung vu Konten beim federéierte Login (SAML oder OIDC) op falsch gesate Vertrauen an d’Assertion, déi dëse Prozess ausléist: e Login, bei deem fir d’éischt e Kont ugeluecht a Rolle baséiert op Claims vum Identitéitsprovider zougewisen ginn (Gruppen, E-Mail-Domain, Departement), ouni datt de Service dës iwwerpréift; eng Zouwisung vu Claims zu Rollen, déi méi Rechter vergëtt wéi de Claim rechtfäerdegt, oder nei Benotzer standardméisseg an eng privilegéiert Roll setzt; en E-Mail- oder Domain-Claim, deem vertraut gëtt, fir automatesch engem Tenant bäizetrieden, soudatt en Ugräifer mat enger ähnlecher Adress doranner kënnt; an eng JIT-Aktualiséierung, déi e Kont bei all Login opgrond vu verännerleche Claims nei privilegéiert. Benotzt dëst, wann e federéierte Login e Kont uleet an d’Zouwisung vun den Claims aus der Assertion zu lokale Rollen an engem Tenant d’Grenz ass. D’Assertion vum Login, déi en Ugräifer manipuléiert huet, ass d’Quell; de Kont, deen ze vill Rechter huet oder am falschen Tenant gelant ass, ass d’Zil; an de Feeler ass en net validéierte Claim oder eng Rollenzouwisung, déi ze vill Rechter vergëtt.

Iwwersiicht

EditeurUnboundCompute
Repositorysecurity-agent-skills
Skill-Nummauditing-jit-provisioning-and-role-mapping
Stären
27
Forks
8
Matgeliwwert Dateien
Nëmmen Instruktiounen
LizenzMIT
Linken
  • Instruktiounen am Markdown-Format

    Eng SKILL.md-Datei, déi de Modell bei Bedarf luet, soudatt nëmmen Token ufalen, wann eng Ufro tatsächlech dozou passt.

  • Funktionéiert mat all LLM

    KI-Skills si reng Markdown, keen ubidderspezifesche Code. Dofir funktionéiert dëse Skill mat GPT, Claude, Gemini, Grok oder engem lokale Modell.

  • Alles an den Instruktiounen

    Alles, wat de Modell brauch, steet an den Instruktiounen — keng zousätzlech Dateien ze synchroniséieren.

  • Open Source

    UnboundCompute huet de Skill op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill Auditing Jit Provisioning And Role Mapping an TypingMind, fir e mat all LLM ze benotzen, oder setzt en an en anere KI-Agent an, deen SKILL.md liest.

1

An TypingMind installéieren

TypingMind installéiert e Skill direkt aus sengem GitHub-Dossier — dobäi gëtt SKILL.md gelies, d'Ressourcedateie gi gebëndelt an d'Resultat gëtt lokal gespäichert.

  1. Maacht d'App op a gitt op Plugins → Skills.
  2. Wielt „Vu GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier, déi hei drënner steet, an a bestätegt d'Installatioun.
    https://github.com/UnboundCompute/security-agent-skills/tree/main/skills/auditing-jit-provisioning-and-role-mapping
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill derbäisetzen → Iwwer eng GitHub-URL. Pecht dann d'URL vum Dossier an a klickt op Weider.
2

An engem anere KI-Agent installéieren

All KI-Agent, deen d'Format Agent Skills liest, kann dëse Skill benotzen — kopéiert den Dossier an d'Skill-Verzeechnes vun deem KI-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-jit-provisioning-and-role-mapping .claude/skills/auditing-jit-provisioning-and-role-mapping
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Auditing Jit Provisioning And Role Mapping an engem Chat vun TypingMind, an de Modell iwwerhëlt de Rescht. Den Numm an d'Beschreiwung stinn am System-Prompt. Soubal eng Ufro dozou passt, luet de Modell déi komplett Instruktioune selwer — Dir musst de Skill ni manuell opruffen, an et fale keng Token un, bis en tatsächlech benotzt gëtt.

De Modell luet Auditing Jit Provisioning And Role Mapping automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass Auditing Jit Provisioning And Role Mapping net un de Modell gebonnen, fir deen de Skill geschriwwe gouf. Installéiert en eemol an TypingMind a benotzt e mat GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder engem lokale Modell, deen Dir selwer bedreift — alles mat Ären eegenen API-Schlësselen.

  • Gëtt nëmme gelueden, wann et néideg ass

    De System-Prompt enthält nëmmen den Numm an d'Beschreiwung. D'Instruktioune gi bei der éischter passender Ufro gelueden, soudatt en onbenotzte Skill näischt kascht.

  • De Modell am lafende Chat wiesselen

    Well de Skill aus Instruktiounen amplaz vu Code besteet, funktionéiert en och no engem Modellwiessel — den nächste Modell liest déi selwecht SKILL.md-Datei.

Skill-Instruktiounen

Dëst ass den Inhalt vu SKILL.md, deen de Modell luet. Liest e virun der Installatioun — e Skill besteet aus Instruktiounen, déi Äre Modell befollegt.

Auditing JIT provisioning and role mapping: the first login decides the role, from claims you did not issue

Just-in-time provisioning creates a local account the first time someone logs in through a federated identity provider, and often updates that account's roles on every subsequent login, all from the claims in the login assertion. The claims, group memberships, an email, a domain, a department, come from the identity provider, not from you, so JIT hands account creation and role assignment to whatever the assertion says. That is fine when the mapping is tight and the claims are validated, and dangerous when either is loose. A claim-to-role mapping that grants more privilege than the claim should, or defaults every new user into a privileged role, elevates at first login. An email or domain claim trusted to auto-join a tenant or organization lets an attacker with a lookalike or attacker-controlled address land inside it. A JIT update that re-reads mutable claims every login can re-elevate or reassign an account an admin previously corrected. And any claim provisioned without validation, an unverified email, a group the attacker can influence, an unsigned or overtrusted assertion field, becomes an access grant. The audit follows a federated login into the account and roles it creates and checks that every claim is validated and every mapping is minimal. You audit this by logging in with shaped assertions and seeing what account and privilege you are given.

When to use

  • A federated login (SAML or OIDC) provisions a local account and assigns roles or tenancy from assertion claims on first login, and may update them on repeat logins.
  • A claim-to-role mapping may over-grant, default new users into a privileged role, or trust an email or domain claim to auto-join an organization.
  • Claims (email, groups, department) may be provisioned without validation.

Scope check

Test JIT provisioning only against applications and identity providers you own or are authorized to assess, on non-production tenants. Logging in with shaped assertions creates real accounts and role grants, so use test identity providers and tenants and never provision or elevate access in an organization that is not yours. If you can't name the authorization, stop.

The loop

  1. Establish the intended claim-to-role and claim-to-tenant mapping first. Name which claims the service trusts, how each maps to a local role, how tenancy or organization membership is decided, and what a brand new user should get by default. This is the false-positive killer: a service that validates every claim it provisions from, maps claims to least privilege, defaults new users into no privileged role, and decides tenancy from a verified, non-spoofable signal is behaving correctly. Name the intended mapping, then test shaped logins.

  2. Test the claim-to-role mapping. Log in with assertions carrying various group and role claims and confirm each maps to exactly the intended privilege. Attempt a claim that should map to an ordinary role and check it cannot reach an admin or elevated role, and confirm a new user with no privileged claim is not defaulted into one. A mapping that over-grants or defaults high is a first-login escalation.

  3. Test tenant and organization auto-join. Log in with an email or domain claim and confirm how the service decides which tenant or organization the account joins. Try a lookalike domain, a subdomain, and an attacker-controlled address, and confirm none auto-joins an organization it should not. An email or domain claim trusted to auto-join lets an attacker land inside a tenant.

  4. Test claim validation. For each provisioned claim, confirm the service validates it: the email is verified, the assertion is signed and the claim is within its authority, and the group is one the identity provider is authorized to assert. Provision from an unverified email and an attacker-influenced group and confirm both are rejected. An unvalidated claim is an access grant the attacker writes.

  5. Test JIT update on repeat login. Log in again with changed claims and confirm whether the service re-reads them to re-elevate or reassign the existing account. Check whether an admin's manual correction (demotion, tenant move) survives the next federated login. A JIT update that blindly re-applies mutable claims undoes local administration every login.

  6. Confirm and record. Confirm on a test tenant by provisioning an over-privileged account from a shaped role claim, auto-joining a tenant from a lookalike email, provisioning from an unverified or attacker-influenced claim, or re-elevating an account on repeat login, without touching a real organization. Kill the lead if the service validates every provisioned claim, maps claims to least privilege, defaults new users into no privileged role, decides tenancy from a verified signal, and does not let a JIT update override local correction. Record the attacker-shaped login assertion, the over-privileged or wrong-tenant account, and the unvalidated claim or over-granting mapping.

Where JIT provisioning leaks

  • Over-granting role mapping. A claim that maps to more privilege than it should, or a default that puts new users in a privileged role, escalates at first login.
  • Email or domain auto-join. Trusting an email or domain claim to auto-join a tenant lets an attacker with a lookalike or controlled address land inside an organization.
  • Unvalidated claims. Provisioning from an unverified email, an attacker-influenced group, or an overtrusted assertion field turns a claim into an access grant.
  • Blind JIT updates. Re-reading mutable claims on every login re-elevates or reassigns accounts and undoes an admin's local corrections.
  • Trusting unsigned or out-of-authority claims. Accepting a claim the identity provider is not authorized to assert, or from an unsigned assertion, lets the attacker set roles directly.

Worked example (a confirm and a kill)

Confirm. An application provisions accounts at first SAML login and joins the user to an organization based on the email domain in the assertion, with any member of the staff group mapped to an admin role. On a test identity provider, an assertion with a lookalike domain and a staff group claim provisions an admin account inside the target organization, because the service trusts the domain to auto-join and maps staff straight to admin. Confirmed wrong-tenant admin provisioning via trusted domain and over-granting mapping, critical, remediation = decide tenancy from a verified, claimed-domain-ownership signal rather than the raw email domain, map groups to least privilege with admin unreachable from a broad group, and verify the email before provisioning.

Kill. The service provisions only from validated claims (verified email, signed assertion, groups within the provider's authority), maps each claim to least privilege with admin roles unreachable from ordinary claims, defaults new users into no privileged role, decides organization membership from a verified domain-ownership signal, and does not let a repeat login override an admin's manual role or tenant correction. A lookalike domain does not auto-join, a broad group does not reach admin, and an unverified email does not provision. Killed, kill_reason = "every provisioned claim is validated, claims map to least privilege with no high default, tenancy comes from a verified signal, and JIT updates do not override local correction; no shaped login provisions over-privileged or wrong-tenant access."

Rationalizations to reject

  • "The claims come from the IdP, so they are trusted." → Confirm each claim is within the provider's authority and the assertion is signed; a claim the attacker can influence or that the provider should not assert is not trustworthy just because it arrived over federation.
  • "We map groups to roles, that is standard." → Confirm the mapping is least privilege and admin is unreachable from a broad group; a staff-to-admin mapping is standard and wrong.
  • "New users get a default role." → Confirm the default is not privileged; defaulting new federated users into an elevated role is a first-login escalation for anyone who can log in.
  • "Email domain identifies the company." → An email domain is spoofable in an assertion and lookalikes exist; decide tenancy from verified domain ownership, not the raw claim.
  • "JIT keeps roles in sync." → Confirm it does not undo local corrections; blindly re-applying mutable claims every login re-elevates accounts an admin already demoted.

Executing this in practice

You need which claims the service provisions from, how each maps to a role and to tenancy, how claims are validated, and whether repeat logins re-apply mutable claims over local changes. On a test identity provider, log in with shaped role, group, and email claims, with lookalike and unverified addresses, and on repeat with changed claims. Reading the provisioning and mapping code shows the intended trust; an over-privileged or wrong-tenant account from a shaped login shows whether it holds.

Related

  • auditing-scim-provisioning-trust - the push counterpart; SCIM provisions ahead of login while JIT provisions at login, and both turn a source attribute into a role and a tenant.
  • auditing-saml-and-oidc-federation-trust - the assertion validation JIT depends on; an unsigned or wrapped assertion feeds JIT attacker-chosen claims.
  • auditing-idp-initiated-flow-trust - an IdP-initiated login is a common JIT trigger; the two combine when an unsolicited assertion provisions an account.
  • hunting-iam-privilege-escalation-paths - a role over-granted at first login is the start of an escalation path that skill traces onward.
  • FINDING-SCHEMA.md - source = the attacker-shaped login assertion, sink = the over-privileged or wrong-tenant provisioned account, evidence = the unvalidated claim or over-granting role mapping.

Heefeg gestallte Froen

Wat mécht de KI-Skill Auditing Jit Provisioning And Role Mapping?

Iwwerpréift d’Just-in-Time-Bereetstellung vu Konten beim federéierte Login (SAML oder OIDC) op falsch gesate Vertrauen an d’Assertion, déi dëse Prozess ausléist: e Login, bei deem fir d’éischt e Kont ugeluecht a Rolle baséiert op Claims vum Identitéitsprovider zougewisen ginn (Gruppen, E-Mail-Domain, Departement), ouni datt de Service dës iwwerpréift; eng Zouwisung vu Claims zu Rollen, déi méi Rechter vergëtt wéi de Claim rechtfäerdegt, oder nei Benotzer standardméisseg an eng privilegéiert Roll setzt; en E-Mail- oder Domain-Claim, deem vertraut gëtt, fir automatesch engem Tenant bäizetried...

Firwat Auditing Jit Provisioning And Role Mapping op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Auditing Jit Provisioning And Role Mapping besteet aus einfachem Markdown amplaz vun ubidderspezifeschem Code. Dee selwechte Skill funktionéiert also mat GPT-5, Claude, Gemini, Grok oder engem lokale Modell – an Dir kënnt de Modell matzen am Chat wiesselen, ouni datt de Skill ophält ze funktionéieren. TypingMind benotzt Är eegen API-Schlësselen, sou datt Dir d'Ubidder direkt bezuelt, amplaz en Abonnement pro Benotzerplaz ze bezuelen. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech Auditing Jit Provisioning And Role Mapping an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/UnboundCompute/security-agent-skills/tree/main/skills/auditing-jit-provisioning-and-role-mapping an. TypingMind liest d'Datei SKILL.md an installéiert de Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen Auditing Jit Provisioning And Role Mapping benotzen?

All Modell, deen Dir an TypingMind verbënnt. KI-Skills sinn einfach Markdown-Instruktiounen an net ubidderspezifesche Code. Dofir kënne GPT, Claude, Gemini, Grok a lokal Modeller dëse Skill lueden, wann eng Ufro dozou passt.

Wéi vill KI-Modeller kann ech mat Auditing Jit Provisioning And Role Mapping benotzen?

Esou vill wéi Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Auditing Jit Provisioning And Role Mapping domat benotzen – zum Beispill mat GPT, Claude, Gemini, Grok, DeepSeek, Mistral oder Llama – alles op TypingMind mat Ären eegenen API-Schlësselen.

Ass de KI-Skill Auditing Jit Provisioning And Role Mapping gratis?

Jo. UnboundCompute huet de Skill ënner der Lizenz MIT op GitHub publizéiert. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbare Pak vun Instruktiounen, deen engem KI-Modell bäibréngt, wéi en eng bestëmmt Aufgab erfëllt. E follegt dem oppenen Agent Skills-Format: eng Datei SKILL.md mat engem Numm an enger Beschreiwung, plus all Scripten, Virlagen oder Referenzdateien, déi de Modell eventuell brauch. De Modell liest d'Instruktiounen eréischt, wann Är Ufro zum Skill passt. En installéierte Skill kascht also näischt, bis e benotzt gëtt.

Wéi ënnerscheede sech KI-Skills vu Plugins oder MCP-Serveren?

E Plugin oder MCP-Server gëtt engem Modell nei Tools, déi en opruffe kann – Code, deen iergendwou leeft an e Resultat zeréckgëtt. E KI-Skill gëtt dem Modell dogéint Wëssen an eng Virgoensweis: wéi en eng Aufgab ugeet, wéi eng Schrëtt e maache soll a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a kee Lafzäitëmfeld a funktionéiere mat all Modell.

Alleguer weisen

Elo Ären eegene KI-Aarbechtsberäich ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇