# Tipos de Caja en Pentesting

La cantidad de información compartida antes de un compromiso puede tener una gran influencia en sus resultados.

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

1. <mark style="color:green;">**Caja Blanca (White Box)**</mark>
   * El pentester tiene pleno conocimiento del sistema, incluyendo su código fuente, arquitectura, y otra información interna.
   * Se asemeja a una auditoría interna.
   * Permite un análisis exhaustivo y detallado.
2. <mark style="color:green;">**Caja Negra (Black Box)**</mark>
   * El pentester no tiene información previa sobre el sistema.
   * Simula un ataque externo donde el atacante tiene poco o ningún conocimiento previo.
   * Es útil para probar la eficacia de las defensas perimetrales de un sistema.
3. <mark style="color:green;">**Caja Gris (Grey Box)**</mark>
   * Combina elementos de caja blanca y caja negra.
   * El pentester tiene algún conocimiento sobre el sistema, pero no es completo.
   * Ofrece un equilibrio entre el alcance del test y la perspectiva de un atacante externo.


---

# Agent Instructions: 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:

```
GET https://books.spartan-cybersec.com/cppj/fundamentos-de-la-ciberseguridad-ofensiva/que-es-el-pentesting/tipos-de-caja-en-pentesting.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
