Logotipo de Auditing Windows Token And Privilege Abuse

Auditing Windows Token And Privilege Abuse

Organización
UnboundCompute
auditing-windows-token-and-privilege-abuse

Audita la escalada de privilegios mediante el abuso de tokens de acceso y privilegios de Windows, cuando un proceso tiene habilitado un privilegio sensible o puede obtener un token con más privilegios, lo que permite que una posición inicial con pocos privilegios suplante a un usuario privilegiado, cargue un controlador, tome posesión, haga copias de seguridad de archivos protegidos o depure otro proceso para alcanzar un contexto de mayor privilegio. Úsalo cuando un servicio o proceso se ejecuta con un privilegio sensible habilitado o puede recibir y suplantar tokens de usuarios privilegiados. Abarca los privilegios de suplantación, el robo y la duplicación de tokens, y los privilegios de copia de seguridad, restauración, toma de posesión, carga de controladores y depuración. El privilegio o el token privilegiado que se puede capturar es el origen, la operación que autoriza el privilegio es el destino y el fallo consiste en alcanzar un contexto con más privilegios desde otro con menos.

Descripción general

EditorUnboundCompute
Repositoriosecurity-agent-skills
Nombre de la habilidadauditing-windows-token-and-privilege-abuse
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 Windows Token And Privilege Abuse 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-windows-token-and-privilege-abuse
  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-windows-token-and-privilege-abuse .claude/skills/auditing-windows-token-and-privilege-abuse
Reinicia Claude Code después de copiarla para que detecte la nueva habilidad.

Úsala en TypingMind

Activa Auditing Windows Token And Privilege Abuse 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 Windows Token And Privilege Abuse 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 Windows Token And Privilege Abuse 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 Windows token and privilege abuse: when a held privilege is a ladder

A Windows access token carries the privileges a process may exercise, and a handful of them are equivalent to full control of the host even when the account is not an administrator. A process that can impersonate a client can capture a privileged caller's token and act as that caller. One that holds the privilege to load a driver runs code in the kernel. One that can back up or restore files reads and writes past every access control. One that can take ownership or debug any process reaches into a more privileged context directly. The bug is not that the privilege exists; it is that a lower-privileged foothold holds a privilege, or can obtain a token, whose authorized operation lifts it to a higher context. You audit these by listing the privileges each process holds and each token it can capture, and asking which of them crosses a trust boundary the account was not meant to cross.

When to use

  • A service or process runs with a named sensitive privilege enabled that you can enumerate.
  • A process accepts connections from privileged callers and can impersonate their tokens.
  • A foothold account holds backup, restore, ownership, load-driver, or debug rights on a host you assess.

Scope check

Audit token and privilege abuse only on hosts you own or are authorized to assess, on non-production or a snapshot, using a benign proof that the privileged operation succeeded rather than performing a damaging one. A confirmed abuse reaches a full-control context, so keep every probe within the authorized scope. If you can't name the authorization, stop.

The loop

  1. Establish which privileges the foothold actually holds and can enable first. For the process or account under assessment, determine the exact set of privileges present in its token and which are enabled or can be enabled, and which privileged tokens it is positioned to capture. This is the false-positive killer: a privilege that is present but not held by the foothold, or an impersonation that only ever receives tokens no more privileged than the account itself, is not an escalation. Name the specific privilege or capturable token before claiming a path.

  2. Enumerate the sensitive privileges in scope. List the privileges that are equivalent to escalation when held by a non-administrator: the impersonation privileges, the load-driver privilege, the backup and restore privileges, the take-ownership privilege, and the debug privilege. Note which of these the foothold's token carries and whether each is enabled or enable-able.

  3. Map impersonation to a captured token. For an impersonation privilege, determine whether the process can induce a privileged caller to connect or authenticate to it and then impersonate that caller's token, turning a service foothold into the privileged caller's context. Identify the concrete way a privileged token is made to arrive.

  4. Map each direct privilege to its authorized operation. Load-driver runs code in the kernel; backup and restore read and write files past their access control; take-ownership seizes an object and then rewrites its permissions; debug opens a handle into a more privileged process. For each held privilege, name the operation it authorizes and the higher context that operation reaches.

  5. Check the boundary the operation crosses. An escalation exists only where the authorized operation reaches a context more privileged than the foothold: reading a protected credential store, writing a system binary, injecting into a system process, or loading kernel code. Confirm the operation actually crosses that boundary rather than staying within the account's own resources.

  6. Confirm and record. Confirm by exercising the privilege for a benign proof on an isolated host: capture a token and read something the foothold could not, or use backup to open a protected file for read only, or load a benign signed test driver, observing the higher context without damage. Kill the lead if the foothold does not hold or cannot enable the privilege, if the only capturable tokens are no more privileged than the account, or if the operation stays within the account's own resources. Record the privilege, the operation, the boundary crossed, and the benign proof, or set a kill_reason.

Where token and privilege abuse leaks

  • The held privilege is the finding, not its name. A sensitive privilege matters only when the lower-privileged foothold actually holds and can enable it; confirm possession before impact.
  • Impersonation captures a caller's context. A process that can impersonate turns any privileged caller it can induce to connect into that caller's token, so the reach is whoever can be made to authenticate.
  • Backup and restore ignore access control. These privileges read and write files past their permissions, so a foothold holding them reads protected stores and writes protected binaries.
  • Load-driver reaches the kernel. The privilege to load a driver runs attacker-chosen code in the most privileged context on the host, so it is escalation by definition when a non-admin holds it.
  • Take-ownership and debug reach across processes. Ownership seizes an object to rewrite its permissions; debug opens a handle into a more privileged process to read or inject, each crossing the boundary directly.

Worked example (a confirm and a kill)

Confirm. A service account foothold holds an impersonation privilege, and the service can be induced to have a privileged caller authenticate to it. Capturing and impersonating that caller's token lets the foothold read a resource restricted to the privileged account, demonstrated for read only on an isolated host. Confirmed privilege escalation through token impersonation, high, remediation = remove the impersonation privilege from the account if it is not required, run the service under an account with only the privileges it needs, and prevent privileged callers from authenticating to a lower-privileged service.

Kill. The same account's token does not carry the impersonation privilege, holds no backup, restore, ownership, load-driver, or debug privilege, and the only callers it can impersonate run as the same unprivileged account. No held privilege authorizes an operation that crosses to a higher context. Killed, kill_reason = "the foothold holds no sensitive privilege it can enable and can capture no token more privileged than itself; no authorized operation reaches a higher context."

Rationalizations to reject

  • "The account is not an administrator." -> Several privileges are administrator-equivalent on their own; a non-admin holding backup, load-driver, or an impersonation privilege escalates without being an admin.
  • "The privilege is present but disabled." -> A privilege the foothold can enable is held for this purpose; check whether it can be enabled, not only whether it is enabled right now.
  • "Only system services impersonate." -> If the assessed service can impersonate and a privileged caller can be induced to connect, the foothold captures that caller's token regardless of what usually connects.
  • "Backup is just for backups." -> The backup privilege reads any file past its access control, so it reads protected credential and configuration stores the account could not otherwise open.
  • "Debugging needs a debugger attached." -> The debug privilege opens a handle into a more privileged process directly; no interactive debugger is required for the escalation.

Executing this in practice

You need the exact privilege set in the foothold's token, which privileges are enabled or enable-able, and, for impersonation, which privileged callers can be induced to authenticate to the process. For each sensitive privilege held, name the authorized operation and the higher context it reaches, then confirm the boundary is actually crossed. Reading the token's privileges settles most leads; a benign proof, a read past access control or a captured privileged token used read-only on an isolated host, settles the rest.

Related

  • hunting-windows-service-privilege-escalation - code running as a service account inherits that account's privileges, so a service escalation and the privileges the account then wields are consecutive steps.
  • hunting-windows-dll-hijacking-and-search-order - code loaded into a privileged process gains that process's token, which this skill then audits for the privileges it carries.
  • auditing-windows-uac-and-integrity-boundaries - integrity levels and elevation gate which privileges a token may exercise, the boundary that skill audits alongside this one.
  • hunting-windows-credential-material-exposure - the backup and debug privileges read protected credential stores, feeding the material that skill pursues from the access side.
  • FINDING-SCHEMA.md - source = the held privilege or capturable privileged token, sink = the operation the privilege authorizes, evidence = the higher context reached through a benign proof on an isolated host.

Preguntas frecuentes

¿Qué hace la habilidad de IA Auditing Windows Token And Privilege Abuse?

Audita la escalada de privilegios mediante el abuso de tokens de acceso y privilegios de Windows, cuando un proceso tiene habilitado un privilegio sensible o puede obtener un token con más privilegios, lo que permite que una posición inicial con pocos privilegios suplante a un usuario privilegiado, cargue un controlador, tome posesión, haga copias de seguridad de archivos protegidos o depure otro proceso para alcanzar un contexto de mayor privilegio. Úsalo cuando un servicio o proceso se ejecuta con un privilegio sensible habilitado o puede recibir y suplantar tokens de usuarios privilegiad...

¿Por qué usar Auditing Windows Token And Privilege Abuse en TypingMind?

Porque la instalas una vez y la usas con cualquier modelo. Auditing Windows Token And Privilege Abuse 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 Windows Token And Privilege Abuse en TypingMind?

Abre Plugins → Habilidades → Instalar desde GitHub en TypingMind y pega https://github.com/UnboundCompute/security-agent-skills/tree/main/skills/auditing-windows-token-and-privilege-abuse. 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 Windows Token And Privilege Abuse?

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 Windows Token And Privilege Abuse?

Con tantos como quieras. Siempre que un modelo admita habilidades, puedes usar Auditing Windows Token And Privilege Abuse 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 Windows Token And Privilege Abuse?

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 👇