Logo de Auditing Namespace As Tenant Boundary

Auditing Namespace As Tenant Boundary

Organização
UnboundCompute
auditing-namespace-as-tenant-boundary

Audite um namespace do Kubernetes tratado como uma barreira de isolamento entre tenants, identificando o isolamento que ele não oferece de fato: recursos com escopo de cluster e nós compartilhados entre namespaces; RBAC que permite a um tenant acessar recursos além do próprio namespace; ausência de política de rede, deixando os pods se comunicarem livremente entre namespaces; e serviços de cluster compartilhados (DNS, ingress, admission e classes de armazenamento) que acessam ou atendem todos os tenants. Abrange clusters multi-tenant em que cada tenant recebe um namespace e se presume que ele o mantém isolado. Use quando o namespace é a unidade de separação entre tenants e se presume que um tenant não pode afetar nem observar outro. O tenant confinado a um namespace é a origem; o recurso ou namespace de outro tenant que ele alcança é o destino; e o problema é o isolamento que o namespace não impõe.

Visão geral

Publicado porUnboundCompute
Repositóriosecurity-agent-skills
Nome da habilidadeauditing-namespace-as-tenant-boundary
Estrelas
27
Forks
8
Arquivos incluídos
Somente instruções
LicençaMIT
Links
  • Instruções em Markdown

    Um arquivo SKILL.md que o modelo carrega sob demanda, consumindo tokens apenas quando uma solicitação é realmente relevante para a habilidade.

  • Funciona com qualquer LLM

    As habilidades de IA são escritas em Markdown simples, não em código específico de um provedor. Por isso, funcionam com GPT, Claude, Gemini, Grok ou um modelo local.

  • Sem arquivos extras

    Tudo de que o modelo precisa está nas instruções — sem arquivos extras para sincronizar.

  • Código aberto

    Publicada por UnboundCompute no GitHub. Leia os arquivos da habilidade antes de instalá-la.

Instalação

Instale a habilidade de IA Auditing Namespace As Tenant Boundary no TypingMind para usá-la com qualquer LLM ou adicione-a a outro agente que leia SKILL.md.

1

Instalar no TypingMind

O TypingMind instala uma habilidade diretamente da pasta dela no GitHub — lê o arquivo SKILL.md, reúne os arquivos de recursos em um pacote e armazena o resultado localmente.

  1. Abra o app e vá para Plugins → Habilidades.
  2. Escolha "Instalar do GitHub".
  3. Cole a URL abaixo, que aponta para a pasta da habilidade, e confirme.
    https://github.com/UnboundCompute/security-agent-skills/tree/main/skills/auditing-namespace-as-tenant-boundary
  4. Ative a habilidade em cada chat em que quiser disponibilizá-la.
Plugins → Habilidades → Adicionar habilidade → Via URL do GitHub. Depois, cole a URL da pasta e pressione Continuar.
2

Instalar em outro agente

Qualquer agente que leia o formato Agent Skills pode usar esta habilidade — copie a pasta para o diretório de habilidades desse 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-namespace-as-tenant-boundary .claude/skills/auditing-namespace-as-tenant-boundary
Reinicie Claude Code após copiar para que a nova habilidade seja reconhecida.

Use no TypingMind

Ative Auditing Namespace As Tenant Boundary em qualquer chat do TypingMind e o modelo cuida do resto. O nome e a descrição da habilidade ficam no prompt do sistema e, assim que uma solicitação relevante aparece, o modelo carrega as instruções completas automaticamente — sem precisar de acionamento manual e sem consumir tokens até que ela seja realmente usada.

O modelo carrega Auditing Namespace As Tenant Boundary automaticamente assim que uma solicitação é relevante para essa habilidade.

Funciona com qualquer modelo de IA

Habilidades de IA são instruções em Markdown simples, não código específico de um provedor. Por isso, Auditing Namespace As Tenant Boundary não fica vinculada ao modelo para o qual foi criada. Instale-a uma vez no TypingMind e use-a com GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama ou um modelo local executado por conta própria — tudo com suas próprias chaves de API.

  • Carregada apenas quando necessário

    O prompt do sistema contém apenas o nome e a descrição. As instruções são buscadas na primeira solicitação relevante, então uma habilidade sem uso não gera custo.

  • Troque de modelo durante a conversa

    Como a habilidade é composta de instruções, não de código, trocar de modelo não afeta seu funcionamento — o próximo modelo lê o mesmo arquivo SKILL.md.

Instruções da habilidade

Este é o conteúdo de SKILL.md que o modelo carrega. Leia antes de instalar — uma habilidade é um conjunto de instruções que seu modelo seguirá.

Auditing the namespace as a tenant boundary: what a namespace does not isolate

A namespace is a name-scoping and policy-attachment unit, not a security sandbox, yet multi-tenant clusters routinely hand each tenant a namespace and assume it contains them. It does not, on its own. Nodes are shared, so a tenant that can influence scheduling or escape a container reaches another tenant's pods on the same node. Cluster-scoped resources, custom resource definitions, node objects, persistent volumes, and cluster roles sit outside every namespace and are visible or reachable across them. RBAC that grants a verb at cluster scope, or on another namespace, punches straight through the boundary. Without network policy, pods cross namespaces freely. And the shared cluster services every tenant depends on, DNS, ingress, admission, storage classes, see or serve all tenants at once. The audit question is not whether tenants have separate namespaces but whether the namespace actually stops one from affecting or observing another. You audit this by testing each isolation the boundary is assumed to provide.

When to use

  • A namespace is the unit of tenant separation and is assumed to isolate one tenant from another.
  • Tenants share nodes, cluster-scoped resources, and cluster services (DNS, ingress, admission, storage).
  • RBAC, network policy, or resource quotas may not fully confine a tenant to its own namespace.

Scope check

Audit tenant isolation only on clusters you own or are authorized to assess, on non-production tenants. Testing cross-tenant reach touches other namespaces' resources, so use non-production tenants and do not read or alter another tenant's real data. If you can't name the authorization, stop.

The loop

  1. Establish what the boundary must isolate first. Name what one tenant must not be able to do to another: read its resources, reach its pods, exhaust shared capacity, observe its traffic. This is the false-positive killer: a namespace backed by tenant-scoped RBAC, a default-deny network policy, resource quotas, and no cross-namespace or cluster-scoped grants is enforcing the boundary. Name the required isolations, then test each.

  2. Audit RBAC reach beyond the namespace. For each tenant's identities, enumerate whether any binding grants a verb at cluster scope or on another namespace: cluster roles, cross-namespace role bindings, or access to cluster-scoped resources. A single cluster-scoped grant lets a tenant read or act outside its namespace, breaking the boundary at the API layer.

  3. Check network isolation between namespaces. Determine whether pods in one tenant namespace can reach pods and services in another. Without a default-deny network policy, namespaces do not isolate traffic, so one tenant reaches another's services directly. Confirm segmentation exists between tenant namespaces, not just within one.

  4. Find shared-resource and node exposure. Identify the cluster-scoped resources and nodes tenants share: node objects, persistent volumes and storage classes, custom resource definitions, and node co-tenancy. A tenant that can view or influence these, or that shares a node with another tenant's pods, reaches across the boundary through the shared layer rather than the API.

  5. Check shared cluster services and quotas. Confirm the shared services every tenant uses, DNS, ingress, admission webhooks, do not leak one tenant's data to another or let one tenant's configuration affect another, and that resource quotas prevent one tenant from exhausting capacity and denying service to the rest. A shared service that serves all tenants without isolation, or missing quotas, is a cross-tenant effect.

  6. Confirm and record. Confirm by acting as one tenant to read another tenant's resource, reach another's pod, or exhaust a shared resource, across non-production tenants and without touching real data. Kill the lead if tenant RBAC is namespace-scoped with no cluster-scoped or cross-namespace grants, default-deny network policy separates tenants, quotas bound each tenant, and shared services do not leak across tenants. Record the tenant source, the cross-tenant resource or namespace sink, and the isolation the namespace did not enforce.

Where the namespace boundary leaks

  • Cluster-scoped grants punch through. A cluster role or cross-namespace binding lets a tenant read or act outside its namespace at the API layer.
  • No network policy means namespaces are not isolated. Without a default-deny, pods in one tenant namespace reach another's services directly.
  • Shared nodes host multiple tenants. Node co-tenancy plus a container escape reaches another tenant's pods on the same node.
  • Cluster-scoped resources are visible across tenants. Node objects, volumes, and custom resource definitions sit outside every namespace and are reachable across them.
  • Shared services and missing quotas create cross-tenant effects. A shared service that serves all tenants, or an unquota'd tenant, lets one tenant observe or starve another.

Worked example (a confirm and a kill)

Confirm. Each tenant has a namespace, but a convenience cluster role grants tenants read on a cluster-scoped resource, and there is no network policy between namespaces. Acting as one tenant, a request lists a cluster-scoped object revealing another tenant's configuration, and a pod reaches another tenant's internal service directly. Confirmed namespace boundary failure across RBAC and network, high, remediation = remove cluster-scoped and cross-namespace grants from tenant roles, apply a default-deny network policy between tenant namespaces, and add resource quotas per tenant.

Kill. Every tenant identity is bound only within its own namespace with no cluster-scoped or cross-namespace grant, a default-deny network policy separates tenant namespaces, resource quotas bound each tenant, and shared services do not expose one tenant's data to another. A tenant cannot read another's resources, reach its pods, or exhaust shared capacity. Killed, kill_reason = "tenant RBAC namespace-scoped with no cluster-scoped grants, default-deny network policy between tenants, quotas enforced, and shared services isolated; the namespace confines the tenant."

Rationalizations to reject

  • "Each tenant has its own namespace." → A namespace scopes names, not security; test RBAC reach, network reach, and shared resources before assuming it isolates.
  • "RBAC is set per namespace." → Check for cluster-scoped roles and cross-namespace bindings; one cluster- scoped grant reaches every namespace.
  • "Pods are separated by namespace." → Without a default-deny network policy, namespaces do not separate traffic; confirm segmentation between tenants.
  • "They share the cluster, that is expected." → Sharing nodes and cluster-scoped resources is exactly where a namespace fails to isolate; audit the shared layer, not just the namespaces.
  • "One tenant cannot affect another." → Confirm quotas exist; without them one tenant can exhaust shared capacity and deny service to the rest.

Executing this in practice

You need each tenant's RBAC bindings and their scope, the network policy between tenant namespaces, the cluster-scoped resources and nodes tenants share, the shared cluster services, and the resource quotas. For each isolation the boundary is assumed to provide, test whether one tenant can breach it. Reading the RBAC, policies, and quotas shows the intended boundary; acting as one tenant to reach another shows whether it holds.

Related

  • auditing-multi-tenant-isolation - the general multi-tenant discipline; this skill applies it specifically to the namespace-as-boundary assumption in Kubernetes.
  • auditing-network-policy-segmentation-gaps - the network half of the boundary; a namespace without inter- tenant network policy is not isolated.
  • hunting-container-escape-surface - the node co-tenancy risk; a shared node plus an escape reaches another tenant's pods regardless of namespace.
  • auditing-kubernetes-workload-and-rbac-hardening - the RBAC-scoping discipline this boundary depends on; cluster-scoped grants are where it breaks.
  • FINDING-SCHEMA.md - source = the tenant confined to a namespace, sink = the cross-tenant resource or namespace it reaches, evidence = the isolation the namespace did not enforce.

Perguntas frequentes

O que a habilidade de IA Auditing Namespace As Tenant Boundary faz?

Audite um namespace do Kubernetes tratado como uma barreira de isolamento entre tenants, identificando o isolamento que ele não oferece de fato: recursos com escopo de cluster e nós compartilhados entre namespaces; RBAC que permite a um tenant acessar recursos além do próprio namespace; ausência de política de rede, deixando os pods se comunicarem livremente entre namespaces; e serviços de cluster compartilhados (DNS, ingress, admission e classes de armazenamento) que acessam ou atendem todos os tenants. Abrange clusters multi-tenant em que cada tenant recebe um namespace e se presume que e...

Por que usar Auditing Namespace As Tenant Boundary no TypingMind?

Porque basta instalar uma vez para usar com qualquer modelo. A habilidade Auditing Namespace As Tenant Boundary é escrita em Markdown simples, e não em código específico de um provedor, então a mesma habilidade funciona com GPT-5, Claude, Gemini, Grok ou um modelo local — e é possível trocar de modelo no meio do chat sem que ela deixe de funcionar. No TypingMind, você usa suas próprias chaves de API e paga diretamente aos provedores, em vez de pagar uma assinatura por licença de usuário. Suas habilidades e chats permanecem no seu próprio armazenamento.

Como instalar Auditing Namespace As Tenant Boundary no TypingMind?

Abra Plugins → Habilidades → Instalar do GitHub no TypingMind e cole https://github.com/UnboundCompute/security-agent-skills/tree/main/skills/auditing-namespace-as-tenant-boundary. O TypingMind lê o arquivo SKILL.md e instala a habilidade para que possa ser ativada em cada chat.

Quais modelos de IA podem usar Auditing Namespace As Tenant Boundary?

Qualquer modelo conectado no TypingMind. As habilidades de IA são instruções em Markdown simples, e não código específico de um provedor. Assim, GPT, Claude, Gemini, Grok e modelos locais podem carregar esta habilidade quando uma solicitação corresponder a ela.

Quantos modelos de IA posso usar com Auditing Namespace As Tenant Boundary?

Quantos quiser. Desde que o modelo ofereça suporte a habilidades, é possível usar Auditing Namespace As Tenant Boundary com ele — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama e outros — tudo no TypingMind com suas próprias chaves de API.

A habilidade de IA Auditing Namespace As Tenant Boundary é gratuita?

Sim. A habilidade é publicada no GitHub por UnboundCompute sob a licença MIT. O pagamento é feito apenas ao seu provedor de IA pelos tokens usados.

O que são habilidades de IA?

Uma habilidade de IA é um conjunto reutilizável de instruções que ensina um modelo de IA a realizar uma tarefa específica. Ela segue o formato aberto Agent Skills: um arquivo SKILL.md com nome e descrição, além de scripts, templates ou arquivos de referência de que o modelo possa precisar. O modelo lê as instruções apenas quando sua solicitação corresponde à habilidade, então uma habilidade instalada não gera custos até ser usada.

Qual é a diferença entre habilidades de IA e plugins ou servidores MCP?

Um plugin ou servidor MCP oferece ao modelo novas ferramentas que ele pode acionar — código que é executado em algum lugar e retorna um resultado. Já uma habilidade de IA dá ao modelo o conhecimento e as orientações de que ele precisa: como abordar uma tarefa, quais etapas seguir e como deve ser um bom resultado. As habilidades são escritas em Markdown simples, por isso não precisam de servidor, chave de API nem ambiente de execução, e funcionam com qualquer modelo.

Ver lista completa

Crie seu próprio espaço de trabalho com IA agora

Inscreva-se na nossa newsletter para receber avisos sobre novos recursos e futuros sorteios 👇