> For the complete documentation index, see [llms.txt](https://books.spartan-cybersec.com/cpad/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://books.spartan-cybersec.com/cpad/post-explotacion-en-windows/fundamentos-de-escalacion-de-privilegios-en-windows/niveles-de-integridad-en-procesos-de-windows.md).

# Niveles de integridad en procesos de Windows

Windows define cuatro niveles de integridad: bajo, medio, alto y system. Los usuarios estándar reciben el nivel medio, los usuarios elevados reciben el nivel alto. Los procesos que se inician y los objetos que se crean reciben su nivel de integridad (medio o alto) o bajo si el nivel del archivo ejecutable es bajo; los servicios del sistema reciben la integridad del sistema.

Para validar todo lo anterior, podemos ejecutar el siguiente comando desde una terminal:

<figure><img src="/files/hO5RrrjgpUdoarAqeqn1" alt=""><figcaption></figcaption></figure>

Y si ejecutamos este mismo comando en un CMD sin privilegios, se obtendrá el siguiente resultado:

<figure><img src="/files/fDvuWUDlDJ9OgHK37sEO" alt=""><figcaption></figcaption></figure>

Cuando un administrador local inicia sesión en Windows, se crean dos tokens de acceso: Uno con derechos de administrador y otro con derechos normales. Por defecto, cuando este usuario ejecuta un proceso se utiliza el que tiene derechos normales (no de administrador). Cuando este usuario intente ejecutar algo como administrador ("Ejecutar como administrador" por ejemplo) se utilizará el UAC para pedir permiso.

**Enlace de referencia:**

<https://book.hacktricks.xyz/windows-hardening/windows-local-privilege-escalation/integrity-levels>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://books.spartan-cybersec.com/cpad/post-explotacion-en-windows/fundamentos-de-escalacion-de-privilegios-en-windows/niveles-de-integridad-en-procesos-de-windows.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
