Logo di Auditing Init And Sidecar Injection Trust

Auditing Init And Sidecar Injection Trust

Organizzazione
UnboundCompute
auditing-init-and-sidecar-injection-trust

Verifica i container init e sidecar eseguiti da un workload, inclusi quelli inseriti da un webhook di admission mutating, per individuare privilegi che il container principale non ha mai concesso: un sidecar inserito con privilegi, accesso all'host o credenziali più ampi di quelli del workload; un container init che recupera ed esegue contenuti remoti prima dell'avvio dell'app; un volume condiviso o uno spazio dei nomi dei processi che consente a un sidecar di leggere i segreti del container principale; e un'iniezione la cui immagine e configurazione provengono da una fonte non controllata dal proprietario del workload. La skill riguarda i pod Kubernetes in cui container init e sidecar, dichiarati o inseriti tramite webhook, condividono il pod con l'applicazione. Usala quando i pod eseguono container init o sidecar, soprattutto se inseriti automaticamente. Il container inserito o ausiliario è la sorgente, la risorsa o la credenziale del pod a cui accede è la destinazione e il bug consiste nei privilegi di cui dispone oltre a quelli del container principale.

Panoramica

Pubblicato daUnboundCompute
Repositorysecurity-agent-skills
Nome della skillauditing-init-and-sidecar-injection-trust
Stelle
27
Fork
8
File inclusi
Solo istruzioni
LicenzaMIT
Link
  • Istruzioni in Markdown

    Un file SKILL.md che il modello carica quando serve, consumando token solo quando una richiesta è effettivamente pertinente.

  • Funziona con qualsiasi LLM

    Le skill IA sono in semplice Markdown, non in codice specifico di un fornitore, quindi funzionano con GPT, Claude, Gemini, Grok o un modello locale.

  • Tutto nelle istruzioni

    Tutto ciò che serve al modello è nelle istruzioni: nessun file aggiuntivo da sincronizzare.

  • Open source

    Pubblicata da UnboundCompute su GitHub. Leggi i sorgenti prima di installarla.

Installazione

Installa la skill IA Auditing Init And Sidecar Injection Trust in TypingMind per usarla con qualsiasi LLM, oppure copiala in un altro agente in grado di leggere SKILL.md.

1

Installa in TypingMind

TypingMind installa una skill direttamente dalla sua cartella GitHub: legge SKILL.md, raccoglie i file delle risorse e salva il risultato in locale.

  1. Apri l'app e vai su Plugin → Skill.
  2. Scegli "Installa da GitHub".
  3. Incolla l'URL della cartella della skill riportato qui sotto e conferma.
    https://github.com/UnboundCompute/security-agent-skills/tree/main/skills/auditing-init-and-sidecar-injection-trust
  4. Attiva la skill in ogni chat in cui vuoi averla a disposizione.
Plugin → Skill → Aggiungi skill → Da URL GitHub, poi incolla l'URL della cartella e premi Continua.
2

Installa in un altro agente

Qualsiasi agente che legge il formato Agent Skills può usare questa skill: copia la cartella della skill nella directory delle skill di quell'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
Dopo la copia, riavvia Claude Code per caricare la nuova skill.

Usala in TypingMind

Attiva Auditing Init And Sidecar Injection Trust in qualsiasi chat di TypingMind e al resto pensa il modello. Il nome e la descrizione della skill sono nel prompt di sistema e, non appena arriva una richiesta pertinente, il modello carica da solo le istruzioni complete: non devi mai richiamarla manualmente e non consuma token finché non viene effettivamente usata.

Il modello carica automaticamente Auditing Init And Sidecar Injection Trust non appena riceve una richiesta pertinente.

Funziona con qualsiasi modello IA

Le skill IA sono semplici istruzioni in Markdown, non codice specifico di un fornitore, quindi Auditing Init And Sidecar Injection Trust non è vincolata al modello per cui è stata scritta. Installala una sola volta in TypingMind e usala con GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama o un modello locale che esegui tu, sempre con le tue chiavi API.

  • Caricata solo quando serve

    Il prompt di sistema contiene solo il nome e la descrizione. Le istruzioni vengono recuperate alla prima richiesta pertinente, quindi una skill inutilizzata non costa nulla.

  • Cambia modello durante la chat

    Poiché la skill è composta da istruzioni e non da codice, continua a funzionare anche se cambi modello: il nuovo modello legge lo stesso file SKILL.md.

Istruzioni della skill

Questo è il contenuto di SKILL.md che il modello carica. Leggilo prima dell'installazione: una skill è un insieme di istruzioni che il tuo modello 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.

Domande frequenti

Cosa fa la skill IA Auditing Init And Sidecar Injection Trust?

Verifica i container init e sidecar eseguiti da un workload, inclusi quelli inseriti da un webhook di admission mutating, per individuare privilegi che il container principale non ha mai concesso: un sidecar inserito con privilegi, accesso all'host o credenziali più ampi di quelli del workload; un container init che recupera ed esegue contenuti remoti prima dell'avvio dell'app; un volume condiviso o uno spazio dei nomi dei processi che consente a un sidecar di leggere i segreti del container principale; e un'iniezione la cui immagine e configurazione provengono da una fonte non controllata...

Perché usare Auditing Init And Sidecar Injection Trust su TypingMind?

Perché la installi una volta e la usi con qualsiasi modello. Auditing Init And Sidecar Injection Trust è scritta in semplice Markdown anziché in codice specifico di un fornitore, quindi la stessa skill funziona con GPT-5, Claude, Gemini, Grok o un modello locale, e puoi cambiare modello durante la chat senza che la skill smetta di funzionare. TypingMind usa le tue chiavi API, quindi paghi direttamente i fornitori anziché un abbonamento per posto utente, e le tue skill e chat restano nel tuo spazio di archiviazione.

Come installo Auditing Init And Sidecar Injection Trust in TypingMind?

Apri Plugin → Skill → Installa da GitHub in TypingMind e incolla https://github.com/UnboundCompute/security-agent-skills/tree/main/skills/auditing-init-and-sidecar-injection-trust. TypingMind legge il file SKILL.md e installa la skill, che puoi abilitare per ogni singola chat.

Quali modelli IA possono usare Auditing Init And Sidecar Injection Trust?

Qualsiasi modello che colleghi a TypingMind. Le skill IA sono semplici istruzioni in Markdown anziché codice specifico di un fornitore, quindi GPT, Claude, Gemini, Grok e i modelli locali possono tutti caricare questa skill quando una richiesta corrisponde al suo scopo.

Quanti modelli IA posso usare con Auditing Init And Sidecar Injection Trust?

Quanti ne vuoi. Se un modello supporta le skill, puoi usarlo con Auditing Init And Sidecar Injection Trust: GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama e molti altri, tutti su TypingMind con le tue chiavi API.

La skill IA Auditing Init And Sidecar Injection Trust è gratuita?

Sì. È pubblicata su GitHub da UnboundCompute con licenza MIT. Paghi solo il tuo fornitore IA per i token che usi.

Cosa sono le skill IA?

Una skill IA è un pacchetto di istruzioni riutilizzabili che insegna a un modello IA come svolgere un'attività specifica. Segue il formato aperto Agent Skills: un file SKILL.md con un nome e una descrizione, più eventuali script, template o file di riferimento di cui il modello potrebbe aver bisogno. Il modello legge le istruzioni solo quando la tua richiesta corrisponde alla skill, quindi una skill installata non comporta costi finché non viene usata.

In cosa si differenziano le skill IA dai plugin o dai server MCP?

Un plugin o un server MCP fornisce a un modello nuovi strumenti da richiamare: codice che viene eseguito da qualche parte e restituisce un risultato. Una skill IA, invece, fornisce al modello conoscenze e procedure: come affrontare un'attività, quali passaggi seguire e quali caratteristiche deve avere un buon output. Le skill sono semplici istruzioni in Markdown, quindi non richiedono server, chiavi API né ambienti di esecuzione e funzionano con qualsiasi modello.

Elenco completo

Crea subito il tuo spazio di lavoro AI

Iscriviti alla nostra newsletter per ricevere aggiornamenti sulle nuove funzionalità e sulle prossime iniziative a premi 👇