Logotipo de Auditing Jit Provisioning And Role Mapping

Auditing Jit Provisioning And Role Mapping

Organización
UnboundCompute
auditing-jit-provisioning-and-role-mapping

Audita el aprovisionamiento de cuentas justo a tiempo durante el inicio de sesión federado (SAML u OIDC) para detectar una confianza mal depositada en la aserción que lo activa: un primer inicio de sesión que crea una cuenta y asigna roles a partir de atributos del proveedor de identidad (grupos, dominio de correo electrónico, departamento) que el servicio nunca valida; una asignación de atributos a roles que concede más privilegios de los que corresponden al atributo o asigna por defecto a los nuevos usuarios un rol privilegiado; un atributo de correo electrónico o dominio en el que se confía para incorporar automáticamente a un usuario a un tenant, de modo que un atacante con una dirección similar acabe dentro; y una actualización JIT que vuelve a elevar los privilegios de una cuenta en cada inicio de sesión a partir de atributos modificables. Úsalo cuando un inicio de sesión federado aprovisione una cuenta y la asignación de atributos de la aserción a roles locales y al tenant sea el límite de seguridad. La aserción de inicio de sesión manipulada por el atacante es el origen; la cuenta aprovisionada con privilegios excesivos o en el tenant equivocado, el destino; y el fallo consiste en no validar el atributo o en una asignación de roles que concede privilegios de más.

Descripción general

EditorUnboundCompute
Repositoriosecurity-agent-skills
Nombre de la habilidadauditing-jit-provisioning-and-role-mapping
Estrellas
27
Forks
8
Archivos incluidos
Solo instrucciones
LicenciaMIT
Enlaces
  • Instrucciones en Markdown

    Un archivo SKILL.md que el modelo carga cuando lo necesita, de modo que solo consume tokens cuando la petición encaja con la habilidad.

  • Funciona con cualquier LLM

    Las habilidades de IA están en Markdown, no en código específico de un proveedor, por lo que funcionan con GPT, Claude, Gemini, Grok o un modelo local.

  • Todo en las instrucciones

    Todo lo que necesita el modelo está en las instrucciones: no hay archivos adicionales que sincronizar.

  • Código abierto

    Publicada por UnboundCompute en GitHub. Revisa el contenido original antes de instalarla.

Instalación

Instala la habilidad de IA Auditing Jit Provisioning And Role Mapping en TypingMind para usarla con cualquier LLM, o añádela a otro agente que lea SKILL.md.

1

Instalar en TypingMind

TypingMind instala una habilidad directamente desde su carpeta de GitHub: lee SKILL.md, empaqueta los archivos de recursos y guarda el resultado localmente.

  1. Abre la aplicación y ve a Plugins → Habilidades.
  2. Elige «Instalar desde GitHub».
  3. Pega la URL de la carpeta de la habilidad que se muestra a continuación y confirma.
    https://github.com/UnboundCompute/security-agent-skills/tree/main/skills/auditing-jit-provisioning-and-role-mapping
  4. Activa la habilidad en cada chat en el que quieras tenerla disponible.
Plugins → Habilidades → Añadir habilidad → URL de GitHub; después, pega la URL de la carpeta y pulsa Continuar.
2

Instalar en otro agente

Cualquier agente que lea el formato Agent Skills puede usar esta habilidad: copia la carpeta en el directorio de habilidades de ese agente.

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
Reinicia Claude Code después de copiarla para que detecte la nueva habilidad.

Úsala en TypingMind

Activa Auditing Jit Provisioning And Role Mapping en cualquier chat de TypingMind y el modelo se encargará del resto. Su nombre y descripción se incluyen en el prompt del sistema y, en cuanto una petición encaja con la habilidad, el modelo carga las instrucciones completas por sí solo. No tienes que invocarla manualmente y no consume tokens hasta que se utiliza.

El modelo carga Auditing Jit Provisioning And Role Mapping automáticamente en cuanto una petición es relevante para esa habilidad.

Funciona con cualquier modelo de IA

Las habilidades de IA son instrucciones en Markdown, no código específico de un proveedor, por lo que Auditing Jit Provisioning And Role Mapping no está vinculada al modelo para el que se creó. Instálala una sola vez en TypingMind y úsala con GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama o un modelo local que ejecutes tú, todo con tus propias claves API.

  • Se carga solo cuando se necesita

    El prompt del sistema solo incluye el nombre y la descripción. Las instrucciones se cargan con la primera petición que encaja con la habilidad, por lo que una habilidad que no se usa no supone ningún coste.

  • Cambia de modelo durante el chat

    Como la habilidad contiene instrucciones y no código, cambiar de modelo no impide que funcione: el nuevo modelo lee el mismo archivo SKILL.md.

Instrucciones de la habilidad

Este es el contenido de SKILL.md que carga el modelo. Léelo antes de instalar la habilidad: contiene instrucciones que tu modelo seguirá.

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.

Preguntas frecuentes

¿Qué hace la habilidad de IA Auditing Jit Provisioning And Role Mapping?

Audita el aprovisionamiento de cuentas justo a tiempo durante el inicio de sesión federado (SAML u OIDC) para detectar una confianza mal depositada en la aserción que lo activa: un primer inicio de sesión que crea una cuenta y asigna roles a partir de atributos del proveedor de identidad (grupos, dominio de correo electrónico, departamento) que el servicio nunca valida; una asignación de atributos a roles que concede más privilegios de los que corresponden al atributo o asigna por defecto a los nuevos usuarios un rol privilegiado; un atributo de correo electrónico o dominio en el que se con...

¿Por qué usar Auditing Jit Provisioning And Role Mapping en TypingMind?

Porque la instalas una vez y la usas con cualquier modelo. Auditing Jit Provisioning And Role Mapping está escrita en Markdown, no en código específico de un proveedor, por lo que la misma habilidad funciona con GPT-5, Claude, Gemini, Grok o un modelo local, y puedes cambiar de modelo en mitad del chat sin que deje de funcionar. TypingMind utiliza tus propias claves API, de modo que pagas directamente a los proveedores en lugar de pagar una suscripción por puesto, y tus habilidades y chats permanecen en tu propio almacenamiento.

¿Cómo instalo Auditing Jit Provisioning And Role Mapping en TypingMind?

Abre Plugins → Habilidades → Instalar desde GitHub en TypingMind y pega https://github.com/UnboundCompute/security-agent-skills/tree/main/skills/auditing-jit-provisioning-and-role-mapping. TypingMind lee el archivo SKILL.md de esa carpeta e instala su contenido como una habilidad que puedes activar en cada chat.

¿Qué modelos de IA pueden usar Auditing Jit Provisioning And Role Mapping?

Cualquier modelo que conectes en TypingMind. Las habilidades de IA son instrucciones en Markdown, no código específico de un proveedor, por lo que GPT, Claude, Gemini, Grok y los modelos locales pueden cargar esta habilidad cuando una solicitud se corresponda con ella.

¿Con cuántos modelos de IA puedo usar Auditing Jit Provisioning And Role Mapping?

Con tantos como quieras. Siempre que un modelo admita habilidades, puedes usar Auditing Jit Provisioning And Role Mapping con él: GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama y muchos más, todos en TypingMind con tus propias claves API.

¿Es gratuita la habilidad de IA Auditing Jit Provisioning And Role Mapping?

Sí. UnboundCompute la ha publicado en GitHub bajo la licencia MIT. Solo pagas a tu proveedor de IA por los tokens que utilizas.

¿Qué son las habilidades de IA?

Una habilidad de IA es un conjunto de instrucciones reutilizables que enseña a un modelo de IA a realizar una tarea concreta. Sigue el formato abierto Agent Skills: un archivo SKILL.md con un nombre y una descripción, además de los scripts, plantillas o archivos de referencia que pueda necesitar el modelo. El modelo solo lee las instrucciones cuando tu solicitud se corresponde con la habilidad, por lo que una habilidad instalada no supone ningún coste hasta que se utiliza.

¿En qué se diferencian las habilidades de IA de los plugins o los servidores MCP?

Un plugin o un servidor MCP proporciona al modelo nuevas herramientas que puede invocar: código que se ejecuta en algún lugar y devuelve un resultado. En cambio, una habilidad de IA aporta conocimientos y procedimientos al modelo: cómo abordar una tarea, qué pasos seguir y qué se considera un buen resultado. Las habilidades son instrucciones en Markdown, por lo que no necesitan servidor, clave API ni entorno de ejecución, y funcionan con cualquier modelo.

Ver el directorio

Crea ya tu propio espacio de trabajo con IA

Suscríbete a nuestro boletín para recibir avisos sobre nuevas funciones y próximos sorteos 👇