Logo de Auditing Init And Sidecar Injection Trust

Auditing Init And Sidecar Injection Trust

Organização
UnboundCompute
auditing-init-and-sidecar-injection-trust

Audite os contêineres init e sidecar executados por uma carga de trabalho, inclusive os injetados por um webhook de admissão mutável, em busca de permissões que o contêiner principal nunca concedeu: um sidecar injetado com privilégios mais amplos, acesso ao host ou credenciais além dos concedidos à carga de trabalho; um contêiner init que busca e executa conteúdo remoto antes de o aplicativo iniciar; um volume compartilhado ou namespace de processos que permita a um sidecar ler os segredos do contêiner principal; e uma injeção cuja imagem e configuração venham de uma origem que o proprietário da carga de trabalho não controla. Abrange pods Kubernetes nos quais contêineres init e sidecar, declarados ou injetados por webhook, compartilham o pod com o aplicativo. Use quando os pods executarem contêineres init ou sidecar, especialmente os injetados. O contêiner injetado ou auxiliar é a origem, o recurso ou a credencial do pod que ele alcança é o destino, e as permissões que ele possui além das do contêiner principal são a vulnerabilidade.

Visão geral

Publicado porUnboundCompute
Repositóriosecurity-agent-skills
Nome da habilidadeauditing-init-and-sidecar-injection-trust
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 Init And Sidecar Injection Trust 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-init-and-sidecar-injection-trust
  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-init-and-sidecar-injection-trust .claude/skills/auditing-init-and-sidecar-injection-trust
Reinicie Claude Code após copiar para que a nova habilidade seja reconhecida.

Use no TypingMind

Ative Auditing Init And Sidecar Injection Trust 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 Init And Sidecar Injection Trust 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 Init And Sidecar Injection Trust 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 init and sidecar injection trust: the containers you did not write share your pod

A pod is not just its application container. Init containers run first, sidecars run alongside, and many are injected automatically by a mutating admission webhook that the workload owner never sees in their manifest. All of them share the pod: the same network namespace, often shared volumes, sometimes the process namespace, and they can be granted their own security context and credentials. That makes every init and sidecar container a trust question the main container did not ask. An injected sidecar may run privileged or with host access the app never needed; an init container may fetch and execute remote content before the app starts; a shared secret volume or process namespace lets a sidecar read the application's secrets; and the injected image and its configuration may come from a source outside the workload owner's control. The pod looks like one workload but is a collection of containers with different privileges and origins. You audit this by enumerating every init and sidecar container, declared and injected, and checking what trust each holds.

When to use

  • Pods run init or sidecar containers, especially ones injected by a mutating admission webhook.
  • An injected or auxiliary container may run with broader privilege, host access, or credentials than the app.
  • Init containers fetch or execute content, or sidecars share volumes or namespaces with the main container.

Scope check

Audit init and sidecar trust only on clusters and workloads you own or are authorized to assess, on non-production pods. Confirming a sidecar can read the app's secrets or that an init container executes remote content touches real workloads, so use non-production pods and do not exfiltrate anything you surface. If you can't name the authorization, stop.

The loop

  1. Establish the workload's intended trust first. Name what the application container is supposed to run with: its privilege level, its credentials, its host access. This is the false-positive killer: a pod whose init and sidecar containers run at or below the app's privilege, from controlled images, sharing nothing sensitive, is fine. Name the intended trust, then check each auxiliary container against it.

  2. Enumerate every init and sidecar container, including injected ones. List the containers actually in the pod at runtime, not just those in the authored manifest, since a mutating webhook may add sidecars. For each, note its image source, security context, credentials, and mounts. An injected container the owner did not declare is the one most likely to hold unexpected trust.

  3. Compare each auxiliary container's privilege to the app. For each init and sidecar container, check whether it runs privileged, adds capabilities, shares a host namespace, or mounts host paths that the main container does not. A sidecar with broader privilege than the app raises the pod's whole blast radius to that sidecar's level.

  4. Check init containers that fetch or execute content. For each init container, determine whether it downloads and runs remote content, applies configuration from an external source, or executes a script before the app starts. An init container that pulls and executes untrusted content runs attacker-influencable code in the pod before the application even begins.

  5. Check shared volumes and namespaces for secret reach. Determine which volumes and namespaces the auxiliary containers share with the main container. A sidecar that mounts the app's secret volume or shares its process namespace can read the application's secrets and memory. Confirm sensitive mounts and namespaces are not shared with a less-trusted sidecar.

  6. Confirm and record. Confirm by showing an init or sidecar container holds trust the app did not grant: a sidecar reading the app's secret, an injected container running privileged, or an init container executing remote content, on non-production pods and without exfiltrating. Kill the lead if every init and sidecar container, declared and injected, runs at or below the app's privilege from a controlled image, shares no sensitive volume or namespace, and executes no untrusted content. Record the auxiliary container source, the pod resource or credential sink, and the trust it held beyond the main container.

Where init and sidecar trust leaks

  • Injected sidecars are invisible in the manifest. A mutating webhook adds containers the owner never declared, so the authored spec understates the pod's trust.
  • A sidecar can out-privilege the app. A sidecar running privileged or with host access raises the pod's blast radius above the application's own security context.
  • Init containers can fetch and execute. An init container that pulls and runs remote content executes attacker-influencable code before the app starts.
  • Shared volumes and namespaces expose secrets. A sidecar that mounts the app's secret volume or shares its process namespace reads the application's secrets and memory.
  • Injected images come from elsewhere. The injected image and its configuration may originate from a source the workload owner does not control or verify.

Worked example (a confirm and a kill)

Confirm. A mutating webhook injects a sidecar into every pod in a namespace. The injected sidecar runs privileged and mounts the application's secret volume, and its image comes from a registry the workload owner does not control. From the sidecar, a process reads the application's database credential the app never shared with it. Confirmed injected-sidecar trust beyond the workload, high, remediation = scope the injected sidecar to the minimum privilege it needs, stop it from mounting the app's secret volume, and pin and verify the injected image from a controlled source.

Kill. Every init and sidecar container in the pod, including the webhook-injected ones, runs unprivileged at or below the app's security context from pinned, verified images the owner controls, none mounts the application's secret volume or shares its process namespace, and no init container fetches or executes remote content. No auxiliary container holds trust the app did not grant. Killed, kill_reason = "all init and sidecar containers run at or below app privilege from controlled images with no shared secret volume or namespace and no remote execution; no injected container exceeds the workload's trust."

Rationalizations to reject

  • "The manifest only has one container." → A mutating webhook may inject more at runtime; enumerate the containers actually in the pod, not just the authored spec.
  • "The sidecar is from the platform team." → Confirm its privilege, image source, and mounts; a trusted team's sidecar can still out-privilege the app or read its secrets.
  • "Init containers just set things up." → If an init container fetches and runs remote content, it executes code in the pod before the app; check what it pulls and runs.
  • "They are in the same pod, sharing is fine." → Sharing a secret volume or process namespace lets a less-trusted sidecar read the app's secrets; scope what is shared.
  • "The injected image is standard." → Confirm it is pinned and from a source you verify; an injected image from elsewhere runs in your pod with whatever trust it is granted.

Executing this in practice

You need the full runtime list of init and sidecar containers including injected ones, each container's image source, security context, credentials, and mounts, whether any init container fetches or executes content, and the shared volumes and namespaces. For each auxiliary container, compare its trust to the application's. Reading the runtime pod spec and the mutating webhook configuration shows the granted trust; showing a sidecar reach the app's secret or an init container execute remote content shows whether the boundary holds.

Related

  • hunting-container-escape-surface - the privilege and host-access settings this skill checks on auxiliary containers are the same escape surface, viewed per injected container.
  • auditing-admission-control-policy-gaps - the mutating webhook that injects sidecars is admission machinery; a gap there is how an untrusted injection gets in.
  • auditing-workload-secret-exposure-surface - the shared-volume secret reach a sidecar exploits is that skill's subject, here caused by an injected neighbor.
  • auditing-container-image-provenance - the injected sidecar's image provenance question; an unverified injected image runs in your pod.
  • FINDING-SCHEMA.md - source = the injected or auxiliary container, sink = the pod resource or credential it reaches, evidence = the trust it held beyond the main container.

Perguntas frequentes

O que a habilidade de IA Auditing Init And Sidecar Injection Trust faz?

Audite os contêineres init e sidecar executados por uma carga de trabalho, inclusive os injetados por um webhook de admissão mutável, em busca de permissões que o contêiner principal nunca concedeu: um sidecar injetado com privilégios mais amplos, acesso ao host ou credenciais além dos concedidos à carga de trabalho; um contêiner init que busca e executa conteúdo remoto antes de o aplicativo iniciar; um volume compartilhado ou namespace de processos que permita a um sidecar ler os segredos do contêiner principal; e uma injeção cuja imagem e configuração venham de uma origem que o proprietár...

Por que usar Auditing Init And Sidecar Injection Trust no TypingMind?

Porque basta instalar uma vez para usar com qualquer modelo. A habilidade Auditing Init And Sidecar Injection Trust é 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 Init And Sidecar Injection Trust no TypingMind?

Abra Plugins → Habilidades → Instalar do GitHub no TypingMind e cole https://github.com/UnboundCompute/security-agent-skills/tree/main/skills/auditing-init-and-sidecar-injection-trust. 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 Init And Sidecar Injection Trust?

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 Init And Sidecar Injection Trust?

Quantos quiser. Desde que o modelo ofereça suporte a habilidades, é possível usar Auditing Init And Sidecar Injection Trust 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 Init And Sidecar Injection Trust é 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 👇