Logo: Auditing Scim Provisioning Trust

Auditing Scim Provisioning Trust

Organisatioun
UnboundCompute
auditing-scim-provisioning-trust

Audit a SCIM 2.0 provisioning endpoint for trust misplaced in the identity provider that drives it: a provisioning API authenticated by a weak, shared, or long-lived bearer token anyone holding it can use to create users and grant groups, a handler that lets one tenant's client create or modify users in another tenant, a group or role pushed over SCIM that maps to more privilege than the source attribute should grant, a deprovisioning path that fails to disable a departed user so access lingers, and attribute updates (email, external id, admin flag) trusted without validation so an attacker reassigns an account. Use when an external identity source creates, updates, and deletes accounts over SCIM and the service provider's trust in that source is the boundary. The crafted or replayed SCIM request is the source, the unauthorized account, group, or lingering access is the sink, and the weak provisioning auth or unvalidated attribute mapping is the bug.

Iwwersiicht

EditeurUnboundCompute
Repositorysecurity-agent-skills
Skill-Nummauditing-scim-provisioning-trust
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 Scim Provisioning Trust 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-scim-provisioning-trust
  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-scim-provisioning-trust .claude/skills/auditing-scim-provisioning-trust
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Auditing Scim Provisioning Trust 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 Scim Provisioning Trust 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 Scim Provisioning Trust 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 SCIM provisioning trust: the provisioning token creates admins, so guard it like one

SCIM lets an identity provider create, update, and delete accounts in a service provider automatically, and that means the SCIM endpoint is an account-and-group factory reachable over the network. Whoever can call it with a valid credential can mint users, add them to privileged groups, and change who an existing account belongs to, so the provisioning credential is effectively an admin credential and the trust in the calling identity provider is the whole boundary. The failures follow. A provisioning endpoint authenticated by a weak, shared, or never-expiring bearer token hands account creation to anyone who obtains it. A handler that does not scope requests to the calling tenant lets one customer's provisioning client touch another customer's users. A group or role pushed over SCIM that maps to more privilege than the source attribute warrants is a quiet escalation. A deprovisioning event that does not actually disable the account leaves a departed user with standing access. And attribute updates, email, external id, an admin flag, trusted without validation let an attacker reassign or elevate an account. The audit treats the SCIM endpoint as privileged, checks its authentication and tenant scoping, and follows each lifecycle event to what it actually grants or revokes. You audit this by calling the SCIM API as the identity provider would and as an attacker who stole its token would.

When to use

  • An identity provider provisions accounts and groups into a service provider over SCIM 2.0 (create, update, deactivate, delete).
  • The SCIM endpoint may be authenticated by a shared, weak, or long-lived bearer token.
  • Provisioning may not be scoped per tenant, deprovisioning may not revoke access, or attribute mappings may over-grant.

Scope check

Test SCIM provisioning only against services and directories you own or are authorized to assess, on non-production tenants. Creating, modifying, and deleting accounts over SCIM changes real identity state, so use test tenants and never provision, elevate, or delete accounts that are not yours. If you can't name the authorization, stop.

The loop

  1. Establish who may provision and what each event should grant first. Name the trusted identity provider, how the SCIM endpoint authenticates it, which tenant its requests are confined to, and what privilege each group or role mapping is supposed to confer. This is the false-positive killer: an endpoint that authenticates the provider with a strong, scoped, rotatable credential, confines every request to the calling tenant, maps groups to exactly their intended privilege, and revokes access on deprovision is behaving correctly. Name the intended trust, then test each edge.

  2. Test the provisioning authentication. Examine the credential the SCIM endpoint accepts: whether it is a strong per-provider secret or a shared, guessable, or long-lived bearer token, and whether it can be rotated and revoked. Try calling the endpoint with a missing, malformed, or another tenant's token. An endpoint that accepts a weak or shared token lets anyone holding it create accounts and grant groups.

  3. Test tenant scoping. As one tenant's provisioning client, attempt to create, read, update, or delete users and groups belonging to another tenant, by external id, by user id, and by filter. Confirm every SCIM operation is confined to the calling tenant. A handler that acts cross-tenant lets one customer provision into another.

  4. Test group and role mapping. Push group memberships and role attributes over SCIM and confirm each maps to exactly the privilege it should, not more. Attempt to add a provisioned user to an admin or elevated group the source attribute should not reach. A mapping that grants more than the attribute warrants is a provisioning-time privilege escalation.

  5. Test deprovisioning and attribute reassignment. Deactivate and delete a provisioned user and confirm access is actually revoked (sessions, tokens, and group membership), not just a flag flipped. Separately, update sensitive attributes (email, external id, username, admin flag) and confirm the service validates them so an attacker cannot reassign or elevate an account. Lingering access after deprovision and unvalidated attribute updates are both live bugs.

  6. Confirm and record. Confirm on a test tenant by provisioning or elevating an account with a weak or cross-tenant token, adding a user to a group beyond its mapping, or keeping access after a deprovision event, without touching real accounts. Kill the lead if the endpoint authenticates the provider with a strong scoped rotatable credential, confines requests to the calling tenant, maps groups to their intended privilege only, revokes access on deprovision, and validates attribute updates. Record the crafted or replayed SCIM request, the unauthorized account, group, or lingering access, and the weak provisioning auth or unvalidated attribute mapping.

Where SCIM trust leaks

  • Weak or shared provisioning token. A guessable, shared, or never-expiring bearer token on the SCIM endpoint hands account creation and group grants to anyone who holds it.
  • No tenant scoping. A handler that does not confine operations to the calling tenant lets one provisioning client create or modify another tenant's users and groups.
  • Over-granting group or role mapping. A group or role pushed over SCIM that maps to more privilege than the source attribute warrants escalates at provisioning time.
  • Deprovisioning that does not revoke. A deactivate or delete that flips a flag but leaves sessions, tokens, or group membership intact leaves a departed user with access.
  • Unvalidated attribute updates. Trusting email, external id, username, or an admin flag from a SCIM update lets an attacker reassign or elevate an account.

Worked example (a confirm and a kill)

Confirm. A service exposes a SCIM endpoint authenticated by a single shared bearer token that is the same across all customers and never rotated. On a test tenant, using that token, a request creates a user in a different tenant and adds them to that tenant's administrators group, because the handler does not scope the operation to the token's tenant. Confirmed cross-tenant account creation and privilege grant via shared provisioning token and missing tenant scoping, critical, remediation = issue a strong per-provider, per-tenant credential that can be rotated and revoked, and confine every SCIM operation to the calling tenant's users and groups.

Kill. The SCIM endpoint authenticates each provider with a strong per-tenant credential that is rotatable and revocable, confines every create, read, update, and delete to the calling tenant, maps each group to exactly its intended privilege with admin groups unreachable from ordinary source attributes, revokes sessions and tokens on deprovision, and validates attribute updates. A cross-tenant call is rejected, an over-privilege group add fails, and a deprovisioned user loses access. Killed, kill_reason = "SCIM endpoint uses a strong scoped rotatable credential, confines every operation to the calling tenant, maps groups to their intended privilege only, revokes access on deprovision, and validates attributes; no crafted request provisions, elevates, or retains access it should not."

Rationalizations to reject

  • "The SCIM token is secret." → A shared or long-lived token leaks and cannot be revoked without breaking everyone; issue a strong per-provider credential that rotates, and treat it as an admin credential.
  • "Only our identity provider calls it." → Anyone with the token calls it; confirm the endpoint scopes to the authenticated tenant and rejects cross-tenant ids and filters, not just that the provider is honest.
  • "Groups come from the IdP, so they are trusted." → Confirm each group and role maps to exactly its intended privilege; an attribute the IdP sends should not be able to reach an admin group it was never meant to.
  • "Deactivating the user is enough." → Verify sessions, tokens, and group membership are actually revoked; a flipped flag that leaves a live session is not deprovisioning.
  • "Attribute updates are routine." → An unvalidated email or external-id change reassigns an account; validate sensitive attributes on every SCIM update.

Executing this in practice

You need the SCIM endpoint's authentication (credential strength, scope, rotation), whether operations are confined to the calling tenant, how groups and roles map to privilege, what deprovisioning actually revokes, and how attribute updates are validated. Call the endpoint as the provider and as a token-holder attacking another tenant, exercising create, update, group-add, delete, and attribute-change on test tenants. Reading the provisioning handler shows the intended trust; an account created, elevated, or retained against policy shows whether it holds.

Related

  • auditing-jit-provisioning-and-role-mapping - the just-in-time counterpart; SCIM pushes accounts ahead of login while JIT creates them at login, and both hinge on how a source attribute maps to privilege.
  • auditing-directory-sync-trust - the bulk directory synchronization that often sits beside SCIM; both trust an external source to shape internal identity state.
  • auditing-multi-tenant-isolation - the per-tenant scoping SCIM must enforce is that skill's whole subject, applied to the provisioning surface.
  • hunting-iam-privilege-escalation-paths - a group or role over-granted at provisioning time is the entry to an escalation path that skill traces onward.
  • FINDING-SCHEMA.md - source = the crafted or replayed SCIM request, sink = the unauthorized account, group, or lingering access, evidence = the weak provisioning auth or unvalidated attribute mapping.

Heefeg gestallte Froen

Wat mécht de KI-Skill Auditing Scim Provisioning Trust?

Audit a SCIM 2.0 provisioning endpoint for trust misplaced in the identity provider that drives it: a provisioning API authenticated by a weak, shared, or long-lived bearer token anyone holding it can use to create users and grant groups, a handler that lets one tenant's client create or modify users in another tenant, a group or role pushed over SCIM that maps to more privilege than the source attribute should grant, a deprovisioning path that fails to disable a departed user so access lingers, and attribute updates (email, external id, admin flag) trusted without validation so an attacker...

Firwat Auditing Scim Provisioning Trust op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Auditing Scim Provisioning Trust 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 Scim Provisioning Trust 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-scim-provisioning-trust 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 Scim Provisioning Trust 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 Scim Provisioning Trust benotzen?

Esou vill wéi Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Auditing Scim Provisioning Trust 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 Scim Provisioning Trust 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 👇