Logotipo de Auditing Network Policy Segmentation Gaps

Auditing Network Policy Segmentation Gaps

Organización
UnboundCompute
auditing-network-policy-segmentation-gaps

Audit cluster network segmentation for the reachability a workload should not have: a namespace with no default-deny so every pod can reach every other pod, a missing egress policy that lets a compromised pod call out to the internet or the cloud metadata endpoint, an overly broad selector that admits more sources than intended, and a policy that governs one direction while the other stays open. Covers Kubernetes network policies and equivalent segmentation where pod-to-pod, pod-to-service, and pod-to-external reachability is meant to be constrained. Use when network policy is the control limiting lateral movement and egress in a cluster. The reachable source pod is the source, the pod, service, or external endpoint it can reach is the sink, and the segmentation gap that permits the reach is the bug.

Descripción general

EditorUnboundCompute
Repositoriosecurity-agent-skills
Nombre de la habilidadauditing-network-policy-segmentation-gaps
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 Network Policy Segmentation Gaps 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-network-policy-segmentation-gaps
  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-network-policy-segmentation-gaps .claude/skills/auditing-network-policy-segmentation-gaps
Reinicia Claude Code después de copiarla para que detecte la nueva habilidad.

Úsala en TypingMind

Activa Auditing Network Policy Segmentation Gaps 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 Network Policy Segmentation Gaps 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 Network Policy Segmentation Gaps 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 network segmentation gaps: when every pod can reach every pod

Kubernetes networking is open by default: without a policy, every pod can talk to every other pod, every service, and often the internet and the cloud metadata endpoint. Network policy is what closes that down, so segmentation is not a property the cluster has, it is a property each namespace earns by having policies that actually constrain reachability in both directions. The gaps are predictable: a namespace with no default-deny where the whole open default still applies, a missing egress rule that lets a compromised pod exfiltrate or reach the node metadata endpoint, a selector broad enough to admit sources it never meant to, and a policy that locks ingress while egress stays wide open. Lateral movement and egress are exactly what an attacker does after a foothold, and segmentation is what limits both. You audit this by checking, per namespace and per workload, what can actually reach what.

When to use

  • Network policy is the control meant to limit pod-to-pod, pod-to-service, or pod-to-external reachability.
  • Namespaces may lack a default-deny, so the open-by-default reachability still applies.
  • Egress may be unconstrained, letting a compromised pod reach the internet or the cloud metadata endpoint.

Scope check

Test segmentation only on clusters you own or are authorized to assess, on non-production namespaces. Probing reachability sends traffic between real pods and possibly outbound, so keep probes benign and inside the authorized namespaces, and do not exfiltrate through any egress gap you find. If you can't name the authorization, stop.

The loop

  1. Establish the intended reachability first. Name, per workload, what it should be able to reach and what should be able to reach it: which services, which namespaces, what egress. This is the false-positive killer: a namespace with a default-deny and explicit allow rules that match exactly the intended reachability is correctly segmented. Name the intended graph, then compare actual reachability to it.

  2. Check for a default-deny per namespace. Determine whether each namespace has a default-deny for ingress and egress, or whether the open default applies. A namespace without default-deny gives every pod full reachability regardless of any specific allow rules, so the absence of default-deny is the first and biggest gap.

  3. Audit egress explicitly. For each workload, check whether egress is constrained. Unconstrained egress lets a compromised pod call out to the internet to exfiltrate or fetch a payload, and reach the cloud metadata endpoint to grab node credentials. Egress is frequently forgotten while ingress is locked; confirm both directions.

  4. Check selector breadth on allow rules. For each allow policy, read the pod, namespace, and IP selectors and confirm they admit only the intended sources or destinations. A selector broader than needed, an empty selector that matches everything, or a namespace label an attacker workload can wear, admits more than intended.

  5. Reconcile both directions and cross-namespace paths. Confirm that ingress and egress policies agree and that cross-namespace reachability matches intent: a service meant to be internal is not reachable from a namespace that should be walled off, and a policy governing one direction is not undone by the other staying open. Map the effective reachability graph, not each rule in isolation.

  6. Confirm and record. Confirm by reaching, from a source pod, a pod, service, or external endpoint it should not be able to reach, on non-production namespaces and without exfiltrating. Kill the lead if every namespace has a default-deny, egress is constrained (including to the metadata endpoint), selectors admit only intended sources, and both directions agree with the intended graph. Record the source pod, the reached sink, and the segmentation gap that permitted it.

Where segmentation gaps leak

  • No default-deny means fully open. A namespace without default-deny keeps the open-by-default reachability, so specific allow rules add nothing.
  • Unconstrained egress enables exfiltration and metadata theft. A pod with open egress can reach the internet and the cloud metadata endpoint after a compromise.
  • A broad selector admits extra sources. An overly wide or empty selector, or one keyed on an attacker-wearable label, lets in more than the intended source set.
  • One-directional policy leaves the other open. Locking ingress while egress stays open, or vice versa, leaves half the reachability unconstrained.
  • Cross-namespace reachability is the lateral path. An internal service reachable from a namespace that should be isolated is the move an attacker makes after a foothold.

Worked example (a confirm and a kill)

Confirm. An application namespace has ingress policies on its front-end service but no default-deny and no egress policy. A pod in that namespace, standing in for a compromised workload, reaches the cloud metadata endpoint and an internal database in another namespace that the front end never needed. Confirmed segmentation gap enabling lateral reach and metadata access, high, remediation = apply a default-deny for ingress and egress in the namespace, add explicit egress rules that exclude the metadata endpoint and the internet, and scope cross-namespace allow rules to the exact services required.

Kill. Every namespace has a default-deny for both directions, egress is restricted to the specific destinations each workload needs with the metadata endpoint blocked, allow selectors match only the intended pods and namespaces on labels the cluster controls, and ingress and egress agree with the intended graph. A source pod reaches only its permitted destinations. Killed, kill_reason = "default-deny in every namespace with constrained egress, metadata blocked, and tight selectors in both directions; no pod reaches anything outside the intended reachability graph."

Rationalizations to reject

  • "We have network policies." → Confirm a default-deny exists; without it the open default applies and your allow rules only add to a fully open baseline.
  • "Ingress is locked down." → Check egress too; an open egress lets a compromised pod exfiltrate and reach the metadata endpoint regardless of ingress.
  • "The cluster is internal." → Internal still has lateral movement and a metadata endpoint; segmentation limits an attacker who already has one foothold.
  • "The selector targets our app." → Confirm the selector cannot be matched by another workload's labels; a broad or wearable selector admits more than your app.
  • "Nothing sensitive is in that namespace." → Cross-namespace reachability is the lateral path; a reachable internal service is a target even if the source namespace looks unimportant.

Executing this in practice

You need, per namespace, whether a default-deny exists; per workload, the ingress and egress allow rules and their selectors; the egress posture toward the internet and the metadata endpoint; and the intended reachability graph. For each workload, compute what it can actually reach in both directions and compare to intent. Reading the policies shows the intended segmentation; reaching a should-be-unreachable endpoint from a source pod shows whether it holds.

Related

  • mapping-pod-to-cloud-credential-reach - open egress to the metadata endpoint is how a pod reaches the node role; segmentation and credential reach compound here.
  • auditing-namespace-as-tenant-boundary - network policy is one of the controls a namespace-as-tenant boundary depends on; audit segmentation as part of that boundary.
  • auditing-service-mesh-mtls-and-authz-trust - mesh authorization is the layer-7 companion to layer-3/4 network policy; the two together define who can reach whom.
  • mapping-attack-surface - use it to enumerate the services and external endpoints reachable from a namespace before auditing the policies that should constrain them.
  • FINDING-SCHEMA.md - source = the reachable source pod, sink = the pod, service, or external endpoint it reaches, evidence = the segmentation gap that permitted the reach.

Preguntas frecuentes

¿Qué hace la habilidad de IA Auditing Network Policy Segmentation Gaps?

Audit cluster network segmentation for the reachability a workload should not have: a namespace with no default-deny so every pod can reach every other pod, a missing egress policy that lets a compromised pod call out to the internet or the cloud metadata endpoint, an overly broad selector that admits more sources than intended, and a policy that governs one direction while the other stays open. Covers Kubernetes network policies and equivalent segmentation where pod-to-pod, pod-to-service, and pod-to-external reachability is meant to be constrained. Use when network policy is the control l...

¿Por qué usar Auditing Network Policy Segmentation Gaps en TypingMind?

Porque la instalas una vez y la usas con cualquier modelo. Auditing Network Policy Segmentation Gaps 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 Network Policy Segmentation Gaps en TypingMind?

Abre Plugins → Habilidades → Instalar desde GitHub en TypingMind y pega https://github.com/UnboundCompute/security-agent-skills/tree/main/skills/auditing-network-policy-segmentation-gaps. 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 Network Policy Segmentation Gaps?

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 Network Policy Segmentation Gaps?

Con tantos como quieras. Siempre que un modelo admita habilidades, puedes usar Auditing Network Policy Segmentation Gaps 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 Network Policy Segmentation Gaps?

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 👇